Inference Notes · Paper Deep Reads

中文

← All notes

Hill Sampling for Test-Time Scaling: A Simple and Better Alternative to Repeated Sampling, Evolution, and Training

Jacob Beck, Philip V. Ogren, Ari Kobren · Oracle

ProblemThe task is to allocate test-time compute for LLMs to effectively discover verifiable algorithmic and mathematical solutions, questioning how much complex evolutionary machinery is actually necessary.

VerdictIt shows that token sampling with a simple greedy update is a stronger and cheaper exploration mechanism than perturbing weights or maintaining complex populations, though its headline state-of-the-art results rely on the single best seed in float-sensitive environments and struggle without domain-specific prompts.

AgentInference
Published · arXiv 2609.25510
Read2026-09-23
TrustMechanism: High (simple algorithm). Gains: Medium (3 seeds, some float sensitivity). Generality: Medium (only scalar math tasks).
CoverageFull LaTeX source, all 2 files incl. appendix given in full; 4 of 15 figures viewed by the reader
Read byGemini 3.1 Pro · independently audited

1. Task

This paper addresses the problem of using test-time scaling for verifiable mathematical and algorithmic discovery. Given a formal problem (like packing circles into a square) and an executable evaluator that returns a scalar reward, the goal is to spend LLM inference compute to generate and improve candidate programs that yield higher rewards (i.e., discover better mathematical objects).

This is challenging because the search space of programs is vast, and models can easily get stuck in local optima or mode-collapse into generating safe, low-reward solutions. Prior approaches like FunSearch, AlphaEvolve, and ShinkaEvolve tackle this using elaborate evolutionary machinery—maintaining archives, enforcing diversity, using crossover, or even training the model weights during test time (EvoTune, TTT-Discover).

The paper targets a fundamental gap: how much of this complex evolutionary and RL machinery is actually necessary? It hypothesizes that a drastically simpler approach might achieve comparable or better discovery results.

2. Core idea

Hill Sampling: Instead of maintaining populations, archives, or updating weights, simply sample candidate edits from a frozen LLM, evaluate them, and keep only the single best program found so far as the context for the next round. If a new edit is better, it becomes the new incumbent; if not, you discard it and try again.

3. Mechanism + mental model

Mechanism:

  1. Initialize with a starting program $x_0$ and evaluate its reward $r^*_0$.
  2. For round $t = 0 \dots M-1$:
  3. Sample $N$ independent candidate edits ($y_{t,1} \dots y_{t,N}$) from the frozen LLM conditioned on the incumbent $x_t$, using a fixed decoding temperature (e.g., $T=1.0$). (The paper uses $N=64$ or $512$).
  4. Execute all candidates to obtain rewards $r_{t,i}$.
  5. Find the best candidate $y_{t,i^}$ with reward $r_{t,i^}$.
  6. If $r_{t,i^} \ge r^t$, set the new incumbent $x{t+1} = y_{t,i^*}$ and update the max reward. Otherwise, keep $x_{t+1} = x_t$.
  7. Repeat until the budget is exhausted.

Mental model: Token-level sampling from a frozen model at high temperature provides a richer and stronger form of exploration in program space than either perturbing continuous model weights or doing evolutionary crossover, and coupling this with a greedy "keep the best" selection is enough to drive optimization.

4. Metrics / data

5. vs. baseline

6. Open source

Not mentioned in the paper. (The authors state they built on the open-source OpenEvolve framework and documented hyperparameters, but do not provide a URL to their own code).

7. Key numbers, verified

Claim Where (§/Tab/Fig) Actual condition Holds? (✅/⚠️/❌) Note
Sets new SOTA on circle packing Tab 1, §1 14 rounds, gpt-oss-20b, zero-slack verifier ⚠️ Beats published ThetaEvolve, but this is the maximum over 3 seeds rather than expected return, and relies on zero-slack evaluation which is fragile to floating-point operation order.
Improves over AlphaEvolve on Erdos Tab 1, §1 70 rounds, Mistral-24B Still below TTT-Discover (which used a 120B model).
Achieves strong results on Sets Tab 1, Fig 1 2 rounds, OLMo-32B ⚠️ Only reaches 95% of AlphaEvolve. All baselines tied, suggesting a domain-knowledge limit.
Requires only hours of wall-clock time Tab 1, Abstract 8x H100s Circles: 4:33, Sets: 1:13, Erdos: 12:00.
Zero LR (Model Noise) beats learned ES max return Fig 2, §5.1 Circles, $\sigma=10^{-3}$, $T=0$ ES updates improve mean return but actively degrade max return.
Ordinary token sampling beats Model Noise Fig 3, §5.1 Erdos and Circles Temp=1 Repeated Sampling beats fixed weight perturbations.
Complex diversity/RL mechanisms don't help Fig 5, §5.3 Erdos Top-K, execution feedback, and in-context RL all underperformed plain Hill Sampling.

8. What the abstract doesn't say

9. Reachability + takeaways

10. Confidence + next steps

11. Audit