mlsanityData to 14 Oct 2026

Domain-Adaptable Reinforcement Learning for Code Generation with Dense Rewards

arXiv 2605.21180 ↗First posted 20 May 2026cs.LG cs.SEcited by 0

Not on the map. Why?

Abstract (arXiv)

Large language models show strong potential for automated code generation, but lack guarantees for correctness, quality, safety, and domain-specific constraints. For instance in robotics, where code generation is increasingly being used for planning and executing actions, awareness of the environment and physical constraints is critical. To facilitate the adaption of code-generating LLMs to diverse requirements, including domain-specific ones, we present a reinforcement learning framework that fine-tunes pre-trained LLMs using proximal policy optimization. Our customizable execution-aware reward formula captures and optimizes syntax, functional correctness, code style, security, and simulator executability. A token-level reward mapping mechanism enables effective credit assignment from execution outcomes to generated tokens. The framework is evaluated on general-purpose code generation (MBPP/MBPP+) and robotic program synthesis (RoboEval). The results show substantial improvements in functional correctness and simulator executability, including an absolute pass@1 increase of 19% on MBPP and a reduction in execution failures by 51% on RoboEval. These findings demonstrate that structured reinforcement learning can effectively align language models to correct program generation and domain-specific requirements.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 20 of its 24 references that are in the map. First posted on arXiv 20 May 2026.

Builds on

20 of 24 references.

References · 20

  1. 2017Proximal Policy Optimization Algorithmscited by 15,215
  2. 2021Program Synthesis with Large Language Modelscited by 3,637
  3. 2023PaLM-E: An Embodied Multimodal Language Modelcited by 2,071
  4. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  5. 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,210
  6. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  7. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  8. 2022Inner Monologue: Embodied Reasoning through Planning with Language Modelscited by 1,081
  9. 2022LLM-Planner: Few-Shot Grounded Planning for Embodied Agents with Large Language Modelscited by 462
  10. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
  11. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 358
  12. 2026Reinforcement Learning via Self-Distillationcited by 332
8 more
  1. 2023Execution-based Code Generation using Deep Reinforcement Learningcited by 99
  2. 2024SynCode: LLM Generation with Grammar Augmentationcited by 69
  3. 2025OpenCodeInstruct: A Large-scale Instruction Tuning Dataset for Code LLMscited by 60
  4. 2023Deploying and Evaluating LLMs to Program Service Mobile Robotscited by 36
  5. 2024RoboScript: Code Generation for Free-Form Manipulation Tasks across Real and Simulationcited by 26
  6. 2024LLMs for Coding and Robotics Educationcited by 9
  7. 2024Robo-Instruct: Simulator-Augmented Instruction Alignment For Finetuning Code LLMscited by 6
  8. 2025An LLM-powered Natural-to-Robotic Language Translation Framework with Correctness Guaranteescited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024Process Supervision-Guided Policy Optimization for Code Generation
  2. 2025Integrating Symbolic Execution into the Fine-Tuning of Code-Generating LLMs
  3. 2026MaxCode: A Max-Reward Reinforcement Learning Framework for Automated Code Optimization
  4. 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learning
  5. 2024Enhancing Code LLMs with Reinforcement Learning in Code Generation: A Survey
  6. 2024StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedback
  7. 2026Improving Small Language Models for Code Generation with Reinforcement Learning from Verification Feedback
  8. 2025RoboInspector: Unveiling the Unreliability of Policy Code for LLM-enabled Robotic Manipulation