TL;DR
LeSTD (Learning-based Sparse Tensor Decomposition) is a novel data-free framework that compresses Large Language Models (LLMs) by breaking the "dense core bottleneck" of traditional tensor methods. By combining shared-subspace Tucker decomposition with a principled, importance-based core pruning strategy, it achieves significantly higher compression ratios and faster inference throughput than prior state-of-the-art methods while maintaining superior accuracy.
The Problem: The Dense Core Bottleneck
As LLMs grow to hundreds of billions of parameters, deploying them on resource-constrained hardware becomes increasingly difficult. While post-training compression techniques like Singular Value Decomposition (SVD) help, they often treat weight matrices individually, ignoring the structural redundancies shared across multiple attention heads within a layer.
Existing tensor-based methods (like Tucker decomposition) attempt to exploit these redundancies by finding a shared low-rank basis. However, they hit a dense core bottleneck: to maintain model accuracy, the "core tensor" (which represents interactions between basis vectors) must remain relatively large. Because this core is dense, its size grows polynomially with the chosen rank, eventually becoming a storage burden itself and capping the maximum achievable compression.
The LeSTD Approach
LeSTD solves this through a two-stage, data-free process:
- Stage I: Shared-Subspace Tucker Decomposition: The authors first "tensorize" the Multi-Head Attention (MHA) block, stacking the weights of all heads into a single 4th-order tensor. They then use an iterative algorithm (Higher-Order Orthogonal Iteration or HOOI) to find a high-quality shared orthonormal basis that represents all heads compactly.
- Stage II: Importance-Based Core Pruning: To break the dense core bottleneck, LeSTD applies a theoretically grounded pruning mechanism. The authors derive a closed-form importance score for every element in the core tensor, allowing them to systematically remove the least salient coefficients. Crucially, they include a refitting step to adjust the remaining coefficients, minimizing reconstruction error.
Operationally, LeSTD executes inference directly in this compressed domain. It never reconstructs the original dense matrices, which reduces both arithmetic complexity and memory traffic.
Key Insights and Ideas
- Heads Share Subspaces: The fundamental motivation for LeSTD is the observation that attention heads in the same layer process the same input distribution and thus learn redundant patterns. Diagnostics confirm that a basis learned from just a few heads can effectively represent others in the same layer.
- Decoupling Basis from Sparsity: By separating the optimization of the shared basis (Stage I) from the sparsification of the core (Stage II), LeSTD can use higher ranks to preserve accuracy while still achieving extreme compression through core sparsity.
- Principled Pruning: Unlike heuristic pruning, LeSTD uses a derived importance score directly linked to the Frobenius reconstruction error. This ensures that the most "energetic" latent interactions are preserved.
- Direct Compressed Inference: The method is designed for "hardware-friendly" execution. By sharing the input-side projection across heads and performing attention in a lower-dimensional, sparsified space, it achieves real-world speedups using standard software libraries like PyTorch.
Evaluation and Results
The authors evaluated LeSTD across three LLM families (GPT-J 6B, Llama2-13B, and OPT-30B) using four diverse benchmarks: WikiText-2 (perplexity), MathQA, GSM8K, and TruthfulQA.
LeSTD consistently outperforms both matrix-based SVD methods and dense-core Tucker methods, especially under "aggressive" compression (e.g., 20% of original size):
- Accuracy: On OPT-30B at a 0.2 compression ratio, LeSTD achieved a perplexity of 42.70 on WikiText-2, significantly lower than SVD-LLM's 50.25. On task accuracy (MathQA/GSM8K), it typically matches or exceeds the best baselines by ~3 points.
- Throughput: LeSTD delivers substantial speedups. For example, it improves tokens/sec by up to 40% compared to dense-core Tucker methods because the sparse core reduces the computational load of latent interactions.
- Stability: While prior methods often "collapse" (lose all utility) at very high compression ratios, LeSTD maintains stable performance.
Limitations and Future Work
The primary limitation acknowledged is that Stage II produces unstructured sparsity in the core tensor. While the authors demonstrated practical speedups using standard libraries, they note that performance could be further amplified on specialized hardware designed for sparse computations. Future work may involve exploring structured sparsity (like block-sparsity) within the core to better align with hardware co-design and further improve the efficiency of the "sparse core" operations.
Summary updated