arXiv:2610.10085cs.LGOct 2026

Manuscript Offprint

arXiv:2610.10085

Activation-Aware Weight Tensorization: A Calibration-Time Preconditioner for Tensor-Network LLM Compression

Alessandro Beatini, Marco Maronese, Emanuele Rodolà

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

Post-training tensor-network compression replaces Transformer linear layers with Tensor Train (TT) or Tree Tensor Network (TTN) operators, but standard decompositions minimize weight-space Frobenius error rather than functional error under the layer's activation distribution. We propose Activation-aware Weight Tensorization (AWT), a training-free calibration wrapper that preconditions each weight matrix with a diagonal activation-derived scale before an unchanged TT/TTN solver and deploys the result with only an input-side elementwise rescaling. Across Llama 3.1 8B, Ministral 8B, and Qwen2.5 7B, AWT consistently improves vanilla TT/TTN tensorization at 2–6× compression: under single-operator replacement, AWT closes 12–35% of the WikiText perplexity gap to the dense baseline across the three model families and 2–6× compression settings; while under multi-operator Llama suffix replacement it closes 27–60% across attention-group and all-seven-matrix settings. The gains also transfer to downstream HellaSwag and ARC-Challenge evaluations. We further show that diagonal preconditioning is a robustness-modularity tradeoff rather than a diagonal-covariance assumption: a dense full-covariance oracle wins its own weighted objective in 80/81 cases, yet diagonal AWT gives better held-out functional fidelity in 53/81 cases. Together, these results position AWT as a principled, modular preconditioner for improving functional fidelity in fixed TT/TTN compression pipelines without modifying the decomposition solver.

1 Introduction

Large language models (LLMs) are increasingly expensive to serve because dense linear operators dominate memory movement and compute during inference [2, 25, 3, 22]. This has motivated a broad set of post-training compression techniques, including quantization, pruning, distillation, low-rank factorization, and structured tensor decompositions [33]. Tensor-network compression offers a structured alternative to standard matrix factorizations. A dense matrix W∈Rm×nW \in \mathbb{R}^{m \times n} can be reshaped into a higher-order tensor and represented by a network of low-rank cores: a Tensor Train (TT) or matrix-product operator uses a chain of cores [21, 20], while a Tree Tensor Network (TTN) uses a loop-free hierarchy over tensor modes [23, 7]. Unlike truncated SVD, which imposes a single global rank on a matrix, tensor networks distribute rank budgets across tensor modes and internal edges of a chosen topology. This richer design space has made tensorization an increasingly relevant direction for LLM compression, with recent methods and systems such as CompactifAI, TensorLLM, and Minima demonstrating its use for compressing large neural operators and LLM components [24, 5, 1, 8, 15].

Despite this progress, post-training tensorization is typically activation-blind. Once a tensorization shape, topology, and rank budget are chosen, standard TT/TTN backends approximate the weight matrix by minimizing an isotropic reconstruction objective in weight space. This objective is computationally convenient, but it does not directly capture the error induced by replacing a layer inside a pretrained model.

This observation is well established in post-training quantization. Methods such as SmoothQuant and AWQ show that simple calibration statistics can identify activation channels whose perturbation disproportionately affects model behavior [29, 18]. However, the same principle has not been systematically exploited for post-training tensor-network decomposition. Tensor decompositions introduce a different constraint from quantization: the approximation is determined by a fixed tensorization layout, network topology, and internal rank budget rather than by a bit-width. This raises a natural question: can activation statistics be used to make existing tensor-network solvers more function-preserving, without changing the solver itself?

We answer this question with Activation-aware Weight Tensorization (AWT). AWT computes a diagonal scale DαD_{\alpha} from cached layer inputs, decomposes the reparameterized matrix W′=WDαW' = WD_{\alpha} using the same tensor-network backend, tensorization layout, topology, and rank budget as vanilla tensorization, and deploys the resulting approximation as y^=W~′(Dα−1x)\widehat{y} = \widetilde{W}'(D_{\alpha}^{-1}x). Thus, activation information changes the matrix presented to the decomposition solver, but not the solver itself. The method is intentionally minimal: it transfers the equivalent reparameterization idea from activation-aware quantization to post-training tensor-network compression, requiring no retraining, no custom TT/TTN solver, and no change to the tensorized operator apart from a lightweight input-side diagonal scaling. Empirically, we find that this simple preconditioning consistently improves the functional fidelity of tensorized LLM operators. The gains persist across model families, operator types, compression ratios, and tensor-network topologies, and become especially important when multiple operators are compressed jointly. In multi-operator suffix replacement, AWT closes 27–60% of the WikiText perplexity gap across both attention-group and all-seven-matrix settings (Table 2), indicating that activation-aware preconditioning helps control the accumulation of tensorization error inside the model.

Contributions. Our main contributions are: (i) we introduce AWT, a diagonal activation-aware preconditioner for post-training TT/TTN compression that preserves the underlying tensor-network solver and deployment path; (ii) we show that AWT is equivalent to a column-weighted reconstruction proxy (Equation (5)), connecting tensorization error to activation-conditioned functional distortion; (iii) we demonstrate consistent gains over vanilla tensorization in single-operator and multi-operator LLM replacement experiments, with the largest absolute gains arising when compression errors accumulate across operators (Table 2); (iv) we evaluate AWT across Llama 3.1 8B, Ministral 8B, and Qwen2.5 7B, three compression ratios, seven operator types, and TT/TTN backends, including matched-compression SVD and downstream task checks; (v) we compare diagonal AWT with a dense full-covariance oracle and show that the diagonal restriction is a robustness-modularity tradeoff rather than a diagonal-covariance assumption.