Reject, Resample, Repeat: Understanding Parallel Reasoning in Language Model Inference

Noah Golowich, Fan Chen, Dhruv Rohatgi, Raghav Singhal, Carles Domingo-Enrich, Dylan J. Foster, Akshay Krishnamurthy

TL;DR

This paper provides the first rigorous, non-asymptotic theoretical framework for understanding inference-time LLM steering methods (like Sequential Monte Carlo) through the lens of particle filtering. The authors identify key criteria governing accuracy-cost tradeoffs, propose algorithmic improvements to handle near-perfect reward models, and uncover a fascinating empirical paradox: optimizing for perfect distribution sampling doesn't always align with maximizing downstream task accuracy.

What Problem Does This Paper Address?

Inference-time interventions—such as generating multiple parallel reasoning paths from an LLM, scoring them with a Process Reward Model (PRM), and pruning or duplicating paths—have dramatically boosted LLM performance on complex math and reasoning tasks.

While popular methods like Best-of-N or Sequential Monte Carlo (SMC) are widely used, they are largely ad-hoc. We lack a principled theoretical framework to explain why they work or how to optimize their accuracy-cost tradeoffs. Specifically, given a base language model and an imperfect PRM, how many parallel samples (particles) and reward evaluations do we actually need to accurately sample from a high-quality target distribution?

Methods

The authors formalize guided LLM generation as a sequential sampling problem and analyze it using Sequential Monte Carlo (SMC) particle filtering. They establish non-asymptotic bounds on Total Variation (TV) distance based on two key metrics:

  1. Action-level coverage ($C_{act}$): How well the base model's step-by-step transitions cover the target distribution's transitions.
  2. Distributional closeness ($D_{\chi^2}$): The chi-square divergence between the true value function and the PRM's estimates.

To address a limitation where standard SMC requires a large number of particles ($\Omega(\sqrt{H})$) even with a perfect PRM, they introduce Sequential Monte Carlo with Rejection Sampling (SMC-RS). SMC-RS uses local rejection sampling instead of global weight normalization, enabling exact sampling with $O(1)$ particles when the PRM is flawless. They also analyze an outer-loop rejection variant that achieves exponential convergence under strict $L_\infty$ error bounds.

Datasets

The paper evaluates its findings on two main setups:

  1. Prompt-Switching Task: A controlled synthetic dataset where a base model (Qwen3-0.6B) is steered from a reference prompt to a target prompt (with prompts generated by GPT-5.2). Because both distributions are known, the authors can exactly compute the coverage and divergence proxies to validate their theory.
  2. Math Reasoning Benchmarks: Math500 and AIME (AIME24/25), using Qwen2.5-1B-Instruct as the base generator and Qwen2.5-Math-PRM-7B as the process reward model.

Key Insights and Ideas

  • The Myopic Limit: The authors prove a fundamental lower bound: any "myopic" particle filtering method (one that doesn't look ahead to future tokens to prune current ones) requires at least $\Omega(\log H / \log \log H)$ particles to maintain non-trivial coverage under even mild PRM imperfections.
  • The Sampling vs. Accuracy Paradox: In controlled settings, theoretical sampling error perfectly correlates with PRM divergence. However, on real math tasks, higher PRM error (larger $\chi^2$-divergence) often leads to higher final accuracy. This happens because aggressive reward models (e.g., operating at a low temperature) successfully weed out incorrect paths even if they completely miss some valid reasoning modes, causing the divergence metric to blow up while accuracy improves.
  • Backtracking is Particle Filtering: The authors reveal a beautiful theoretical connection showing that VGB (a popular backtracking-based LLM steering algorithm) can be mathematically coupled with a variant of independent SMC, unifying two previously distinct paradigms.

Key Results

  • On the controlled prompt-switching task, both action-level coverage and PRM divergence strongly predict the final sampling error of SMC, validating the paper's main theorem.
  • In math problem-solving, SMC with $N=32$ particles consistently beats standard Best-of-N sampling across the vast majority of individual problems in Math500 and AIME, rather than just improving performance on average.
Figure 1: Performance of SMC (with N particles) vs. Best-of-N on Math500 problems; here we take N = 32. Each point is a different problem; thus, SMC with N particles improves performance over Best-of-N on most problems. See Section 4.5 for details.
  • SMC-RS successfully eliminates the horizon-dependent particle requirement of standard SMC when the PRM is highly accurate, achieving low sampling error with significantly fewer particles.

Limitations and Future Work

  • The Distribution vs. Task Alignment Gap: Current particle filtering theory optimizes for matching a target distribution, but tasks like mathematics only care about finding any correct answer. Developing a framework that captures "mass coverage" rather than full distributional alignment is an open challenge.
  • Lookahead Methods: Since myopic methods face strict lower bounds on particle scaling, exploring non-myopic algorithms that utilize lookahead mechanisms could drastically improve computational efficiency.
  • Polynomial Gaps: There remain unresolved polynomial gaps between the proven upper bounds ($1/\sqrt{N}$) and lower bounds ($1/N$) regarding total variation distance decay.

Summary updated

BibTeX
@inproceedings{golowich2026reject,
  author = {Noah Golowich and Fan Chen and Dhruv Rohatgi and Raghav Singhal and Carles Domingo-Enrich and Dylan J. Foster and Akshay Krishnamurthy},
  title = {{Reject, Resample, Repeat: Understanding Parallel Reasoning in Language Model Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=tsudCyj5ju},
}
Figure