TTRL: Test-Time Reinforcement Learning

Yuxin Zuo, Kaiyan Zhang, Li Sheng, Shang Qu, Ganqu Cui, Xuekai Zhu, Haozhan Li, Yuchen Zhang, Xinwei Long, Ermo Hua, Biqing Qi, Youbang Sun, Zhiyuan Ma, Lifan Yuan, Ning Ding, Bowen Zhou

Abstract

Reinforcement Learning (RL) has become a cornerstone for Large Reasoning Models (LRMs), yet its reliance on high-quality human-annotated data presents a significant scaling bottleneck. We introduce Test-Time Reinforcement Learning (TTRL), a framework that enables models to self-evolve using unlabeled data by leveraging their own consensus as a reward signal. Our results demonstrate that TTRL can significantly boost reasoning performance, surpassing the initial "self-training ceiling" and exhibiting strong generalization across diverse mathematical benchmarks.

Introduction

The current frontier of AI reasoning is limited by the "label desert"—the difficulty of obtaining ground-truth solutions for advanced scientific and mathematical problems. While Test-Time Scaling (TTS) methods like majority voting improve performance during inference, they do not update the model's underlying knowledge. TTRL bridges this gap by converting inference-time compute into a training signal, allowing models to learn from their own experiences without human supervision.

Methodology

TTRL combines Test-Time Scaling with Test-Time Training in an online loop. For a given unlabeled query, the model generates multiple candidate responses. The system then employs Majority Voting to identify a "pseudo-label." A rule-based reward is assigned: responses matching the majority receive a positive reward, while others receive zero. The model's parameters are then updated using RL algorithms such as GRPO or PPO to maximize this estimated reward.

The TTRL framework: Label estimation via majority voting provides the reward signal for policy optimization.

Key Insights

Surpassing the Self-Training Ceiling

A common assumption in self-training is that a model cannot exceed the accuracy of its own majority vote. TTRL challenges this by using RL to explore the solution space more effectively than supervised fine-tuning, eventually surpassing the performance of its initial "teacher" state.

The "Lucky Hit" Phenomenon

TTRL remains robust even when the majority vote is incorrect. In reasoning tasks, there is typically one correct path and many incorrect ones. If the majority settles on an incorrect answer, rollouts that produce different incorrect answers still receive a negative reward relative to the majority. This provides a valid gradient, teaching the model what to avoid and refining its internal logic.

Results and Generalization

TTRL achieves substantial performance gains across benchmarks like AIME 2024, AMC, and MATH-500. For instance, applying TTRL to Qwen-2.5-Math-7B resulted in a 211% improvement on AIME 2024 (from 12.9% to 40.2% pass@1). Crucially, the model demonstrates strong generalization; training on one task leads to significant improvements on unrelated reasoning benchmarks.

Generalization results: TTRL training on one dataset (e.g., AMC) improves performance on others (e.g., MATH-500).

Conclusion

TTRL provides a scalable path for improving LLM reasoning without the need for expensive human labels. By turning inference compute into training data, it enables a virtuous cycle of self-improvement. Future work will explore applying TTRL to streaming data and more complex agentic tasks.

Summary updated

BibTeX
@inproceedings{zuo2025ttrl,
  author = {Yuxin Zuo and Kaiyan Zhang and Li Sheng and Shang Qu and Ganqu Cui and Xuekai Zhu and Haozhan Li and Yuchen Zhang and Xinwei Long and Ermo Hua and Biqing Qi and Youbang Sun and Zhiyuan Ma and Lifan Yuan and Ning Ding and Bowen Zhou},
  title = {{TTRL: Test-Time Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=VuVhgEiu20},
}
Figure