OATS: Outlier-Aware Pruning Through Sparse and Low Rank Decomposition

Stephen Zhang, Vardan Papyan

TL;DR

OATS (Outlier-Aware Pruning Through Sparse and Low Rank Decomposition) is a novel, retraining-free method that compresses large transformer models by splitting weight matrices into a sum of sparse and low-rank components. By specifically protecting "outlier features," OATS maintains high accuracy at up to 60% compression and delivers up to a 1.37× CPU inference speedup over existing pruning techniques.

What Problem Does This Paper Address?

Large-scale foundation models like Llama-3 and ViT are incredibly powerful but notoriously "heavy." They require massive amounts of memory and compute, making them difficult to deploy on consumer hardware or edge devices.

To mitigate this, researchers use pruning—removing unnecessary weights from the model. However, current "post-hoc" pruning methods (those that don't require expensive retraining) hit a wall: as you remove more weights, the model's performance tends to fall off a cliff. A major reason for this is the existence of outlier features—a small number of activations with very high magnitudes that are disproportionately important to the model's "intelligence." Standard pruning often accidentally destroys these outliers.

Methods

The authors introduce OATS, which treats model compression as a classic optimization problem known as Robust PCA.

  1. Outlier-Aware Scaling: Before doing anything else, OATS scales the weights based on the "second moment" of their input embeddings (essentially, how often and how strongly those weights are activated). This ensures that weights connected to important outlier features are prioritized for preservation.
  2. Sparse + Low-Rank Decomposition: Instead of just deleting weights, OATS approximates each weight matrix ($W$) as the sum of two matrices: $W \approx S + L$.
  3. $S$ (Sparse): Captures the most important individual weights (the "spikes").
  4. $L$ (Low-Rank): Captures the global, structural information of the matrix using a fraction of the parameters.
  5. Alternating Thresholding: To find $S$ and $L$, the algorithm iterates between Truncated SVD (to solve for the low-rank part) and Hard-Thresholding (to solve for the sparse part).
  6. Retraining-Free: The entire process happens after the model is trained, using just a small "calibration" dataset to calculate the scaling factors.

Datasets

The authors evaluated OATS across a diverse set of benchmarks:

  • Large Language Models (LLMs): Evaluated on Phi-3 (Mini/Medium) and Llama-3 (8B/70B) using the MMLU (Massive Multitask Language Understanding) benchmark, WikiText-2 for perplexity, and eight zero-shot tasks (like PIQA and HellaSwag).
  • Vision Transformers (ViTs): Evaluated on Google’s ViT and DINOv2 using the ImageNet-1k validation set.
  • Calibration: They used 128 sequences from the C4 dataset for LLMs and 2048 images from ImageNet for ViTs to calibrate the outlier scaling.

Key Insights and Ideas

  • The "Aha!" Moment in Visualization: By using "attention rollout" to visualize what the model sees, the authors found that the sparse and low-rank components actually "divide and conquer" the task. In vision models, one component often focuses on the subject of the image while the other captures the background.
  • Scaling is Non-Negotiable: Ablation studies showed that without the initial outlier-aware scaling ($D$), the decomposition performs significantly worse. Capturing the "scale" of the features is what allows the sparse+low-rank structure to thrive.
  • Optimal Balance: The researchers found that a "rank ratio" of 25-30% (meaning about a third of the preserved parameters belong to the low-rank component) provides the best trade-off between accuracy and compression.
Accuracy vs Rank Ratio and Iterations

Key Results

  • Superior Accuracy: At 50% compression, OATS outperformed state-of-the-art methods like SparseGPT and Wanda by significant margins: +5.42% on Phi-3 Mini and +2.86% on Llama-3 8B (MMLU).
MMLU Accuracy vs Compression Rate for Phi-3 Mini and Llama-3 8B
  • Vision Resilience: Vision models proved even more resilient. On the massive DINOv2-Giant, OATS achieved 50% compression with only a 0.41% drop in top-1 accuracy.
  • Hardware Acceleration: Using the DeepSparse engine, OATS achieved a 1.37× speedup on CPUs at 40% compression compared to standard unstructured pruning.
  • N:M Sparsity: OATS can be adapted to N:M sparsity patterns (like 2:8), which are specifically supported by modern NVIDIA GPUs for even faster inference.

Limitations and Future Work

  • Computation Overhead: While OATS is retraining-free, the decomposition process itself is more computationally expensive than simple magnitude pruning. For a massive model like Llama-3 70B, the decomposition takes about 152 seconds per transformer block on an A40 GPU.
  • GPU Optimization: While CPU speedups were demonstrated, the authors note that further work is needed to create specialized GPU kernels that can fully exploit the simultaneous sparse and low-rank structure.
  • Algorithm Refinement: The authors used a simple alternating thresholding approach; they suggest that more sophisticated Robust PCA algorithms might yield even better compression results in the future.

Summary updated

BibTeX
@inproceedings{zhang2025oats,
  author = {Stephen Zhang and Vardan Papyan},
  title = {{OATS: Outlier-Aware Pruning Through Sparse and Low Rank Decomposition}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=DLDuVbxORA},
}
Figure