Balancing Exploration and Exploitation in Compute Allocation
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.
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.
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.
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\).
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.
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).
| 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).
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.
Recommended top-down strategy for deploying external test-time search
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}
}