跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 机器学习

arXiv:2602.03806 (cs)
[提交于 2026年2月3日 (v1),最后修订于 2026年10月8日 (此版本, v2)]

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

作者:Ziru Chen, Dongdong Chen, Ruinan Jin, Yingbin Liang, Yujia Xie, Huan Sun
查看论文《COBALT: Contextual Bandit Learning with Offline Trajectories for Multi-Turn Code Generation》的 PDF
查看中文 PDF 查看原文 PDF EasyResearch 阅读
摘要:Training large language models (LLMs) for multi-turn code generation typically relies on online reinforcement learning (RL), in which models learn from repeatedly generated online rollouts. Although effective, online RL can be costly and unstable. In this paper, we present contextual bandit learning with offline trajectories (COBALT), a simple method that reuses offline multi-turn trajectories to efficiently train LLMs for multi-turn code generation. Building on the observation that multi-turn code generation is a one-step recoverable Markov decision process, COBALT first collects code generation trajectories using a reference LLM and divides them into partial trajectories. Then, during online bandit learning, the LLM is trained to complete each partial trajectory through single-step code generation. On LiveCodeBench, COBALT substantially improves R1-Distill 8B and Qwen3 8B by up to 9.0 and 6.2 absolute Pass@1 points and matches the performance of two multi-turn online RL baselines using GRPO and VeRPO. We also perform a perturbation-based analysis of in-context reward hacking and show that Cobalt can improve robustness to misleading execution feedback. Overall, our results demonstrate that Cobalt is a promising solution for multi-turn code generation. Our code and data are available at https://github.com/OSU-NLP-Group/cobalt.
评论: TMLR camera ready
主题: 机器学习 (cs.LG); 人工智能 (cs.AI); 计算与语言 (cs.CL); 软件工程 (cs.SE)
引用方式: arXiv:2602.03806 [cs.LG]
  (或者 arXiv:2602.03806v2 [cs.LG] 对于此版本)
  https://doi.org/10.48550/arXiv.2602.03806

提交历史

来自:Ziru Chen
[v1] 2026年2月3日 星期二 18:08:41 UTC (264 KB)
[v2] 2026年10月8日 星期四 22:26:23 UTC (1,722 KB)
全文链接:

访问论文:

  • 查看中文 PDF
  • 查看原文 PDF
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.AI
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-10
切换浏览方式为:
cs
cs.LG
cs.CL
cs.SE

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站