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}.}.
DipSVD: Dual-importance Protected SVD for Efficient LLM Compression
Beijing Normal University(北京师范大学);The Chinese University of HongKong, Shenzhen(香港中文大学(深圳));Zhejiang University(浙江大学);University of Chinese Academy of Sciences(中国科学院大学);Tsinghua University(清华大学)
BESA: Pruning Large Language Models with Blockwise Parameter-Efficient Sparsity Allocation
The University of Hong Kong(香港大学);OpenGVLab, Shanghai AI Laboratory(上海人工智能实验室开放智能研究院);Simon Fraser University(西蒙菲莎大学);Southern University of Science and Technology(南方科技大学)
LLM-Barber: Block-Aware Rebuilder for Sparsity Mask in One-Shot for Large Language Models
School of Microelectronics, Southern University of Science and Technology(微电子学院,南方科技大学);Department of Electrical and Electronic Engineering, University of Hong Kong(电气与电子工程系,香港大学)
Spectral Pruning: Compressing Deep Neural Networks via Spectral Analysis and its Generalization Error
The University of Tokyo(东京大学);RIKEN(日本理化学研究所);iPride Co., Ltd.(iPride株式会社);NTT DATA Mathematical Systems Inc.(NTT数据数学系统公司);NTT Data Corporation(NTT数据公司)
PERP: Rethinking the Prune-Retrain Paradigm in the Era of LLMs
Department for AI in Society, Science, and Technology, Zuse Institute Berlin, Germany(人工智能与社会、科学与技术部门,柏林Zuse研究所);Institute of Mathematics, Technische Universität Berlin, Germany(数学研究所,柏林技术大学)
PRISM: Self-Pruning Intrinsic Selection Method for Training-Free Multimodal Data Selection
LMU Munich(慕尼黑大学);Munich Research Center, Huawei Technologies(慕尼黑研究中心,华为技术);METEOR;School of Computer Science, Wuhan University(武汉大学计算机学院);Munich Center for Machine Learning(慕尼黑机器学习中心)
Don't Be Greedy, Just Relax! Pruning LLMs via Frank-Wolfe
Department for AI in Society, Science, and Technology, Zuse Institute Berlin(人工智能、科学与技术部门,柏林Zuse研究所);Institute of Mathematics, Technische Universität Berlin(数学研究所,柏林技术大学);CNRS & D.I. École Normale Supérieure, Paris, France(法国巴黎国家科学研究中心及École Normale Supérieure)
Partial Fusion of Neural Networks: Efficient Tradeoffs Between Ensembles and Weight Aggregation
Department of Mathematics, University of Tübingen, Germany(图宾根大学数学系,德国);Department of Computer Science, University of Tübingen, Germany(图宾根大学计算机科学系,德国)
Why Lottery Ticket Wins? A Theoretical Perspective of Sample Complexity on Pruned Neural Networks
Rensselaer Polytechnic Institute(伦斯勒理工学院);Michigan State University(密歇根州立大学);MIT-IBM Watson AI Lab(MIT-IBM沃森人工智能实验室);IBM Research(IBM研究院);University at Buffalo(布法罗大学)
Olica: Efficient Structured Pruning of Large Language Models without Retraining
Center of Statistical Research, School of Statistics(统计研究中心、统计学与数据科学学院);New Cornerstone Science Laboratory, Southwestern University of Finance(新基石科学实验室、西南财经大学)
Condense, Don't Just Prune: Enhancing Efficiency and Performance in MoE Layer Pruning
University of Surrey(萨里大学);Clemson University(克莱姆森大学);Meituan(美团);University of Texas at Austin(德克萨斯大学奥斯汀分校);Sun Yat-sen University(中山大学);The University of Arizona(亚利桑那大学);ELLIS Institute(ELLIS研究所);Max Planck Institute for Intelligent Systems(智能系统马克斯·普朗克研究所);Tübingen AI Center(图宾根人工智能中心)