arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.03768cs.LGcs.AI
收藏

仅使用基于SVD的权重剪枝增强上下文学习性能:一种理论视角

Enhancing In-Context Learning Performance with just SVD-Based Weight Pruning: A Theoretical Perspective

Renmin University of China(中国人民大学)

Xinhao Yao, Xiaolin Hu, Shenzhi Yang, Yong Liu

AI总结:

本文发现基于SVD的深层权重剪枝能增强LLM的上下文学习性能,并通过隐式梯度下降轨迹与互信息泛化边界提供理论解释,进而提出一种简单有效的无导数模型压缩算法。

摘要:

基于Transformer的预训练大型语言模型(LLMs)展示了惊人的上下文学习(ICL)能力。通过少量演示输入-标签对,它们可以在不进行任何参数更新的情况下预测未见输入的标签。在本文中,我们展示了一个令人兴奋的现象:基于SVD的权重剪枝可以增强ICL性能,更令人惊讶的是,对深层进行权重剪枝通常比浅层产生更稳定的性能提升。然而,这些发现的潜在机制仍然是一个悬而未决的问题。为了揭示这些发现,我们通过呈现ICL的隐式梯度下降(GD)轨迹,并给出基于互信息的ICL泛化边界(经由完整的隐式GD轨迹),进行了深入的理论分析。这帮助我们合理地解释了这些令人惊讶的实验发现。此外,基于我们所有的实验和理论见解,我们直观地提出了一种简单、模型压缩且无导数的算法,用于下游任务以增强ICL推理。在基准数据集和开源LLMs上的实验展示了该方法的有效性。

英文摘要:

Pre-trained large language models (LLMs) based on Transformer have demonstrated striking in-context learning (ICL) abilities. With a few demonstration input-label pairs, they can predict the label for an unseen input without any parameter updates. In this paper, we show an exciting phenomenon that SVD-based weight pruning can enhance ICL performance, and more surprising, pruning weights in deep layers often results in more stable performance improvements than in shallow layers. However, the underlying mechanism of those findings still remains an open question. To reveal those findings, we conduct an in-depth theoretical analysis by presenting the implicit gradient descent (GD) trajectories of ICL and giving the mutual information based generalization bounds of ICL via full implicit GD trajectories. This helps us reasonably explain the surprising experimental findings. Besides, based on all our experimental and theoretical insights, we intuitively propose a simple, model-compression and derivative-free algorithm for downstream tasks in enhancing ICL inference. Experiments on benchmark datasets and open source LLMs display the method effectiveness\footnote{The code is available at \url{https://github.com/chen123CtrlS/EnhancingICL_SVDPruning}.}.

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

↑