PALS:用于大语言模型剪枝的百分位数感知分层稀疏性
PALS: Percentile-Aware Layerwise Sparsity for LLM Pruning
AI总结:
研究针对大语言模型剪枝中各层重要性差异被忽略的问题,提出PALS方法,基于激活幅度第99百分位数调整每层稀疏性,在LLaMA - 2 - 7B上效果显著,且成本低无需微调,还发现基于梯度的分配效果不佳。
摘要:
像Wanda和SparseGPT这样的一次性剪枝方法对Transformer的每一层应用相同的稀疏率,忽略层重要性的已知差异。我们提出了PALS(百分位数感知分层稀疏性),它基于激活幅度的第99百分位数调整每层的稀疏性,在目标比率周围限制在±5%。在稀疏率为50%的LLaMA - 2 - 7B上,PALS的WikiText - 2困惑度为10.96,而均匀的Wanda为12.92(9次运行的平均值,p < 0.001)。这种好处取决于架构:LLaMA - 3 - 8B显示出边际收益,而Mistral - 7B则没有。我们还发现基于梯度的分配——看似更有原则的方法——产生的结果比随机的更差,这表明梯度幅度不能预测离散权重去除的影响。PALS在剪枝管道中增加的成本可忽略不计,并且不需要微调。
英文摘要:
One-shot pruning methods like Wanda and SparseGPT apply the same sparsity ratio to every layer of a transformer, ignoring known variation in layer importance. We propose PALS (Percentile-Aware Layerwise Sparsity), which adjusts per-layer sparsity based on the 99th percentile of activation magnitudes, bounded to $\pm 5\%$ around the target ratio. On LLaMA-2-7B at 50\% sparsity, PALS achieves 10.96 WikiText-2 perplexity versus 12.92 for uniform Wanda (mean over 9 runs, $p < 0.001$). The benefit is architecture-dependent: LLaMA-3-8B shows marginal gains and Mistral-7B shows none. We also find that gradient-based allocation -- the seemingly more principled approach -- produces results worse than random, suggesting that gradient magnitude does not predict the impact of discrete weight removal. PALS adds negligible cost to the pruning pipeline and requires no fine-tuning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。