AWP: Activation-Aware Weight Pruning and Quantization with Projected Gradient Descent

Jing Liu, Toshiaki Koike-Akino, Ye Wang, Hassan Mansour, Matthew Brand

TL;DR

AWP (Activation-aware Weight pruning and quantization) unifies post-training weight pruning and quantization for Large Language Models (LLMs) using Projected Gradient Descent (PGD). By framing model compression as a sparse approximation problem from compressive sensing, it preserves vital activation cross-correlations and avoids expensive matrix operations like SVD, outperforming existing state-of-the-art compression methods.

What Problem Does This Paper Address?

Deploying Large Language Models (LLMs) on edge devices is heavily bottlenecked by their massive memory footprints. To combat this, researchers use Post-Training Quantization (PTQ) and pruning to compress models using a small set of calibration data without full retraining.

Existing "activation-aware" compression methods—which use input statistics to guide compression—suffer from two main flaws:

  1. Heuristic simplifications: Methods like Wanda or AWQ look only at diagonal statistics, entirely discarding the cross-correlation information between different input activation dimensions.
  2. Greedy algorithms: Methods like GPTQ or SparseGPT rely on greedy, layer-wise sequential solvers that can be computationally intensive and sub-optimal.

The authors bridge this gap by introducing a mathematically principled, unified framework that handles both pruning and quantization efficiently while preserving full activation statistics.

Methods

The authors reframe activation-aware compression as a classic sparse approximation problem from the field of compressive sensing. The objective is to minimize the layer-wise reconstruction loss:

$$\|WX - W_{\text{sparse}}X\|_F^2 = \|WC^{1/2} - W_{\text{sparse}}C^{1/2}\|_F^2$$

where $C = XX^\top$ is the auto-correlation matrix of the input activations.

Instead of using greedy solvers or computing an expensive Singular Value Decomposition (SVD) to find $C^{1/2}$, the authors prove that the gradient of this objective simplifies beautifully to:

$$\nabla = -2(W - \hat{W})C$$

This allows them to use Projected Gradient Descent (PGD)—specifically a variant known as Iterative Hard Thresholding (IHT). In each iteration, the algorithm takes a gradient step using the full covariance matrix $C$ and then projects the weights back onto the constraint set:

  • For pruning, the projection keeps the top-$k$ largest magnitude elements per row and zeros out the rest.
  • For quantization, the projection rounds weights to discrete bit levels (e.g., INT4).
  • For joint compression, both projections are applied sequentially within the optimization loop.

Datasets

  • Calibration Data: 128 sequences (2048 tokens each) sampled from the C4 training dataset (for pruning experiments) and the Pile dataset (for quantization and joint compression experiments).
  • Evaluation Benchmark: The WikiText-2 validation set, using perplexity as the primary evaluation metric (where lower perplexity indicates better model performance).

Key Insights and Ideas

  • The Compressive Sensing Connection: Weight pruning isn't just an empirical heuristic; it maps exactly onto sparse linear regression. This allows LLM compression to inherit decades of optimization theory and convergence guarantees.
  • SVD Avoidance: Even though the objective function implicitly depends on the matrix square root ($C^{1/2}$), the gradient calculation only requires the original covariance matrix $C$. This bypasses expensive SVD operations entirely, making the algorithm highly parallelizable on GPUs.
  • Sparsity + Quantization > Ultra-low Bits: A key finding is that combining a higher-bit quantization (like INT4) with a high pruning rate (like 75% sparsity) yields significantly better perplexity than pushing a model to extreme low-bit quantization (like INT2), even though both configurations occupy a similar memory footprint (~2 bits per weight).

Key Results

Weight Pruning

On Llama-2-7B and 13B, AWP consistently outperforms magnitude pruning, SparseGPT, and Wanda, particularly at high sparsity levels (over 60%). At 70% sparsity on Llama-2-7B, AWP achieves a perplexity of 22.10, whereas Wanda degrades to 70.04.

Table 1. Perplexity on WikiText2 of pruned Llama-2-7B model by different methods under different pruning ratios.
Table 2. Perplexity on WikiText2 of pruned Llama-2-13B model by different methods under different pruning ratios.

Quantization

For INT4 and INT3 weight-only quantization on Llama-3.1-8B, AWP achieves lower perplexity than both AWQ and GPTQ.

Table 3. Perplexity on WikiText2 of quantized Llama-3.1-8B model by different methods.

Joint Pruning and Quantization

When performing pruning and INT4 quantization simultaneously, AWP achieves the best performance compared to sequential pipelines (Wanda+AWQ or AWQ+Wanda) across Llama-3.1-8B and Llama-3.2-1B models.

Table 4. Perplexity on WikiText2 of pruned and INT4 quantized Llama-3.1-8B model by different methods.
Table 5. Perplexity on WikiText2 of pruned and INT4 quantized Llama-3.2-1B model by different methods.

Limitations and Future Work

  • Structured Sparsity: The current pruning implementation focuses on semi-structured (unstructured row-wise) sparsity. The authors note that extending this framework to hardware-friendly structured sparsity patterns, such as NVIDIA's 2:4 sparsity, is an essential next step.
  • Theoretical Guarantees for Quantization: While the paper provides rigorous convergence proofs for the pruning formulation under the Restricted Isometry Property (RIP) and Restricted Strong Convexity (RSC), extending these theoretical guarantees to discrete quantization constraints remains an open problem.

Summary updated

BibTeX
@inproceedings{liu2025awp,
  author = {Jing Liu and Toshiaki Koike-Akino and Ye Wang and Hassan Mansour and Matthew Brand},
  title = {{AWP: Activation-Aware Weight Pruning and Quantization with Projected Gradient Descent}},
  booktitle = {ES-FoMo-III @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=cy6uCZcua5},
}
Figure