2025-02-06 · 专家 · 机器学习 · 自然语言处理

LIMO: Less is More for Reasoning

本文提出了一种名为LIMO的数学推理模型,通过使用少量高质量的训练样本,显著提升了大型语言模型在数学推理任务上的性能。

更新于 2025-02-06。作者:Yixin Ye、Zhen Huang、Yang Xiao、Ethan Chern、Shijie Xia、Pengfei Liu。

中文摘要

我们提出了一项基本发现,挑战了我们对于复杂推理在大语言模型中如何出现的理解。虽然传统观点认为,复杂的推理任务需要大量的训练数据(超过10万例子),但我们证明,通过惊人的少量例子,可以有效地激发复杂的数学推理能力。通过全面的实验,我们提出的模型LIMO在数学推理方面展现了前所未有的性能。仅使用817个精心挑选的训练样本,LIMO在AIME上的准确率达到57.1%,在MATH上达到94.8%,分别比之前基于SFT的模型提高了6.5%和59.2%,而所需训练数据仅为之前方法的1%。LIMO展现了出色的跨分布泛化能力,在10个不同的基准测试中实现了40.5%的绝对改进,超过了训练数据量是其100倍的模型,挑战了SFT导致的是记忆而不是泛化的观点。基于这些结果,我们提出了“少即是多推理假设”(LIMO假设):在基础模型中,如果领域知识在预训练期间已被全面编码,那么通过最小但精确协调的认知过程演示,可以产生复杂的推理能力。这个假设认为,复杂推理的激发阈值由两个关键因素决定:(1)模型在预训练期间编码的知识基础的完整性;(2)后训练例子作为“认知模板”的有效性,它向模型展示如何利用其知识库来解决复杂的推理任务。为了促进数据高效推理的可重复性和未来研究,我们将在https://github.com/GAIR-NLP/LIMO上发布LIMO作为一个全面的开源套件。

英文摘要

We present a fundamental discovery that challenges our understanding of how complex reasoning emerges in large language models. While conventional wisdom suggests that sophisticated reasoning tasks demand extensive training data (>100,000 examples), we demonstrate that complex mathematical reasoning abilities can be effectively elicited with surprisingly few examples. Through comprehensive experiments, our proposed model LIMO demonstrates unprecedented performance in mathematical reasoning. With merely 817 curated training samples, LIMO achieves 57.1% accuracy on AIME and 94.8% on MATH, improving from previous SFT-based models' 6.5% and 59.2% respectively, while only using 1% of the training data required by previous approaches. LIMO demonstrates exceptional out-of-distribution generalization, achieving 40.5% absolute improvement across 10 diverse benchmarks, outperforming models trained on 100x more data, challenging the notion that SFT leads to memorization rather than generalization. Based on these results, we propose the Less-Is-More Reasoning Hypothesis (LIMO Hypothesis): In foundation models where domain knowledge has been comprehensively encoded during pre-training, sophisticated reasoning capabilities can emerge through minimal but precisely orchestrated demonstrations of cognitive processes. This hypothesis posits that the elicitation threshold for complex reasoning is determined by two key factors: (1) the completeness of the model's encoded knowledge foundation during pre-training, and (2) the effectiveness of post-training examples as "cognitive templates" that show the model how to utilize its knowledge base to solve complex reasoning tasks. To facilitate reproducibility and future research in data-efficient reasoning, we release LIMO as a comprehensive open-source suite at https://github.com/GAIR-NLP/LIMO.

解读

一句话总结

本文提出了一种名为LIMO的数学推理模型,通过使用少量高质量的训练样本,显著提升了大型语言模型在数学推理任务上的性能。

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

• 问题背景:传统观点认为,复杂的推理任务需要大量的训练数据(通常超过10万个例子)。 • 现有方案不足:大量数据的需求导致计算成本高、数据收集困难,且可能仅仅导致模型记忆而非真正的泛化。 • 研究目标:通过使用少量高质量的训练样本,开发一个能够有效进行复杂数学推理的模型。

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

• 技术创新:LIMO模型通过使用少量高质量的训练样本,在数学推理任务上取得了显著的性能提升。 • 方法改进:LIMO模型通过精心设计的数据集和推理链,有效地激活了模型中预训练的知识。 • 优势:与使用大量数据的模型相比,LIMO模型在相同任务上的性能提升了数十倍,同时计算成本和数据处理负担显著降低。

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

• 关键实验:在多个数学推理基准测试中,LIMO模型在仅使用817个训练样本的情况下,取得了优异的性能。 • 性能提升:在AIME基准测试中,LIMO模型的准确率从之前的6.5%提升到57.1%;在MATH基准测试中,准确率从59.2%提升到94.8%。 • 对比结果:LIMO模型在多个基准测试中均优于使用100倍以上数据的模型。

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

• 应用场景:LIMO模型可以应用于教育、科学研究、工业应用等领域,帮助解决复杂的数学问题。 • 实施建议:为了提高模型的性能,建议使用高质量的数据集和推理链,并关注模型的预训练知识和推理时间的计算资源。 • 局限与展望:LIMO模型目前仅限于数学推理任务,未来研究可以探索其在其他推理任务中的应用,并进一步优化模型的设计。

来源