STAPO: Stabilizing Reinforcement Learning for LLMs by Silencing Rare Spurious Tokens

Shiqi Liu, Zeyu He, Guojian Zhan, Letian Tao, Zhilong Zheng, Jiang Wu, Yinuo Wang, Yang Guan, Kehua Sheng, Bo Zhang, Keqiang Li, Jingliang Duan, Shengbo Eben Li · DOI

Abstract: Reinforcement Learning (RL) has significantly improved large language model reasoning, but existing RL fine-tuning methods rely heavily on heuristic techniques such as entropy regularization and reweighting to maintain stability. In practice, they often suffer from late-stage performance collapse, leading to degraded reasoning quality and unstable training. Our analysis shows that the magnitude of token-wise policy gradients in RL is negatively correlated with token probability and local policy entropy. We find that training instability can be caused by a tiny fraction of tokens, approximately 0.01%, which we term spurious tokens. When such tokens appear in correct responses, they contribute little to the reasoning outcome but inherit the full sequence-level reward, leading to abnormally amplified gradient updates. To mitigate this instability, we design an S2T (silencing spurious tokens) mechanism to efficiently identify spurious tokens through characteristic signals with low probability, low entropy, and positive advantage, and then suppress their gradient perturbations during optimization. Incorporating this mechanism into a group-based objective, we propose Spurious-Token-Aware Policy Optimization (STAPO), which promotes stable and effective large-scale model refinement. Across six mathematical reasoning benchmarks using Qwen 1.7B, 8B, and 14B base models, STAPO consistently demonstrates superior entropy stability and achieves an average performance improvement of 7.13% over GRPO, 20-Entropy, and JustRL.

Introduction

Reinforcement Learning (RL) has become the "secret sauce" behind the reasoning breakthroughs in models like DeepSeek-R1 and OpenAI’s o1. By rewarding models for correct final answers, RL encourages the development of complex, multi-step "Chain of Thought" behaviors. However, fine-tuning LLMs with RL is notoriously fickle. Models often suffer from "catastrophic collapse," where they suddenly pivot from coherent reasoning to repetitive nonsense or nonsensical patterns. Researchers from Tsinghua University and DiDi have identified a surprising culprit for this instability: a tiny fraction of tokens—roughly 0.01%—that act like a dissonant vocalist ruining a choir performance.

The Problem: Spurious Tokens

In RL for LLMs, we typically use sequence-level rewards. If a model solves a math problem correctly, the entire response is rewarded. However, not every token in a correct response is actually helpful. Some might be typos, weird formatting, or even minor calculation errors that didn't prevent the final answer from being right.

Conceptual illustration of silencing spurious tokens and the resulting performance/stability gains.

A mathematical "trap" exists in the policy gradient objective: the magnitude of a gradient update is negatively correlated with a token's probability. When a model generates a "spurious token"—one that is rare (low probability) and confident (low entropy) but happens to be in a correct sequence (positive advantage)—the math forces a massive, "amplified" gradient update. These spikes act as shocks to the system, distorting the model's internal representations and leading to unstable training.

Methods: Silencing the 0.01%

The researchers propose a mechanism called S2T (Silencing Spurious Tokens). Instead of trying to regularize the whole model, they surgically target the problematic tokens. A token is flagged as "spurious" if it meets three criteria:

  1. Low Probability: It is a rare choice for the model.
  2. Low Entropy: The model was "confident" in this specific rare choice.
  3. Positive Advantage: The overall sequence was successful/correct.

During the optimization step, STAPO applies a binary mask that zeros out the gradient contribution from these specific tokens. This S2T mechanism is integrated into a group-based RL objective (similar to GRPO), using a dynamic quantile to set entropy thresholds that adapt to the model's current state.

Key Results and Stability

STAPO was evaluated across three model scales (Qwen 1.7B, 8B, and 14B) using six rigorous mathematical reasoning benchmarks: AIME24, AIME25, AMC23, MATH500, Minerva, and OlympiadBench.

STAPO consistently outperformed standard RL methods like GRPO and JustRL, achieving an average improvement of 7.13% in greedy decoding. More importantly, while other methods saw their policy entropy either collapse to zero or explode uncontrollably, STAPO maintained a stable, well-regulated entropy level throughout training. Qualitative analysis revealed that the silenced tokens typically fell into three categories: uncommon syntax, minor hallucinations/math errors within a correct chain, and formatting errors (like missing spaces in LaTeX).

Conclusion

Instability in LLM reinforcement learning isn't necessarily caused by the model being "bad" overall; it is often caused by a negligible fraction of tokens. By masking this tiny subset (0.01%), STAPO prevents performance collapse and significantly improves reasoning capabilities. Future work will explore if this "0.01% rule" holds true for non-mathematical domains like creative writing and open-ended dialogue.

Summary updated

BibTeX
@inproceedings{liu2026stapo,
  author = {Shiqi Liu and Zeyu He and Guojian Zhan and Letian Tao and Zhilong Zheng and Jiang Wu and Yinuo Wang and Yang Guan and Kehua Sheng and Bo Zhang and Keqiang Li and Jingliang Duan and Shengbo Eben Li},
  title = {{STAPO: Stabilizing Reinforcement Learning for LLMs by Silencing Rare Spurious Tokens}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=xnL7HqJSHm},
}
Figure