mlsanityData to 14 Oct 2026

ReCode: Reinforcing Code Generation with Reasoning-Process Rewards

arXiv 2508.05170 ↗First posted 7 Aug 2025cs.SE cs.AI cs.CLcited by 25

On the map: LLM reasoning → Reinforcement learning for reasoning

also in 1 more
Abstract (arXiv)

In practice, rigorous reasoning is often a key driver of correct code, while Reinforcement Learning (RL) for code generation often neglects optimizing reasoning quality. Bringing process-level supervision into RL is appealing, but it faces two challenges. First, training reliable reward models to assess reasoning quality is bottlenecked by the scarcity of fine-grained preference data. Second, naively incorporating such neural rewards may suffer from reward hacking. This work proposes ReCode (Reasoning-Reinforced Code Generation), a novel RL training framework comprising: (1) Contrastive Reasoning-Process Reward Learning (CRPL), which trains a reward model with synthesized optimized and degraded reasoning variants to assess the quality of reasoning process; and (2) Consistency-Gated GRPO (CG-GRPO), which integrates the reasoning-process reward model into RL by gating neural reasoning-process rewards with strict execution outcomes, using execution correctness as a hard gate to mitigate reward hacking. Additionally, to assess the reward model's discriminative capability in assessing reasoning-process quality, we introduce LiveCodeBench-RewardBench (LCB-RB), a new benchmark comprising preference pairs of superior and inferior reasoning processes tailored for code generation. Experimental results across HumanEval(+), MBPP(+), LiveCodeBench, and BigCodeBench show that a 7B model trained with ReCode outperforms the base version by 16.1% and reaches performance comparable to GPT-4-Turbo. We further demonstrate the generalizability of ReCode by extending it to the math domain.

Key facts. Cited by 25 papers in the map (data through 14 Oct 2026). Placed in Reinforcement learning for reasoning, one of 17 directions in LLM reasoning. Builds on 23 of its 44 references that are in the map. First posted on arXiv 7 Aug 2025.

Builds on

23 of 44 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024Skywork-Reward: Bag of Tricks for Reward Modeling in LLMs24 Oct

Other references · 22

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  4. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  5. 2021Program Synthesis with Large Language Modelscited by 3,637
  6. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
  7. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
  8. 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,392
  9. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  10. 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,125
  11. 2023Prometheus: Inducing Fine-grained Evaluation Capability in Language Modelscited by 575
  12. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
10 more
  1. 2024RewardBench: Evaluating Reward Models for Language Modelingcited by 499
  2. 2022CodeT: Code Generation with Generated Testscited by 384
  3. 2024Large Language Models for Mathematical Reasoning: Progresses and Challengescited by 284
  4. 2024RM-Bench: Benchmarking Reward Models of Language Models with Subtlety and Stylecited by 176
  5. 2025ACECODER: Acing Coder RL via Automated Test-Case Synthesiscited by 93
  6. 2023Cost-Effective Hyperparameter Optimization for Large Language Model Generation Inferencecited by 40
  7. 2025Not All Correct Answers Are Equal: Why Your Distillation Source Matterscited by 25
  8. 2024How Numerical Precision Affects Arithmetical Reasoning Capabilities of LLMscited by 24
  9. 2025Chain-of-Thought Matters: Improving Long-Context Language Models with Reasoning Path Supervisioncited by 21
  10. 2024B4: Towards Optimal Assessment of Plausible Code Solutions with Plausible Testscited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 13; 2026: 12.

25 papers.

Sort:

By area:

  1. 2025The Landscape of Agentic Reinforcement Learning for LLMs: A Surveycited by 205
  2. 2026Code as Agent Harnesscited by 47
  3. 2025A Survey on Agentic Multimodal Large Language Modelscited by 23
  4. 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
  5. 2026Which Reasoning Trajectories Teach Students to Reason Better? A Simple Metric of Informative Alignmentcited by 13
  6. 2025Repurposing Synthetic Data for Fine-grained Search Agent Supervisioncited by 11
  7. 2025FastGRPO: Accelerating Policy Optimization via Concurrency-aware Speculative Decoding and Online Draft Learningcited by 9
  8. 2026Harnessing LLM Agents with Skill Programscited by 9
  9. 2025Enhancing Large Language Model Reasoning with Reward Models: An Analytical Surveycited by 8
  10. 2026Evidence-Augmented Policy Optimization with Reward Co-Evolution for Long-Context Reasoningcited by 7
  11. 2026Reward Modeling for Reinforcement Learning-Based LLM Reasoning: Design, Challenges, and Evaluationcited by 7
  12. 2026DeepInnovator: Triggering the Innovative Capabilities of LLMscited by 5
13 more
  1. 2025Putting on the Thinking Hats: A Survey on Chain of Thought Fine-tuning from the Perspective of Human Reasoning Mechanismcited by 4
  2. 2025Extending RLVR to Open-Ended Tasks via Verifiable Multiple-Choice Reformulationcited by 4
  3. 2025Information-Consistent Language Model Recommendations through Group Relative Policy Optimizationcited by 2
  4. 2026Efficient Paths and Dense Rewards: Probabilistic Flow Reasoning for Large Language Modelscited by 2
  5. 2026Learning to Generate Secure Code via Token-Level Rewardscited by 2
  6. 2025Towards Secure and Explainable Smart Contract Generation with Security-Aware Group Relative Policy Optimizationcited by 1
  7. 2025CLARity: Reasoning Consistency Alone Can Teach Reinforced Expertscited by 1
  8. 2026Skip-Connected Policy Optimization for Implicit Advantagecited by 1
  9. 2026Effective and Efficient Context Retrieval via Partial Dependency Graph for Repository-Level Code Generationcited by 1
  10. 2026Groupwise Agentic Grading and Advantage Redistribution for Code Agent RLcited by 1
  11. 2025Rewarding Structural Conformance of Reasoning using Process Miningcited by 0
  12. 2025Boosting RL-Based Visual Reasoning with Selective Adversarial Entropy Interventioncited by 0
  13. 2026Rewarding Better Thinking for LLM Preference Alignmentcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026When Do Intrinsic Rewards Work for Code Reasoning? A Comprehensive Study
  2. 2024Process Supervision-Guided Policy Optimization for Code Generation
  3. 2025Beyond Correctness: Harmonizing Process and Outcome Rewards through RL Training
  4. 2026Enhancing the Code Reasoning Capabilities of LLMs via Consistency-based Reinforcement Learning
  5. 2025Stop Summation: Min-Form Credit Assignment Is All Process Reward Model Needs for Reasoning
  6. 2023Let's reward step by step: Step-Level reward model as the Navigators for Reasoning
  7. 2026Improving Small Language Models for Code Generation with Reinforcement Learning from Verification Feedback
  8. 2025GenPRM: Scaling Test-Time Compute of Process Reward Models via Generative Reasoning