RoiRL: Efficient, Self-Supervised Reasoning with Offline Iterative Reinforcement Learning

Aleksei Arzhantsev, Otmane Sakhi, Flavian Vasile · DOI

Abstract

Reinforcement Learning (RL) has shown great promise in enhancing the reasoning capabilities of Large Language Models (LLMs). However, traditional online RL methods are computationally expensive and often unstable. We present RoiRL (Reasoning with offline iterative Reinforcement Learning), a framework that enables self-supervised reasoning improvement without human-labeled data. By transforming the online RL objective into a lightweight, iterative offline process, RoiRL achieves up to 2.5x faster training speeds and superior accuracy across mathematical benchmarks compared to existing methods like Test-Time Reinforcement Learning (TTRL).

Introduction

Improving the reasoning capabilities of LLMs, particularly in domains like mathematics and logic, typically involves Reinforcement Learning. A significant bottleneck in this process is the requirement for ground-truth rewards, which are often unavailable or expensive to obtain. Recent approaches have turned to self-supervision, using "majority voting" as a proxy for correctness. While methods like Test-Time Reinforcement Learning (TTRL) utilize this proxy, they rely on online RL, which necessitates keeping a reference model in memory and performing complex step-wise probability computations. This leads to high memory overhead and training instability.

RoiRL addresses these challenges by shifting the reinforcement learning process into an offline iterative loop. This approach eliminates the need for a reference model during training, significantly reducing computational costs while maintaining, and often exceeding, the performance of online counterparts.

Methodology

RoiRL operates through an iterative two-step process:

  1. Generation and Reward Assignment: For each prompt in the training set, the model generates $k$ candidate solutions. A reward is assigned based on majority voting—the most frequent answer is assumed to be correct, and solutions matching this answer receive a positive reward.
  2. Offline Iterative Update: Instead of online policy updates, RoiRL performs a weighted log-likelihood optimization. This is essentially a specialized form of Supervised Fine-Tuning (SFT) where training samples are weighted by a reward transform function $g$.

The theoretical foundation of RoiRL lies in its ability to target the same optimal policy as KL-regularized online RL through this offline weighted objective. By choosing appropriate transform functions (such as the identity transform $g_I$ or an exponential transform $g_\beta$), the model can be updated efficiently without the overhead of a reference model or the sensitivity of online RL hyperparameters.

Experimental Setup

The effectiveness of RoiRL was evaluated across three model architectures: Qwen2.5-Math-1.5B, Phi-4-mini-reasoning-4B, and Llama-3.2-3B-Instruct. The models were trained on a subset of the MATH500 dataset (400 training problems) and tested on:

  • MATH500 Test Set: 100 problems from the MATH dataset.
  • AMC: High-school level competition problems.
  • AIME: Advanced invitational-level math problems.

Performance was measured using majority voting at different sample counts ($maj_1, maj_{10}, maj_{128}$).

Results and Analysis

RoiRL demonstrates significant improvements in both efficiency and accuracy. As shown in the performance comparison below, RoiRL variants ($g_I$ and $g_\beta$) consistently outperform the base model and the TTRL baseline across the majority of benchmarks and models.

Performance comparison of RoiRL against Base and TTRL across various models and benchmarks.

Performance Gains

On the MATH500 test set, the Qwen2.5-Math-1.5B model trained with RoiRL $g_\beta$ achieved 60.4% accuracy in single-sample decoding ($maj_1$), more than doubling the performance of TTRL (29.8%). Notably, RoiRL exhibits strong generalization; models trained only on MATH500 showed marked improvements on the more difficult AMC and AIME datasets.

Efficiency and Stability

RoiRL is approximately 2.5x faster per training round than TTRL. By avoiding the need for a reference model, it significantly reduces GPU memory requirements. Furthermore, the weighted SFT-like update step provides greater stability compared to the finicky nature of online RL algorithms like GRPO.

Self-Correction and Entropy

A key observation is that RoiRL enables the model to improve its underlying reasoning rather than just distilling its own majority vote. In several instances, a model trained with RoiRL using only 10 samples ($maj_{10}$) outperformed the base model even when the latter used 128 samples ($maj_{128}$). Additionally, RoiRL leads to faster "entropy collapse," where the model quickly converges on correct reasoning paths and reduces uncertainty.

Conclusion

RoiRL offers a highly efficient and stable alternative to online reinforcement learning for improving LLM reasoning. By leveraging an iterative offline approach with majority-vote rewards, it achieves state-of-the-art performance on mathematical benchmarks while being significantly faster to train. Future work will explore scaling RoiRL to larger models and broader, more subjective task domains.

Summary updated

BibTeX
@inproceedings{arzhantsev2025roirl,
  author = {Aleksei Arzhantsev and Otmane Sakhi and Flavian Vasile},
  title = {{RoiRL: Efficient, Self-Supervised Reasoning with Offline Iterative Reinforcement Learning}},
  booktitle = {ER @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=PeJ1eGGygZ},
}
Figure