arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.23208cs.LGcs.AI
收藏

通过多样化合成编码任务提升大语言模型编码能力

Increasing LLM Coding Capabilities through Diverse Synthetic Coding Tasks

University of Freiburg(弗赖堡大学);ELLIS Institute Tübingen(图宾根ELLIS研究所);Open-Sci Collective(开放科学集体);LAION;Prior Labs(Prior实验室)

Amal Abed, Ivan Lukic, Jörg K. H. Franke, Frank Hutter

AI总结:

本研究提出可扩展合成数据流水线,生成近80万条含推理轨迹的指令-代码-测试四元组,通过遗传变异增强多样性,微调LLM后显著提升编码基准性能,并证明推理感知数据可替代模型扩展。

摘要:

大语言模型(LLM)在代码生成方面展现出令人瞩目的潜力,但其进展仍受限于缺乏既多样化又与人类推理高度对齐的大规模数据集。现有大多数资源将问题与解决方案配对,却省略了指导编码的中间思维过程。为弥补这一差距,我们提出了一种可扩展的合成数据生成流水线,该流水线可生成近80万条指令-推理-代码-测试四元组。每个样本包含一个任务、逐步推理轨迹、可运行的解决方案以及可执行测试,使模型不仅学习“是什么”,还学习“如何做”的解决问题过程。我们的流水线结合了四个关键组件:精选竞赛问题、经相关性分类器过滤的网络挖掘内容、由推理模式引导的数据扩展,以及多阶段基于执行的验证。一种遗传变异算法进一步增加了任务多样性,同时保持推理轨迹与代码实现之间的一致性。我们的关键发现是,在此数据集上对LLM进行微调可在编码基准上带来持续改进。除了原始准确率外,推理感知数据可替代模型扩展,跨架构泛化,并在相同样本预算下优于领先的开源替代方案。我们的工作确立了以推理为中心的合成数据生成作为提升LLM编码能力的有效途径。我们公开了数据集和生成流水线,以促进进一步研究。

英文摘要:

Large language models (LLMs) have shown impressive promise in code generation, yet their progress remains limited by the shortage of large-scale datasets that are both diverse and well-aligned with human reasoning. Most existing resources pair problems with solutions, but omit the intermediate thought process that guides coding. To close this gap, we present a scalable synthetic data generation pipeline that produces nearly 800k instruction-reasoning-code-test quadruplets. Each sample combines a task, a step-by-step reasoning trace, a working solution, and executable tests, enabling models to learn not just the what but also the how of problem solving. Our pipeline combines four key components: curated contest problems, web-mined content filtered by relevance classifiers, data expansion guided by reasoning patterns, and multi-stage execution-based validation. A genetic mutation algorithm further increases task diversity while maintaining consistency between reasoning traces and code implementations. Our key finding is that fine-tuning LLMs on this dataset yields consistent improvements on coding benchmarks. Beyond raw accuracy, reasoning-aware data can substitute for model scaling, generalize across architectures, and outperform leading open-source alternatives under identical sample budgets. Our work establishes reasoning-centered synthetic data generation as an efficient approach for advancing coding capabilities in LLMs. We publish our dataset and generation pipeline to facilitate further research.

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

↑