Sparrow: Sparse Rollout for Stable and Efficient Long-context RL of Large Language Models

Yang Zhou, Ranajoy Sadhukhan, Zhaofeng Sun, Zhuoming Chen, Souvik Kundu, Saket Dingliwal, Sai Muralidhar Jayanthi, Aram Galstyan, Haizhong Zheng, Beidi ChenarXiv 2026

TL;DR

Training large language models with reinforcement learning (RL) for long-context reasoning is incredibly expensive, with over 70% of the compute spent simply generating text rollouts. Sparrow solves this bottleneck by introducing a dynamic sparse attention schedule that accelerates rollout generation by up to 2.4x while completely avoiding training collapse. By discovering that RL stability depends entirely on the "lower tail" of token distribution mismatch rather than the average, the authors provide a universal recipe for stable, efficient long-context RL.

What Problem Does This Paper Address?

Reinforcement Learning with Verifiable Rewards (RLVR)—the framework behind models like OpenAI's o1 and DeepSeek-R1—requires models to generate massive Chains of Thought (CoT) to solve complex math and coding problems. This makes the "rollout" (generation) phase the primary computational bottleneck of RL training.

While sparse attention mechanisms can accelerate long-context generation, naively swapping dense rollouts for sparse ones introduces a fragile stability-efficiency tradeoff. If the sparsity is too aggressive, the model's training completely collapses, and its response lengths shrink to zero. If it is too lenient, you get no meaningful speedup.

The tradeoff between sparsity, efficiency, and training stability across model scales.

Prior methods fail to fix this because they treat the distribution mismatch between sparse and dense models uniformly. This paper aims to find the exact boundary where sparse rollouts can achieve maximum speedup without breaking dense-policy RL training.

Methods

The authors tackle the stability-efficiency dilemma through three key innovations:

  1. Tail-Driven Mismatch Tracking: Instead of looking at the average mismatch between the sparse actor and dense policy, the authors track the 5-percentile per-token acceptance rate (or L1 distance). This isolates the worst-behaved tokens that actually cause training collapse.
  2. Dynamic Sparsity Scheduling: Because token distribution mismatch naturally worsens as sequence lengths grow, a fixed KV cache budget inevitably fails. Sparrow dynamically adjusts and relaxes the KV cache budget throughout the generation trajectory to keep the 5-percentile tail statistic perfectly constant.
  3. DistillSparse: To push past vanilla sparsity limits, the authors introduce a lightweight, online distillation technique using LoRA. During the rollout phase, a sparse student model (boosted by LoRA) is distilled against the dense teacher's log-probabilities. This allows the system to use highly aggressive sparsity budgets while artificially keeping the tail alignment above the danger zone.

Datasets

The framework was rigorously evaluated across two demanding domains:

  • Mathematical Reasoning: Trained and evaluated on AIME (2024, 2025, 2026), MATH500, and AMC (2023, 2024) benchmarks using the Qwen3 thinking-model family.
  • Code Generation: Trained on a 21K filtered subset of the TACO dataset and evaluated on LiveCodeBench, HumanEval+, and MBPP+.

Key Insights and Ideas

  • Collapse is a Tail Problem, Not an Average Problem: Under aggressive sparsity, the dominant majority of tokens remain perfectly aligned with the dense model. Training collapse is triggered entirely by a tiny minority of severely misaligned tokens. Because the distribution is highly skewed, average metrics completely hide this instability until it's too late.
The tail distribution of per-token mismatch can be accurately modeled by a scaled Beta distribution, showing that a small minority of tokens drive the divergence.
  • Universal Stability Threshold: Across different model sizes (1.7B, 4B, and 8B), keeping the 5-percentile token acceptance rate above a threshold of $\approx 0.86$ consistently guarantees stable RL training.
  • Page Size 16 Dominates: For block-sparse attention, smaller block sizes (page size 16) consistently dominate the Pareto frontier for the alignment-efficiency tradeoff. The overhead of computing landmark scores for smaller blocks is negligible compared to the massive memory traffic savings.

Key Results

  • Substantial Rollout Speedups: By pairing the optimal 0.86 threshold with hardware cost models, Sparrow achieved rollout throughput speedups of 2.2x for Qwen3-1.7B, 2.4x for Qwen3-4B, and 2.0x for Qwen3-8B.
  • Threshold Generalization: The 0.86 threshold successfully generalized to a much larger Qwen3-14B model (which takes 190 hours to train normally) and to a completely separate coding domain (TACO), matching dense training performance perfectly.
  • DistillSparse Efficiency Gains: Incorporating LoRA-based distillation allowed the 1.7B model to utilize an even lower baseline KV budget, boosting rollout speedups to 2.5x while maintaining flawless training stability.
DistillSparse successfully shifts aggressive, unstable sparsity budgets back above the critical 0.86 stability threshold.

Limitations and Future Work

While highly effective, the authors note several boundaries to their current study:

  • Model and Attention Scope: The evaluations were restricted to the Qwen3 family and block-sparse attention mechanisms. It remains to be seen if the $\approx 0.86$ threshold holds precisely for other architectures or fine-grained sparse attention variants.
  • Algorithmic Constraints: The work focused primarily on PPO/GRPO-style on-policy RL setups.
  • System Optimizations: The cost-model analysis currently stops at page size 16 due to sparse inference engine constraints; future work will explore if even smaller page sizes (e.g., 8 or below) can unlock further hardware efficiencies.

Summary updated

BibTeX
@misc{zhou2026sparrow,
  author = {Yang Zhou and Ranajoy Sadhukhan and Zhaofeng Sun and Zhuoming Chen and Souvik Kundu and Saket Dingliwal and Sai Muralidhar Jayanthi and Aram Galstyan and Haizhong Zheng and Beidi Chen},
  title = {{Sparrow: Sparse Rollout for Stable and Efficient Long-context RL of Large Language Models}},
  year = {2026},
  eprint = {2606.08446},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.08446},
}
Figure