SliceGPT: Compress Large Language Models by Deleting Rows and Columns
Saleh Ashkboos, Maximilian L. Croci, Marcelo Gennari Do Nascimento, Torsten Hoefler, James Hensman
摘要
Large language models have become the cornerstone of natural language processing, but their use comes with substantial costs in terms of compute and memory resources. Sparsification provides a solution to alleviate these resource constraints, and recent works have shown that trained models can be sparsified post-hoc. Existing sparsification techniques face challenges as they need additional data structures and offer constrained speedup with current hardware. In this paper we present SliceGPT, a new post-training sparsification scheme which replaces each weight matrix with a smaller (dense) matrix, reducing the embedding dimension of the network. Through extensive experimentation we show that SliceGPT can remove up to 25% of the model parameters (including embeddings) for LLAMA-2 70B, OPT 66B and Phi-2 models while maintaining 99%, 99% and 90% zero-shot task performance of the dense model respectively. Our sliced models run on fewer GPUs and run faster without any additional code optimization: on 24GB consumer GPUs we reduce the total compute for inference on LLAMA-2 70B to 64% of that of the dense model; on 40GB A100 GPUs we reduce it to 66%. We offer a new insight, computational invariance in transformer networks, which enables SliceGPT and we hope it will inspire and enable future avenues to reduce memory and computation demands for pre-trained models. Code is available at: https://github.com/microsoft/TransformerCompression .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 77 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- PIQA: Reasoning about Physical Commonsense in Natural Language 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- Search for Efficient Large Language Models 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- Search for Efficient Large Language Models 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- Search for Efficient Large Language Models 引用了 SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot
- Compact Language Models via Pruning and Knowledge Distillation 引用了 LoRA: Low-Rank Adaptation of Large Language Models
- Compact Language Models via Pruning and Knowledge Distillation 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- ESPACE: Dimensionality Reduction of Activations for Model Compression 引用了 LoRA: Low-Rank Adaptation of Large Language Models
- ESPACE: Dimensionality Reduction of Activations for Model Compression 引用了 PIQA: Reasoning about Physical Commonsense in Natural Language
- ESPACE: Dimensionality Reduction of Activations for Model Compression 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- ESPACE: Dimensionality Reduction of Activations for Model Compression 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- ESPACE: Dimensionality Reduction of Activations for Model Compression 引用了 SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot
- Accuracy is Not All You Need 引用了 PIQA: Reasoning about Physical Commonsense in Natural Language
- Accuracy is Not All You Need 引用了 SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- Accuracy is Not All You Need 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- DISP-LLM: Dimension-Independent Structural Pruning for Large Language Models 引用了 PIQA: Reasoning about Physical Commonsense in Natural Language
- DISP-LLM: Dimension-Independent Structural Pruning for Large Language Models 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- DISP-LLM: Dimension-Independent Structural Pruning for Large Language Models 引用了 SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot
引用它的顶会 Paper77
- Compact Language Models via Pruning and Knowledge DistillationSaurav Muralidharan, Sharath Turuvekere Sreenivas, Raviraj Joshi, Marcin Chochowski 等NeurIPS 2024 · 198 次引用
- DISP-LLM: Dimension-Independent Structural Pruning for Large Language ModelsShangqian Gao, Chi-Heng Lin, Ting Hua, Zheng Tang 等NeurIPS 2024 · 42 次引用
- Accuracy is Not All You NeedAbhinav Dutta, Sanjeev Krishnan, Nipun Kwatra, Ramachandran RamjeeNeurIPS 2024 · 34 次引用
- Search for Efficient Large Language ModelsXuan Shen, Pu Zhao, Yifan Gong, Zhenglun Kong 等NeurIPS 2024 · 23 次引用
- ESPACE: Dimensionality Reduction of Activations for Model CompressionCharbel Sakr, Brucek KhailanyNeurIPS 2024 · 21 次引用
它引用的 Paper12
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu 等ICLR 2022 · 18,833 次引用
- WinoGrande: An Adversarial Winograd Schema Challenge at ScaleKeisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, Yejin ChoiAAAI 2020 · 3,037 次引用
- PIQA: Reasoning about Physical Commonsense in Natural LanguageYonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao 等AAAI 2020 · 2,916 次引用
- SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language ModelsGuangxuan Xiao, Ji Lin, Mickaël Seznec, Hao Wu 等ICML 2023 · 1,493 次引用
- SparseGPT: Massive Language Models Can be Accurately Pruned in One-ShotElias Frantar, Dan AlistarhICML 2023 · 1,240 次引用
相关 Paper
- SeedLM: Compressing LLM Weights into Seeds of Pseudo-Random GeneratorsRasoul Shafipour, David Harrison, Maxwell Horton, Jeffrey Marker 等ICLR 2025
- OATS: Outlier-Aware Pruning Through Sparse and Low Rank DecompositionStephen Zhang, Vardan PapyanICLR 2025
- SoLA: Leveraging Soft Activation Sparsity and Low-Rank Decomposition for Large Language Model CompressionXinhao Huang, You-Liang Huang, Zeyi WenAAAI 2025 · 14 次引用
- GRASS: Compute Efficient Low-Memory LLM Training with Structured Sparse GradientsAashiq Muhamed, Oscar Li, David P. Woodruff, Mona T. Diab 等EMNLP 2024 · 1 次引用
- Training-Free Activation Sparsity in Large Language ModelsJames Liu, Pragaash Ponnusamy, Tianle Cai, Han Guo 等ICLR 2025
