A3: an Analytical Low-Rank Approximation Framework for Attention

Jeffrey T. H. Wong, Cheng Zhang, Xinye Cao, Pedro Gimenes, Christos-Savvas Bouganis, George Anthony Constantinides, Wayne Luk, Yiren Zhao

Large Language Models (LLMs) deliver remarkable performance but pose significant deployment challenges due to their massive parameter counts. While techniques like pruning and quantization are widely adopted, Low-Rank Approximation (LRA)—the method of approximating a large matrix with two smaller ones—has historically struggled to match their efficacy.

A new paper from researchers at Imperial College London introduces $A^3$, an Analytical Low-Rank Approximation framework that rethinks Transformer compression. By optimizing the function of model components rather than isolated weight matrices, $A^3$ achieves state-of-the-art compression, reduces KV cache sizes, and improves inference speed with zero runtime overhead.

The Problem with Traditional Low-Rank Approximation

Standard LRA methods suffer from two primary limitations when applied to LLMs:

  1. Context Blindness: Existing approaches typically minimize the output error of individual linear layers in isolation. They fail to account for how these layers interact within the broader Transformer architecture to produce attention scores or multi-layer perceptron (MLP) outputs.
  2. The "Extra Work" Tax: Traditional LRA decomposes a large weight matrix $W$ into two smaller matrices, $A$ and $B$. During inference, this requires launching two General Matrix Multiplication (GEMM) kernels instead of one. The overhead of these extra memory operations and kernel launches often negates the theoretical speedups, making the compressed model slower than the original.

The $A^3$ Methodology: Functional Component Compression

$A^3$ circumvents these issues by analytically reducing the internal hidden dimensions of the Transformer architecture. This ensures the number of operations remains constant while the workload per operation decreases. The framework splits the Transformer layer into three functional blocks:

  • QK (Query-Key) Component: Instead of compressing $W_q$ and $W_k$ independently, $A^3$ minimizes the error of the pre-softmax attention scores. It derives a closed-form solution using Singular Value Decomposition (SVD) to reduce the head dimension ($d_{qk}$).
  • OV (Output-Value) Component: Similarly, $A^3$ targets the attention output. By shrinking the value head dimension ($d_{vo}$), it naturally compresses the KV cache—a critical bottleneck in long-sequence generation.
  • MLP Component: Because MLPs utilize non-linear activations (e.g., SiLU), standard SVD is inapplicable. $A^3$ employs CUR decomposition, selecting the most critical rows and columns of the weight matrix based on leverage scores derived from calibration data.

Crucially, $A^3$ natively supports modern architectural features like Group Query Attention (GQA) and Rotary Position Embeddings (RoPE), which have historically tripped up previous compression frameworks.

Key Insights and Synergies

  • Functional Loss over Layer Loss: The framework operates on the principle that minor deviations in specific weight matrices are acceptable as long as the resulting attention score or MLP output remains accurate. Optimizing for function preserves the model's reasoning capabilities far better than isolated layer optimization.
  • Hidden Dimension Trimming: By physically reducing head dimensions, $A^3$ eliminates the "extra GEMM" problem, directly reducing the data volume the GPU must process per layer.
  • Inherent KV Cache Compression: Shrinking the dimensions of Keys and Values provides a simultaneous reduction in KV cache memory usage, essential for scaling LLM serving.

Empirical Results and Performance

The authors evaluated $A^3$ across various benchmarks (WikiText-2, C4, SlimPajama) and downstream tasks (ARC-Challenge, BoolQ, Winogrande, GSM8K, MMLU), using 128 random sequences from SlimPajama for calibration.

  • Superior Accuracy: Under identical compute and memory reduction budgets, $A^3$ significantly outperforms prior state-of-the-art methods. For instance, on LLaMA 3.1-70B (at a 10% compression ratio), $A^3$ achieved a perplexity of 4.69 on WikiText-2, compared to the previous state-of-the-art (SVD-LLM) at 7.87.
  • Real Inference Speedups: Unlike traditional LRA methods, $A^3$ consistently delivers throughput gains. On LLaMA-2-13B, it achieved up to a 3.51x speedup in prefill throughput using the SDPA kernel.
  • Quantization Compatibility: $A^3$ is orthogonal to quantization. Combining it with 4-bit HQQ quantization enables extreme compression ratios with minimal performance degradation compared to using quantization alone.

Limitations and Future Directions

  • CUR Decomposition Limits: While effective for RoPE and MLP components, CUR decomposition is mathematically sub-optimal compared to SVD. At high compression ratios (e.g., >20%), performance degradation in these components accelerates.
  • Calibration Sensitivity: The framework's efficacy is tied to calibration data quality. Diverse datasets like SlimPajama yield better generalization than narrow datasets like WikiText-2.
  • Future Work: The authors propose integrating $A^3$ with Quantization-Aware Training (QAT), fine-tuning, and exploring sophisticated mixed-rank allocation strategies (assigning more rank to critical layers) to push compression boundaries further.

Framework available at: https://github.com/DeepWok/a3

Summary updated

BibTeX
@inproceedings{wong2026analytical,
  author = {Jeffrey T. H. Wong and Cheng Zhang and Xinye Cao and Pedro Gimenes and Christos-Savvas Bouganis and George Anthony Constantinides and Wayne Luk and Yiren Zhao},
  title = {{A3: an Analytical Low-Rank Approximation Framework for Attention}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=aeeo8ZAftQ},
}
Figure