A Simple and Effective Pruning Approach for Large Language Models

By Mingjie Sun, Zhuang Liu, Anna Bair, J. Kolter. International Conference on Learning Representations, 2023

914 citations recorded by the source corpus.

As their size increases, Large Languages Models (LLMs) are natural candidates for network pruning methods: approaches that drop a subset of network weights while striving to preserve performance. Existing methods, however, require either retraining, which is rarely affordable for billion-scale LLMs, or solving a weight reconstruction problem reliant on second-order information, which may also be computationally expensive. In this paper, we introduce a novel, straightforward yet effective pruning method, termed Wanda (Pruning by Weights and activations), designed to induce sparsity in pretrained LLMs. Motivated by the recent observation of emergent large magnitude features in LLMs, our approach prunes weights with the smallest magnitudes multiplied by the corresponding input activations, on a per-output basis. Notably, Wanda requires no retraining or weight update, and the pruned LLM can be used as is. We conduct a thorough evaluation of our method Wanda on LLaMA and LLaMA-2 across various language benchmarks. Wanda significantly outperforms the established baseline of magnitude pruning and performs competitively against recent method involving intensive weight update. Code is available at https://github.com/locuslab/wanda.

Subfields: Artificial Intelligence, Electrical and Electronic Engineering

View Paper: https://www.semanticscholar.org/paper/7d22ad3573101337bca2091fb0114b377c4f3db6

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Tianyu Gao
  2. Danqi Chen
  3. Mengzhou Xia
  4. Torsten Hoefler
  5. Saleh Ashkboos
  6. Luke S. Zettlemoyer
  7. Volodymyr Kuleshov
  8. Marcelo Gennari Do Nascimento

In Electrical and Electronic Engineering

  1. Torsten Hoefler
  2. Zhiyuan Zeng
  3. Tianyu Gao
  4. Danqi Chen
  5. Mengzhou Xia
  6. Saleh Ashkboos

Citations in the corpus