STAPLE:通过嵌入模块对预训练检查点进行静态稀疏升级
STAPLE: Static Sparse Upcycling of Pretrained Checkpoints via Embedding Modules
AI总结:
本研究提出基于 STEM 的 STAPLE 方案,将静态稀疏内存集成到预训练模型中,在 OLMo-2 1B 和 7B 上提升多任务性能,解码速度更快、内存和能耗更低,无需从头稀疏预训练。
摘要:
稀疏计算可在不按比例增加活跃计算量的情况下扩展大型语言模型(LLM)的参数容量,但预训练稀疏架构仍成本高昂且数据需求量大。现有稀疏升级方法主要针对混合专家(Mixture-of-Experts, MoE)模型,而专家同质性、样本效率低及系统开销会限制其实际可扩展性。静态稀疏内存具备可预测的访问和特定于 token 的更新能力,有助于应对这些挑战,但将其直接集成到预训练计算中会产生较差的收益。本研究提出 STAPLE,这是一种基于 STEM 构建的、用于将静态稀疏内存集成到预训练模型中的方案。与 STEM 替换前馈网络(FFN)的上投影为 token 索引嵌入的方式不同,STAPLE 保留了这些上投影,并添加嵌入作为残差路径,在保留预训练计算的同时,以可扩展的方式学习互补的特定 token 信息。在 OLMo-2 1B 模型上,STAPLE 相比持续密集训练在 HumanEval 上提升 4.27 个点、MBPP 上提升 2.80 个点、GSM8K 上提升 2.27 个点、DROP 上提升 1.65 个点;平均性能随静态容量增加而提升,且在更大的 OLMo-2 7B 主干模型上仍能保持改进。STAPLE 还优于 STEM 和 Engram 式模型等静态稀疏基线,且在吞吐量导向的解码评估中,其平均得分高于 MoE 升级基线,解码速度快 2 倍,GPU 模型内存不足其一半,每 token 的实测 GPU 能耗也更低。重要的是,尽管在训练后期引入了数十亿参数,本研究的主机卸载实现仍将生成吞吐量保持在密集基线的 1.5% 以内,训练吞吐量保持在 3% 以内,且仅将约 5% 最频繁的嵌入缓存到 GPU 中。这些结果表明,静态稀疏内存可为扩展预训练模型提供一种样本高效、可扩展且可持续的路径,无需从头开始进行稀疏预训练。
英文摘要:
Sparse computation can scale the parametric capacity of LLMs without proportionally increasing active computation, but pretraining sparse architectures remains expensive and data-hungry. Existing sparse upcycling methods mainly target Mixture-of-Experts models, where expert homogeneity, sample inefficiency, and system overheads can limit practical scalability. Static sparse memory offers predictable access and token-specific updates that can help address these challenges, but naively integrating it into pretrained computation yields poor returns. In this work, we introduce STAPLE, a recipe built upon STEM for integrating static sparse memory into pretrained models. Whereas STEM replaces FFN up-projections with token-indexed embeddings, STAPLE retains them and adds the embeddings as a residual pathway, preserving pretrained computation while learning complementary token-specific information in a scalable manner. On OLMo-2 1B, STAPLE improves over continued dense training by 4.27 points on HumanEval, 2.80 on MBPP, 2.27 on GSM8K, and 1.65 on DROP. Average performance increases with static capacity, and improvements persist on the larger OLMo-2 7B backbone. STAPLE also outperforms static sparse baselines such as STEM and an Engram-style model, and achieves a higher average score than an MoE upcycling baseline while decoding 2x faster with less than half its GPU model memory and measured GPU energy per token in our throughput-oriented decoding evaluation. Importantly, despite introducing billions of parameters late in training, our host-offloaded implementation keeps generation throughput within 1.5% and training throughput within 3% of the dense baseline, while caching only the ~5% most frequent embeddings on GPU. These results show that static sparse memory can provide a sample-efficient, scalable, and sustainable path for expanding pretrained models without sparse pretraining from scratch.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。