arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.02387cs.SEcs.AIcs.LG
收藏

CWM:一个用于基于世界模型的代码生成研究的开放权重LLM

CWM: An Open-Weights LLM for Research on Code Generation with World Models

Meta;FAIR CodeGen Team(FAIR CodeGen团队)
FAIR CodeGen team, Jade Copet, Quentin Carbonneaux, Gal Cohen, Jonas Gehring, Jacob Kahn, Jannik Kossen, Felix Kreuk, Emily McMilin, Michel Meyer, Yuxiang Wei, … 展开作者

FAIR CodeGen team, Jade Copet, Quentin Carbonneaux, Gal Cohen, Jonas Gehring, Jacob Kahn, Jannik Kossen, Felix Kreuk, Emily McMilin, Michel Meyer, Yuxiang Wei, David Zhang, Kunhao Zheng, Jordi Armengol-Estapé, Pedram Bashiri, Maximilian Beck, Pierre Chambon, Abhishek Charnalia, Chris Cummins, Juliette Decugis, Zacharias V. Fisches, François Fleuret, Fabian Gloeckle, Alex Gu, Michael Hassid, Daniel Haziza, Badr Youbi Idrissi, Christian Keller, Rahul Kindi, Hugh Leather, Gallil Maimon, Aram Markosyan, Francisco Massa, Pierre-Emmanuel Mazaré, Vegard Mella, Naila Murray, Keyur Muzumdar, Peter O'Hearn, Matteo Pagliardini, Dmitrii Pedchenko, Tal Remez, Volker Seeker, Marco Selvi, Oren Sultan, Sida Wang, Luca Wehrstedt, Ori Yoran, Lingming Zhang, Taco Cohen, Yossi Adi, Gabriel Synnaeve

AI总结:

本文发布了320亿参数的开放权重LLM CWM,通过在Python解释器和Docker环境的轨迹上中期训练及多任务推理强化学习,为基于世界模型的代码生成研究提供测试平台,并在多项编码与数学基准上取得卓越性能。

摘要:

我们发布了 Code World Model (CWM),一个拥有 320 亿参数的开放权重 LLM,以推进基于世界模型的代码生成研究。为了超越仅从静态代码训练中所学到的代码理解能力,我们在来自 Python 解释器和智能体 Docker 环境的大量观察-动作轨迹上对 CWM 进行了中期训练,并在可验证的编码、数学和多轮软件工程环境中进行了广泛的多任务推理 RL。借助 CWM,我们为研究人员提供了一个强大的测试平台,以探索世界建模为在计算环境中通过推理和规划改进代码生成所带来的机遇。我们展示了世界模型如何有益于智能体编码的初步步骤,实现了 Python 代码执行的逐步模拟,并展示了推理如何从后者中受益的早期结果。CWM 是一个密集的、仅解码器 LLM,训练时使用的上下文大小高达 131k tokens。独立于其世界建模能力,CWM 在通用编码和数学任务上表现出色:它在 SWE-bench Verified 上达到 65.8% 的 pass@1 分数(带有测试时扩展),在 LiveCodeBench 上为 68.6%,在 Math-500 上为 96.6%,在 AIME 2024 上为 76.0%。为了支持代码世界建模的进一步研究,我们发布了中期训练、SFT 和 RL 之后的模型检查点。

英文摘要:

We release Code World Model (CWM), a 32-billion-parameter open-weights LLM, to advance research on code generation with world models. To improve code understanding beyond what can be learned from training on static code alone, we mid-train CWM on a large amount of observation-action trajectories from Python interpreter and agentic Docker environments, and perform extensive multi-task reasoning RL in verifiable coding, math, and multi-turn software engineering environments. With CWM, we provide a strong testbed for researchers to explore the opportunities world modeling affords for improving code generation with reasoning and planning in computational environments. We present first steps of how world models can benefit agentic coding, enable step-by-step simulation of Python code execution, and show early results of how reasoning can benefit from the latter. CWM is a dense, decoder-only LLM trained with a context size of up to 131k tokens. Independent of its world modeling capabilities, CWM offers strong performance on general coding and math tasks: it reaches pass@1 scores of 65.8% on SWE-bench Verified (with test-time scaling), 68.6% on LiveCodeBench, 96.6% on Math-500, and 76.0% on AIME 2024. To support further research on code world modeling, we release model checkpoints after mid-training, SFT, and RL.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