Reinforcement Learning for Reasoning in Large Language Models with One Training Example

Yiping Wang, Qing Yang, Zhiyuan Zeng, Liliang Ren, Liyuan Liu, Baolin Peng, Hao Cheng, Xuehai He, Kuan Wang, Jianfeng Gao, Weizhu Chen, Shuohang Wang, Simon Shaolei Du, yelong shen

Abstract

Recent breakthroughs in Large Language Model (LLM) reasoning, such as OpenAI’s o1 and DeepSeek-R1, have largely been attributed to Reinforcement Learning with Verifiable Reward (RLVR). While conventional wisdom suggests that these "slow-thinking" capabilities require massive datasets of high-quality reasoning chains, this paper demonstrates a surprising alternative. By employing a "1-shot RLVR" approach, researchers show that training a model on a single, well-chosen mathematical problem can ignite reasoning capabilities comparable to models trained on thousands of examples. This finding suggests that the capacity for complex reasoning may already be latent in base models, requiring only a minimal, targeted nudge to be activated.

Introduction

The "reasoning revolution" in LLMs has shifted the focus from pure pre-training to sophisticated post-training techniques. RLVR has emerged as a primary driver for this shift, yet the data requirements for effective RLVR remain poorly understood. Traditionally, the community assumed that achieving robust reasoning required meticulously curated datasets. This study challenges that assumption by investigating the fundamental data efficiency of RLVR. Can a single training example be enough to teach a model how to reason?

Methodology: 1-Shot RLVR

The authors introduce a streamlined training regime where a model is trained on one mathematical problem repeated over millions of rollouts.

Algorithm and Reward Signal

The primary algorithm used is Group Relative Policy Optimization (GRPO), chosen for its efficiency in reasoning tasks as it eliminates the need for a separate critic model. The reward signal is a simple binary (0/1) outcome reward, granted only if the model's final answer matches the ground truth. To ensure the model explores diverse reasoning paths rather than converging too quickly on a single solution, the researchers utilized entropy loss to penalize premature certainty.

Data Selection: The Historical Variance Score

Not all training examples are created equal. To identify the most effective "shot," the authors proposed the Historical Variance Score. By monitoring a model's performance during a preliminary full-scale RL run, they identified problems where accuracy fluctuated most significantly. These high-variance examples represent the "frontier" of the model's current capabilities—problems that are neither too easy nor impossibly difficult.

The Phenomenon of Post-Saturation Generalization

One of the paper's most significant contributions is the observation of Post-Saturation Generalization. In 1-shot training, the model typically achieves 100% accuracy on the single training example within the first 100 steps. However, the researchers found that if training continues for thousands of additional steps, the model’s performance on unseen test tasks continues to improve significantly.

Interestingly, this late-stage training leads to a unique form of overfitting. On the single training example, the model's Chain of Thought (CoT) eventually degrades into "multilingual gibberish"—a chaotic mix of languages and symbols that still results in the correct answer. Crucially, however, the model’s reasoning on test examples remains human-readable, structured, and highly accurate, suggesting that the RL process is refining a general reasoning heuristic rather than just memorizing a specific path.

Experimental Results

The quantitative results demonstrate a massive leap in reasoning power, particularly for smaller models like the Qwen2.5-Math-1.5B:

  • MATH500 Benchmark: The base model's performance jumped from 36.0% to 73.6% using just one training example. This nearly matches the performance of the same model trained on a full dataset of 1,200 examples.
  • 2-Shot RLVR: By increasing the training set to just two specific examples, the MATH500 score reached 74.8%, actually outperforming the model trained on the full 1.2k dataset.
  • Cross-Category Generalization: The study found that training on a single Geometry problem improved performance in unrelated fields like Algebra and Number Theory. This confirms that the model is learning procedural reasoning (self-reflection and verification) rather than domain-specific facts.
  • General Reasoning: The benefits extended beyond mathematics; 1-shot math training also improved scores on the ARC-Challenge, a benchmark for general science questions.

Discussion and Limitations

While 1-shot RLVR is exceptionally data-efficient, it is important to note that it is not necessarily compute-efficient. The model still requires millions of environment interactions and thousands of training steps to reach peak performance. Furthermore, the study focused on 1.5B and 7B parameter models; whether these findings scale to 70B+ models remains an open question.

Additionally, the success of this method relies on verifiable rewards, which are easily obtained in mathematics and coding but more difficult to define in creative writing or open-ended reasoning. Future work will need to explore how to apply these data-efficient techniques to domains where the "ground truth" is less clear.

Conclusion

This research fundamentally changes our understanding of LLM training. It proves that the "reasoning spark" does not need to be painstakingly built from thousands of examples; it can be ignited by a single, well-placed spark. This opens new avenues for developing high-performance reasoning models with minimal data curation, shifting the bottleneck from data quantity to the strategic selection of training tasks.

Summary updated

BibTeX
@inproceedings{wang2025reinforcement,
  author = {Yiping Wang and Qing Yang and Zhiyuan Zeng and Liliang Ren and Liyuan Liu and Baolin Peng and Hao Cheng and Xuehai He and Kuan Wang and Jianfeng Gao and Weizhu Chen and Shuohang Wang and Simon Shaolei Du and yelong shen},
  title = {{Reinforcement Learning for Reasoning in Large Language Models with One Training Example}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=IBrRNLr6JA},
}
Figure