Papers
Topics
Authors
Recent
Search
2000 character limit reached

LoRAct: Low-Rank Activation Compression

Updated 4 July 2026
  • Low-Rank Activation Compression (LoRAct) is a set of methods that approximates full activation tensors with low-rank factorization to cut memory and compute costs.
  • The approach uses techniques like truncated SVD, random projection, and sampling-based orthogonal decomposition to efficiently compress activations during training or post-training.
  • Empirical results show significant reduction in activation storage and FLOPs across models such as Transformers, ViTs, and CNNs, with minimal performance degradation.

Low-Rank Activation Compression (LoRAct) denotes a class of methods that exploit the empirical low-rank structure of neural activations to reduce memory, compute, or model size by replacing full activation tensors or activation-induced mappings with low-rank surrogates. In training and fine-tuning, LoRAct typically compresses intermediate activations saved for backpropagation; in post-training compression, it selects low-rank factors that minimize activation reconstruction or activation-induced output distortion rather than parameter distortion; and in continual or recursive settings it reuses fixed or dynamically tracked activation subspaces over time (Shi et al., 27 Sep 2025, Shamshoum et al., 2024, Apolinario et al., 25 Sep 2025, Çakar et al., 19 Apr 2026). The common premise is that activations, pre-activations, or attention-value outputs often exhibit rapid spectral decay even when weight matrices do not, so preserving the dominant activation subspace can retain task performance while substantially reducing activation storage, parameter count, or FLOPs (Chowdhury et al., 4 Jul 2025, Martínez, 29 Sep 2025).

1. Motivation and empirical basis

A central motivation for LoRAct is that activation storage is often the dominant memory term during training. For a Transformer or MLP-based model processing batch size BB and context length LL, an activation tensor of size B×L×dB\times L\times d can be flattened to ARd×nA\in\mathbb R^{d\times n} with n=BLn=B\cdot L, and storing AA for backpropagation costs O(dn)O(d\cdot n) memory per layer. As BB or LL grows, the activation memory BLdB\cdot L\cdot d scales linearly and can dominate gradient and optimizer-state memory, quickly exceeding GPU budgets such as LL0 GB (Shi et al., 27 Sep 2025).

The empirical justification is spectral. In the fine-tuning setting, singular-value plots show a rapidly decaying “long tail,” and to retain LL1 of LL2 energy one often needs only LL3–LL4 of the singular values even at large LL5 or LL6. This motivates approximating LL7 as approximately rank-LL8 with LL9 (Shi et al., 27 Sep 2025). A related observation in LLM compression is that weight matrices are often not low-rank, whereas the activations they induce are markedly more compressible. One report explicitly contrasts standard weight factorization with the claim that “weights” of LLMs are often “not” low-rank while activations exhibit strong low-rank structure, motivating activation reconstruction rather than weight reconstruction (Chowdhury et al., 4 Jul 2025).

The same pattern appears outside standard feed-forward fine-tuning. In recursive architectures, storing activations across B×L×dB\times L\times d0 unrolled steps has memory cost B×L×dB\times L\times d1, yet the row-covariance of these activations is highly low-rank. LASER attributes this to weight-sharing, which concentrates iterative computation along a small number of dominant eigendirections, and reports that activations occupy an effectively linear, low-dimensional subspace during recursive unrolling (Çakar et al., 19 Apr 2026). This suggests that low-rank activation structure is not confined to a single architecture family, but recurs across LLMs, ViTs, CNNs, and weight-tied recursive models.

2. Mathematical formulations and optimization targets

The canonical LoRAct formulation approximates an activation matrix B×L×dB\times L\times d2 by a rank-B×L×dB\times L\times d3 factorization,

B×L×dB\times L\times d4

with B×L×dB\times L\times d5, B×L×dB\times L\times d6, and B×L×dB\times L\times d7. By Eckart–Young, the optimal rank-B×L×dB\times L\times d8 approximation minimizes

B×L×dB\times L\times d9

and in practice this is often written as

ARd×nA\in\mathbb R^{d\times n}0

In online fine-tuning, this factorization reduces stored activation memory from ARd×nA\in\mathbb R^{d\times n}1 to ARd×nA\in\mathbb R^{d\times n}2, with compression ratio

ARd×nA\in\mathbb R^{d\times n}3

The backward pass then reconstructs ARd×nA\in\mathbb R^{d\times n}4 and computes gradients using ARd×nA\in\mathbb R^{d\times n}5 in place of ARd×nA\in\mathbb R^{d\times n}6 (Shi et al., 27 Sep 2025).

