SliceGPT: Compress Large Language Models by Deleting Rows and Columns
Saleh Ashkboos, Maximilian L. Croci, Marcelo Gennari Do Nascimento, Torsten Hoefler, James Hensman
Abstract
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 .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
77 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- PIQA: Reasoning about Physical Commonsense in Natural Language cites WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- Search for Efficient Large Language Models cites SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- Search for Efficient Large Language Models cites WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- Search for Efficient Large Language Models cites SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot
- Compact Language Models via Pruning and Knowledge Distillation cites LoRA: Low-Rank Adaptation of Large Language Models
- Compact Language Models via Pruning and Knowledge Distillation cites WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- ESPACE: Dimensionality Reduction of Activations for Model Compression cites LoRA: Low-Rank Adaptation of Large Language Models
- ESPACE: Dimensionality Reduction of Activations for Model Compression cites PIQA: Reasoning about Physical Commonsense in Natural Language
- ESPACE: Dimensionality Reduction of Activations for Model Compression cites SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- ESPACE: Dimensionality Reduction of Activations for Model Compression cites WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- ESPACE: Dimensionality Reduction of Activations for Model Compression cites SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot
- Accuracy is Not All You Need cites PIQA: Reasoning about Physical Commonsense in Natural Language
- Accuracy is Not All You Need cites SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Models
- Accuracy is Not All You Need cites WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- DISP-LLM: Dimension-Independent Structural Pruning for Large Language Models cites PIQA: Reasoning about Physical Commonsense in Natural Language
- DISP-LLM: Dimension-Independent Structural Pruning for Large Language Models cites WinoGrande: An Adversarial Winograd Schema Challenge at Scale
- DISP-LLM: Dimension-Independent Structural Pruning for Large Language Models cites SparseGPT: Massive Language Models Can be Accurately Pruned in One-Shot
Cited by top-tier papers77
- Compact Language Models via Pruning and Knowledge DistillationSaurav Muralidharan, Sharath Turuvekere Sreenivas, Raviraj Joshi, Marcin Chochowski et al.NeurIPS 2024 · 198 citations
- DISP-LLM: Dimension-Independent Structural Pruning for Large Language ModelsShangqian Gao, Chi-Heng Lin, Ting Hua, Zheng Tang et al.NeurIPS 2024 · 42 citations
- Accuracy is Not All You NeedAbhinav Dutta, Sanjeev Krishnan, Nipun Kwatra, Ramachandran RamjeeNeurIPS 2024 · 34 citations
- Search for Efficient Large Language ModelsXuan Shen, Pu Zhao, Yifan Gong, Zhenglun Kong et al.NeurIPS 2024 · 23 citations
- ESPACE: Dimensionality Reduction of Activations for Model CompressionCharbel Sakr, Brucek KhailanyNeurIPS 2024 · 21 citations
Builds on12
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
- WinoGrande: An Adversarial Winograd Schema Challenge at ScaleKeisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, Yejin ChoiAAAI 2020 · 3,037 citations
- PIQA: Reasoning about Physical Commonsense in Natural LanguageYonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao et al.AAAI 2020 · 2,916 citations
- SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language ModelsGuangxuan Xiao, Ji Lin, Mickaël Seznec, Hao Wu et al.ICML 2023 · 1,493 citations
- SparseGPT: Massive Language Models Can be Accurately Pruned in One-ShotElias Frantar, Dan AlistarhICML 2023 · 1,240 citations
Related papers
- SeedLM: Compressing LLM Weights into Seeds of Pseudo-Random GeneratorsRasoul Shafipour, David Harrison, Maxwell Horton, Jeffrey Marker et al.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 citations
- GRASS: Compute Efficient Low-Memory LLM Training with Structured Sparse GradientsAashiq Muhamed, Oscar Li, David P. Woodruff, Mona T. Diab et al.EMNLP 2024 · 1 citation
- Training-Free Activation Sparsity in Large Language ModelsJames Liu, Pragaash Ponnusamy, Tianle Cai, Han Guo et al.ICLR 2025
