arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.01600cs.AI
收藏

MM-ReCoder:通过强化学习和自我校正推进图表到代码生成

MM-ReCoder: Advancing Chart-to-Code Generation with Reinforcement Learning and Self-Correction

Brown University(布朗大学);Amazon AGI(亚马逊AGI)

Zitian Tang, Xu Zhang, Jianbo Yuan, Yang Zou, Varad Gunjal, Songyao Jiang, Davide Modolo

AI总结:

MM-ReCoder通过强化学习和自我校正机制提升图表到代码生成能力,其两阶段多轮自我校正策略基于Group Relative Policy Optimization,提升代码准确性和可执行性。

摘要:

多模态大语言模型(MLLMs)近期在多模态编码任务如图表到代码生成中展示了有前景的能力。然而,现有方法主要依赖于监督微调(SFT),要求模型通过图表-代码对学习代码模式,但不暴露模型于代码执行环境。此外,尽管通过执行反馈的自我校正提供了一条提升编码质量的潜在途径,即使最先进的MLLMs也被显示在有效的自我校正上存在困难。在本工作中,我们引入了MM-ReCoder,一种通过强化学习(RL)训练并配备自我校正能力的图表到代码生成模型。我们提出了一种基于组相对策略优化(GRPO)的两阶段多轮自我校正RL策略。第一阶段通过滚动共享首轮增强模型的自我校正能力,第二阶段通过完整轨迹优化提升编码能力。MM-ReCoder通过与环境的交互和不断校正自身输出来学习生成更准确和可执行的代码。在三个图表到代码基准测试中的结果展示了MM-ReCoder的最先进性能。

英文摘要:

Multimodal Large Language Models (MLLMs) have recently demonstrated promising capabilities in multimodal coding tasks such as chart-to-code generation. However, existing methods primarily rely on supervised fine-tuning (SFT), which requires the model to learn code patterns through chart-code pairs but does not expose the model to a code execution environment. Moreover, while self-correction through execution feedback offers a potential route to improve coding quality, even state-of-the-art MLLMs have been shown to struggle with effective self-correction. In this work, we introduce MM-ReCoder, a chart-to-code generation model trained with reinforcement learning (RL) and equipped with self-correction ability. We propose a two-stage multi-turn self-correction RL strategy based on Group Relative Policy Optimization (GRPO). The first stage enhances the model's self-correction ability via rolling out a shared first turn, while the second stage improves the coding capability with full-trajectory optimization. MM-ReCoder learns to produce more accurate and executable code through the interaction with the environment and by iteratively correcting its own outputs. Our results on three chart-to-code benchmarks demonstrate the state-of-the-art performance of MM-ReCoder.

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

↑