Exploring Pass-Rate Reward in Reinforcement Learning for Code Generation
Not on the map. Why?
Abstract (arXiv)
Reinforcement learning (RL) from unit-test feedback has become a standard post-training recipe for improving large language models (LLMs) on code generation. However, the pass-all-tests binary reward can be sparse, yielding no learning signal on challenging problems where none of the sampled solutions passes all tests. A common remedy is to use the test-case pass rate as a surrogate reward. In this work, we study pass-rate rewards in critic-free RL for code generation (e.g., GRPO and RLOO) and report a consistent pattern across base models and algorithms: despite alleviating reward sparsity, pass-rate rewards do not reliably improve final performance over binary rewards in rigorous controlled experiments. To understand this discrepancy, we analyze reward density and the resulting gradient directions. We find that pass-rate rewards are denser, but the induced gradient updates do not consistently move probability mass toward full-pass solutions. This arises because test-case pass rate is a miscalibrated surrogate for progress toward full correctness, and partial-pass solutions within the same group can induce conflicting gradient directions that cancel out. Overall, our results suggest that, in critic-free RL, pass-rate rewards are insufficient to improve code generation and motivate reward designs that better align optimization with the goal of full correctness.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 34 of its 50 references that are in the map. First posted on arXiv 1 May 2026.
Builds on
34 of 50 references.
References · 34
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2025Qwen3 Technical Reportcited by 8,820
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,810
- 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
- 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 2,026
22 more
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2025Understanding R1-Zero-Like Training: A Critical Perspectivecited by 1,345
- 2025Kimi k1.5: Scaling Reinforcement Learning with LLMscited by 1,210
- 2025Group Sequence Policy Optimizationcited by 835
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
- 2025Process Reinforcement through Implicit Rewardscited by 504
- 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 279
- 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 263
- 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attentioncited by 263
- 2023ReMax: A Simple, Effective, and Efficient Reinforcement Learning Method for Aligning Large Language Modelscited by 187
- 2019SPoC: Search-based Pseudocode to Codecited by 176
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 158
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 151
- 2025MiMo: Unlocking the Reasoning Potential of Language Model -- From Pretraining to Posttrainingcited by 121
- 2023RLTF: Reinforcement Learning from Unit Test Feedbackcited by 114
- 2025The Art of Scaling Reinforcement Learning Compute for LLMscited by 101
- 2025Soft Adaptive Policy Optimizationcited by 96
- 2024Learning Dynamics of LLM Finetuningcited by 95
- 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 62
- 2025Scaling Test-Time Compute to Achieve IOI Gold Medal with Open-Weight Modelscited by 10
- 2024Top Pass: Improve Code Generation by Pass@k-Maximized Code Rankingcited by 9
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Scaling Large Reasoning Models beyond Human Supervision: A Path toward Superintelligencecited by 5
- 2026PRIMUS: Identity, Governance, and Verification for Multi-Agent Federationscited by 0
- 2026CodeLift: Your Test Suite Is Secretly a Dense SWE Curriculumcited by 0
- 2026DivAlgo: A systematic evaluation of algorithmic diversity for code generation modelscited by 0
- 2026DivAlgo: A systematic evaluation of algorithmic diversity for code generation models13 Oct 2026
- 2026CodeLift: Your Test Suite Is Secretly a Dense SWE Curriculum12 Oct 2026
- 2026PRIMUS: Identity, Governance, and Verification for Multi-Agent Federations7 Sep 2026
- 2026Scaling Large Reasoning Models beyond Human Supervision: A Path toward Superintelligence31 Aug 2026
Similar, not cited
Close in wording, no citation either way
- 2026Improving Small Language Models for Code Generation with Reinforcement Learning from Verification Feedback
- 2026Beyond Execution: Static-Analysis Rewards and Hint-Conditioned Diffusion RL for Code Generation
- 2026Reinforcement Learning for Code Optimization
- 2026CodeScaler: Scaling Code LLM Training and Test-Time Inference via Reward Models
- 2026Beyond Binary: Turning Partial Success into Dense Verifiable Rewards for Reinforcement Learning in Code Generation
- 2026When Do Intrinsic Rewards Work for Code Reasoning? A Comprehensive Study
- 2025ACECODER: Acing Coder RL via Automated Test-Case Synthesis
- 2024Process Supervision-Guided Policy Optimization for Code Generation