2025-02-12 · 进阶 · 自然语言处理 · 机器学习

LLMs Can Easily Learn to Reason from Demonstrations Structure, not content, is what matters!

本文提出了一种通过数据高效和参数高效的监督微调和低秩自适应来训练大型语言模型进行长链思维推理的方法,发现长链思维的结构对于学习过程至关重要,而单个推理步骤的内容影响较小。

更新于 2025-02-12。作者:Dacheng Li、Shiyi Cao、Tyler Griggs、Shu Liu、Xiangxi Mo、Shishir G. Patil、Matei Zaharia、Joseph E. Gonzalez、Ion Stoica。

中文摘要

大型推理模型(LRMs)通过遵循包含反思、回溯和自我验证的长链式思维(Long CoT)来处理复杂的推理问题。然而,引发长链式思维所需的训练技术和数据要求仍然了解甚少。在这项工作中,我们发现大型语言模型(LLM)可以通过数据高效的监督微调(SFT)和参数高效的低秩自适应(LoRA)有效地学习长链式思维推理。仅使用17k个长链式思维训练样本,Qwen2.5-32B-Instruct模型在包括AIME 2024的56.7%(+40.0%)和LiveCodeBench的57.0%(+8.1%)在内的广泛数学和编码基准测试中实现了显著提升,这与专有o1-preview模型的44.6%和59.1%的得分相当。更重要的是,我们发现长链式思维的结构对于学习过程至关重要,而单个推理步骤的内容影响微乎其微。影响内容的变化,如使用错误样本进行训练或删除推理关键词,对性能的影响很小。相反,破坏长链式思维逻辑一致性的结构修改,如打乱或删除推理步骤,会显著降低准确性。例如,在训练带有错误答案的长链式思维样本上,模型仍然比使用完全正确样本训练的模型仅低3.2%的准确性。这些见解加深了我们对于如何在LLMs中引发推理能力理解,并突出了高效训练下一代推理模型的关键考虑因素。这是我们之前发布的Sky-T1-32B-Preview模型的学术论文。代码可在https://github.com/NovaSky-AI/SkyThought上找到。

英文摘要

Large reasoning models (LRMs) tackle complex reasoning problems by following long chain-of-thoughts (Long CoT) that incorporate reflection, backtracking, and self-validation. However, the training techniques and data requirements to elicit Long CoT remain poorly understood. In this work, we find that a Large Language model (LLM) can effectively learn Long CoT reasoning through data-efficient supervised fine-tuning (SFT) and parameter-efficient low-rank adaptation (LoRA). With just 17k long CoT training samples, the Qwen2.5-32B-Instruct model achieves significant improvements on a wide range of math and coding benchmarks, including 56.7% (+40.0%) on AIME 2024 and 57.0% (+8.1%) on LiveCodeBench, competitive to the proprietary o1-preview model's score of 44.6% and 59.1%. More importantly, we find that the structure of Long CoT is critical to the learning process, whereas the content of individual reasoning steps has minimal impact. Perturbations affecting content, such as training on incorrect samples or removing reasoning keywords, have little impact on performance. In contrast, structural modifications that disrupt logical consistency in the Long CoT, such as shuffling or deleting reasoning steps, significantly degrade accuracy. For example, a model trained on Long CoT samples with incorrect answers still achieves only 3.2% lower accuracy compared to training with fully correct samples. These insights deepen our understanding of how to elicit reasoning capabilities in LLMs and highlight key considerations for efficiently training the next generation of reasoning models. This is the academic paper of our previous released Sky-T1-32B-Preview model. Codes are available at https://github.com/NovaSky-AI/SkyThought.

解读

一句话总结

本文提出了一种通过数据高效和参数高效的监督微调和低秩自适应来训练大型语言模型进行长链思维推理的方法,发现长链思维的结构对于学习过程至关重要,而单个推理步骤的内容影响较小。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt