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

什么真正提升了数学推理:超越纯代码的结构化推理信号

What Really Improves Mathematical Reasoning: Structured Reasoning Signals Beyond Pure Code

State Key Laboratory of Cognitive Intelligence, University of Science(认知智能国家重点实验室,科学大学);Institute of Artificial Intelligence, Hefei Comprehensive National Science Centerce(人工智能研究院,合肥综合性国家科学中心);Individual Researcher(个人研究员);Zhejiang University, Hangzhou, China(浙江大学,杭州,中国)

Yuze Zhao, Junpeng Fang, Lu Yu, Zhenya Huang, Kai Zhang, Qing Cui, Qi Liu, Jun Zhou, Enhong Chen

AI总结:

本文通过控制预训练实验研究代码对推理能力的影响,发现代码主要提升编程能力而非通用推理,且在复杂数学推理中与知识密集型任务竞争,同时结构化推理轨迹(如代码-文本和数学-文本混合)比纯可执行代码更能提升推理能力。

摘要:

代码已成为现代基础语言模型(LM)训练中的标准组件,但其作用超越编程仍不明确。我们重新审视代码通过控制预训练实验在10T-token语料库上进行细粒度领域分离,发现三个结论。首先,当代码限制为独立可执行程序且Code-NL数据被控制时,代码显著提升编程能力,但不作为通用推理增强器,反而在复杂数学推理中与知识密集型任务竞争。其次,通常归因于代码的推理增益更可能由跨领域结构化推理轨迹(如代码-文本和数学-文本混合)解释,而非纯可执行代码。第三,在固定数学预算内增加结构化数学领域样本密度,能在困难数学推理上获得显著提升,同时基本保持编程性能,表明认知支架提供了一种有针对的缓解跨领域权衡的方法。最后,路由分析显示数据组合效应反映在专家激活模式中,为跨领域竞争和协同作用提供了机制层面的证据。我们的结果澄清了哪些数据特征在能力维度间转移,并指出了更精确的数据导向优化策略。

英文摘要:

Code has become a standard component of modern foundation language model (LM) training, yet its role beyond programming remains unclear. We revisit the claim that code improves reasoning through controlled pretraining experiments on a 10T-token corpus with fine-grained domain separation. Our findings are threefold. First, when code is restricted to standalone executable programs and Code-NL data are controlled for, code substantially improves programming ability but does not act as a general reasoning enhancer; instead, it competes with knowledge-intensive tasks, especially complex mathematical reasoning. Second, the reasoning gains often attributed to code are better explained by cross-domain structured reasoning traces, such as code-text and math-text mixtures, rather than by executable code alone. Third, increasing the density of structured math-domain samples within a fixed math budget yields substantial gains on difficult mathematical reasoning while largely preserving programming performance, suggesting that cognitive scaffolds offer a targeted way to mitigate cross-domain trade-offs. Finally, routing analyses show that data-composition effects are reflected in expert-activation patterns, providing mechanism-level evidence for competitive and synergistic interactions across domains. Our results clarify which data characteristics transfer across capability dimensions and point to more precise data-centric optimization strategies.

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

↑