One-Token Rollout: Guiding Supervised Fine-Tuning of LLMs with Policy Gradient

Rui Ming, Haoyuan Wu, Shoubo Hu, Zhuolun He, Bei Yu · DOI

Abstract

Supervised Fine-Tuning (SFT) is a cornerstone of large language model (LLM) development but often suffers from "catastrophic forgetting" and limited generalization compared to Reinforcement Learning (RL). We present One-Token Rollout (OTR), a novel fine-tuning algorithm that bridges this gap. OTR treats each token generation as a micro-trajectory, sampling candidate tokens on-the-fly to create a dynamic, on-policy signal. By applying policy gradient updates based on ground-truth rewards at the token level, OTR achieves the generalization benefits of RL with the computational efficiency of SFT. Our experiments across Qwen and Olmo model families demonstrate that OTR consistently outperforms SFT in mathematical reasoning, coding, and general knowledge tasks.

Introduction

The transition from pre-training to specialized task performance typically relies on Supervised Fine-Tuning (SFT). While effective for teaching models to follow specific formats, SFT is fundamentally "off-policy"---it forces the model to mimic a static dataset. This often leads to memorization rather than true reasoning, and can cause the model to lose the "pre-trained wisdom" acquired during its initial training phase.

Reinforcement Learning (RL) offers a solution through "on-policy" learning, where the model learns from its own generated outputs. However, traditional RL is computationally expensive, requiring full-sequence generation and complex reward modeling. One-Token Rollout (OTR) addresses this by performing "micro-rollouts" at every token position, providing a sharp learning signal that penalizes incorrect but plausible tokens while reinforcing the ground truth.

Methodology: The One-Token Rollout

OTR transforms the static SFT process into a dynamic environment by treating each token step as a decision point in a reinforcement learning framework.

Overview of the One-Token Rollout (OTR) method compared to standard SFT.

The process involves three key steps:

  1. Stochastic Sampling: At each time step $t$, given a context, the model samples $K$ candidate tokens from its current predicted distribution.
  2. Reward Assignment: The ground-truth token from the training dataset serves as the reward guide. If a sampled token matches the ground truth, it receives a positive reward (e.g., 1). If it does not match, it receives a small negative penalty ($\beta$, typically -0.1).
  3. Policy Gradient Update: Instead of a simple maximum likelihood objective, the model is updated using a policy gradient. This encourages the model to increase the probability of the correct token while explicitly decreasing the probability of the specific "wrong" tokens it was tempted to generate.

This approach ensures the model is updated in the regions of the probability space it actually visits, effectively mitigating the distribution shift between training and inference.

Experimental Evaluation

We evaluated OTR using a subset of the OpenR1-Math-220k dataset, focusing on 5,000 high-quality mathematical reasoning traces. Testing spanned multiple model families, including Qwen2.5 (3B, 7B), Qwen3 (4B, 8B), and Olmo3 (7B).

Mathematical Reasoning Performance

The primary goal was to improve complex reasoning. As shown in the table below, OTR consistently surpassed both the base models and their SFT-tuned counterparts across a wide array of benchmarks including GSM8K, MATH, and AIME.

Performance comparison of Base, SFT, and OTR methods across mathematical reasoning benchmarks.

Notably, on the challenging AIME25 benchmark, OTR improved the Qwen3-4B model from a base score of 6.70 to 11.67, nearly doubling the performance of the SFT version (6.24).

Generalization and Coding

Beyond math, OTR demonstrated superior generalization in out-of-domain tasks. In coding benchmarks like HumanEval+, OTR models consistently outperformed SFT versions by 2-4 percentage points. This suggests that the on-policy nature of OTR helps preserve and even enhance the model's underlying reasoning capabilities rather than just memorizing specific patterns.

Key Insights

  • The Importance of Negative Samples: A critical finding is that penalizing incorrect tokens is as important as reinforcing correct ones. By providing a negative signal for "plausible but wrong" tokens, OTR creates a much steeper gradient for learning.
  • Efficiency: Because OTR only samples one token ahead, it adds negligible overhead to training time and memory compared to standard SFT. It provides "RL-like" benefits at "SFT-like" costs.
  • Stability and Confidence: Analysis of "Ground Truth (GT) token counts" during training shows that OTR-trained models converge to a state where they are more confident in the correct sequences compared to SFT, which often plateaus earlier.

Conclusion and Future Work

One-Token Rollout represents a significant step toward more efficient and robust LLM fine-tuning. By bridging the gap between SFT and RL, it allows models to generalize better while avoiding the pitfalls of catastrophic forgetting.

Future research will explore scaling OTR to models beyond 8B parameters and integrating more nuanced reward signals. Additionally, extending the "rollout" to multiple tokens ($n$-token rollouts) may offer further improvements in long-form reasoning and planning tasks.

Summary updated

BibTeX
@misc{ming2025one,
  author = {Rui Ming and Haoyuan Wu and Shoubo Hu and Zhuolun He and Bei Yu},
  title = {{One-Token Rollout: Guiding Supervised Fine-Tuning of LLMs with Policy Gradient}},
  year = {2025},
  eprint = {2509.26313},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.26313},
}
Figure