2025-04-15 · 专家 · 机器学习 · 自然语言处理

M1: Towards Scalable Test-Time Compute with Mamba Reasoning Models

该论文提出了一种基于Mamba架构的混合线性RNN推理模型M1,通过蒸馏和强化学习技术,实现了高效的推理速度和推理时间扩展,在数学推理任务上达到了与现有深度学习模型相当的性能。

更新于 2025-04-15。作者:Junxiong Wang、Wen-Ding Li、Daniele Paliotta、Daniel Ritter、Alexander M. Rush、Tri Dao。

中文摘要

有效的推理对于解决复杂的数学问题至关重要。最近的大型语言模型(LLMs)通过扩展测试时的计算,利用长链式思维推理,提升了性能。然而,由于基于transformer的模型在扩展上下文长度时存在二次计算复杂性和线性内存需求,因此其本质上受限。在这篇论文中,我们介绍了一种基于Mamba架构的全新混合线性RNN推理模型M1,它允许内存高效的推理。我们的方法利用了从现有推理模型中的蒸馏过程,并通过强化学习训练进一步增强了性能。在AIME和MATH基准测试上的实验结果表明,M1不仅优于之前的线性RNN模型,而且在相似规模下与最先进的Deepseek R1蒸馏推理模型的表现相当。我们还比较了我们的生成速度与高性能通用推理引擎vLLM,观察到与相同规模的transformer相比,速度提升了3倍以上。通过吞吐量速度的提升,我们能够在固定的生成时间预算下,通过自洽性投票实现比DeepSeek R1蒸馏transformer推理模型更高的准确性。总的来说,我们引入了一种混合Mamba推理模型,并提供了一种更有效的通过自洽性或长链式思维推理扩展测试时生成的方法。

英文摘要

Effective reasoning is crucial to solving complex mathematical problems. Recent large language models (LLMs) have boosted performance by scaling test-time computation through long chain-of-thought reasoning. However, transformer-based models are inherently limited in extending context length due to their quadratic computational complexity and linear memory requirements. In this paper, we introduce a novel hybrid linear RNN reasoning model, M1, built on the Mamba architecture, which allows memory-efficient inference. Our approach leverages a distillation process from existing reasoning models and is further enhanced through RL training. Experimental results on the AIME and MATH benchmarks show that M1 not only outperforms previous linear RNN models but also matches the performance of state-of-the-art Deepseek R1 distilled reasoning models at a similar scale. We also compare our generation speed with a highly performant general purpose inference engine, vLLM, and observe more than a 3x speedup compared to a same size transformer. With throughput speedup, we are able to achieve higher accuracy compared to DeepSeek R1 distilled transformer reasoning models under a fixed generation time budget using self-consistency voting. Overall, we introduce a hybrid Mamba reasoning model and provide a more effective approach to scaling test-time generation using self-consistency or long chain of thought reasoning.

解读

一句话总结

该论文提出了一种基于Mamba架构的混合线性RNN推理模型M1,通过蒸馏和强化学习技术,实现了高效的推理速度和推理时间扩展,在数学推理任务上达到了与现有深度学习模型相当的性能。

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

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

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

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

来源

机器可读索引:llms.txt