# Know When the Equation Is Wrong: Structural Uncertainty for LLM-Guided Symbolic Regression under Extrapolation

Interval widths from disagreeing equations keep LLM symbolic regression honest under extrapolation

Mostafa Cham, Bayu Adhi Tama, Jianwu Wang · arXiv · 2026-10-30

- **Problem** Symbolic regression methods report one best equation without uncertainty over alternative forms. Standard conformal intervals around that equation hit the target coverage in distribution but often miss it under extrapolation.
- **Method** LLM-SR-UQ keeps several candidate equations and widens prediction intervals where they disagree. It uses tempered evidence weights so alternative structures stay in play, then calibrates the width with split conformal prediction.
- **Results** On LLM-SRBench, structural intervals reached 0.92 out-of-distribution attainment at A1, compared with 0.53 for split conformal intervals.

![Figure 1: Overview of LLM-SR-UQ. Candidate equations are proposed (A), fitted and retained in a weighted buffer (B). An optional critic guides subsequent propo…](https://refivu.com/papers/453f5eee-b9bc-4507-9fee-c9f8070e51a0/figures/figure-b87687610942b8d7e697b56794191f12.png?thumb=512)

**Figure 1** . Overview of LLM-SR-UQ. Candidate equations are proposed (A), fitted and retained in a weighted buffer (B). An optional critic guides subsequent proposals without modifying the buffer (C). The retained equations are combined for prediction, while their disagreement informs conformally calibrated structural intervals (D).

[Original paper](https://arxiv.org/abs/2610.42024v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mostafa Cham, Bayu Adhi Tama, Jianwu Wang · Know When the Equation Is Wrong: Structural Uncertainty for LLM-Guided Symbolic Regression under Extrapolation · Original paper figure · Extracted the figure area from page 4 of the original PDF.

## Why one equation's intervals fail outside the training range

Symbolic regression is meant to find an equation that still holds beyond the observed range. LLM-guided methods generate and refine many candidate equations, yet most report only the top equation at the end. Two equations can fit the training data about equally well and still predict very differently outside it. Reporting only the highest scorer hides whether that choice is well supported or just one of several plausible options.

Standard benchmarks score point accuracy and symbolic recovery, but they don't check whether intervals hit the target rate. Conformal prediction gives a finite-sample coverage guarantee under exchangeability, even when the model is wrong. When it wraps one selected equation, the equations the search discarded play no part in the interval.

Once those rivals are gone, their disagreement can't inform the uncertainty estimate, so post-hoc calibration can miss structural ambiguity under extrapolation. In the experiments, split conformal coverage stayed near nominal in distribution but often fell short under extrapolation.

The conclusion reports that split-conformal intervals keep approximately nominal in-distribution coverage on LLM-SRBench. Those same intervals frequently fail under extrapolation, and prediction accuracy alone doesn't reveal these errors. On the 109 held-out problems, split-conformal OOD coverage attainment was 0.58 at A0 and 0.53 at A1. Structural intervals raised those attainment values to 0.83 at A0 and 0.92 at A1, so the gap is the motivation for the rest of the paper.

## Keep the rivals and let their disagreement set the width

LLM-SR-UQ keeps several candidate equations and reads their spread at each input as a measure of structural uncertainty. Where the candidates agree, the interval stays narrow, and where they split, it widens. The method runs in four stages, which Figure 1 shows.

In Stage A, a proposer LLM writes K = 8 candidate structures per round from the problem description. Later rounds add a summary of the current fits, so the proposer sees its leading equations and their errors. In Stage B, each candidate's coefficients are fitted by least squares on D\_fit. The residual variance then feeds a BIC term, which approximates the log Bayesian evidence.

The buffer keeps up to B = 24 top-scoring equations. Identical structures are removed, while distinct structures from the same family can stay in the buffer. The critic reads diagnostics and proposes edits, but it never alters the retained candidates.

Stage D averages the retained equations with untempered evidence weights, so the predictor stays close to the best single equation. The structural spread uses tempered weights, and each term is one candidate's squared gap from the predictor, scaled by its weight. Tempered weights keep alternative structures from being swamped, because untempered evidence weights concentrate on one equation.

Split conformal prediction then calibrates this spread on D\_cal-ID, computing a normalized error for each held-out point. The quantile q̂\_α is the ⌈(m+1)(1−α)⌉-th smallest score, with α = 0.1 for a nominal 90% coverage level. The interval for a new input x is the prediction plus or minus q̂\_α times σ\_S(x).

## Why the predictor and the spread use different weights

Bayesian evidence weights can put nearly all their mass on one equation, especially when the dataset is large. When that happens, alternative structures have little say, even when their predictions differ under extrapolation. Each candidate's score is its log evidence minus a complexity penalty, so the spread depends on how these scores are turned into weights.

The buffer keeps up to B = 24 highest-scoring equations, and distinct structures from one family may both stay in it.

The authors apply a temperature τ to the scores, so the tempered weight is the softmax of ℓk divided by τ over the buffer. Raising τ spreads weight more evenly across the retained equations, which keeps the alternatives in play. At τ = 1 the weights become the untempered weights, which the authors denote by w̃k and use for the point predictor.

In the experiments the untempered weights had a median effective model count of 1.00 across configurations, so they left little disagreement to measure.

Beff ranges from 1, when one structure dominates, to B, when all structures are equally weighted. Tuning τ this way matters because score gaps grow with dataset size, so a fixed temperature would concentrate weight differently across problems. The authors report stable results whenever Beff exceeds 1, across a broad range of targets. They treat the resulting spread as an empirical measure of structural uncertainty, not as a calibrated Bayesian posterior.

## Turning held-out errors into interval width

Structural disagreement alone doesn't set the coverage level, so LLM-SR-UQ calibrates it with split conformal prediction on Dcal-ID. Dcal-ID holds m observations, and each calibration point gets a normalized score. That score is the absolute prediction error divided by the structural spread at the same input, so s\_i = \|y\_i − ŷ(x\_i)\| / σ\_S(x\_i).

Dividing by the spread means that errors in regions of large candidate disagreement are scaled down before calibration.

The authors take the ⌈(m+1)(1−α)⌉-th smallest score as the calibration quantile q̂\_α. With α = 0.1, the nominal coverage level is 90%. The new input's interval is ŷ(x) ± q̂\_α σ\_S(x), so the quantile sets the overall scale. The spread σ\_S(x) then sets how the width changes across inputs, so intervals widen where candidates diverge and narrow where they agree.

The split conformal baseline uses the same predictor but a constant unit scale on absolute residuals. It produces intervals of fixed width everywhere, so the scale is the only difference between the two constructions. Under exchangeability, both constructions give finite-sample marginal coverage of at least 1 − α, even when no candidate is correctly specified.

That guarantee doesn't generally extend to D\_OOD, so the paper checks coverage under extrapolation empirically.

## Benchmark, splits and call budget

The study runs on the LSR-Synth subset of LLM-SRBench, which holds 129 problems across four domains. Each training set is randomly split into D\_fit at 80% for fitting and scoring candidates, and D\_cal-ID at 20% for calibrating intervals. Test sets D\_test and D\_OOD are reserved for final evaluation, while D\_cal-EXT lies just beyond the training range and carries no labels.

Because D\_cal-EXT has no target values, no extrapolation labels enter equation search or uncertainty calibration.

The ablation rungs A0 to A3 switch on Stage C one step at a time, and all rungs use the same LLM-call budget. A0 and A1 spend all 125 calls on the proposer, so the total budget matches across configurations even though proposal rounds differ. Only the A3 critic sees label-free evidence from D\_cal-EXT, so the comparison between A2 and A3 isolates that information.

Both interval constructions share one point predictor, one fitting set and one calibration set, which is what makes them comparable. Every baseline uses the same D\_fit and D\_cal-ID as LLM-SR-UQ, so their results may differ from the originally reported ones. LLM-SR is compared as its single best equation with split-conformal intervals and as its top 24 equations with both interval types.

All prediction intervals target 90% coverage, and results use one search seed on the 109 held-out problems.

## Structural intervals raise OOD attainment at A0 and A1

With the point predictor held fixed, structural intervals lift OOD attainment at both rungs, which isolates the effect of the interval construction. At A0, attainment rises from 0.58 to 0.83 (91/109 problems), and at A1 it rises from 0.53 to 0.92 (100/109 problems). Within each pair the NMSE values are identical, so the change comes from interval width rather than better predictions.

The authors attribute the gain to disagreement among the retained equations.

Counting problem by problem, structural intervals raise OOD coverage on 58 problems at A0 and 60 at A1. They lower coverage on 7 problems at A0 and on 12 at A1. Coverage moves from failure to attainment on 32 problems at A0 and 43 at A1. Only 4 and 1 problems move in the opposite direction, so the gain is not uniform across problems.

A wider interval could explain higher coverage, so the authors checked widths on problems where both constructions attain coverage. The median structural-to-split width ratio is 1.16 at A0 and 0.98 at A1. Wilcoxon signed-rank tests give p = 0.77 at A0 and p = 0.22 at A1, so neither shows a significant difference. The authors read this as structural disagreement improving attainment, while its effect on the width trade-off varies by configuration.

## Does the interval construction transfer to other searches?

The authors apply the same structural construction to the top-24 LLM-SR equations and to Ensemble-SINDy, keeping each method's point predictions fixed. Direct prompting produces one equation per problem, so it can only receive split-conformal intervals. The comparison isolates the interval construction from differences in the underlying equation search, since both interval types share identical predictions and calibration data.

On the single best LLM-SR equation, split intervals reached 0.52 attainment, or 57 of 109 problems. Retaining the top 24 equations with split intervals improved attainment only marginally, to 0.53 (58/109). Structural intervals on the same top-24 set raised OOD coverage from 0.635 to 0.928. Coverage attainment rose from 0.53 to 0.86, which is 94 of 109 problems.

The NMSE stays unchanged within each pair, so the authors credit the gain to disagreement among equations rather than to keeping more of them.

Ensemble-SINDy gives a second test, because it builds its candidates through sparse regression instead of LLM-guided search. Structural intervals raised its OOD coverage from 0.365 to 0.762, and its attainment from 0.26 (28/109 problems) to 0.62 (68/109 problems). The median OOD interval score fell from 5.58×10 −2 to 1.89×10 −2, which the authors read as a better coverage-width trade-off.

Ensemble-SINDy's reported sharpness rose, but those values cover different problem sets, so they can't be compared directly. Figure 3 shows the same comparison as an empirical cumulative distribution of OOD coverage across the 109 problems. Direct prompting reached 0.55 (60/109) with Llama-3.1-8B-Instruct and 0.57 (62/109) with GPT-4o-mini, both with split intervals.

![Figure 3: Empirical cumulative distribution of OOD coverage across 109 held-out problems. Each curve shows the fraction of problems with empirical coverage at…](https://refivu.com/papers/453f5eee-b9bc-4507-9fee-c9f8070e51a0/figures/figure-b7b7116da28891a85ee367a6b6b91409.png?thumb=512)

**Figure 3** . Empirical cumulative distribution of OOD coverage across 109 held-out problems. Each curve shows the fraction of problems with empirical coverage at or below the horizontal- axis value. A0, A1, LLM-SR top-24 BMA, and Ensemble-SINDy use structural intervals. Direct-prompting baselines and LLM-SR single-best use split-conformal intervals. The vertical dotted line marks the attainment threshold of 0.88. Legend values report cov- erage attainmentA 0.1.

[Original paper](https://arxiv.org/abs/2610.42024v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

## Does the LLM critic add coverage?

The ablation ladder switches on Stage C in four steps, so each rung adds one component to the search. A0 gives the proposer only the problem description, while A1 adds a fixed, rule-based summary of the current fits. A2 adds the critic, and A3 additionally shows the critic label-free evidence about extrapolation from Dcal-EXT. All rungs use the same budget of 125 LLM calls per problem, and in A2 and A3 the critic takes 24 of those calls.

The proposer therefore makes 101 calls in A2 and A3, compared with 125 in A0 and A1.

A1 reached the highest OOD coverage attainment, at 0.92 (100/109 problems). The critic-assisted A2 and A3 configurations reached 0.82 to 0.88 across both critic models. Adding the critic therefore didn't raise OOD attainment under this fixed budget. Because the critic's edits rarely outperformed the leading candidates under the evidence criterion, they had little influence on the retained equations.

Rule-based feedback changed the search itself, since only 22% of A1 proposals belonged to previously explored structural families. At A0, 31% of proposals repeated a previously explored family. A1 explored 774 distinct structural families, whereas A0 explored 690 under the same budget of about 1,000 candidate equations. The critic-assisted configurations repeated 33 to 39% of their candidates, and the distinct family count fell to 494 to 543.

The critic did produce simpler reported equations, with expression-tree size falling from 25.1 nodes at A1 to 22.5 with the 8B critic. With GPT-4o, expression-tree size fell to 21.9 nodes at A3. The authors conclude that critic-assisted search yields more compact equations without better uncertainty performance. Because critic calls replace proposer calls, these results describe the whole critic-assisted configuration, not the critic alone.

## Limitations

Results cover 109 held-out LSR-Synth problems with one search seed. LSR-Transform was left out because it has no extrapolation split. The baselines were fit on 80% of the training data, so their numbers can differ from the originally published ones.

Coverage gains are not uniform, and width and interval-score differences were not significant at A0 or A1. The coverage guarantee holds under exchangeability and doesn't generally extend to OOD inputs, so the OOD results are empirical.

The critic result describes the whole critic-assisted setup, and the study doesn't separate the critic from the proposer calls it replaced. Direct prompting had only split intervals, so it can't show the effect of structural intervals on single-equation baselines.

## Paper info

- **Authors**: Mostafa Cham, Bayu Adhi Tama, Jianwu Wang
- **Venue**: arXiv · Preprint
- **First published**: 2026-10-30
- **Added**: 2026-11-7
- **Updated**: 2026-10-30
- **Version**: v1
- **arXiv**: 2610.42024
- **Category**: cs.LG · cs.AI
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2610.42024v1) · [PDF ↗](https://arxiv.org/pdf/2610.42024v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Large language models (LLMs) can help discover mathematical equations from data, but most LLM-guided symbolic regression methods focus on a single best equation without quantifying uncertainty over alternative functional forms. This is challenging because distinct equations can fit the observed data similarly while producing substantially different extrapolations. Our experiments on the LLM-SRBench dataset show that standard conformal intervals achieve nominal in-distribution coverage but frequently fail under extrapolation. To tackle this challenge, we introduce LLM-SR-UQ, a framework that retains competing equation structures and uses their disagreement to characterize uncertainty about the underlying functional form. We extend the standard fixed-width conformal approach to quantify structural intervals, which measure disagreement among candidate equations and identify where prediction intervals should widen. Extensive experiments show our framework substantially improves coverage attainment by incorporating structural disagreement while preserving in-distribution coverage. Our approach also shows good generalizability when it is applied to other symbolic-regression methods.

## Quote from the paper

Mostafa Cham, Bayu Adhi Tama, Jianwu Wang (2026). Know When the Equation Is Wrong: Structural Uncertainty for LLM-Guided Symbolic Regression under Extrapolation. arXiv:2610.42024v1. https://arxiv.org/abs/2610.42024v1

**BibTeX**

```
@misc{cham2026know,
  title = {{Know When the Equation Is Wrong: Structural Uncertainty for LLM-Guided Symbolic Regression under Extrapolation}},
  author = {Mostafa Cham and Bayu Adhi Tama and Jianwu Wang},
  year = {2026},
  eprint = {2610.42024},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.42024v1}
}
```

## Other paper commentary

- [PersonaChatBench: Evaluating Chat Assistants with Diverse Simulated Users](https://refivu.com/en/papers/a50e9837-9e97-46c8-8f14-4c57885cb2da-personachatbench-evaluating-chat-assistants-with-diverse.md)
- [Towards interpreting any residual stream direction by scaling activation inversion](https://refivu.com/en/papers/ebea06ed-af65-4435-97d1-4dc35161aee1-towards-interpreting-any-residual-stream-direction-by.md)
- [Prune Gradually, Adapt Sparsely: Efficient Pruning of Large Language Models at Extreme Sparsity](https://refivu.com/en/papers/b1289733-ee90-4f09-9b44-f020ba510eec-prune-gradually-adapt-sparsely-efficient-pruning-of-large.md)
- [Prompting Is Programming: A Query Language for Large Language Models](https://refivu.com/en/papers/688fcde1-89d3-44fe-b9ec-673455f09c78-prompting-is-programming-a-query-language-for-large.md)
- [Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks](https://refivu.com/en/papers/805208af-12ea-4b4b-b1a8-6db7601b1c37-sentence-bert-sentence-embeddings-using-siamese-bert.md)
- [GPT Understands, Too](https://refivu.com/en/papers/1bee23a9-1e12-440d-bf82-0263604d14f2-gpt-understands-too.md)
- [MoETok: Sparse Expert Routing for 1D Visual Tokenizers](https://refivu.com/en/papers/9ac56c4f-79e4-4a8e-84c0-669a18545702-moetok-sparse-expert-routing-for-1d-visual-tokenizers.md)
- [Failure Prediction and Classification in Vision-Language-Action Models Via Calibrated Latent Probing](https://refivu.com/en/papers/8167dc4e-f33a-47b4-ac9f-e337868963a3-failure-prediction-and-classification-in-vision-language.md)
- [Design and Validation of a Robotic Knee Exoskeleton with Musculoskeletal Simulation-Derived Biological Torque Control](https://refivu.com/en/papers/6b578a5d-2f06-47a6-ad4b-447e889eba64-design-and-validation-of-a-robotic-knee-exoskeleton.md)
- [User Embeddings are Superpositions of Interpretable Behavioral Modes](https://refivu.com/en/papers/5ce977e5-7400-4210-a1ba-7cbeca566af8-user-embeddings-are-superpositions-of-interpretable.md)
- [Adversarial Training with Large Step Sizes: Implicit Bias, Optimization, and Sharpness](https://refivu.com/en/papers/6d821609-e340-4306-ba20-d8935eb49619-adversarial-training-with-large-step-sizes-implicit-bias.md)
- [XStack: A Benchmark for ML Repo Migration](https://refivu.com/en/papers/7992c065-b01d-4a80-b1c4-cf358ebfead6-xstack-a-benchmark-for-ml-repo-migration.md)

## Terms in this paper

- [covariate shift](https://refivu.com/en/terms/999984d6d515-covariate-shift)
- [GPT-4o-mini](https://refivu.com/en/terms/d08bfaa2b9f8-gpt-4o-mini)
- [exchangeability](https://refivu.com/en/terms/19521e676c47-exchangeability)
- [split conformal prediction](https://refivu.com/en/terms/a152c0696a56-split-conformal-prediction)
- [Weighted conformal prediction](https://refivu.com/en/terms/81167d784548-weighted-conformal-prediction)
- [interval score](https://refivu.com/en/terms/ea9eb676423f-interval-score)
- [LLM critic](https://refivu.com/en/terms/b2a994d378ad-llm-critic)
- [Wilcoxon signed-rank tests](https://refivu.com/en/terms/7d075eaea6a7-wilcoxon-signed-rank-tests)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/453f5eee-b9bc-4507-9fee-c9f8070e51a0-know-when-the-equation-is-wrong-structural-uncertainty)
