2025-11-21 · 专家 · 自然语言处理 · 机器学习

Nemotron Elastic: Towards Efficient Many-in-One Reasoning LLMs

该论文提出了一种名为Nemotron Elastic的框架,旨在高效地构建面向推理的大型语言模型,通过嵌套子模型共享权重,实现多个模型的零样本提取和部署,同时显著降低训练成本。

更新于 2025-11-24。作者:Ali Taghibakhshi、Sharath Turuvekere Sreenivas、Saurav Muralidharan、Ruisi Cai、Marcin Chochowski、Ameya Sunil Mahabaleshwarkar、Yoshi Suhara、Oluwatobi Olabiyi、Daniel Korzekwa、Mostofa Patwary、Mohammad Shoeybi、Jan Kautz、Bryan Catanzaro、Ashwath Aithal、Nima Tajbakhsh、Pavlo Molchanov。

中文摘要

训练针对多个规模和部署目标的庞大语言模型代价高昂,需要为每个不同大小的模型进行单独的训练运行。最近关于通过剪枝和知识蒸馏进行模型压缩的工作降低了这一成本;然而,这个过程仍然会为每个压缩模型产生数百亿个标记的训练成本。在本文中,我们提出了Nemotron Elastic,这是一个构建以推理为导向的大型语言模型框架,包括混合的Mamba-Attention架构,它将多个嵌套子模型嵌入到单个父模型中,每个子模型都针对不同的部署配置和预算进行了优化。这些子模型与父模型共享权重,并且在部署时可以无额外训练或微调地零样本提取。我们通过端到端训练的路由器实现了这一功能,该路由器紧密耦合到专门为推理模型设计的两阶段训练课程。我们还引入了以下内容:具有组感知的SSM弹性化,以保留Mamba的结构约束;异构MLP弹性化;基于归一化均方误差的层重要性,以改进深度选择;以及知识蒸馏,以实现多预算优化的同时进行。我们将Nemotron Elastic应用于Nemotron Nano V2 12B模型,仅使用110B训练标记同时产生9B和6B模型;这比从头开始训练模型系列的成本降低了360多倍,比SoTA压缩技术大约降低了7倍。每个嵌套模型在准确性上与SoTA相当或更好。此外,与其它压缩方法不同,我们方法的嵌套能力允许拥有一个多合一的推理模型,该模型具有恒定的部署内存,与模型系列中的模型数量无关。

英文摘要

Training a family of large language models targeting multiple scales and deployment objectives is prohibitively expensive, requiring separate training runs for each different size. Recent work on model compression through pruning and knowledge distillation has reduced this cost; however, this process still incurs hundreds of billions of tokens worth of training cost per compressed model. In this paper, we present Nemotron Elastic, a framework for building reasoning-oriented LLMs, including hybrid Mamba-Attention architectures, that embed multiple nested submodels within a single parent model, each optimized for different deployment configurations and budgets. Each of these submodels shares weights with the parent model and can be extracted zero-shot during deployment without additional training or fine-tuning. We enable this functionality through an end-to-end trained router, tightly coupled to a two-stage training curriculum designed specifically for reasoning models. We additionally introduce group-aware SSM elastification that preserves Mamba's structural constraints, heterogeneous MLP elastification, normalized MSE-based layer importance for improved depth selection, and knowledge distillation enabling simultaneous multi-budget optimization. We apply Nemotron Elastic to the Nemotron Nano V2 12B model, simultaneously producing a 9B and a 6B model using only 110B training tokens; this results in over 360x cost reduction compared to training model families from scratch, and around 7x compared to SoTA compression techniques. Each of the nested models performs on par or better than the SoTA in accuracy. Moreover, unlike other compression methods, the nested capability of our approach allows having a many-in-one reasoning model that has constant deployment memory against the number of models in the family.

解读

一句话总结

该论文提出了一种名为Nemotron Elastic的框架,旨在高效地构建面向推理的大型语言模型,通过嵌套子模型共享权重,实现多个模型的零样本提取和部署,同时显著降低训练成本。

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

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

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

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

来源

机器可读索引:llms.txt