Abstract
Deploying large language models (LLMs) is constrained by significant memory and compute requirements. While model compression techniques like pruning and low-rank decomposition are common, they often suffer from performance degradation at high compression ratios. We present HASSLE-free (Hardware-Aware Semi-Structured Sparse plus Low-rank Efficient & approximation-free), a unified optimization framework that decomposes weight matrices into a sum of sparse and low-rank components. By directly minimizing reconstruction error using the full Hessian matrix and introducing a novel diagonal scaling technique for numerical stability, HASSLE-free achieves state-of-the-art model utility. Our method reduces perplexity by up to 12% compared to previous approaches and significantly narrows the performance gap to dense models across a variety of zero-shot tasks.
Introduction
The deployment of massive models, such as Llama-3-405B, presents a logistical challenge due to the hundreds of gigabytes of VRAM required for inference. Compression is essential for the democratization of these models. Standard pruning techniques, which introduce sparsity, often fail to maintain model performance at aggressive compression levels. Sparse plus Low-Rank (S+LR) decomposition offers a promising alternative by approximating weights as $W \approx W_{sparse} + W_{low-rank}$, capturing both critical outlier weights and the underlying global structure.
However, existing S+LR methods like OATS rely on diagonal approximations of the reconstruction error to maintain computational efficiency. These approximations often lead to sub-optimal weight recovery. HASSLE-free addresses this by leveraging the full Hessian matrix in an efficient, "approximation-free" optimization framework.
The HASSLE-free Framework
The core of HASSLE-free is a unified optimization objective that minimizes the local layer-wise reconstruction error:
$$\min_{W_S, M} \|XW - X(W_S + M)\|_F^2$$
To solve this at scale, the framework employs an Alternating-Minimization approach:
- Sparse Step: Fixing the low-rank component, the framework solves for the sparse component using SparseGPT as a plug-in. This allows the use of the full Hessian ($X^\top X$), providing a more accurate support for sparse weights than simple magnitude pruning.
- Low-Rank Step: Fixing the sparse component, the framework solves for the low-rank component ($M = UV^\top$).
- Diagonal Scaling: To address numerical instability during gradient descent, HASSLE-free introduces a reparameterization that scales the diagonal of the Hessian to unity. This ensures consistent optimizer behavior across diverse layers and model architectures.
Because the Hessian is invariant throughout the iterations, its inversion is performed only once and amortized, making this high-fidelity approach computationally feasible for models with billions of parameters.
Experimental Results
We evaluated HASSLE-free on the Llama-3 and Llama-3.2 model families. Calibration was performed using 128 segments from the C4 dataset, with evaluation focused on perplexity (WikiText-2, PTB, C4) and zero-shot accuracy across eight standard benchmarks.
As shown in the results table, HASSLE-free consistently outperforms the previous state-of-the-art (OATS) and other baseline methods. For instance, in the 3:8 sparsity configuration, HASSLE-free achieves lower perplexity across all three datasets compared to OATS. In zero-shot evaluations, HASSLE-free reduced the performance gap between the compressed and dense models by an average of 15% across the tested tasks. Notably, for Llama3-8B with 2:4 sparsity and a rank-64 component, HASSLE-free reduced WikiText-2 test perplexity by 12% compared to OATS.
Conclusion
HASSLE-free demonstrates that moving beyond diagonal approximations to full-Hessian optimization significantly improves the quality of S+LR model compression. The framework's hardware-aware design, particularly its focus on N:M (2:4) sparsity, provides a practical path toward faster inference on modern GPUs. Future work will explore the integration of weight quantization into the subproblems to achieve even higher compression ratios and investigate the benefits of short-duration recovery fine-tuning.
Summary updated