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

思考慢与快:利用蒸馏推理器扩展推理计算

Thinking Slow, Fast: Scaling Inference Compute with Distilled Reasoners

Machine Learning Group, University of Geneva(日内瓦大学);Together AI;Princeton University(普林斯顿大学);Carnegie Mellon University(卡内基梅隆大学);META;EPFL(洛桑联邦理工学院);Cornell University(康奈尔大学)

Daniele Paliotta, Junxiong Wang, Matteo Pagliardini, Kevin Y. Li, Aviv Bick, J. Zico Kolter, Albert Gu, François Fleuret, Tri Dao

AI总结:

本文通过从Transformer蒸馏Mamba模型,在固定时间预算下以更高吞吐量扩展推理计算,使纯/混合Mamba在数学推理上超越教师模型。

摘要:

近期进展表明,通过在测试时扩展计算资源,可以显著提升大型语言模型(LLMs)的性能。一种常见策略是生成多条思维链(Chain-of-Thought, CoT)轨迹,并通过各种选择机制聚合其输出。这引出了一个基本问题:在固定的计算预算下,复杂度较低的模型能否利用其更高的生成吞吐量,超越同等规模的Transformer模型?为解决此问题并弥补缺乏强子二次推理器的不足,我们从预训练的Transformer中蒸馏出纯Mamba和混合Mamba模型。仅使用80亿个标记进行训练,我们的蒸馏模型在数学推理数据集上展现出强劲的性能和扩展性,同时在大批量数据和长序列的推理过程中速度更快。尽管蒸馏导致零样本性能有所下降,但在固定的时间预算下,纯Mamba和混合Mamba模型均能将其覆盖范围和准确率扩展至超越其Transformer教师模型,为扩展推理计算开辟了新方向。

英文摘要:

Recent advancements have demonstrated that the performance of large language models (LLMs) can be significantly enhanced by scaling computational resources at test time. A common strategy involves generating multiple Chain-of-Thought (CoT) trajectories and aggregating their outputs through various selection mechanisms. This raises a fundamental question: can models with lower complexity leverage their superior generation throughput to outperform similarly sized Transformers for a fixed computational budget? To address this question and overcome the lack of strong subquadratic reasoners, we distill pure and hybrid Mamba models from pretrained Transformers. Trained on only 8 billion tokens, our distilled models show strong performance and scaling on mathematical reasoning datasets while being much faster at inference for large batches and long sequences. Despite the zero-shot performance hit due to distillation, both pure and hybrid Mamba models can scale their coverage and accuracy performance past their Transformer teacher models under fixed time budgets, opening a new direction for scaling inference compute.

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

↑