A second formulation compresses weights through activation-aware objectives. BALF begins from the observation that standard low-rank factorization minimizes parameter distortion,

ARd×nA\in\mathbb R^{d\times n}7

but instead targets expected layer-output distortion,

ARd×nA\in\mathbb R^{d\times n}8

Using activation whitening, BALF forms ARd×nA\in\mathbb R^{d\times n}9, performs SVD in the whitened space, and shows that the empirical activation distortion at layer n=BLn=B\cdot L0 when truncating to rank n=BLn=B\cdot L1 is

n=BLn=B\cdot L2

This makes the optimization target explicitly activation-aware rather than parameter-aware (Martínez, 29 Sep 2025).

A third formulation introduces importance weighting over activation dimensions. IMPACT optimizes

n=BLn=B\cdot L3

then upper-bounds it by a weighted reconstruction objective

n=BLn=B\cdot L4

where the scaling vector n=BLn=B\cdot L5 is derived from the mean squared gradient n=BLn=B\cdot L6. The closed-form solution is given by the top n=BLn=B\cdot L7 eigenvectors of

n=BLn=B\cdot L8

so the retained subspace reflects both activation covariance and gradient sensitivity (Chowdhury et al., 4 Jul 2025).

Attention-specific formulations instantiate the same principle at a finer granularity. FLAT-LLM performs head-wise PCA on the attention value output n=BLn=B\cdot L9, truncates to AA0, and absorbs the PCA basis into the value and output projections: AA1 The induced reconstruction error is

AA2

so rank selection directly controls activation-space distortion (Tian et al., 29 May 2025).

3. Online activation compression for training and fine-tuning

The most direct LoRAct training pipeline compresses activations online during the forward pass. In “Memory-Efficient Fine-Tuning via Low-Rank Activation Compression,” a layer computes its full-precision output, extracts the activation AA3, immediately decomposes AA4, discards AA5, and stores only AA6. On the backward pass it reconstructs AA7 and computes gradients at AA8. The reported memory reduction is therefore achieved without calibration data, because decomposition is performed online, per batch (Shi et al., 27 Sep 2025).

That work couples the online scheme with a sampling-based orthogonal decomposition algorithm. Instead of truncated SVD with cost AA9 or RSVD with cost O(dn)O(d\cdot n)0, it uniformly samples O(dn)O(d\cdot n)1 rows of O(dn)O(d\cdot n)2, alternates QR-based power iterations, and sets O(dn)O(d\cdot n)3, O(dn)O(d\cdot n)4. The reported cost is O(dn)O(d\cdot n)5 with no Gaussian random matrix generation, and the paper states that the method offers improved computational efficiency and a tighter error bound compared to the widely used RSVD (Shi et al., 27 Sep 2025).

CompAct compresses activations differently. It flattens O(dn)O(d\cdot n)6 to O(dn)O(d\cdot n)7, samples a random projection O(dn)O(d\cdot n)8 with entries O(dn)O(d\cdot n)9, and stores

BB0

plus the random seed rather than the full activation. It then computes compressed weight gradients BB1 and maintains optimizer states in the BB2 subspace rather than the BB3 space. The method is designed so that the compute graph never stores the full activation tensor (Shamshoum et al., 2024).

LANCE replaces repeated per-step decompositions with a one-shot higher-order SVD on a calibration set. For a tensor activation BB4, it computes mode-wise SVDs once, stores orthonormal factor matrices BB5, and subsequently compresses activations to a core tensor BB6 during runtime. The same fixed subspaces are then reused across minibatches, reducing both memory and computational overhead relative to iterative low-rank methods (Apolinario et al., 25 Sep 2025).

LASER extends the training-time perspective to recursive models. It stores stepwise coefficients BB7 under a shared basis BB8, updates the basis by one step of matrix-free power iteration,

BB9

and uses a fidelity threshold to trigger either subspace expansion or hard reset. The method is explicitly dynamic: the basis is tracked during training rather than fixed once and for all (Çakar et al., 19 Apr 2026).

4. Calibration-based and fine-tuning-free compression

A major branch of LoRAct is post-training or fine-tuning-free model compression, where calibration data are used to discover activation subspaces and then absorb them into the model parameters. BALF exemplifies this design. Its pipeline collects second-moment matrices LL0 from a small calibration set, forms whitening matrices by eigendecomposition, performs SVD in the whitened space, allocates ranks under a user-specified FLOPs or parameter budget via a Lagrangian-relaxed knapsack, and finally replaces each layer with two sequential low-rank sub-layers. The method is explicitly described as fine-tuning-free and inference-only (Martínez, 29 Sep 2025).

