mlsanityData to 14 Oct 2026

Exploring Pass-Rate Reward in Reinforcement Learning for Code Generation

arXiv 2605.02944 ↗First posted 1 May 2026cs.LG cs.AI cs.SEcited by 4

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2017Proximal Policy Optimization Algorithmscited by 15,215
  4. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  5. 2025Qwen3 Technical Reportcited by 8,820
  6. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  7. 2024Qwen2.5 Technical Reportcited by 4,942
  8. 2021Program Synthesis with Large Language Modelscited by 3,637
  9. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  10. 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,810
  11. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
  12. 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 2,026
22 more
  1. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
  2. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  3. 2025Understanding R1-Zero-Like Training: A Critical Perspectivecited by 1,345
  4. 2025Kimi k1.5: Scaling Reinforcement Learning with LLMscited by 1,210
  5. 2025Group Sequence Policy Optimizationcited by 835
  6. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
  7. 2025Process Reinforcement through Implicit Rewardscited by 504
  8. 2025SWE-Bench Pro: Can AI Agents Solve Long-Horizon Software Engineering Tasks?cited by 279
  9. 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 263
  10. 2025MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attentioncited by 263
  11. 2023ReMax: A Simple, Effective, and Efficient Reinforcement Learning Method for Aligning Large Language Modelscited by 187
  12. 2019SPoC: Search-based Pseudocode to Codecited by 176
  13. 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 158
  14. 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 151
  15. 2025MiMo: Unlocking the Reasoning Potential of Language Model -- From Pretraining to Posttrainingcited by 121
  16. 2023RLTF: Reinforcement Learning from Unit Test Feedbackcited by 114
  17. 2025The Art of Scaling Reinforcement Learning Compute for LLMscited by 101
  18. 2025Soft Adaptive Policy Optimizationcited by 96
  19. 2024Learning Dynamics of LLM Finetuningcited by 95
  20. 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 62
  21. 2025Scaling Test-Time Compute to Achieve IOI Gold Medal with Open-Weight Modelscited by 10
  22. 2024Top Pass: Improve Code Generation by Pass@k-Maximized Code Rankingcited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 4.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Improving Small Language Models for Code Generation with Reinforcement Learning from Verification Feedback
  2. 2026Beyond Execution: Static-Analysis Rewards and Hint-Conditioned Diffusion RL for Code Generation
  3. 2026Reinforcement Learning for Code Optimization
  4. 2026CodeScaler: Scaling Code LLM Training and Test-Time Inference via Reward Models
  5. 2026Beyond Binary: Turning Partial Success into Dense Verifiable Rewards for Reinforcement Learning in Code Generation
  6. 2026When Do Intrinsic Rewards Work for Code Reasoning? A Comprehensive Study
  7. 2025ACECODER: Acing Coder RL via Automated Test-Case Synthesis
  8. 2024Process Supervision-Guided Policy Optimization for Code Generation