Manuscript Offprint

arXiv:2609.15838

Per-Matrix Optimality Is Not Enough: Three-Level Optimization for Low-Rank LLM Compression

Huicheng Zhang, Xiyao Feng, Ze-Tong Li, Chengkai Zhu, Xiao Shi, Xiwei Pan, Jinguo Liu, Ge Bai, Xin Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Per-matrix singular value decomposition (SVD) truncation is Eckart–Young optimal in the whitened Frobenius norm, but errors from independently compressed matrices compound through the block’s nonlinear forward pass. Inspired in part by hierarchical variational optimization in quantum many-body methods, we introduce a three-level chain that widens optimization scope from individual matrices to Transformer blocks to the full model: whitened SVD (L1), block-level joint optimization (L2), and end-to-end language-modeling loss refinement (L3), all from 256 calibration sequences, with no instruction or recovery data. On LLaMA-7B at 60% compression, the chain reduces WikiText-2 perplexity from 42.1 to 19.1 to 11.4. The block-level stage acts as a regularizer: skipping it worsens Penn Treebank (PTB) perplexity by 24 points, a gap that additional end-to-end training did not close in our experiments. Perplexity gains hold across 20–80% compression, five architectures up to 13B parameters, and both in-distribution and out-of-distribution benchmarks, though the cross-architecture rows use architecture-specific configurations and the ratio sweep was not run under one common protocol. With more calibration data, skipping the block-level stage becomes competitive, revealing an offline compute–data trade-off. We therefore claim improvements only in perplexity and compression fidelity; downstream accuracy remains well below the dense model.

1 Introduction

Large language models (LLMs) require significant memory, limiting deployment on consumer-grade hardware. Post-training compression reduces this cost through weight quantization (Frantar et al., 2022; Lin et al., 2024), pruning (Frantar and Alistarh, 2023; Wei et al., 2024), or low-rank decomposition. Singular value decomposition (SVD)-based low-rank compression preserves the original Transformer structure and uses only standard dense matrix multiplications with no specialized kernels. Among the earliest applications to neural network compression, Sainath et al. (2013) factorized the final weight layer of deep neural network (DNN) acoustic models; subsequent work extended low-rank approximations to convolutional neural network (CNN) filters (Denton et al., 2014; Jaderberg et al., 2014). Truncating the SVD of each LLM weight matrix directly is a natural baseline, but this data-agnostic objective ignores which input directions dominate the projection's output error. Activation-aware methods address this mismatch: ASVD (Yuan et al., 2023) rescales weight columns by activation-channel magnitude before SVD, while SVD-LLM (Wang et al., 2025b) whitens calibration activations so that singular-value truncation directly corresponds to reconstruction loss. Follow-up work refines per-matrix objectives (Wang et al., 2025a), allocates rank budgets across weight matrices (Xv et al., 2025; Qi et al., 2026; Ding et al., 2025; Abbasi et al., 2026), and compensates accumulated error (Hu et al., 2026). To widen the scope beyond individual matrices, LiLlama (Sy et al., 2024) performs SVD-initialized per-block distillation with 13 M calibration tokens, but remains local in scope.

All these methods optimize a local reconstruction surrogate for each weight matrix independently. Activation-whitened SVD already achieves the Eckart–Young optimum (Eckart and Young, 1936) for this per-matrix objective, yet on LLaMA-7B at per-matrix removal ratio ρ=0.6\rho=0.6 it yields a WikiText-2 perplexity of 42.1, far from the dense model's 5.68. The missing error enters at two scales: within each Transformer block, truncation errors from the seven attention and multilayer perceptron (MLP) projections interact through residual connections and nonlinearities; across blocks,

  • Equal contribution.

†^{\dagger} Corresponding author.

Figure

Figure 1: Three-level compression chain. Each level widens the optimization scope and warm-starts from the previous solution using the same calibration budget. Numbers: LLaMA-7B WikiText-2 PPL at ρ=0.6\rho=0.6. Each level reduces perplexity by roughly 2×2\times.

these perturbations accumulate along the residual stream before reaching the language-modeling loss. Neither scale is visible to a per-matrix or per-block objective. Low-Rank Adaptation (LoRA) fine-tuning (Hu et al., 2021) on external data such as 50K Alpaca samples can recover perplexity, but it changes the setting from self-contained post-training compression to data-dependent recovery. Post-training low-rank compression, therefore, needs a broader optimization scope, one that captures interactions within and across Transformer blocks using only the calibration data already required for compression.

In this paper, we argue that the unit of post-training low-rank compression should not be the weight matrix but the computation graph over which truncation errors interact. Starting from whitened per-matrix SVD, we optimize the same low-rank factors at progressively larger scopes, first through each Transformer block's nonlinear forward pass, then through the full model's language-modeling (LM) loss, using only the original 256 calibration sequences and adding no inference-time parameters. WikiText-2 validation is used only for L3 early stopping (Figure 1). On LLaMA-7B at 60% compression, WikiText-2 perplexity drops from 42.1 after per-matrix SVD to 19.1 after block-level optimization and 11.4 after full-model optimization, lower than SVD-LLM + Sequential LoRA (15.0) despite using 256 samples rather than 50K (Wang et al., 2025b). The same pattern holds across 20–80% compression (Tables 2 and 8), on held-out Penn Treebank (Marcus et al., 1993) (PTB) and C4 (Raffel et al., 2020), and on five architectures (Table 3). The block-level stage also acts as a regularizer: skipping it worsens out-of-distribution (OOD) perplexity by 24 points, a gap that additional end-to-end training did not close in our experiments (§4.6). Our specific methodological contribution is the block objective of §3.2—cross-frontier reconstruction with a next-block vocabulary lookahead—together with the finding that widening optimization scope, rather than any single decomposition, closes most of the gap; we claim no novelty for whitened SVD, generic block-level recovery, or the LM loss on their own.

References (29)