Test-Time Scaling for Scientific Equation Discovery

Balancing Exploration and Exploitation in Compute Allocation

arXiv 2026
Haowei Lin*, Hubert Lim*, Xiangyu Wang, Letian Huang, Di He
Peking University
*Equal contribution

Abstract

Test-time scaling (TTS) improves language model reasoning by allocating additional test-time compute, but prior work mainly studies closed-ended tasks such as math and coding. We study TTS for automated equation discovery, an open-ended setting where models search over candidate equations and rely on observed datapoints for feedback. We formulate LLM-driven equation discovery as an iterative search process that unifies Best-of-N, sequential refinement, tree search, and evolution-style methods under a common compute-allocation view. To isolate allocation effects from prompt engineering and other heuristics, we compare minimal parallel controllers under fixed budgets. On LLM-SRBench equation-discovery tasks, we find that search width is the dominant allocation parameter: the best width in our sweep generally increases with the compute budget, while the population–branching split and controller choice matter less. Appropriate width selection also improves wall-clock efficiency by increasing parallelism. These results suggest that, given an informative verifier, controlling exploration and exploitation is central to scaling LLM-based equation discovery.


Unified Formulation for TTS Control Flow

We formulate LLM-driven scientific discovery as a unified search process (sample, generate, evaluate, prune), isolating compute allocation from domain-specific heuristics. Our framework compares simple, highly parallel controllers Parallel Beam Search (PBeam) and Parallel Iterative Expansion (PIE) against common baselines and complex, over-engineered systems. We demonstrate that the success of evolutionary methods often stems from clever compute allocation rather than intricate heuristics. By focusing on a reduced design space of width (\(w\)), branching (\(n\): the number of expanded nodes; \(k\): the number of new expansions for the same node. \(w=n\times k\)), and grouping (\(g\)), we show that minimal control flows can achieve superior performance and efficiency in vast, open-ended scientific search spaces without unnecessary engineering complexity.

