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

OpenCodeReasoning-II:一种基于自我批评的简单测试时间扩展方法

OpenCodeReasoning-II: A Simple Test Time Scaling Approach via Self-Critique

NVIDIA Santa Clara, CA 95051, USA(英伟达圣克拉拉分校)

Wasi Uddin Ahmad, Somshubra Majumdar, Aleksander Ficek, Sean Narenthiran, Mehrzad Samadi, Jocelyn Huang, Siddhartha Jain, Vahid Noroozi, Boris Ginsburg

AI总结:

本文提出OpenCodeReasoning-II数据集及两阶段监督微调策略,通过联合训练代码生成与批评模型提升LLM在竞技编程中的测试时间扩展性能,并扩展LiveCodeBench以支持C++。

摘要:

基于推理的大型语言模型(LLM)的最新进展,特别是通过测试时间扩展的潜力,为代码生成和批评的蒸馏创造了重要机遇。然而,这两个领域的进展从根本上依赖于大规模、高质量的数据集。在这项工作中,我们引入了OpenCodeReasoning-II,该数据集包含250万个问题-解决方案-批评三元组(约3.5万个独特的编程问题),使其规模几乎是此前最大的公开可用代码推理数据集的两倍。我们采用两阶段监督微调策略。第一阶段专注于代码生成的微调,第二阶段则对模型进行代码生成和批评的联合训练。我们最终微调的Qwen2.5-Instruct模型在代码生成方面取得了超越或持平于先前最佳开源权重蒸馏模型的性能。值得注意的是,将我们的代码生成和批评模型相结合,显著提升了竞技编程的性能。此外,我们对LiveCodeBench基准进行了扩展,以专门支持C++编程语言,从而促进使用该基准进行更全面的LLM评估。

英文摘要:

Recent advancements in reasoning-based Large Language Models (LLMs), particularly their potential through test-time scaling, have created significant opportunities for distillation in code generation and critique. However, progress in both areas fundamentally depends on large-scale, high-quality datasets. In this work, we introduce OpenCodeReasoning-II, a dataset consists of 2.5M question-solution-critique triples (approx. 35K unique programming questions), making it nearly twice the size of the previous largest publicly available code reasoning dataset. In this work, we employ a two-stage supervised fine-tuning strategy. The first stage focuses on fine-tuning for code generation, while the second stage involves the joint training of models for both code generation and critique. Our resulting finetuned Qwen2.5-Instruct models achieve performance in code generation that either exceeds or equals the best prior open-weight distilled models. Notably, the integration of our code generation and critique models leads to significant improvements in competitive coding performance. Furthermore, we present an extension of the LiveCodeBench benchmark to specifically support the C++ programming language, thereby facilitating more comprehensive LLM evaluation using this benchmark.

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

↑