arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.06953cs.CLcs.LG
收藏

X-Coder:通过完全合成任务、解决方案和测试推进竞争性编程

X-Coder: Advancing Competitive Programming with Synthetic Tasks, Solutions, and Tests

Tsinghua University(清华大学);Microsoft Research(微软研究院);Wuhan University(武汉大学)

Jie Wu, Haoling Li, Xin Zhang, Jiani Guo, Jane Luo, Xuewei Yang, Steven Liu, Yangyu Huang, Ruihang Chu, Scarlett Li, Yujiu Yang

AI总结:

X-Coder通过完全合成数据提升竞争性编程模型性能,采用领域特定进化和双验证策略,在LiveCodeBench上取得显著成果。

摘要:

竞争性编程对代码大语言模型构成了重大挑战。尽管最近的模型展现出潜力,但它们严重依赖有限的现实世界数据,引发了可扩展性和污染的担忧。在本文中,我们探讨了一个关键问题:能否通过完全合成数据将模型提升到专家级推理性能?为此,我们首先观察到现成的合成方法在此领域效果不佳。为了解决这一问题,我们系统地研究了决定合成数据质量的关键因素。利用这些发现,我们通过领域特定的进化和双验证策略显著推进了基于特征的合成范式,促进任务可解性、解决方案正确性和测试准确性。使用这种高质量的合成数据,我们按照SFT-然后-RL范式训练X-Coder模型系列。X-Coder-7B在具有挑战性的LiveCodeBench v5(62.9% avg@8)和v6(55.8% avg@8)上表现出显著的性能提升,优于在现实世界数据上训练的更大模型。广泛的分析得出了关于合成数据扩展、领域适应特征进化必要性和代码中心强化的宝贵见解。

英文摘要:

Competitive programming remains challenging for code LLMs. Despite recent progress, many training pipelines still depend on scarce real-world data, raising concerns about scalability and near-duplicate benchmark contamination. In this paper, we examine whether synthetic training artifacts can support the complete SFT-to-RL cycle for competitive programming: no real-world tasks, solutions, or test cases are directly used for post-training. To this end, we synthesize tasks, verified solutions, and reliable test cases that serve as reward signals for reinforcement learning. To improve reward reliability, we introduce a dual-verification strategy that reduces noise in both selected solutions and test outputs. Using this high-quality data, we train the X-Coder model series. X-Coder-14B achieves 67.5\% avg@8 on LiveCodeBench v5 and 63.4\% on v6, outperforming its base model by over 40 points. Further analysis provides practical insights into synthetic post-training, highlighting the value of diverse tasks, verified long-CoT supervision, and code-centric reinforcement. Our data and models are released at https://github.com/JieWu02/X-Coder

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

↑