Reasoning to Learn from Latent Thoughts
该论文提出了一种通过推理学习来提高语言模型预训练数据效率的方法,通过推断文本背后的潜在思维来改善学习效率。
更新于 2025-03-26。作者:Yangjun Ruan、Neil Band、Chris J. Maddison、Tatsunori Hashimoto。
中文摘要
计算语言模型(LM)预训练的扩展速度超过了人类编写的文本增长,导致人们担忧数据将成为LM扩展的瓶颈。为了在数据受限的环境下继续扩展预训练,我们提出明确地建模和推断支撑文本生成过程的潜在思维,可以显著提高预训练数据效率。直观地说,我们的方法将网络文本视为冗长的人类思维过程的压缩最终结果,并且潜在思维包含了重要的上下文知识和推理步骤,这对于数据高效学习至关重要。我们通过数据受限的数学继续预训练实证展示了我们方法的有效性。我们首先表明,用于推断潜在思维的合成数据方法显著提高了数据效率,在相同数量的原始数据(5.7%提高到25.4%在MATH上)的培训中表现更优。此外,我们展示了在没有强大教师的情况下进行潜在思维推断的情况,其中LM通过使用EM算法迭代地提高训练LM的能力和思维增强预训练数据的质量来提升自己的性能。我们表明,一个10亿的LM可以在至少三个迭代中提升其性能,并且与在原始数据上训练的基线相比有显著提升,当执行E步时,随着额外的推断计算能力的增加,收益也随之增加。推断扩展和EM迭代的收益为新机会提供了数据受限预训练扩展的视角。
英文摘要
Compute scaling for language model (LM) pretraining has outpaced the growth of human-written texts, leading to concerns that data will become the bottleneck to LM scaling. To continue scaling pretraining in this data-constrained regime, we propose that explicitly modeling and inferring the latent thoughts that underlie the text generation process can significantly improve pretraining data efficiency. Intuitively, our approach views web text as the compressed final outcome of a verbose human thought process and that the latent thoughts contain important contextual knowledge and reasoning steps that are critical to data-efficient learning. We empirically demonstrate the effectiveness of our approach through data-constrained continued pretraining for math. We first show that synthetic data approaches to inferring latent thoughts significantly improve data efficiency, outperforming training on the same amount of raw data (5.7\% rightarrow 25.4\% on MATH). Furthermore, we demonstrate latent thought inference without a strong teacher, where an LM bootstraps its own performance by using an EM algorithm to iteratively improve the capability of the trained LM and the quality of thought-augmented pretraining data. We show that a 1B LM can bootstrap its performance across at least three iterations and significantly outperform baselines trained on raw data, with increasing gains from additional inference compute when performing the E-step. The gains from inference scaling and EM iterations suggest new opportunities for scaling data-constrained pretraining.
解读
一句话总结
该论文提出了一种通过推理学习来提高语言模型预训练数据效率的方法,通过推断文本背后的潜在思维来改善学习效率。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:语言模型预训练的数据规模已经超过了人类文本的增长速度,导致数据可能成为语言模型扩展的瓶颈。
- 现有方案不足:现有的语言模型直接在高度压缩的文本数据上预训练,导致数据效率低下。
- 研究目标:通过显式建模和推断文本生成过程中的潜在思维来提高预训练数据效率。
问题2:论文的核心创新点是什么?
- 技术创新:提出了一种名为“推理学习”的方法,通过推断文本背后的潜在思维来提高数据效率。
- 方法改进:使用期望最大化算法(EM)和蒙特卡洛采样来生成和改进潜在思维。
- 优势:与现有方法相比,该方法显著提高了数据效率,并且能够通过迭代改进来进一步优化模型性能。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在数据受限的设置中对数学数据进行继续预训练。
- 性能提升:与在相同数量的原始数据上训练的模型相比,该方法在MATH数据集上提高了25.4%的数据效率。
- 对比结果:该方法在MATH数据集上的表现优于使用相同数量原始数据训练的模型,以及使用合成思维链(CoT)风格释义的模型。
问题4:这个研究的实际应用价值是什么?
- 应用场景:该研究可以应用于需要大量数据来训练的语言模型,以提高其数据效率。
- 实施建议:建议在预训练阶段使用该方法来提高数据效率,并考虑使用EM算法和蒙特卡洛采样来改进潜在思维。
- 局限与展望:该研究在数学数据上进行了验证,未来可以扩展到其他领域和数据类型。此外,可以进一步探索更复杂的潜在结构来模拟人类的高级规划过程。