TL;DR
Selective Regenerative Decoding (SRD) is a novel inference-time decoding strategy that treats LLM reasoning paths as compositional rather than atomic. By preserving the high-quality prefixes of "borderline" trajectories and regenerating only their degraded suffixes, SRD matches the accuracy of Best-of-N sampling while drastically reducing token compute costs.
What Problem Does This Paper Address?
To solve complex reasoning problems, modern LLM deployment strategies often scale up inference-time compute using methods like Best-of-N (generating multiple complete answers and picking the best one) or Speculative Rejection (killing low-quality paths early).
However, these methods treat generation trajectories as atomic units—either keeping them entirely or discarding them irreversibly. This is highly inefficient. In long-form reasoning, a model might generate a brilliant, logically sound prefix, only to make a minor calculation error in the final steps. Best-of-N wastes compute by throwing the whole trajectory away, while Speculative Rejection permanently loses the high-quality prefix. SRD addresses this gap by introducing segment-level intervention to salvage partially promising candidates.
Methods
SRD operates without requiring a larger teacher or target model, using the same generative model for both drafting and editing. The algorithm runs in three distinct phases:
- Generation: Sample $n$ candidate trajectories independently from the generative model.
- Routing: Evaluate each candidate using a reward model and assign a rank-normalized score $u(\tau) \in [0, 1]$. Based on two predefined thresholds ($\theta_{low}$ and $\theta_{high}$), route each trajectory to one of three categories:
- KEEP: High-quality trajectories that are retained.
- DISCARD: Low-quality trajectories that are thrown away.
- REFINE: Borderline trajectories that show promise but degrade later.
- Regeneration: For trajectories marked for refinement, the algorithm scans the generation at fixed intervals to find the exact boundary $j^*$ where the reward score drops. It preserves the prefix up to $j^*$ and regenerates the remaining suffix using a higher-temperature sampling strategy to encourage diverse path correction.
Datasets
The authors evaluated SRD across four diverse benchmarks spanning mathematical reasoning, scientific QA, multi-hop QA, and instruction following:
- MATH500: Standard mathematical reasoning problems.
- GPQA Diamond: High-level, graduate-level scientific QA.
- HotpotQA: Multi-hop question answering requiring multi-step evidence gathering.
- AlpacaEval: General instruction-following evaluation.
These datasets were paired with various open-source models (such as Llama-3.1-8B and Qwen2.5-Math-1.5B) and task-appropriate reward models (like AceMath-7B-RM and Skywork-o1-Open-PRM-7B).
Key Insights and Ideas
- Reasoning is Compositional: Errors in LLM reasoning are often localized. Preserving the valid steps of a derivation and only rewriting the broken suffix prevents the model from "reinventing the wheel" across multiple full-length samples.
- Self-Correction via Diversity: SRD proves that a model often already possesses the knowledge to correct its own mistakes. By simply increasing the sampling temperature on the degraded suffix, the model explores alternative reasoning paths that frequently find the correct answer.
- Provable Sample Efficiency: The authors provide formal proofs showing that SRD achieves a 1.28$\times$ to 1.36$\times$ sample efficiency gain over standard rejection sampling, with the efficiency gap widening as the candidate pool size grows.
Key Results
SRD consistently establishes a superior accuracy-compute frontier across all four benchmarks, achieving competitive performance with Best-of-N while utilizing significantly fewer tokens.
- MATH500: With Llama-3.1-8B, SRD achieves an accuracy of 0.544 at $N=10$ using only 2,166 output tokens. It scales up to 0.640 accuracy at $N=100$, matching Best-of-N accuracy at a fraction of the generation budget.
- Refinement Policy Dynamics: Ablation studies revealed that the optimal refinement policy depends heavily on reward model calibration. Under stable reward signals (like MATH500), a conservative global rerouting strategy performs best. Under noisier process reward signals (like GPQA), a localized "Self-compare" strategy—which directly compares the post-refinement reward to the pre-refinement reward—is much more robust.
Limitations and Future Work
- Heuristic Boundaries: SRD currently relies on fixed routing thresholds ($\theta_{low}, \theta_{high}$) and a rigid, interval-based boundary selection method to find where a trajectory degrades. The authors note that learning these routing and boundary policies end-to-end is an important next step.
- Reward Model Dependency: The framework is highly sensitive to reward model quality. If a reward model is misaligned or suffers from high noise, it can actively guide the refinement phase toward confidently wrong answers or safe but unhelpful text.
- System Complexity: Coordinating a generation model, a reward model, and an editing mechanism introduces runtime infrastructure overhead, which could impact inference latency in tightly resource-constrained deployment scenarios.
Summary updated