SparseSSM:高效选择性结构化状态空间模型可一次性剪枝
SparseSSM: Efficient Selective Structured State Space Models Can Be Pruned in One-Shot
AI总结:
本文提出无需训练的 SparseSSM 框架,通过二阶显著性与组件敏感性分析对 Mamba 等状态空间模型进行一次性剪枝,在零样本准确率无损下剪掉 50% SSM 权重。
摘要:
诸如 Mamba 之类的状态空间语言模型在达到与 Transformer 相当质量的同时,支持线性复杂度推理,但其仍包含数十亿个参数,阻碍了部署。现有一次性剪枝方法是为注意力块量身定制的,未能考虑选择性状态空间模块(SSM)核心的时间共享且离散化的状态转移矩阵。本文提出 SparseSSM,这是首个无需训练的剪枝框架,将经典的最优脑外科医生(OBS)框架扩展到状态空间架构。我们的逐层算法:(i)推导近似的二阶显著性分数,聚合跨时间步的 Hessian 迹信息;(ii)纳入组件敏感性分析以指导前馈网络(FFN)剪枝,这也揭示了 mamba 架构中冗余所在的位置;(iii)可轻松扩展到半结构化和结构化稀疏性。实验上,我们在不进行微调的情况下剪枝 50% 的 SSM 权重,并观察到零样本准确率没有损失,实现了当前针对基于 Mamba 的大语言模型的最先进剪枝算法。
英文摘要:
State-space language models such as Mamba match Transformer quality while permitting linear complexity inference, yet still comprise billions of parameters that hinder deployment. Existing one-shot pruning methods are tailored to attention blocks and fail to account for the time-shared and discretized state-transition matrix at the heart of the selective state-space module (SSM). In this paper, we introduce SparseSSM, the first training-free pruning framework that extends the classic optimal brain surgeon (OBS) framework to state space architectures. Our layer-wise algorithm (i) derives an approximate second-order saliency score that aggregates Hessian-trace information across time steps, (ii) incorporates a component sensitivity analysis to guide feed-forward network (FFN) pruning, which also sheds light on where redundancy resides in mamba architecture, (iii) can be easily extended to semi-structured and structured sparsity. Empirically, we prune 50% of SSM weights without fine-tuning and observe no zero-shot accuracy loss, achieving the current state-of-the-art pruning algorithm for Mamba-based LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。