Summary (Overview)
- Hill Sampling is introduced as a minimal test-time scaling algorithm: repeatedly sample candidate program edits from a frozen LLM, retain the best program found so far, and condition all subsequent samples on that program.
- State-of-the-art results: Hill Sampling sets a new state of the art on circle packing among published methods (score 2.635983084917604, surpassing AlphaEvolve's 2.6358627564136983) in under 5 hours on 8 NVIDIA H100 GPUs, and improves over the AlphaEvolve reference on Erdős' minimum-overlap problem.
- Key finding on weight-space search: The largest study by parameter count of evolution strategies (ES) applied directly to LLM weights shows that setting the ES learning rate to zero outperforms actual learning—random weight perturbations help exploration, but token-level sampling randomness is stronger still.
- Simplicity matters: A broad evaluation of diversity mechanisms, archives, crossover, entropy control, execution feedback, and multi-step optimization shows all are unnecessary—none improve over Hill Sampling.
- Practical recommendation: Before adding elaborate evolutionary harnesses or test-time parameter learning, repeatedly sample edits to the best verified solution found so far.
Introduction and Theoretical Foundation
The paper addresses a fundamental question in test-time scaling for LLMs: how much machinery is actually necessary to obtain strong algorithmic discovery results?
Recent systems like FunSearch (Romera-Paredes et al., 2024), AlphaEvolve (Novikov et al., 2025), and ShinkaEvolve (Lange et al., 2026) use increasingly elaborate evolutionary search harnesses. Other work couples discovery with test-time training (Šurina et al., 2025; Yuksekgonul et al., 2026). The authors ask whether this complexity is needed, starting from the simplest baseline—repeated sampling—and adding only one persistent state: the best verified program found so far.
The theoretical foundation draws on two related lines of work:
-
Weight-space geometry: Gan & Isola (2026) argue that useful task-specific experts can be found densely around the weights of sufficiently large pretrained models, motivating random perturbation of model weights and selection/ensembling.
-
Objective mismatch in RL: Conventional reinforcement learning optimizes expected reward (pass@1), which can favor safe, homogeneous outputs over the diversity needed for strong pass@k. The discovery objective is the maximum observed reward, not the average.
The key insight is that the objective of test-time discovery is:
where is the number of LLM edits. This differs fundamentally from improving average quality—an update can increase expected reward while reducing the probability of a rare, exceptionally good discovery.
Methodology
Problem Setting
The authors consider optimization problems with an executable verifier. A state is a program, executing it produces a scalar reward (possibly stochastic), and an LLM defines a distribution over edited solutions at decoding temperature .
Hill Sampling Algorithm
Let be the initial program, the current incumbent, and the best reward observed so far at round . Each round:
- Draw edits independently from the current incumbent:
- Execute each candidate once to obtain rewards
- Update the incumbent: where
The incumbent is never re-evaluated; its previously observed reward is retained. New incumbents are accepted with equal reward to promote diversity. There is no archive, diversity objective, crossover, or parameter update—the only persistent search state is the incumbent program and its stored best reward.
Experimental Domains
| Domain | Model | Rounds (N=64) |
|---|---|---|
| Circle packing (Circles) | gpt-oss-20b | 200 |
| Sums/differences of sets (Sets) | OLMo-3.1-32B-Instruct | 600 |
| Erdős' minimum-overlap (Erdos) | Mistral-Small-3.1-24B-Instruct | 80 |
Baselines Compared
- Repeated Sampling (RS): Draws candidates from a frozen model without carrying the best program forward.
- Model Noise (MN): Evaluates 64 perturbed models, , with antithetic sampling ().
- Evolution Strategies (ES): Updates the model using the scalable ES estimator (Salimans et al., 2017): where is the learning rate and denotes standardized antithetic reward.
- ES (max@8): Evaluates 8 responses per perturbed model, assigning the maximum reward.
- Hill Sampling + ES: Combines Hill Sampling with ES updates.
Empirical Validation / Results
Main Results (Figure 1)
Circle Packing: Hill Sampling is the strongest method, including the no-initial-information (NI) variant, which reaches the same best score as the informed setting. ES performs the worst.
Sums/Differences of Sets: No significant difference between methods—all achieve the same top score on some seed, with ES worst on average.
Erdős' Minimum-Overlap: Hill Sampling (512) and Hill Sampling (512) + ES perform best. RS achieves high average max return but no single seed matches Hill Sampling. The NI variant is worst, indicating domain knowledge matters here.
Best-Result Summary (Table 1)
| Domain | Our best | Normalized ↑ | AlphaEvolve | Best prior published | Time | Rounds |
|---|---|---|---|---|---|---|
| Circles ↑ | 2.635983084917604 | 1.0000456505194 | 2.6358627564136983 | 2.6359830774 (ThetaEvolve) | 4:33 | 14 |
| Sets ↑ | 1.109543 | 0.9578097426685801 | 1.158417281556896 | 1.21 (Hyra) | 1:13 | 2 |
| Erdos ↓ | 0.38089767 | 1.0000665904 | 0.38092303510845016 | 0.380876 (TTT-Discover) | 12:00 | 70 |
Key Findings on Weight-Space Search
ES improves mean but not maximum return (Figure 2): With and temperature 0, a nonzero ES learning rate improves final mean fitness but the best maximum fitness occurs at learning rate zero. This demonstrates the objective mismatch: standard ES improves average quality while harming the extreme statistic that matters for discovery.
Model noise is weaker than ordinary sampling (Figure 3): Random weight perturbations can provide useful diversity, but ordinary token-sampling randomness from the unperturbed model performs better. On Erdos, temperature-1 Repeated Sampling achieves the best maximum; on Circles, temperature-1 Hill Sampling gives the strongest mean and maximum.
Entropy interventions don't help (Figure 4): Adaptive temperature (ATA/ATS) prevents entropy collapse but doesn't improve discovery. Negative-Enhanced Standardization (NE) doesn't even prevent collapse. This is a useful negative control—poor ES maximum isn't explained by entropy collapse alone.
Broad mechanism comparison on Erdos (Figure 5): Top-K selection, diverse-K, subpopulation evolution, in-context RL, execution feedback, long-horizon ES, and weight-space hill climbing—none improve over Hill Sampling, and most decrease performance.
Theoretical and Practical Implications
Theoretical Implications
-
Objective mismatch is real and consequential: The paper provides empirical evidence that optimizing for expected reward (as standard ES/RL does) can actively harm the maximum-reward discovery objective. This formalizes a critical distinction between average and extreme statistics in test-time scaling.
-
Token-level sampling > weight-space perturbations: In verifiable discovery settings where responses can be evaluated exactly (no generalization needed), the stochasticity inherent in token sampling from a frozen model is more useful than either learned or fixed random weight perturbations. This contextualizes and qualifies the Neural Thickets results of Gan & Isola (2026).
-
Simplicity as a feature: The paper challenges the trend toward increasingly complex evolutionary harnesses. The minimal state (best program + best reward) combined with conditioned sampling captures most of the benefit.
Practical Implications
-
Default strategy for verifiable domains: Before adding elaborate machinery, practitioners should try Hill Sampling. The algorithm has only three knobs: temperature, number of rounds, and samples per round.
-
Compute efficiency: State-of-the-art results in hours (not days) on 8 H100 GPUs makes this accessible to many research groups.
-
Domain knowledge caveat: The paper finds that removing initial domain-specific information doesn't hurt on Circles but substantially hurts on Erdos—practitioners should consider whether domain knowledge is embedded in their initial prompts.
-
ES learning rate caution: For those using ES on LLM weights, setting the learning rate to zero (pure noise) can outperform actual learning for discovery objectives.
Conclusion
The paper introduces Hill Sampling, a minimal test-time scaling algorithm that repeatedly samples edits to the best program found so far. Key takeaways:
-
Hill Sampling sets a new state of the art on circle packing among published methods and improves over AlphaEvolve on Erdős' minimum-overlap problem, with only hours of computation on eight H100 GPUs.
-
A learning rate of zero improves ES via random model perturbations, yet still performs worse than ordinary token sampling.
-
Further complexity does not help: Weight-space hill climbing, diversity selection, entropy control, execution feedback, and multi-step optimization all fail to improve performance.
-
Practical default: For verifiable domains, repeatedly sample edits to the best solution and let improvements become the next context before adding elaborate evolutionary harnesses or test-time parameter learning.
The paper suggests a clear future direction: understanding why Hill Sampling works so well, and identifying the conditions under which additional machinery (archives, diversity mechanisms, test-time training) becomes necessary. The authors also note that domain knowledge can materially affect search, with the effect varying by problem.
Related papers
- Do New Attention Mechanisms Actually Fix Attention Sinks at Million-Token Context?
The training objective, not architecture, creates attention sinks, and sink mass, activations, and position bias are independent problems requiring separate diagnostics at million-token scale.
- Data-DPO: Direct Preference Optimization for Target Model Data Selection in LLM Post-Training
Data-DPO treats data value as target-model-dependent, using activation probing and DPO-style preference learning to select SFT subsets that outperform full-data training with only 5-15% of data.
- An Empirical Cost Attribution of Context-Compression Gateways in Multi-Turn Coding Agents: Why Compression Rate Is Not the End-to-End Saving
Tool-schema filtering, not content compression, dominates coding-agent token savings, though content compression's quadratic accumulation overtakes it after turn six.