arXiv Computation and Language
Nov 6

Enhancing Repository-Level Code Completion with Reinforcement Learning in Real-World Scenarios

The paper introduces a reinforcement learning framework to improve repository-level code completion for large language models. It uses identifier-driven intent recognition to better capture in-file and cross-file contexts, and a reward-driven learning strategy to enhance reasoning across files. A selective-exploration method directs the model toward low-confidence, high-reward tokens, leading to significant performance gains in real-world scenarios.

By Zhenlong Dai, Zhuoluo Zhao, Xiu Tang, Sai Wu, Chang Yao, Zhipeng Gao, Jingyuan Chen
arXiv AI
Oct 12

COBALT: Contextual Bandit Learning with Offline Trajectories for Multi-Turn Code Generation

COBALT is a contextual bandit learning method that reuses offline multi-turn code generation trajectories to train large language models efficiently. It treats multi-turn code generation as a one-step recoverable Markov decision process, collecting partial trajectories from a reference LLM and training the target model to complete each partial trajectory in a single step. Experiments on LiveCodeBench show that COBALT improves Pass@1 scores for R1-Distill 8B and Qwen3 8B by up to 9.0 and 6.2 points, matches the performance of two online RL baselines, and enhances robustness against misleading execution feedback.

By Ziru Chen, Dongdong Chen, Ruinan Jin, Yingbin Liang, Yujia Xie, Huan Sun
arXiv AI
Sep 21

BoostAPR: Boosting Automated Program Repair via Execution-Grounded Reinforcement Learning with Dual Reward Models

BoostAPR is a three-stage framework that improves automated program repair by using execution-grounded reinforcement learning with dual reward models. The approach first fine‑tunes a model on execution‑verified demonstrations, then trains a sequence‑level assessor and a line‑level credit allocator from execution outcomes, and finally applies PPO optimization where the line‑level model redistributes rewards to critical edit regions. Evaluated on SWE‑Gym and four benchmarks, BoostAPR achieves significant gains, including 40.7% on SWE‑bench Verified and 95.0% on QuixBugs, demonstrating strong cross‑language generalization.

By Yuanhao Li, Hongbo Wang, Xiaotang Shang, Xunzhu Tang, Yiming Cao, Xuhong Chen
arXiv AI
Sep 21

CodeMidas: Scaling Agentic Coding RL Environments from Code Itself

arXiv:2609.22068v1 Announce Type: new Abstract: Training capable coding agents via reinforcement learning (RL) requires diverse tasks with reliable verifiers. Open-source codebases offer a rich sourc...

By Bowen Ye, Lei Li, Shicheng Li, Zihao Yue, Linghao Zhang, Hanglong Lv, Yuanxin Liu, Wenhan Ma, Hao Tian, Rang Li, Jinhao Dong, Yikai Zhao, Xiangwei Deng, Hailin Zhang, Liang Zhao, Qi Liu, Lingpeng Kong, Tong Yang, Fuli Luo