FLAT-LLM also uses calibration data, but at head granularity within multi-head attention. It computes covariance matrices LL1 for each head, performs PCA, truncates to rank LL2, and absorbs the basis into LL3 and LL4. Rank allocation is nonuniform across decoder blocks: importance scores are computed from cosine angles between input and output hidden states, a global budget LL5 is imposed, and a greedy redistribution yields per-decoder ratios LL6 with LL7 (Tian et al., 29 May 2025).

IMPACT adds gradient sensitivity to calibration. During profiling it logs mean activations LL8, activation covariance LL9, and mean squared gradients BLdB\cdot L\cdot d0 for each linear layer. Compression then forms

BLdB\cdot L\cdot d1

where BLdB\cdot L\cdot d2 is derived from BLdB\cdot L\cdot d3, diagonalizes BLdB\cdot L\cdot d4, selects rank by an energy threshold on BLdB\cdot L\cdot d5, and replaces each original layer BLdB\cdot L\cdot d6 with a two-layer factorization BLdB\cdot L\cdot d7. This explicitly departs from uniform activation reconstruction by prioritizing activation dimensions with larger loss sensitivity (Chowdhury et al., 4 Jul 2025).

PGSVD and Swift-SVD further systematize activation-aware rank selection. PGSVD formulates low-rank compression as a bi-objective problem over parameter count and loss change, chooses ranks by a single tolerance BLdB\cdot L\cdot d8, and refines factors via alternating least squares minimizing BLdB\cdot L\cdot d9. Swift-SVD incrementally aggregates covariance of output activations, performs a single eigenvalue decomposition of LL00, and yields the closed-form compressed weight

LL01

Both methods are training-free, but differ in how they connect activation statistics to rank allocation and refinement (Solgi et al., 7 Oct 2025, Qi et al., 2 Apr 2026).

5. Theory, error bounds, and rank allocation

The theory of LoRAct spans approximation error, loss sensitivity, recovery guarantees, and training dynamics. For the online fine-tuning variant of LoRAct, the sampling-based orthogonal decomposition admits a deterministic spectral-error bound,

LL02

and under uniform row sampling of size LL03, the expected error satisfies

LL04

The paper states that this matches or improves the classical RSVD bound without Gaussian-matrix constants (Shi et al., 27 Sep 2025).

PGSVD supplies a network-level loss bound. For perturbed weights LL05, the paper bounds the scalar loss change by

LL06

It then scalarizes the compression problem into minimizing LL07 under a parameter budget and proves that, under homogeneous sensitivity and common convex envelopes, a uniform error tolerance LL08 is optimal for the surrogate LL09-allocation problem. As LL10 varies, the induced rank vector traces surrogate Pareto-optimal size–error pairs (Solgi et al., 7 Oct 2025).

The training-time theory in “Activation Compression in LLMs: Theoretical Analysis and Efficient Algorithm” distinguishes sharply between linear and nonlinear operators. If activation compression is unbiased, then for a linear operator the compressed gradients remain unbiased,

LL11

and the input gradient is exact: LL12 For nonlinear operators, second-order terms induce bias, and upstream gradient errors can amplify through Jacobian products. The same work gives a model-level gradient variance bound and states that, under the standard LL13-smoothness assumption, applying activation compression to all linear operators does not change the convergence rate (Wei et al., 2 May 2026).

A complementary post-training theory is given in “Theoretical Guarantees for Low-Rank Compression of Deep Neural Networks.” There the pre-activation matrix is LL14, and compression seeks LL15 with LL16 such that LL17. Three recovery theorems are stated: a strong low-rank theorem with sub-Gaussian noise, a weak approximate-low-rank theorem based on nuclear-norm and LL18-norm constraints, and a nonlinear recovery result for ReLU observations. In all cases, the mean squared error

LL19

vanishes as dimensions grow under the respective assumptions (Zhang et al., 4 Feb 2025).

6. Reported outcomes, trade-offs, and limitations

The empirical literature reports gains in several distinct regimes: activation-memory reduction during fine-tuning, training-time peak-memory reduction, fine-tuning-free structural compression, continual learning, and recursive computation. The reported outcomes are heterogeneous because the settings differ, but they are broadly consistent with the premise that activation low-rankness is exploitable in practice.

