StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedback
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
The advancement of large language models (LLMs) has significantly propelled the field of code generation. Previous work integrated reinforcement learning (RL) with compiler feedback for exploring the output space of LLMs to enhance code generation quality. However, the lengthy code generated by LLMs in response to complex human requirements makes RL exploration a challenge. Also, since the unit tests may not cover the complicated code, optimizing LLMs by using these unexecuted code snippets is ineffective. To tackle these challenges, we introduce StepCoder, a novel RL framework for code generation, consisting of two main components: CCCS addresses the exploration challenge by breaking the long sequences code generation task into a Curriculum of Code Completion Subtasks, while FGO only optimizes the model by masking the unexecuted code segments to provide Fine-Grained Optimization. In addition, we furthermore construct the APPS+ dataset for RL training, which is manually verified to ensure the correctness of unit tests. Experimental results show that our method improves the ability to explore the output space and outperforms state-of-the-art approaches in corresponding benchmarks. Our dataset APPS+ and StepCoder are available online.
Key facts. Cited by 74 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 31 of its 42 references that are in the map. First posted on arXiv 2 Feb 2024.
Builds on
31 of 42 references.
Closest ancestors · 1
Same direction, newest first
Other references · 30
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Let's Verify Step by Stepcited by 3,598
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2015Continuous control with deep reinforcement learningcited by 3,279
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 1,916
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,116
18 more
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2022Solving math word problems with process- and outcome-based feedbackcited by 871
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
- 2023WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instructcited by 618
- 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 559
- 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 294
- 2020IntelliCode Compose: Code Generation Using Transformercited by 225
- 2017Reverse Curriculum Generation for Reinforcement Learningcited by 185
- 2023SantaCoder: don't reach for the stars!cited by 169
- 2022Exploration in Deep Reinforcement Learning: A Surveycited by 158
- 2023Let's reward step by step: Step-Level reward model as the Navigators for Reasoningcited by 96
- 2023Loose lips sink ships: Mitigating Length Bias in Reinforcement Learning from Human Feedbackcited by 78
- 2018Learning Montezuma's Revenge from a Single Demonstrationcited by 76
- 2021Exploration in Deep Reinforcement Learning: From Single-Agent to Multiagent Domaincited by 57
- 2022PanGu-Coder: Program Synthesis with Function-Level Language Modelingcited by 47
- 2022Compilable Neural Code Generation with Compiler Feedbackcited by 46
- 2016Playing Atari Games with Deep Reinforcement Learning and Human Checkpoint Replaycited by 22
Built on by
Citing papers per year: 2024: 20; 2025: 34; 2026: 20.
74 papers.
Sort:
By area:
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 381
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 242
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 146
- 2025A Survey of Frontiers in LLM Reasoning: Inference Scaling, Learning to Reason, and Agentic Systemscited by 108
- 2025ACECODER: Acing Coder RL via Automated Test-Case Synthesiscited by 89
- 2025Pass@K Policy Optimization: Solving Harder Reinforcement Learning Problemscited by 83
- 2024Enhancing Code LLMs with Reinforcement Learning in Code Generation: A Surveycited by 82
- 2025SPA-RL: Reinforcing LLM Agents via Stepwise Progress Attributioncited by 68
- 2025Co-Evolving LLM Coder and Unit Tester via Reinforcement Learningcited by 51
- 2024Scaling of Search and Learning: A Roadmap to Reproduce o1 from Reinforcement Learning Perspectivecited by 49
- 2024The Larger the Better? Improved LLM Code-Generation via Budget Reallocationcited by 41
38 more
- 2025Training Long-Context, Multi-Turn Software Engineering Agents with Reinforcement Learningcited by 34
- 2024CodeS: Natural Language to Code Repository via Multi-Layer Sketchcited by 28
- 2024Process Supervision-Guided Policy Optimization for Code Generationcited by 25
- 2024PerfCodeGen: Improving Performance of LLM Generated Code with Execution Feedbackcited by 22
- 2025Process-Supervised Reinforcement Learning for Code Generationcited by 21
- 2025ChemDFM-R: A Chemical Reasoning LLM Enhanced with Atomized Chemical Knowledgecited by 20
- 2025A Survey on Agentic Multimodal Large Language Modelscited by 19
- 2024Towards a Unified View of Preference Learning for Large Language Models: A Surveycited by 17
- 2024Large Language Model for Verilog Generation with Code-Structure-Guided Reinforcement Learningcited by 15
- 2024ReflectionCoder: Learning from Reflection Sequence for Enhanced One-off Code Generationcited by 14
- 2025Sailing by the Stars: A Survey on Reward Models and Learning Strategies for Learning from Rewardscited by 14
- 2025Afterburner: Reinforcement Learning Facilitates Self-Improving Code Efficiency Optimizationcited by 14
- 2024RLSF: Fine-tuning LLMs via Symbolic Feedbackcited by 13
- 2024Meta-Designing Quantum Experiments with Language Modelscited by 12
- 2025A.S.E: A Repository-Level Benchmark for Evaluating Security in AI-Generated Codecited by 12
- 2025Training Language Models to Generate Quality Code with Program Analysis Feedbackcited by 11
- 2025From Intent to Execution: Multimodal Chain-of-Thought Reinforcement Learning for Precise CAD Code Generationcited by 10
- 2024Multi-Programming Language Sandbox for LLMscited by 9
- 2024DSTC: Direct Preference Learning with Only Self-Generated Tests and Code to Improve Code LMscited by 9
- 2024FALCON: Feedback-driven Adaptive Long/short-term memory reinforced Coding Optimization systemcited by 8
- 2025Repair-R1: Better Test Before Repaircited by 6
- 2026On Information Self-Locking in Reinforcement Learning for Active Reasoning of LLM agentscited by 6
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Modelscited by 5
- 2025Improving LLM-Generated Code Quality with GRPOcited by 5
- 2026Outcome-Based RL Provably Leads Transformers to Reason, but Only With the Right Datacited by 5
- 2026CodeScaler: Scaling Code LLM Training and Test-Time Inference via Reward Modelscited by 5
- 2025EyeMulator: Improving Code Language Models by Mimicking Human Visual Attentioncited by 4
- 2025Alignment with Fill-In-the-Middle for Enhancing Code Generationcited by 4
- 2025Reducing Belief Deviation in Reinforcement Learning for Active Reasoningcited by 4
- 2025QiMeng-SALV: Signal-Aware Learning for Verilog Code Generationcited by 4
- 2025DRAFT-RL: Multi-Agent Chain-of-Draft Reasoning for Reinforcement Learning-Enhanced LLMscited by 4
- 2026TerraFormer: Automated Infrastructure-as-Code with LLMs Fine-Tuned via Policy-Guided Verifier Feedbackcited by 4
- 2025GiFT: Gibbs Fine-Tuning for Code Generationcited by 3
- 2026Supervised Fine-Tuning versus Reinforcement Learning: A Study of Post-Training Methods for Large Language Modelscited by 3
- 2024Distilling Desired Comments for Enhanced Code Review with Large Language Modelscited by 2
- 2025Integrating Symbolic Execution into the Fine-Tuning of Code-Generating LLMscited by 2
- 2025CRPE: Expanding The Reasoning Capability of Large Language Model for Code Generationcited by 2
- 2024Unlock the Correlation between Supervised Fine-Tuning and Reinforcement Learning in Training Code Large Language Modelscited by 1
50 most cited of 74 All 74 (JSON)
- 2026Beyond Euclidean Clipping: Overcoming Exploration Collapse in LLM RL via Riemannian Isometric Policy Optimization11 Jul 2026
- 2026MAGNIFIED: RL Fine-tuning of Multimodal Large Language Models for Motion Planning2 Jun 2026
- 2026Improving Small Language Models for Code Generation with Reinforcement Learning from Verification Feedback28 May 2026
- 2026Efficient Post-training of LLMs for Code Generation With Offline Reinforcement Learning27 May 2026
- 2026Beyond Execution: Static-Analysis Rewards and Hint-Conditioned Diffusion RL for Code Generation16 May 2026
- 2026Improving LLM Code Generation via Requirement-Aware Curriculum Reinforcement Learning1 May 2026
- 2026BoostLoRA: Growing Effective Rank by Boosting Adapters30 Apr 2026
- 2026WebGen-R1: Incentivizing Large Language Models to Generate Functional and Aesthetic Websites with Reinforcement Learning22 Apr 2026
- 2026AutoOR: Scalably Post-training LLMs to Autoformulate Operations Research Problems18 Apr 2026
- 2026The Past Is Not Past: Memory-Enhanced Dynamic Reward Shaping13 Apr 2026
- 2026Writer-R1: Enhancing Generative Writing in LLMs via Memory-augmented Replay Policy Optimization16 Mar 2026
- 2026Supervised Fine-Tuning versus Reinforcement Learning: A Study of Post-Training Methods for Large Language Models14 Mar 2026
38 more
- 2026ARL-Tangram: Unleash the Resource Efficiency in Agentic Reinforcement Learning13 Mar 2026
- 2026On Information Self-Locking in Reinforcement Learning for Active Reasoning of LLM agents12 Mar 2026
- 2026UpSkill: Mutual Information Skill Learning for Structured Response Diversity in LLMs25 Feb 2026
- 2026Improving HPC Code Generation Capability of LLMs via Online Reinforcement Learning with Real-Machine Benchmark Rewards12 Feb 2026
- 2026CodeScaler: Scaling Code LLM Training and Test-Time Inference via Reward Models4 Feb 2026
- 2026CVeDRL: An Efficient Code Verifier via Difficulty-aware Reinforcement Learning30 Jan 2026
- 2026Outcome-Based RL Provably Leads Transformers to Reason, but Only With the Right Data21 Jan 2026
- 2026TerraFormer: Automated Infrastructure-as-Code with LLMs Fine-Tuned via Policy-Guided Verifier Feedback13 Jan 2026
- 2025CosmoCore-Evo: Evolutionary Dream-Replay Reinforcement Learning for Adaptive Code Generation20 Dec 2025
- 2025DRAFT-RL: Multi-Agent Chain-of-Draft Reasoning for Reinforcement Learning-Enhanced LLMs25 Nov 2025
- 2025QiMeng-CRUX: Narrowing the Gap Between Natural Language and Verilog via Core Refined Understanding eXpression for Circuit Design25 Nov 2025
- 2025QiMeng-SALV: Signal-Aware Learning for Verilog Code Generation22 Oct 2025
- 2025CosmoCore Affective Dream-Replay Reinforcement Learning for Code Generation20 Oct 2025
- 2025Reducing Belief Deviation in Reinforcement Learning for Active Reasoning14 Oct 2025
- 2025A Survey on Agentic Multimodal Large Language Models13 Oct 2025
- 2025Humanline: Online Alignment as Perceptual Loss29 Sep 2025
- 2025Reinforcement Learning-Guided Chain-of-Draft for Token-Efficient Code Generation26 Sep 2025
- 2025MM-SeR: Multimodal Self-Refinement for Lightweight Image Captioning29 Aug 2025
- 2025AR2: Adversarial Reinforcement Learning for Abstract Reasoning in Large Language Models27 Aug 2025
- 2025Alignment with Fill-In-the-Middle for Enhancing Code Generation27 Aug 2025
- 2025A.S.E: A Repository-Level Benchmark for Evaluating Security in AI-Generated Code25 Aug 2025
- 2025EyeMulator: Improving Code Language Models by Mimicking Human Visual Attention22 Aug 2025
- 2025From Intent to Execution: Multimodal Chain-of-Thought Reinforcement Learning for Precise CAD Code Generation13 Aug 2025
- 2025Training Long-Context, Multi-Turn Software Engineering Agents with Reinforcement Learning5 Aug 2025
- 2025Repair-R1: Better Test Before Repair30 Jul 2025
- 2025ChemDFM-R: A Chemical Reasoning LLM Enhanced with Atomized Chemical Knowledge29 Jul 2025
- 2025Co-Evolving LLM Coder and Unit Tester via Reinforcement Learning3 Jun 2025
- 2025Improving LLM-Generated Code Quality with GRPO2 Jun 2025
- 2025Afterburner: Reinforcement Learning Facilitates Self-Improving Code Efficiency Optimization29 May 2025
- 2025Training Language Models to Generate Quality Code with Program Analysis Feedback28 May 2025
- 2025SPA-RL: Reinforcing LLM Agents via Stepwise Progress Attribution27 May 2025
- 2025Pass@K Policy Optimization: Solving Harder Reinforcement Learning Problems21 May 2025
- 2025SuperCoder: Assembly Program Superoptimization with Large Language Models16 May 2025
- 2025CRPE: Expanding The Reasoning Capability of Large Language Model for Code Generation15 May 2025
- 2025Sailing by the Stars: A Survey on Reward Models and Learning Strategies for Learning from Rewards5 May 2025
- 2025Integrating Symbolic Execution into the Fine-Tuning of Code-Generating LLMs21 Apr 2025
- 2025Themisto: Jupyter-Based Runtime Benchmark16 Apr 2025
- 2025A Survey of Frontiers in LLM Reasoning: Inference Scaling, Learning to Reason, and Agentic Systems12 Apr 2025
50 newest of 74 All 74 (JSON)
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 381
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 242
- 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 146
- 2025A Survey of Frontiers in LLM Reasoning: Inference Scaling, Learning to Reason, and Agentic Systemscited by 108
- 2025ACECODER: Acing Coder RL via Automated Test-Case Synthesiscited by 89
- 2024Scaling of Search and Learning: A Roadmap to Reproduce o1 from Reinforcement Learning Perspectivecited by 49
- 2025Training Long-Context, Multi-Turn Software Engineering Agents with Reinforcement Learningcited by 34
- 2025ChemDFM-R: A Chemical Reasoning LLM Enhanced with Atomized Chemical Knowledgecited by 20
- 2024ReflectionCoder: Learning from Reflection Sequence for Enhanced One-off Code Generationcited by 14
- 2025Sailing by the Stars: A Survey on Reward Models and Learning Strategies for Learning from Rewardscited by 14
- 2025From Intent to Execution: Multimodal Chain-of-Thought Reinforcement Learning for Precise CAD Code Generationcited by 10
- 2026On Information Self-Locking in Reinforcement Learning for Active Reasoning of LLM agentscited by 6
12 most cited of 21 All 21 (JSON)
- 2026Beyond Euclidean Clipping: Overcoming Exploration Collapse in LLM RL via Riemannian Isometric Policy Optimization11 Jul 2026
- 2026On Information Self-Locking in Reinforcement Learning for Active Reasoning of LLM agents12 Mar 2026
- 2026UpSkill: Mutual Information Skill Learning for Structured Response Diversity in LLMs25 Feb 2026
- 2026Outcome-Based RL Provably Leads Transformers to Reason, but Only With the Right Data21 Jan 2026
- 2025DRAFT-RL: Multi-Agent Chain-of-Draft Reasoning for Reinforcement Learning-Enhanced LLMs25 Nov 2025
- 2025Reducing Belief Deviation in Reinforcement Learning for Active Reasoning14 Oct 2025
- 2025Humanline: Online Alignment as Perceptual Loss29 Sep 2025
- 2025AR2: Adversarial Reinforcement Learning for Abstract Reasoning in Large Language Models27 Aug 2025
- 2025From Intent to Execution: Multimodal Chain-of-Thought Reinforcement Learning for Precise CAD Code Generation13 Aug 2025
- 2025Training Long-Context, Multi-Turn Software Engineering Agents with Reinforcement Learning5 Aug 2025
- 2025ChemDFM-R: A Chemical Reasoning LLM Enhanced with Atomized Chemical Knowledge29 Jul 2025
- 2025Improving LLM-Generated Code Quality with GRPO2 Jun 2025
12 newest of 21 All 21 (JSON)
- 2024Towards a Unified View of Preference Learning for Large Language Models: A Surveycited by 17
- 2025Afterburner: Reinforcement Learning Facilitates Self-Improving Code Efficiency Optimizationcited by 14
- 2024RLSF: Fine-tuning LLMs via Symbolic Feedbackcited by 13
- 2024DSTC: Direct Preference Learning with Only Self-Generated Tests and Code to Improve Code LMscited by 9
- 2024FALCON: Feedback-driven Adaptive Long/short-term memory reinforced Coding Optimization systemcited by 8
- 2026CodeScaler: Scaling Code LLM Training and Test-Time Inference via Reward Modelscited by 5
- 2025Alignment with Fill-In-the-Middle for Enhancing Code Generationcited by 4
- 2025Integrating Symbolic Execution into the Fine-Tuning of Code-Generating LLMscited by 2
- 2026Writer-R1: Enhancing Generative Writing in LLMs via Memory-augmented Replay Policy Optimizationcited by 1
- 2026Writer-R1: Enhancing Generative Writing in LLMs via Memory-augmented Replay Policy Optimization16 Mar 2026
- 2026CodeScaler: Scaling Code LLM Training and Test-Time Inference via Reward Models4 Feb 2026
- 2025Alignment with Fill-In-the-Middle for Enhancing Code Generation27 Aug 2025
- 2025Afterburner: Reinforcement Learning Facilitates Self-Improving Code Efficiency Optimization29 May 2025
- 2025Integrating Symbolic Execution into the Fine-Tuning of Code-Generating LLMs21 Apr 2025
- 2024DSTC: Direct Preference Learning with Only Self-Generated Tests and Code to Improve Code LMs20 Nov 2024
- 2024FALCON: Feedback-driven Adaptive Long/short-term memory reinforced Coding Optimization system28 Oct 2024
- 2024Towards a Unified View of Preference Learning for Large Language Models: A Survey4 Sep 2024
- 2024RLSF: Fine-tuning LLMs via Symbolic Feedback26 May 2024
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2025Pass@K Policy Optimization: Solving Harder Reinforcement Learning Problemscited by 83
- 2024Enhancing Code LLMs with Reinforcement Learning in Code Generation: A Surveycited by 82
- 2025Co-Evolving LLM Coder and Unit Tester via Reinforcement Learningcited by 51
- 2024The Larger the Better? Improved LLM Code-Generation via Budget Reallocationcited by 41
- 2024CodeS: Natural Language to Code Repository via Multi-Layer Sketchcited by 28
- 2024Process Supervision-Guided Policy Optimization for Code Generationcited by 25
- 2024PerfCodeGen: Improving Performance of LLM Generated Code with Execution Feedbackcited by 22
- 2025Process-Supervised Reinforcement Learning for Code Generationcited by 21
- 2024Large Language Model for Verilog Generation with Code-Structure-Guided Reinforcement Learningcited by 15
- 2024Meta-Designing Quantum Experiments with Language Modelscited by 12
- 2025A.S.E: A Repository-Level Benchmark for Evaluating Security in AI-Generated Codecited by 12
12 most cited of 38 All 38 (JSON)
- 2026Improving Small Language Models for Code Generation with Reinforcement Learning from Verification Feedback28 May 2026
- 2026Improving LLM Code Generation via Requirement-Aware Curriculum Reinforcement Learning1 May 2026
- 2026BoostLoRA: Growing Effective Rank by Boosting Adapters30 Apr 2026
- 2026WebGen-R1: Incentivizing Large Language Models to Generate Functional and Aesthetic Websites with Reinforcement Learning22 Apr 2026
- 2026AutoOR: Scalably Post-training LLMs to Autoformulate Operations Research Problems18 Apr 2026
- 2026The Past Is Not Past: Memory-Enhanced Dynamic Reward Shaping13 Apr 2026
- 2026Supervised Fine-Tuning versus Reinforcement Learning: A Study of Post-Training Methods for Large Language Models14 Mar 2026
- 2026Improving HPC Code Generation Capability of LLMs via Online Reinforcement Learning with Real-Machine Benchmark Rewards12 Feb 2026
- 2026CVeDRL: An Efficient Code Verifier via Difficulty-aware Reinforcement Learning30 Jan 2026
- 2026TerraFormer: Automated Infrastructure-as-Code with LLMs Fine-Tuned via Policy-Guided Verifier Feedback13 Jan 2026
- 2025CosmoCore-Evo: Evolutionary Dream-Replay Reinforcement Learning for Adaptive Code Generation20 Dec 2025
- 2025QiMeng-CRUX: Narrowing the Gap Between Natural Language and Verilog via Core Refined Understanding eXpression for Circuit Design25 Nov 2025
12 newest of 38 All 38 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2023Execution-based Code Generation using Deep Reinforcement Learning
- 2025CodeRL+: Improving Code Generation via Reinforcement with Execution Semantics Alignment
- 2024Generating Code World Models with Large Language Models Guided by Monte Carlo Tree Search
- 2025Teaching Language Models to Critique via Reinforcement Learning
- 2025Rethinking Verification for LLM Code Generation: From Generation to Testing
- 2026SpecCoder: Specification-Aware Code Generation with Curriculum Dual-Task Reinforcement Learning ↗
- 2026Performance, Efficiency and Collapse -- Advantages and Challenges in Offline Post-training of Code LLMs
- 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedback