Lune

NeurIPS2023顶会

LLM-Pruner: On the Structural Pruning of Large Language Models

Xinyin Ma, Gongfan Fang, Xinchao Wang

摘要

Large language models (LLMs) have shown remarkable capabilities in language understanding and generation. However, such impressive capability typically comes with a substantial model size, which presents significant challenges in both the deployment, inference, and training stages. With LLM being a general-purpose task solver, we explore its compression in a task-agnostic manner, which aims to preserve the multi-task solving and language generation ability of the original LLM. One challenge to achieving this is the enormous size of the training corpus of LLM, which makes both data transfer and model post-training over-burdensome. Thus, we tackle the compression of LLMs within the bound of two constraints: being task-agnostic and minimizing the reliance on the original training dataset. Our method, named LLM-Pruner, adopts structural pruning that selectively removes non-critical coupled structures based on gradient information, maximally preserving the majority of the LLM's functionality. To this end, the performance of pruned models can be efficiently recovered through tuning techniques, LoRA, in merely 3 hours, requiring only 50K data. We validate the LLM-Pruner on three LLMs, including LLaMA, Vicuna, and ChatGLM, and demonstrate that the compressed models still exhibit satisfactory capabilities in zero-shot classification and generation. The code is available at: https://github.com/horseee/LLM-Pruner

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 207 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • LoRA: Low-Rank Adaptation of Large Language Models 引用了 Language Models are Few-Shot Learners
  • PowerInfer: Fast Large Language Model Serving with a Consumer-grade GPU 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
  • PowerInfer: Fast Large Language Model Serving with a Consumer-grade GPU 引用了 Language Models are Few-Shot Learners
  • SliceGPT: Compress Large Language Models by Deleting Rows and Columns 引用了 LoRA: Low-Rank Adaptation of Large Language Models
  • SliceGPT: Compress Large Language Models by Deleting Rows and Columns 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
  • MaskLLM: Learnable Semi-Structured Sparsity for Large Language Models 引用了 Language Models are Few-Shot Learners
  • Discovering Sparsity Allocation for Layer-wise Pruning of Large Language Models 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
  • Discovering Sparsity Allocation for Layer-wise Pruning of Large Language Models 引用了 Language Models are Few-Shot Learners
  • Discovering Sparsity Allocation for Layer-wise Pruning of Large Language Models 引用了 Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Language Models are Few-Shot Learners 引用了 WinoGrande: An Adversarial Winograd Schema Challenge at Scale
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper207

  1. SliceGPT: Compress Large Language Models by Deleting Rows and ColumnsSaleh Ashkboos, Maximilian L. Croci, Marcelo Gennari Do Nascimento, Torsten Hoefler 等ICLR 2024 · 346 次引用
  2. DeeR-VLA: Dynamic Inference of Multimodal Large Language Models for Efficient Robot ExecutionYang Yue, Yulin Wang, Bingyi Kang, Yizeng Han 等NeurIPS 2024 · 153 次引用
  3. PowerInfer: Fast Large Language Model Serving with a Consumer-grade GPUYixin Song, Zeyu Mi, Haotong Xie, Haibo ChenSOSP 2024 · 86 次引用
  4. MaskLLM: Learnable Semi-Structured Sparsity for Large Language ModelsGongfan Fang, Hongxu Yin, Saurav Muralidharan, Greg Heinrich 等NeurIPS 2024 · 72 次引用
  5. Discovering Sparsity Allocation for Layer-wise Pruning of Large Language ModelsLujun Li, Peijie Dong, Zhenheng Tang, Xiang Liu 等NeurIPS 2024 · 51 次引用

它引用的 Paper23

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma 等NeurIPS 2022 · 22,562 次引用
  3. LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu 等ICLR 2022 · 18,833 次引用
  4. ALBERT: A Lite BERT for Self-supervised Learning of Language RepresentationsZhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel 等ICLR 2020 · 7,418 次引用
  5. WinoGrande: An Adversarial Winograd Schema Challenge at ScaleKeisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, Yejin ChoiAAAI 2020 · 3,037 次引用

相关 Paper

  1. LoRAPrune: Structured Pruning Meets Low-Rank Parameter-Efficient Fine-TuningMingyang Zhang, Hao Chen, Chunhua Shen, Zhen Yang 等ACL Findings 2024 · 64 次引用
  2. Pruning Foundation Models for High Accuracy without RetrainingPu Zhao, Fei Sun, Xuan Shen, Pinrui Yu 等EMNLP Findings 2024 · 13 次引用
  3. You Only Prune Once: Designing Calibration-Free Model Compression With Policy LearningAyan Sengupta, Siddhant Chaudhary, Tanmoy ChakrabortyICLR 2025
  4. GPTailor: Large Language Model Pruning Through Layer Cutting and StitchingGuinan Su, Li Shen, Lu Yin, Shiwei Liu 等ICLR 2026 · 3 次引用
  5. Pruning Large Language Models to Intra-module Low-rank Architecture with Transitional ActivationsBowen Shen, Zheng Lin, Daren Zha, Wei Liu 等ACL Findings 2024 · 3 次引用
黄昏的海面,两侧是细线勾勒的悬崖