LatentLLM: Attention-Aware Joint Tensor Compression

Toshiaki Koike-Akino, Xiangyu Chen, Jing Liu, Ye Wang, Pu Wang, Matthew BrandarXiv 2025 · DOI

Abstract

Modern Large Language Models (LLMs) and Large Multi-modal Models (LMMs) present significant deployment challenges due to their immense parameter counts. While low-rank decomposition is a popular compression technique, standard methods often treat layers in isolation, leading to suboptimal global performance. We present LatentLLM, a training-free framework that employs joint tensor decomposition to preserve the functional behavior of related layers. By utilizing optimal root-covariance pre-conditioning and a novel block identity transformation, LatentLLM achieves superior accuracy-efficiency trade-offs compared to traditional layer-wise compression methods.

Introduction

The deployment of foundation models on edge devices is often hindered by memory and computational constraints. Low-rank decomposition—approximating a weight matrix $W$ as a product of two smaller matrices $B$ and $A$—offers a path toward compression. However, existing approaches face two primary hurdles: the "local vs. global" optimization gap and the "efficiency paradox," where moderate compression ratios can actually increase total parameters and FLOPs due to the overhead of two smaller matrix multiplications.

LatentLLM addresses these issues by shifting the focus from individual weight matrices to functional blocks, such as the Query-Key interaction in Multi-Head Attention (MHA).

Comparison between local layer-wise compression and the proposed joint compression of functional blocks.

Methodology

1. Optimal Root-Covariance Pre-conditioning

Activation-aware SVD (ASVD) improves compression by weighting weights according to input statistics. LatentLLM demonstrates that the theoretically optimal pre-conditioner for minimizing expected approximation error is the square-root of the covariance matrix ($P = C^{1/2}$) of the input activations. This approach consistently outperforms heuristics like the Hessian or diagonal $\ell_2$-norms.

2. The Block Identity Trick

To resolve the efficiency paradox, LatentLLM introduces a "block identity" trick. By inserting a specific junction matrix during decomposition, the compression matrix $A$ is transformed to contain an identity block ($I$). This allows the inference engine to skip a significant portion of the projection mathematics, ensuring that any reduction in latent dimension translates directly into linear savings in parameters and FLOPs.

3. Joint Tensor Decomposition

Rather than factorizing $W_q$ and $W_k$ independently, LatentLLM treats them as a joint system. Using High-Order SVD (HOSVD), specifically Tucker decomposition, the framework factorizes these projections to minimize the error of the resulting attention map. Similar joint optimization is applied to Value-Output ($V/O$) pairs and MLP Up/Down projections.

Experimental Results

Language Modeling

The framework was evaluated on the OPT model family (125M to 13B parameters) using WikiText2, Penn Treebank (PTB), and C4 datasets. LatentLLM consistently maintained lower perplexity than plain SVD and other ASVD variants across all compression ratios. At a 40% size reduction, LatentLLM's performance remained stable while baseline methods often saw significant degradation.

Perplexity performance of LatentLLM compared to various SVD baselines across different OPT model sizes and datasets.

Multi-modal Reasoning

On the ScienceQA benchmark using LLaVa-v1.6-vicuna-7b, LatentLLM with root-covariance pre-conditioning retained near-original accuracy at 20-30% compression. Even at 50% compression, the model preserved substantial reasoning capabilities, whereas competing methods experienced accuracy collapse.

Conclusion

LatentLLM demonstrates that "thinking globally" about model architecture is key to effective compression. By prioritizing the preservation of functional interactions (like attention maps) over individual weight values and utilizing theoretically grounded pre-conditioning, LatentLLM provides a robust, training-free solution for scaling foundation models to resource-constrained environments.

Summary updated

BibTeX
@misc{koikeakino2025latentllm,
  author = {Toshiaki Koike-Akino and Xiangyu Chen and Jing Liu and Ye Wang and Pu Wang and Matthew Brand},
  title = {{LatentLLM: Attention-Aware Joint Tensor Compression}},
  year = {2025},
  eprint = {2505.18413},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.18413},
}
Figure