Efficiency

Wanda

First page
Wanda
Paper summary

A simple, effective pruning approach for LLMs requiring no retraining.

Ask this paper

Key points
01

Weight×activation pruning: Prunes weights with the smallest magnitude × corresponding input activations on a per-output basis.

02

Zero retraining: Requires no retraining or weight updates, making it immediately deployable.

03

Simple beats complex: Outperforms magnitude-only pruning and matches or exceeds more complex training-based pruning methods.

04

Production pruning: Became a widely-adopted baseline in LLM pruning research due to its simplicity and strong performance.

Abstract

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.

Every Monday
Get next week’s papers.
Subscribe on Substack