Approach Reported outcome Source
LoRAct fine-tuning LLaMa2-7B, Alpaca & FLAN-v2: LoRA LL20, LL21 GB total, LL22 GB act; LoRAct LL23 LL24, LL25 GB total, LL26 GB act (Shi et al., 27 Sep 2025)
LoRAct language modeling WikiText-2: LoRA PPL LL27, LL28 GB total, LL29 GB act; LoRAct LL30 PPL LL31, LL32 GB total, LL33 GB act (Shi et al., 27 Sep 2025)
LoRAct vision fine-tuning ViT-B/16 on CIFAR-100: LoRA LL34, LL35 GB total, LL36 GB act; LoRAct LL37 LL38, LL39 GB total, LL40 GB act (Shi et al., 27 Sep 2025)
CompAct training LLaMA-350M pretraining, LL41: peak LL42 GB LL43 GB; PPL LL44. RoBERTa-base fine-tuning: LL45 GB LL46 GB (Shamshoum et al., 2024)
BALF inference compression ResNeXt-101 on ImageNet: LL47 FLOPs, LL48 params, LL49 top-1 pp; ViT-B/16: LL50 FLOPs, LL51 params, LL52 top-1 pp (Martínez, 29 Sep 2025)
FLAT-LLM On Llama-2 7B with LL53–LL54 compression, LL55–LL56 speedups over dense, and LL57–LL58 faster than SliceGPT and SVD-LLM (Tian et al., 29 May 2025)
IMPACT Up to LL59 greater model size reduction with accuracy comparable to state-of-the-art baselines; up to LL60 faster and LL61 less GPU memory compared to AFM (Chowdhury et al., 4 Jul 2025)
LANCE and LASER LANCE reports up to LL62 activation-storage reduction; LASER reports LL63 net activation-memory reduction (Apolinario et al., 25 Sep 2025, Çakar et al., 19 Apr 2026)

Within the online fine-tuning setting, the most explicit trade-off is rank. The LoRAct paper states that smaller LL64 yields more memory saving but eventually degrades performance; in vision tasks one needs LL65 for acceptable accuracy, whereas in language tasks even LL66 can match or slightly outperform (Shi et al., 27 Sep 2025). CompAct similarly reports a continuum: LL67 gives LL68–LL69 memory saving for almost no effect on final accuracy, LL70 gives LL71 memory saving with LL72 PPL drop, and LL73 gives LL74 memory saving with moderate perplexity degradation (Shamshoum et al., 2024).

Several recurrent misconceptions are explicitly addressed by the literature. First, low-rank compression of weights and low-rank compression of activations are not equivalent. Multiple papers argue that activations are more compressible than weights, and BALF, FLAT-LLM, IMPACT, PGSVD, and Swift-SVD all define their objectives in activation-aware terms rather than pure parameter distortion (Martínez, 29 Sep 2025, Tian et al., 29 May 2025, Chowdhury et al., 4 Jul 2025, Solgi et al., 7 Oct 2025, Qi et al., 2 Apr 2026). Second, minimizing uniform activation reconstruction error is not always sufficient: IMPACT shows that activation dimensions contribute unequally to model performance and therefore weights reconstruction by gradient sensitivity (Chowdhury et al., 4 Jul 2025). Third, compression is not uniformly safe across operator classes. The LLM training analysis reports that compressing only linear operators maintains stable convergence, whereas compressing nonlinear operators such as SiLU, RMSNorm, and Softmax can collapse or lose LL75 accuracy (Wei et al., 2 May 2026).

The practical limitations are equally method-specific. Some methods require calibration data: BALF uses a small calibration set such as LL76 K–LL77 K images, FLAT-LLM uses LL78 samples, and IMPACT recommends LL79–LL80 in-domain samples (Martínez, 29 Sep 2025, Tian et al., 29 May 2025, Chowdhury et al., 4 Jul 2025). Other methods avoid this requirement: the online LoRAct fine-tuning method states that no calibration data is needed because decomposition is done online per batch (Shi et al., 27 Sep 2025). LANCE notes that repeated low-rank decompositions introduce computational overhead and addresses this with one-shot HOSVD; LASER notes that subspaces drift and therefore adds fidelity-triggered reset mechanisms (Apolinario et al., 25 Sep 2025, Çakar et al., 19 Apr 2026). These differences indicate that “LoRAct” is best understood not as a single algorithm, but as a technical family organized around a shared empirical fact: neural activations are often substantially lower-rank than the ambient spaces in which they are represented.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Low-Rank Activation Compression (LoRAct).