This paper introduces a more efficient way to train "Large Reasoning Models" (LRMs)—the class of models like DeepSeek-R1 or OpenAI’s o1 that use Reinforcement Learning (RL) to "think" through complex problems.
TL;DR
Training reasoning models is incredibly expensive because selecting the right "challenging but solvable" data usually requires running thousands of costly model generations (rollouts) just to throw most of them away. Dynamics-Predictive Sampling (DPS) solves this by using a lightweight mathematical model to predict which questions will be most informative for the model to learn from next. This approach reduces redundant rollouts by over 70% while achieving superior reasoning performance.
The Problem: The Cost of "Goldilocks" Data
Reinforcement Learning finetuning works best when the model is given "Goldilocks" problems: questions it can partially solve but hasn't mastered yet. If a problem is too easy (the model always gets it right) or too hard (it always gets it wrong), the RL algorithm receives no useful signal to improve the model's weights.
Current state-of-the-art methods use "Dynamic Sampling," where they take a massive batch of prompts, run multiple rollouts for every single one, and then only keep the ones that show a mix of correct and incorrect answers. While effective, this is a computational nightmare. In many cases, the cost of generating these "filtering rollouts" actually exceeds the cost of the actual training. The authors aim to eliminate this rollout-intensive bottleneck.
Methods: Dynamics-Predictive Sampling (DPS)
The authors propose Dynamics-Predictive Sampling (DPS). Instead of checking every prompt manually through rollouts, they treat each prompt’s "solving progress" as a dynamical system modeled by a Hidden Markov Model (HMM).
- State Modeling: They define three states for any given prompt:
- State 1 (Fully Unsolved): The model gets it wrong every time.
- State 2 (Partially Solved): The model gets it right sometimes (The "Goldilocks" zone).
- State 3 (Fully Solved): The model gets it right every time.
- Online Bayesian Inference: As the model trains, DPS tracks the history of how the model has performed on specific prompts. It uses Bayesian inference to update a "transition matrix"—essentially learning how prompts move from "unsolved" to "partially solved" as the model gets smarter.
- Predictive Selection: Before any rollouts are performed for a new training step, DPS looks at its internal HMM and selects the prompts with the highest predicted probability of being in State 2.
- Non-stationary Decay: Because the model is constantly evolving, the authors use an exponential decay factor. This ensures the system prioritizes recent performance over old data from when the model was less capable.
Key Insights and Ideas
- The "Predict-then-Sample" Shift: The core breakthrough is moving from a reactive strategy (rollout everything, then filter) to a predictive one (predict what's useful, then rollout only those).
- Implicit Curriculum Learning: DPS naturally creates a self-paced curriculum. Early in training, it picks easier problems that the model is just starting to grasp. As the model masters those, they move to State 3 (Fully Solved) and are dropped, while harder problems move into State 2 and become the new focus.
- Computational "Free Lunch": The HMM math is incredibly lightweight. While an LLM rollout takes seconds and massive GPU memory, the DPS inference takes milliseconds on a standard CPU, adding virtually zero overhead while saving massive amounts of compute.
Key Results
The authors evaluated DPS across three distinct reasoning domains: Mathematics (MATH), Numerical Planning (Countdown), and Visual Geometry (Geometry3k), using base models like DeepSeek-R1-Distill-Qwen (1.5B and 7B).
- Massive Efficiency Gains: DPS matched or outperformed the "Oracle" Dynamic Sampling (DS) method while using less than 30% of the rollout budget. For instance, on the 7B model, DPS required only 287k rollouts compared to the Oracle's 1,147k.
- Superior Performance: On the high-stakes AIME24 math benchmark, DPS (using a 7B model) achieved 51.04%, significantly beating Uniform Sampling (45.83%) and edging out the rollout-heavy Oracle baseline (49.79%).
- Better Generalization: Models trained with DPS showed stronger performance on out-of-distribution tasks, suggesting that focusing on "partially solved" problems helps the model learn actual reasoning rather than just memorizing patterns.
- Scaling Advantage: The authors found that as models get larger (and rollouts get more expensive), the cost-saving benefits of DPS become even more dramatic.
Limitations and Future Work
Currently, the system relies on binary (correct/incorrect) rewards. The authors acknowledge that more complex "process-based" rewards (giving partial credit for steps) would require a more sophisticated state partition. Additionally, the current "Top-B" selection is purely exploitative; future versions might incorporate uncertainty-based sampling (like Thompson Sampling) to better explore prompts the HMM is unsure about.
Summary updated