# Representation Drift Compensation: A Near-Zero Inference Cost Enhancement for LLM Decomposition

Xinhao Huang, You-Liang Huang, Zeyi Wen · International Conference on Machine Learning · 2026-9-29

- **Problem** Low-rank decomposition shrinks LLMs, but errors from each layer compound through later transformer blocks. Methods that minimize per-matrix reconstruction error miss how these errors interact with the non-linearities.
- **Method** Decomper learns one compensation vector per decomposed linear layer and adds it to the existing bias. Blocks are processed in order, so earlier drift is included in each fit, and only the vectors are trained.
- **Results** Decomper cuts OPT-13B perplexity at 40% compression from 68.0 to 15.88, compared with SVD-LLM. Average accuracy rises from 42.60 to 52.67 in the same setting.

## Why small per-layer errors add up

Low-rank decomposition replaces a dense weight matrix with the product of two smaller matrices, which cuts the parameter count and can speed up inference. The usual factors come from truncated SVD, and most advanced methods choose them to minimize the reconstruction error of each weight matrix or its activations. The authors argue that this per-matrix view misses how the errors interact with the non-linearities that follow each linear layer.

A transformer block feeds its output into the next block, so an error made early is carried forward and reshaped by every later layer. The authors call the resulting divergence representation drift, and on LLaMA-3-8B they show it at the 23rd of 32 blocks. There the decomposed model's latent values sit clearly lower than the original's, which narrows the distribution and weakens the final output.

## The key idea: one correction vector per layer

The core idea is to cancel the error at the layer where it starts, so it never enters the computation that follows. The ideal correction for a linear layer is the residual R X, which is the part the low-rank weight misses, so the authors look for a vector c that approximates it. A bias-shaped vector is the natural choice because it is cheap to learn and cheap to add at run time.

Under the expected squared error, the best constant offset is R μ, which removes only the mean part of the error. The variance term Tr(R Σ R⊤) stays in place, and the authors add that truncation errors are nonlinear, so a static mean correction cannot fix them. Since μ is unknown and non-linear blocks shift input statistics, the authors fit the vector to calibration data instead of using the closed form.

## How the vector is fit block by block

The procedure first applies truncated SVD to the linear layers of every block, using the whitened SVD-LLM variant as the main instance. Blocks are then processed in order, and the input to block l is the output of the already compensated block l-1, so earlier drift is included in the fit. For each block the authors minimize the mean squared gap between the decomposed block output and the original block output, with the weights frozen.

Only the compensation vectors are trained, which cuts the search space from weight matrices of size O(d²) to vectors of size O(d). The main setting uses AdamW with cosine annealing and an initial learning rate of 0.005, and the authors report that the loss falls steeply in the first few batches. At inference the learned vector is added to the bias, so the layer keeps its original computation graph.

## Perplexity and accuracy against baselines

The main metrics are WikiText2 perplexity and the average accuracy over the common-sense suite. On OPT-13B at 40% compression, Decomper brings perplexity down from 68.0 for SVD-LLM to 15.88. Average accuracy rises from 42.60 to 52.67 in the same setting, so the gap to the original model narrows, as the authors put it. At 20% on LLaMA-2-7B, Decomper reaches 56.05 average accuracy, compared to 51.72 for Basis Sharing and 53.18 for FLAP.

The ablation with and without compensation shows the same pattern on LLaMA-3-8B at 30% compression: perplexity falls from 29.22 to 16.16. Accuracy moves from 47.3 to 50.7 in that same setting. The authors read this as drift mattering most when compression is most aggressive.

## Measured drift and run-time speed

The authors measure drift with the Wasserstein distance between the latent distributions of the original and decomposed models. On LLaMA-3-8B the distance falls from 0.1324 to 0.0614, a 53.6% reduction. On LLaMA-2-7B the drop is smaller, from 0.2865 to 0.1749, or 39.0%.

