TL;DR
Reinforcement learning can enhance large language model (LLM) reasoning without human labels by using self-generated majority voting as a reward signal, but online RL algorithms like Test-Time Reinforcement Learning (TTRL) are slow, unstable, and memory-intensive. RoiRL (Reasoning with offline iterative Reinforcement Learning) replaces online RL with an iterative loop optimizing a weighted log-likelihood loss—essentially weighted supervised fine-tuning. It eliminates the need for an active reference model, runs up to 2.5× faster, and consistently beats TTRL across mathematical reasoning benchmarks.
What Problem Does This Paper Address?
Reinforcement learning from verifiable rewards (like math correctness labels) has proven remarkably effective at eliciting chain-of-thought reasoning in LLMs. However, ground-truth labels are expensive and scarce. Recent work, such as TTRL, bypasses this bottleneck via self-supervision: the model generates multiple candidate solutions, derives a pseudo-label via majority voting, and optimizes policy parameters online using group relative policy optimization (GRPO).
While effective, TTRL suffers from two major pain points:
- Computational overhead: It requires storing generation logits, running online RL updates, and keeping a reference model active in GPU memory to calculate KL penalties.
- Training instability: Online policy gradient updates are notoriously sensitive to hyperparameters and prone to unstable training trajectories.
Methods
RoiRL preserves the core intuition of majority-vote self-supervision while recasting the problem into an offline, iterative optimization process:
- Iterative Round Structure: Each round $m$ alternates between two decoupled phases:
- Generation: The current policy $\pi_{m-1}$ samples $k$ reasoning paths and candidate answers for each unlabeled prompt $x_i$. The majority vote answer serves as pseudo-ground truth, yielding a binary reward $\tilde{r}_k \in \{0, 1\}$.
-
Offline Update: Rather than running online RL updates, RoiRL updates model parameters $\theta$ by optimizing a weighted log-likelihood objective: $$\theta_m = \arg \max_\theta \sum_{i=1}^n \mathbb{E}_{(c,y) \sim \pi_{m-1}} \left[ g_m(\tilde{r}_k) \log \pi_\theta(c, y \mid x_i) \right]$$ where $g_m$ is an increasing reward transformation function.
-
Reward Transforms ($g_m$):
- Exponential transform ($g_\beta(r) = \exp(r/\beta)$): Mathematically mirrors the analytical fixed-point solution of KL-regularized RL. The authors prove (Proposition 3.1) that RoiRL can theoretically target the exact same optimal policy as TTRL.
- Identity transform ($g_I(r) = r$): Zeroes out incorrect generations and reduces the step to standard Supervised Fine-Tuning (SFT) over solutions that match the majority consensus.
- Engineering Advantages: Decoupling generation from training allows large-batch prompt generation, eliminates the need to cache logits, and removes the reference policy from memory entirely.
Datasets
- Training Data: Unlabeled problem prompts from the MATH500 training split (400 problems). No ground-truth answers or human rationales were used during training.
- Evaluation Benchmarks:
- MATH500 Test split (100 problems).
- AMC (American Mathematics Competitions).
- AIME2024 (American Invitational Mathematics Examination 2024).
- Models Evaluated: Qwen2.5-Math-1.5B, Phi-4-mini-reasoning-4B, and Llama-3.2-3B-Instruct.
Key Insights and Ideas
- Offline SFT can replace online RL: You do not need complex, fragile online policy gradient machinery to optimize KL-regularized objectives. An iterative weighted log-likelihood loop analytically converges toward the same policy family.
- Identity transform outshines KL-mimicking transforms: Counterintuitively, the simple identity function ($g_I$, standard SFT on majority answers) frequently outperformed the exponential transform ($g_\beta$) designed to strictly replicate KL-constrained RL.
- True self-improvement, not just distillation: The trained models did not merely memorize majority votes. A single sampled generation ($k=1$) from an RoiRL-tuned model frequently surpassed the base model's majority vote over 10 samples ($\text{maj}_{10}$), and RoiRL $\text{maj}_{10}$ performance often beat the base model evaluated with 128 samples ($\text{maj}_{128}$).
Key Results
- Training Speed & Efficiency: RoiRL achieves up to a 2.5× speedup per training round over TTRL (6,552 seconds per round for RoiRL $g_I$ vs. 17,019 seconds per epoch for TTRL on an NVIDIA A100 GPU).
- Reasoning Accuracy: Across almost all benchmark/model configurations, RoiRL outperformed TTRL:
- On Phi-4-mini-reasoning-4B, RoiRL $g_I$ improved $\text{maj}_{10}$ accuracy on MATH500 Test from 0.350 (base) and 0.460 (TTRL) to 0.680—comfortably exceeding the base model's costly $\text{maj}_{128}$ ceiling (0.560).
- On challenging AIME2024, RoiRL $g_I$ with Llama-3.2-3B reached 0.200 ($\text{maj}_{10}$), beating both the base model (0.033) and TTRL (0.167).
- Entropy Behavior: RoiRL collapses generation entropy significantly faster than TTRL, leading to rapid convergence.
Limitations and Future Work
- Risk of Entropy Collapse: RoiRL causes generation entropy to drop near zero rapidly, suggesting an increased risk of overconfidence or mode collapse without explicit regularization tuning or lower learning rates.
- Reliance on Consensus Quality: If the base model's consensus is fundamentally wrong on difficult problems, majority voting reinforces incorrect reasoning paths.
- Scale Constraints: Experiments were limited to models between 1.5B and 4B parameters; validating RoiRL on 14B+ and 70B+ scales remains open.
- Reward Alternatives: Future work should explore pseudo-label verification mechanisms beyond naive majority voting and systematically analyze diverse reward functions.
Summary updated