paper-with-me

홈 › Papers

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

2024-06-06 · Xinhao Yao, Xiaolin Hu, Shenzhi Yang, Yong liu

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}.}.

📄 PDF Abstract BibTeX arXiv:2406.03768

Code (1)

chen123ctrls/enhancingicl_svdpruning 공식 구현 pytorch

Tasks

Generalization BoundsIn-Context LearningModel Compression

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Position-Wise Feed-Forward Layer 설명 없음
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Adam 설명 없음

Similar Papers 제목 키워드 기반

Pangu Light: Weight Re-Initialization for Pruning and Accelerating LLMs

2025-05-26 · Hanting Chen, Jiarui Qin, Jialong Guo, Tao Yuan 외

Large Language Models (LLMs) deliver state-of-the-art capabilities across numerous tasks, but their immense size and inference costs pose significant computational challenges for practical deployment. While structured pr…

Model Compression

Enhancing the Regularization Effect of Weight Pruning in Artificial Neural Networks

2018-05-04 · Brian Bartoldson, Adrian Barbu, Gordon Erlebacher

Artificial neural networks (ANNs) may not be worth their computational/memory costs when used in mobile phones or embedded devices. Parameter-pruning algorithms combat these costs, with some algorithms capable of removin…

General Classificationimage-classificationImage Classification

Enhancing Large Multimodal Models with Adaptive Sparsity and KV Cache Compression

2025-07-28 · Te Zhang, Yuheng Li, Junxiang Wang, Lujun Li arxiv

Large multimodal models (LMMs) have advanced significantly by integrating visual encoders with extensive language models, enabling robust reasoning capabilities. However, compressing LMMs for deployment on edge devices r…

Enhancing One-shot Pruned Pre-trained Language Models through Sparse-Dense-Sparse Mechanism

2024-08-20 · Guanchen Li, Xiandong Zhao, Lian Liu, Zeping Li 외

Pre-trained language models (PLMs) are engineered to be robust in contextual understanding and exhibit outstanding performance in various natural language processing tasks. However, their considerable size incurs signifi…

One-Shot Multi-Rate Pruning of Graph Convolutional Networks

2023-12-29 · Hichem Sahbi

In this paper, we devise a novel lightweight Graph Convolutional Network (GCN) design dubbed as Multi-Rate Magnitude Pruning (MRMP) that jointly trains network topology and weights. Our method is variational and proceeds…