Unified Search Abstraction
Top row: classical baselines emphasize only one aspect of compute allocation: Best-of-\(N\) performs purely parallel one-shot sampling (\(T=1\), \(n=1\), \(k\ \text{large}\)), Self-refine performs purely sequential single-chain refinement \((T=N, n=1, k=1)\), and MCTS balances exploration and exploitation through sequential tree expansion but with limited parallelism. Bottom row: hybrid, discovery-oriented methods maintain multiple active candidates and combine branching with pruning. OpenEvolve expands multiple isolated islands in parallel (\(n=\#\text{islands}, k=1\)); Our Parallel Beam Search (PBeam) performs beam-style expansion within each island (\(n\ge1, k\ge1, g\ge1\)); and Parallel Iterative Expansion (PIE) further relaxes strict beam pruning by expanding from the full historical pool.

Key observation: preferred width generally increases with budget

Search Width Frontier
Each curve corresponds to a fixed width w=nk (g=1), with colors transitioning from dark (small w) to bright (large w). Stars mark the best attainable point at each budget over both PBeam and PIE. Crucially, as the compute budget scales, this envelope generally shifts from darker to brighter curves, indicating that larger budgets tend to favor wider searches in our sweep.

Findings


Optimal width dictates both performance and wall-clock efficiency

As mentioned above, in our scientific equation discovery benchmark, search width \(w\) emerges as the dominant allocation parameter. Scaling search width not only improves equation discovery accuracy but also significantly enhances wall-clock efficiency. By increasing model inference parallelism, larger widths reduce the sequential refinement rounds needed for a fixed budget. For instance, on the Bio dataset, increasing search width from 1 to 32 reduces total runtime by nearly 80% while simultaneously improving discovery performance.

Time Frontier
Wall-clock frontier under different compute-allocation strategies

Crucially, scaling width not only improves accuracy but also substantially enhances wall-clock efficiency. Because larger widths increase model inference parallelism and reduce the number of sequential refinement rounds (\(T = N / w\)), the wall-clock Pareto frontier favors moderate-to-large widths. For example, on the Bio dataset, shifting from greedy refinement (\(w=1\)) to width \(32\) reduces runtime by nearly \(80\%\) (from 7622s to 1586s) while simultaneously improving train \(\operatorname{Acc}_{0.1}\) from \(0.965\) to \(0.984\).




Grouping improves efficiency via reduced synchronization

While width dictates the primary time--quality trade-off, grouping acts mainly as a secondary systems knob. Holding the total budget \(N\) and the global width \(w\) fixed, increasing the number of groups \(g\) yields a modest wall-clock speedup because synchronization occurs within groups of size \(w/g\) rather than across all \(w\) expansions. This reduces idle time from stragglers and improves hardware utilization when model or verifier latency is heterogeneous. Empirically, moving from \(g=1\) to \(g=8\) yields up to a \(1.075\times\) speedup. By contrast, the effect on search quality is weak and not consistently positive: in our equation-discovery benchmark, island-style isolation does not provide a reliable diversity benefit once width is already chosen. Over-grouping can even hurt, because it reduces both the per-group width \(w/g\) and the per-group budget \(N/g\), pushing each group toward a narrower search regime than the one preferred by the global budget. We therefore treat \(g\) as a throughput parameter rather than a primary search-quality parameter.

Group Tradeoff
Effect of group size on performance and wall-clock time



Other choices are second-order effects

Once the global width \(w = nk\) is fixed, the remaining design choices have a comparatively minor effect on performance. First, the exact decomposition of \(w\) into \(n\) and \(k\) matters much less than choosing the right width in the first place (see the table).

Best \((n, k)\) decomposition within each regime at fixed budget \(N = 128\), width \(w = 32\), and no grouping (\(g = 1\)).
(Regime definitions: population-heavy \(\{(32,1),(16,2)\}\), balanced \(\{(8,4),(4,8)\}\), and branching-heavy \(\{(2,16),(1,32)\}\)).
Domain Algorithm Regime Best \((n,k)\) Train \(\operatorname{Acc}_{0.1}\) Rel. gap
Bio PBeam Population-heavy \((16,2)\) 0.9816 0.28%
Bio PBeam Balanced \((4,8)\) 0.9844 0.00%
Bio PBeam Branching-heavy \((1,32)\) 0.9801 0.44%
Bio PIE Population-heavy \((16,2)\) 0.9804 0.00%
Bio PIE Balanced \((8,4)\) 0.9612 1.95%
Bio PIE Branching-heavy \((2,16)\) 0.9794 0.10%
Material PBeam Population-heavy \((16,2)\) 0.9857 1.15%
Material PBeam Balanced \((8,4)\) 0.9971 0.00%
Material PBeam Branching-heavy \((1,32)\) 0.9876 0.95%
Material PIE Population-heavy \((32,1)\) 0.9884 0.92%
Material PIE Balanced \((4,8)\) 0.9975 <0.01%
Material PIE Branching-heavy \((2,16)\) 0.9976 0.00%

Second, the difference between PBeam and PIE is also small: their train \(\operatorname{Acc}_{0.1}\) gap usually stays within ±2% across budgets and widths (see the figure below).

Algorithm Delta
PIE - PBeam after optimizing \((n,k)\) inside each algorithm.

We also compare PBeam and PIE against OpenEvolve under strictly matched global budgets. This comparison supports our main claim that, on this benchmark, the dominant gains come from getting the global compute allocation right, whereas additional heuristics such as island engineering, crossover, or specialized prompting appear to be secondary.

OpenEvolve Compare
Matched comparison among PBeam, PIE, and OpenEvolve

The Empirical Recipe

Recommended top-down strategy for deploying external test-time search

  • Maximize the compute budget by selecting the largest budget \(N\) permitted
  • Determine the search width \(w\) using a small pilot sweep over candidate widths, preferably powers of two
  • Set the remaining hyperparameters to moderate values, using balanced choices such as \(n/w \ge 1/8\), \(k \in [2,8]\), and a mild \(g\)
  • Treat the choice among selection rules (e.g., PIE, PBeam, or more complex systems) as a minor refinement step

Citation

If you find our paper useful, please consider citing us.

@article{lin2026testtimescaling,
  title={Test-Time Scaling for Scientific Equation Discovery}, 
  author={Haowei Lin and Hubert Lim and Xiangyu Wang and Letian Huang and Di He},
  year={2026},
  journal={Preprint}
}