Reasoning with Sampling: Your Base Model is Smarter Than You Think
Asks whether RL-style reasoning gains can be elicited from a base model at inference time without any post-training. Proposes power sampling, an MCMC procedure that resamples blocks of an in-progress completion to draw from a sharpened, -tempered version of the base distribution . On Qwen2.5-Math-7B, Llama-3.1-8B, and Phi-3.5-mini, the single-shot accuracy from power sampling matches or beats GRPO on MATH500, HumanEval, and GPQA — at roughly an 8.84× inference multiplier on MATH500, equivalent to one epoch of 8-rollout GRPO. The diversity collapse that RL induces is avoided: pass@ over samples stays at the base-model level. Concrete claim: a large fraction of what RLVR is “teaching” reasoning models is already latent in the base, recoverable by sampling from the sharpened distribution rather than from itself.
Key claims
Section titled “Key claims”- Power sampling targets the sharpened distribution via an iterative MCMC procedure that resamples blocks of a partial completion using the base model’s own likelihoods — no training, no verifier, no reward [Abstract, §1].
- On MATH500 (in-domain for RL post-training), power sampling matches GRPO across Qwen2.5-Math-7B, Llama-3.1-8B, and Phi-3.5-mini; on out-of-domain tasks (HumanEval, GPQA) it can outperform GRPO [Table 1].
- Headline boosts over base-model temperature sampling: up to +51.9% on HumanEval (Phi-3.5-mini) and +25.2% on MATH500 (Qwen2.5-Math) [Table 1].
- The inference multiplier on MATH500 is ~8.84× under the paper’s hyperparameters, roughly equivalent to one epoch of GRPO with 8 rollouts on an identically sized dataset — placing power sampling in a practical regime [§Results, “practical”].
- Power sampling preserves base-model diversity at high : its pass@ curve is strictly above both GRPO and base sampling, with pass rate at high matching the base model — GRPO instead collapses to a single high-likelihood mode [Fig. 5].
- The empirical likelihood histogram (Qwen2.5-Math-7B, MATH500) shows power sampling concentrating mass on higher-likelihood regions of the base than ordinary sampling, but still with noticeable spread; GRPO’s samples sit at the highest-likelihood peak [Fig. 4].
- The optimal sharpening is intermediate: wins; is the base model and deterministically accepts any likelihood-increasing resampled block. Performance is robust for [Fig. 6].
- Higher base-model likelihood and reasoning quality are correlated but not identical — directly optimizing likelihood (large ) is not optimal for reasoning, motivating the intermediate- sweet spot [§Power distribution effects].
- The implementation released at
aakaran/reasoning-with-samplingcovers MATH500, HumanEval, GPQA Diamond, and AlpacaEval 2.0; AlpacaEval (an unverifiable task) is also reported, generalizing the claim beyond verifiable reasoning [GitHub README, [Table 1]].
Method
Section titled “Method”Power sampling defines the target distribution where is the base model. To draw from , the authors run an MCMC chain over partial completions: a block of tokens is resampled from given the prefix, and the proposal is accepted with a Metropolis-Hastings ratio that depends on and the relative base-model likelihoods of the old and new blocks. The chain operates iteratively across the token sequence (sliding-window resampling) for steps per block. The total inference cost is roughly forward-pass-equivalents for sequence length — yielding the ~8.84× multiplier on MATH500 hyperparameters (and a community-flagged correction to ~11.34× when , per the alphaXiv comments).
The key hyperparameters are (sharpening exponent) and the block size vs. number of MCMC steps tradeoff. Larger requires larger MH “jumps” and is harder to accept; smaller converges more slowly but with higher acceptance.
Results
Section titled “Results”- MATH500 accuracy on Qwen2.5-Math-7B: +25.2 points over base sampling, on par with GRPO [Table 1, §Headline result].
- HumanEval on Phi-3.5-mini: +51.9 points, outperforming GRPO [Table 1].
- Pass@ on MATH500 (Qwen2.5-Math-7B): power-sampling curve strictly above both GRPO and base; at high power sampling matches base-model coverage while GRPO falls below it [Fig. 5].
- Likelihood distribution under power sampling sits between base and GRPO: noticeably higher-likelihood than base, noticeably less collapsed than GRPO [Fig. 4].
- Robustness: all within a small accuracy band on MATH500; optimal [Fig. 6].
Why it’s interesting
Section titled “Why it’s interesting”The wiki’s Reasoning RL cluster has nine papers documenting GRPO-and-shaped-rewards as the de facto reasoning recipe, with the active research surface centered on reward shape, data loops, and orchestrator policies. This paper attacks the cluster’s premise — that RL is the right primitive for unlocking reasoning at all — from a direction orthogonal to Training-Free Group Relative Policy Optimization (which keeps GRPO but moves it to context space) and complementary to The Path Not Taken: RLVR Provably Learns Off the Principals (which gives a parameter-level reason RLVR works at low rank). Together those three papers triangulate a hypothesis: RLVR is mostly sharpening the base distribution along a low-effective-rank, off-principal subspace, and the same sharpening is reachable by sampling. The paper also adds a seventh axis to Inference-Time Scaling alongside the six already enumerated — neither scaffold, interaction-depth, KV-cache compression, parallel-agent orchestration, generation-side iterative refinement, nor TTT — namely MCMC over base-model likelihoods. Distinct from Self-Refining Video Sampling (which also iterates at fixed noise but on a trained video flow generator and requires no acceptance criterion) and from rejection sampling (which the paper compares unfavorably against). The pass@ preservation also makes this a candidate primitive for generation-side use cases where diversity matters — e.g. video sampling against a reward model — without paying the RL diversity-collapse cost.
See also
Section titled “See also”- Inference-Time Scaling — adds a seventh axis (MCMC sharpening of base distribution) to the page’s enumeration of inference-compute scaling strategies
- Reasoning RL — directly contests the “RL is the right primitive” framing by matching GRPO with pure sampling on the same benchmarks
- Training-Free Group Relative Policy Optimization — same “GRPO without training the weights” instinct; this paper goes further by also dropping the group-relative-advantage primitive in favor of MCMC
- The Path Not Taken: RLVR Provably Learns Off the Principals — provides the parameter-level account (RLVR is low-effective-rank, off-principal) that this paper’s “RL is sharpening, not teaching” finding is consistent with
- Self-Refining Video Sampling — generation-side iterative refinement that also samples toward higher-density regions of a learned distribution, but on a flow-matching video model rather than an autoregressive LLM
- History May Repeat Itself: RSI Seen from a Previous AI Era — Yuandong Tian’s explicit “Is RL the best strategy?” framing; this paper is the strongest filed datapoint that the answer might be “no, at least for in-domain reasoning”