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

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

TL;DR

Activation-aware Weight Pruning and Quantization (AWP) casts post-training Large Language Model (LLM) compression into a sparse approximation problem solved via Projected Gradient Descent (PGD). By observing that the gradient of the activation-weighted loss function simplifies cleanly, AWP avoids both costly SVD operations and matrix inversions while outperforming methods like Wanda, AWQ, and SparseGPT on pruning, quantization, and joint compression.

What Problem Does This Paper Address?

Deploying massive transformer models on resource-limited edge hardware requires severe model compression. Post-Training Quantization (PTQ) and post-training pruning are preferred over training from scratch or full retraining (QAT) because they only require a small calibration dataset and operate layer-by-layer.

However, existing activation-aware techniques suffer from notable trade-offs:

  • Heuristic pruning methods (e.g., Wanda) prune weights using activation norms but ignore cross-correlation between activation dimensions.
  • Second-order greedy approaches (e.g., Optimal Brain Compression, SparseGPT, GPTQ) attempt to preserve layer outputs by sequentially zeroing out or rounding weights, but they require inverting high-dimensional activation covariance matrices ($XX^\top$) and rely on heuristic left-to-right updating schedules.

The authors set out to find a unified, theoretically sound, and computationally efficient optimization framework for activation-aware pruning, quantization, and joint compression without expensive matrix inversions or decompositions.

Methods

AWP frames layer-wise compression as minimizing the squared reconstruction error of activations: $$\min_{\widehat{W} \in \mathcal{C}} \|\mathbf{W}X - \widehat{\mathbf{W}}X\|_F^2 = \min_{\widehat{W} \in \mathcal{C}} \|\mathbf{W}C^{1/2} - \widehat{\mathbf{W}}C^{1/2}\|_F^2$$ where $C = \frac{1}{n}XX^\top$ is the empirical covariance matrix of the activations.

Key components of the approach include:

  • SVD-Free Gradient Updates: Although the objective contains the matrix square root $C^{1/2}$, its gradient with respect to $\widehat{\mathbf{W}}$ simplifies directly to: $$\nabla f_1(\widehat{\mathbf{W}}) = -2(\mathbf{W} - \widehat{\mathbf{W}})C$$ This allows PGD to run using straightforward matrix multiplications of complexity $\mathcal{O}(d_{\text{out}} \times d_{\text{in}}^2)$—avoiding SVD, matrix square roots, and matrix inversions entirely, while executing natively in parallel on GPUs.

  • Iterative Hard Thresholding (IHT) for Pruning: For semi-structured row pruning (constraining each row to at most $k$ non-zero elements), the projection step $\text{Proj}_{\mathcal{C}}(Z)$ reduces to hard thresholding (keeping the $k$ largest-magnitude entries per row).

  • Quantization Projection: For uniform quantization (e.g., INT4/INT3), the projection maps the continuous step updates to discrete grid points (e.g., via Round-To-Nearest).
  • Progressive Joint Compression: When pruning and quantizing simultaneously, AWP uses a scheduled warm-up: it gradually ramps up pruning sparsity over 25 iterations, runs pure pruning up to 50 iterations, and executes another 50 iterations projecting onto the intersection of the pruning mask and quantization grid.
  • Theoretical Guarantees: The authors derive convergence bounds for AWP pruning under both the Restricted Isometry Property (RIP) and Restricted Strong Convexity/Smoothness (RSC/RSM).

Datasets

The authors followed standard calibration and evaluation benchmarks used in prior work:

  • Calibration Datasets:
  • C4: 128 sampled sequences (2048 tokens each) used for calibrating pruning experiments.
  • The Pile: A small calibration set used for grouping and calibrating quantization experiments.
  • Evaluation Dataset:
  • WikiText-2: Held-out validation perplexity served as the primary evaluation metric for Llama-2 (7B, 13B) and Llama-3/3.1/3.2 models.
  • No new benchmarks or datasets were introduced in the paper.

Key Insights and Ideas

  • Connecting LLM Pruning to Compressive Sensing: Activation-aware weight pruning on a per-row basis is mathematically equivalent to classical sparse linear regression. This allows LLM compression to inherit mature algorithmic tools (IHT/PGD) and convergence theories from compressive sensing.
  • Matrix Multiplications Over Inversions: Unlike Hessian-based solvers (SparseGPT, GPTQ) that require inverting covariance matrices, AWP's inner loop relies purely on matrix multiplication $(\mathbf{W} - \mathbf{\Theta}^{(t)})C$, making it well suited for GPU acceleration.
  • Sparsity + Quantization Beats Ultra-Low-Bit Quantization: Rather than pushing quantization to extreme limits like 2-bit (which often causes catastrophic perplexity spikes), combining INT4 quantization with 75% sparsity—which also roughly equates to 2 bits per parameter when accounting for the 1-bit sparsity mask—preserves language modeling capability much better.

Key Results

  • Pruning (WikiText-2 Perplexity):
  • On Llama-2-7B (dense baseline: 5.12): At 70% sparsity, AWP achieved a perplexity of 22.10, substantially outperforming Wanda (70.04). At 80% sparsity, AWP retained a perplexity of 83.28, while Wanda collapsed to $4\times 10^3$.
  • On Llama-2-13B (dense baseline: 4.57): At 70% sparsity, AWP achieved 16.57 (vs. Wanda's 43.06); at 80% sparsity, AWP achieved 75.68 (vs. Wanda's $1\times 10^3$).
  • Quantization:
  • On Llama-3.1-8B, AWP achieved lower perplexity than both GPTQ and AWQ on INT4 (6.55 vs. AWQ 6.64, GPTQ 9.95) and INT3 (8.06 vs. AWQ 8.14, GPTQ 12.54).
  • Joint Pruning and Quantization:
  • Combining INT4 quantization with 50% pruning on Llama-3.2-1B, AWP reached a perplexity of 18.41, outperforming sequential Wanda+AWQ (21.90) and AWQ+Wanda (23.95).
  • On Llama-3.1-8B with INT4 + 75% pruning, AWP achieved $1\times 10^2$ perplexity—drastically outperforming direct INT2 quantization ($2\times 10^3$ to $1\times 10^6$).

Limitations and Future Work

  • Unstructured / Semi-Structured Focus: Experiments focused on row-wise unstructured and semi-structured sparsity. Adapting the method to hardware-friendly structured formats like NVIDIA 2:4 sparsity remains future work.
  • Theoretical Gap in Quantization: While convergence guarantees were established for the hard-thresholding projection (pruning), formal theoretical recovery guarantees for the non-convex discrete quantization projection are left for future research.
  • Extreme Bit-Width Degradation: Similar to other post-training methods, AWP's performance degrades sharply when pushed to standalone INT2 quantization without pruning.

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