Breaking Training Bottlenecks: Effective and Stable Reinforcement Learning for Coding Models

Zongqian Li, Shaohan Huang, Zewen Chi, Yixuan Su, Lexin Zhou, Li Dong, Nigel Collier, Furu Wei · DOI

Abstract

Modern code generation models exhibit longer outputs, accelerated capability growth, and changed training dynamics, rendering traditional training methodologies, algorithms, and datasets ineffective for improving their performance. To address these training bottlenecks, we propose MicroCoder-GRPO, an improved Group Relative Policy Optimization approach with three innovations: conditional truncation masking to improve long output potential while maintaining training stability, diversity-determined temperature selection to maintain and encourage output diversity, and removal of KL loss with high clipping ratios to facilitate solution diversity. MicroCoder-GRPO achieves up to 17.6% relative improvement over strong baselines on LiveCodeBench v6, with more pronounced gains under extended context evaluation. Additionally, we release MicroCoder-Dataset, a more challenging training corpus that achieves 3x larger performance gains than mainstream datasets on LiveCodeBench v6 within 300 training steps, and MicroCoder-Evaluator, a robust framework with approximately 25% improved evaluation accuracy and around 40% faster execution. Through comprehensive analysis across more than thirty controlled experiments, we reveal 34 training insights across seven main aspects, demonstrating that properly trained models can achieve competitive performance with larger counterparts.

The Challenge of Modern Code Generation

Reinforcement Learning from Human Feedback (RLHF) and Group Relative Policy Optimization (GRPO) have proven effective for mathematical reasoning. However, code generation presents unique challenges, requiring strict adherence to test cases and runtime constraints. Furthermore, modern models like the Qwen-3 series exhibit significantly different behaviors compared to their predecessors, specifically a tendency toward much longer "thinking" traces.

Density of response lengths across different model generations, highlighting the shift toward longer outputs in newer models.

Traditional RL methods often penalize these longer, correct solutions when they hit maximum length limits, or they suffer from "diversity collapse" where the model stops exploring novel solutions. Existing datasets have also become insufficient, as they are often "too easy" for current-generation models, leading to saturated rewards and stalled learning.

MicroCoder-GRPO: Algorithmic Innovations

To overcome these bottlenecks, we introduce MicroCoder-GRPO, which incorporates three key refinements to the standard GRPO framework:

  1. Conditional Truncation Masking: Instead of penalizing models for hitting length limits, this method selectively masks advantage scores for correct, non-repetitive responses that are truncated. This encourages the exploration of complex reasoning paths without punishing verbosity.
  2. Diversity-Determined Temperature Selection: RL stability is highly sensitive to sampling temperature. MicroCoder-GRPO dynamically selects temperatures that maintain output diversity, preventing the model from falling into repetitive loops or getting stuck in local optima.
  3. Removal of KL Loss & High Clipping: By removing the standard Kullback–Leibler (KL) divergence penalty and utilizing high clipping ratios, the model is given more freedom to deviate from its initial state and discover diverse, high-quality solutions.

Enhanced Infrastructure: Dataset and Evaluator

Effective training requires high-quality feedback and challenging data. We developed the MicroCoder-Dataset, a corpus specifically designed to push the reasoning limits of modern models. In comparative tests, it provided 3x the performance gains of mainstream datasets within the same training window.

Complementing this is the MicroCoder-Evaluator, a framework utilizing parallel processing and fuzzy matching (to handle floating-point tolerances and whitespace). This evaluator is 40% faster and 25% more accurate than standard exact-match tools, providing the rapid, reliable feedback loop necessary for stable RL.

Key Results and Insights

MicroCoder-GRPO demonstrates significant performance improvements across benchmarks. On LiveCodeBench v6, the method achieved a 17.6% relative improvement over strong baselines.

Accuracy improvement over 300 training steps for Qwen2.5 and Qwen3 models using the MicroCoder-GRPO framework.

Our extensive experimentation yielded 34 distinct training insights, including:

  • Context Length Persistence: Limiting output length early in training causes irreversible damage to reasoning capabilities that cannot be easily recovered later.
  • Difficulty as a Catalyst: Harder training problems accelerate the growth of response length and improve generalization, whereas easy datasets lead to reward saturation.
  • On-Policy vs. Off-Policy Balance: Optimal stability is found by balancing batch sizes to maintain a mix of immediate and batch reflection.

Conclusion

MicroCoder-GRPO addresses the evolving dynamics of code generation models. By refining the RL algorithm and providing more challenging training environments, we demonstrate that even smaller models can achieve performance competitive with much larger counterparts. Future work will explore the scalability of these techniques to 70B+ parameter models and broader, non-algorithmic coding tasks.

Summary updated

BibTeX
@misc{li2026breaking,
  author = {Zongqian Li and Shaohan Huang and Zewen Chi and Yixuan Su and Lexin Zhou and Li Dong and Nigel Collier and Furu Wei},
  title = {{Breaking Training Bottlenecks: Effective and Stable Reinforcement Learning for Coding Models}},
  year = {2026},
  eprint = {2603.07777},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.07777},
}
Figure