压缩变换器中的结构敏感性:相对误差传播与层移除
Structural Sensitivity in Compressed Transformers: Relative Error Propagation and Layer Removal
AI总结:
研究压缩变换器时,误差在层间累积机制及层移除策略,通过rho指标分析误差传播,发现早期层压缩影响更大,提出基于rho的层移除方法,结合两种标准提升性能,提供无训练的压缩决策工具。
摘要:
压缩变换器权重可降低大语言模型部署成本,但每层压缩引入误差,误差随信号传递累积,其累积机制不明确。本文通过测量每层输出与输入误差比rho,发现误差随层下游rho值乘积累积,预测表示漂移。通过六种变换器(117M至8B参数)实验得出三项发现:(i) 误差随层下游rho值乘积累积,解释为何早期层压缩影响更大,深度减少稀疏性计划优于均匀计划;(ii) 同一层内简单剪枝导致组件敏感性差异大,激活感知剪枝(Wanda)可缩小差异;(iii) 深度剪枝通过层rho偏离一的排名需两次前向传递,优于ShortGPT的Block Influence,物理删除可提升运行速度。结合两种标准最佳,实现14.2 perplexity和60.0%下游准确率。十二个Lean 4范数不等式提供矩阵误差界。收缩轮廓为无训练压缩决策提供工具:层内压缩位置和层移除决策。
英文摘要:
Compressing transformer weights makes large language models cheaper to deploy. But each layer's compression introduces an error. These errors accumulate as the signal passes through later layers, and how they accumulate is not well understood. We measure this directly: at each layer, we take the ratio of output to input error, calling it rho. A value below one means the layer absorbs the error; above one means it grows. Computing rho on six transformers (117M to 8B parameters) yields three findings. (i) Errors at layer t scale downstream by the product of later rho values, predicting representation drift (Spearman r = -0.44, p < 10^-4). This explains why compressing early layers hurts more than late ones, and why depth-decreasing sparsity schedules outperform uniform ones. Across architecture families, however, model width and redundancy matter more than rho alone. (ii) Within a layer, naive pruning shows a ~600x spread in component sensitivity. Activation-aware pruning (Wanda) shrinks this to 3-7x; the ranking reverses across architectures, so fixed importance scores do not transfer. (iii) For depth pruning, ranking layers by how far rho is from one takes two forward passes. It beats ShortGPT's Block Influence with 1.6x lower perplexity at eight layers removed, and physical deletion delivers 1.22x wall-clock speed-up. A blend of the two criteria does best (perplexity 14.2, 60.0% downstream accuracy on LLaMA-2-7B). Twelve Lean 4 norm inequalities provide machine-checked per-matrix error bounds. The contraction profile thus gives a training-free instrument for two decisions: where to compress within layers, and which to remove.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。