The vector sits in the bias, so the authors report no added inference computation. Time-to-first-token on LLaMA-2-13B, with sequence length 512 on one A800 GPU, speeds up 1.25× at 30% compression and 1.49× at 50%. The authors attribute that speedup to the smaller parameter and FLOP count from decomposition, not to the compensation itself.

## Pairing with quantization and PCA decomposition

Low-rank decomposition cuts FLOPs in a hardware-agnostic way, while quantization cuts numerical precision, so the authors combine them. On LLaMA-3-8B, 20% Decomper plus 4-bit quantization reaches perplexity 11.72, versus 16.58 for 3-bit GPTQ. The two memory footprints are close, at 4.5 GB versus 4.6 GB.

The method is not tied to SVD, and on the PCA-based AFM decomposition it lowers LLaMA-2-7B perplexity at 40% compression from 18.82 to 10.44. This check covers LLaMA-2 models only, and the AFM table lists 20% to 40% compression.

## Calibration, loss choice and heavier training

The authors vary the calibration set size and data type on LLaMA-2-13B at 30% compression. Perplexity stays between 6.87 and 7.43 across these settings, so the calibration choice has limited effect.

Cosine similarity as the loss gives 6.94 perplexity at 20% for LLaMA-2-7B, compared to 6.76 for the L2 loss. Against recovery fine-tuning of LLM-Pruner at 30%, which used 8,192 WikiText-2 samples, compensation reaches 8.07 perplexity and 51.7 accuracy, compared to 9.21 and 49.1.

## Limits of the evidence

The authors advise caution on brittle high-precision tasks such as complex mathematical reasoning, where compression degrades quickly. The objective is non-convex, so the procedure reaches a local optimum, and the authors do not claim global optimality. Seed variance was checked over 3 random seeds only for LLaMA-3-8B at 20%, giving perplexity 11.07 ± 0.11 and accuracy 57.36 ± 0.20.

The vision-language check uses one model, Qwen2.5-VL-7B-Instruct, at 20% compression. The main text gives 512 calibration sequences, while Appendix C gives 2,048 samples, so the calibration size of the main runs is unclear.

## Paper info

