arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.02559cs.CLcs.AI
收藏

从层到子模块:重新思考基于替换的LLM压缩中的粒度

From Layers to Submodules: Rethinking Granularity in Replacement-Based LLM Compression

University of Trento(特伦托大学)

Elia Cunegatti, Marcus Vukojevic, Erik Nielsen, Giovanni Iacca

AI总结:

提出子模块级别的非连续替换压缩方法SubFit,通过为注意力和前馈子模块分别设计轻量残差旁路,在多种LLM上实现更好的困惑度-准确率权衡。

摘要:

大型语言模型(LLM)的后训练压缩会移除整个架构组件,要么删除它们,要么用拟合模块替换它们。现有的基于替换的方法共享两个设计约束:全层粒度和连续选择。我们认为这过于严格:事实上,预训练Transformer中的冗余并不局限于连续区域,也不均匀分布在注意力和前馈输出之间,这意味着不同的策略最适合近似不同的子模块类型,并且可移除的组件不需要聚集在连续的深度范围内。基于这一直觉,我们引入了SubFit(子模块级拟合残差替换),它在子模块级别压缩LLM:注意力和前馈子模块被非连续地选择,并且每个子模块都获得自己的轻量级拟合残差旁路。SubFit在训练后运行,仅需要校准数据。在十个LLM(五个基础模型,五个指令微调模型)、五个从12.5%到37.5%的稀疏度水平以及四个基于替换的基线上,SubFit在评估的稀疏度水平上实现了最佳的聚合困惑度-准确率权衡,在激进压缩下获得更大收益。在25%稀疏度下,它保留了84.6%的密集下游准确率,困惑度退化2.42倍,而最强基线分别为81.6%和4.34倍,同时实现了可测量的推理加速和KV缓存节省。代码可在https://github.com/eliacunegatti/SubFit获取。

英文摘要:

Post-training compression of Large Language Models (LLMs) removes entire architectural components, either deleting them or replacing them with fitted modules. Existing replacement-based methods share two design constraints: full-layer granularity and contiguous selection. We argue that this is overly restrictive: in fact, redundancy in pretrained transformers is not confined to contiguous regions, nor does it evenly distribute between Attention and FeedForward outputs, implying that different strategies best approximate different submodule types and that removable components need not cluster within contiguous depth ranges. Based on this intuition, we introduce SubFit (Submodule-level Fitted residual replacement), which compresses LLMs at the submodule level: Attention and FeedForward submodules are selected non-contiguously, and each receives its own lightweight fitted residual bypass. SubFit operates post-training and requires only calibration data. Across ten LLMs (five base, five instruction-tuned), five sparsity levels from 12.5% to 37.5%, and four replacement-based baselines, SubFit achieves the best aggregate perplexity-accuracy trade-off across the evaluated sparsity levels, with larger gains under aggressive compression. At 25% sparsity, it retains 84.6% of dense downstream accuracy and incurs 2.42x perplexity degradation, against 81.6% and 4.34x for the strongest baselines, while delivering measurable inference speedup and KV-cache savings. Code is available at https://github.com/eliacunegatti/SubFit.

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

↑