mlsanityData to 14 Oct 2026

Towards Better Correctness and Efficiency in Code Generation

arXiv 2508.20124 ↗First posted 24 Aug 2025cs.SE cs.AIcited by 9

Not on the map. Why?

Abstract (arXiv)

While code large language models have demonstrated remarkable progress in code generation, the generated code often exhibits poor runtime efficiency, limiting its practical application in performance-sensitive scenarios. To address this limitation, we propose an efficiency-oriented reinforcement learning framework guided by a novel performance reward. Based on this framework, we take a deeper dive into the code efficiency problem, identifying then proposing methods to overcome key bottlenecks: (1) Dynamic exploration overcomes the static data constraints of offline fine-tuning, enabling the discovery of more efficient code implementations. (2) The error-insensitive reinforcement learning method and high-contrast efficiency signals are crucial for mitigating systematic errors and achieving effective optimization. (3) Online exploration is most effective when starting from a high-correctness baseline, as this allows for efficiency improvements without sacrificing accuracy. With these discoveries, we finally propose a two-stage tuning method, which achieves high and balanced performance across correctness and efficiency. The results of experiments show the effectiveness of the method, which improves code correctness by 10.18% and runtime efficiency by 7.75% on a 7B model, achieving performance comparable to much larger model.

Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 11 of its 19 references that are in the map. First posted on arXiv 24 Aug 2025.

Builds on

11 of 19 references.

References · 11

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  3. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  4. 2023Qwen Technical Reportcited by 3,344
  5. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
  6. 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,464
  7. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  8. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
  9. 2024Evaluating Language Models for Efficient Code Generationcited by 73
  10. 2024ACECode: A Reinforcement Learning Framework for Aligning Code Efficiency and Correctness in Code Language Modelscited by 10
  11. 2025LLM4EFFI: Leveraging Large Language Models to Enhance Code Efficiency and Correctnesscited by 10

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 6.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Afterburner: Reinforcement Learning Facilitates Self-Improving Code Efficiency Optimization
  2. 2024Enhancing Code LLMs with Reinforcement Learning in Code Generation: A Survey
  3. 2024StepCoder: Improve Code Generation with Reinforcement Learning from Compiler Feedback
  4. 2026RLPF: Reinforcement Learning from Performance Feedback for Code Generation
  5. 2026MaxCode: A Max-Reward Reinforcement Learning Framework for Automated Code Optimization
  6. 2024Process Supervision-Guided Policy Optimization for Code Generation
  7. 2023Execution-based Code Generation using Deep Reinforcement Learning
  8. 2026Reinforcement Learning for Code Optimization