- **Authors**: Xinhao Huang, You-Liang Huang, Zeyi Wen
- **Venue**: International Conference on Machine Learning · Published
- **First published**: 2026-9-29
- **Added**: 2026-11-27
- **Original paper terms**: [Check in the original ↗](https://proceedings.mlr.press/v306/huang26q.html)
- **What we show**: Paper info and commentary

[Original paper ↗](https://proceedings.mlr.press/v306/huang26q.html)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Xinhao Huang, You-Liang Huang, Zeyi Wen (2026). Representation Drift Compensation: A Near-Zero Inference Cost Enhancement for LLM Decomposition. International Conference on Machine Learning. https://proceedings.mlr.press/v306/huang26q.html

**BibTeX**

```
@article{huang2026representation,
  title = {{Representation Drift Compensation: A Near-Zero Inference Cost Enhancement for LLM Decomposition}},
  author = {Xinhao Huang and You-Liang Huang and Zeyi Wen},
  year = {2026},
  journal = {International Conference on Machine Learning},
  url = {https://proceedings.mlr.press/v306/huang26q.html}
}
```

## Related papers

- [Principled SVD-based Delta Compression via Quantization Error Minimization](https://refivu.com/en/papers/007f6db5-bad8-41e3-a36e-3c5ad8cf77a4-principled-svd-based-delta-compression-via-quantization.md)
- [The Curse of Recursion: Training on Generated Data Makes Models Forget](https://refivu.com/en/papers/010f8cc1-a37a-4c78-86e1-999f2cb2a9eb-the-curse-of-recursion-training-on-generated-data.md)

## Other paper commentary

- [Random Selection Reveals Implicit Knowledge Consensus in Code Generation](https://refivu.com/en/papers/3824968b-20fc-4c3a-89c4-30ce0f08c74f-random-selection-reveals-implicit-knowledge-consensus-in.md)
- [Evaluating Ukrainian Grammatical Competence in Language Models: Probability Versus Prompting](https://refivu.com/en/papers/b9da328b-a55a-404e-8dab-7573f504b062-evaluating-ukrainian-grammatical-competence-in-language.md)
- [Evidence-Aligned Benchmarking and Learning for Medical Video Language Models](https://refivu.com/en/papers/403144c2-124b-4deb-ae8e-ee18219c9fef-evidence-aligned-benchmarking-and-learning-for-medical-video.md)
- [CriticEval: Evaluating Large-scale Language Model as Critic](https://refivu.com/en/papers/49cb4d52-0b81-4cbd-9b74-dfe48638ac34-criticeval-evaluating-large-scale-language-model-as-critic.md)
- [How Many Sources, Not Just How Many Problems: Planning the Precision of LLM Evaluations from Earlier Results](https://refivu.com/en/papers/1af869bf-a94d-4c3d-8125-3cd015747743-how-many-sources-not-just-how-many-problems.md)
- [Text Is Just Another Shot in Vision-Language Models: Simple Probes on Frozen Encoders Do It](https://refivu.com/en/papers/7a41ea95-b526-4d30-ba8b-9da3784c902c-text-is-just-another-shot-in-vision-language.md)
- [Why Self-Distillation Helps and Hurts: Denoising vs. Signal Forgetting](https://refivu.com/en/papers/c70638c0-8d0a-4b89-9840-3a8ed7406fca-why-self-distillation-helps-and-hurts-denoising-vs.md)
- [Don’t Drop Dropout: Optimizing Layer Sparsity for Efficient LLM Training and Inference](https://refivu.com/en/papers/c6799446-0a64-4c27-835e-5fb01a7e9ecb-don-t-drop-dropout-optimizing-layer-sparsity-for.md)
- [ArcFace: Additive Angular Margin Loss for Deep Face Recognition](https://refivu.com/en/papers/c413067c-e2eb-43a0-8011-b952f120296a-arcface-additive-angular-margin-loss-for-deep-face.md)
- [Can VLMs Diagnose and Recover from VLA Manipulation Faults?](https://refivu.com/en/papers/121caf8a-c8eb-4636-a58d-15ea45e3872a-can-vlms-diagnose-and-recover-from-vla-manipulation.md)
- [Private and Personalized Frequency Estimation in a Federated Setting](https://refivu.com/en/papers/dec6a489-e413-46db-b7e2-06e68093b0e2-private-and-personalized-frequency-estimation-in-a-federated.md)
- [Absorbing Quantization Error by Deformable Noise Scheduler for Diffusion Models](https://refivu.com/en/papers/10a7b7b0-1927-4b83-a47b-a8a00da5f0c5-absorbing-quantization-error-by-deformable-noise-scheduler.md)

## Terms in this paper

- [perplexity](https://refivu.com/en/terms/2b204e513801-perplexity)
- [MMLU](https://refivu.com/en/terms/3036c0ba5adb-mmlu)
- [cosine similarity](https://refivu.com/en/terms/3baa01a8760d-cosine-similarity)
- [MS COCO](https://refivu.com/en/terms/1a7c38d39825-ms-coco)
- [CIDEr](https://refivu.com/en/terms/bd6b0acc54ba-cider)
- [Reconstruction Loss](https://refivu.com/en/terms/58c946085188-reconstruction-loss)
- [SVD](https://refivu.com/en/terms/cc705f427730-svd)
- [average accuracy](https://refivu.com/en/terms/7d9a0ee4bc78-average-accuracy)
- [Wasserstein distance](https://refivu.com/en/terms/240851406de5-wasserstein-distance)
- [LLM-Pruner](https://refivu.com/en/terms/7d7a24efd7ad-llm-pruner)
- [WikiText2](https://refivu.com/en/terms/d68c6ead5039-wikitext2)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/b9ad989e-7c06-4f6f-8008-335a945d3a5d-representation-drift-compensation-a-near-zero-inference-cost)
