Large-scale foundation models achieve strong performance across diverse tasks, but their size makes inference costly, largely due to dense matrix multiplications. Prior work reduces this cost by replacing dense weight matrices with efficient structured forms such as low-rank factorizations. However, these methods approximate weights rather than the output activations that determine inference accuracy. Consequently, small weight-space errors can be amplified by input activations, producing large output errors. In this work, we propose DyRA, an input-adaptive method that improves structured matrix multiplication approximation by correcting residual output errors during inference. We show that matrix multiplication can be approximated more effectively by directly optimizing low-rank factors of the output. DyRA builds on this insight by dynamically approximating and correcting the output error introduced by structured weight approximations. This combines efficient structured computation with input-dependent correction, yielding a more faithful approximation of full matrix multiplication under the same computational budget. Across vision, speech, and language models, DyRA consistently improves the accuracy-efficiency trade-off over structured weight approximations alone. Notably, DyRA achieves a 1.5× end-to-end GPU speedup for DINOv3 while reducing accuracy degradation by more than 3× relative to weight-only baselines.
Figures & tables
Figure 1: DINOv3 feature visualizations under a 60% FLOPs reduction. After replacing all dense linear layers with structured weights, we visualize the resulting features using the DINO PCA protocol, mapping the first three principal components to RGB. Weight-only approximations produce noisy, semantically degraded features, while DyRA preserves structures close to the original model.
Figure 2: Convergence of ALS-based residual product approximation across ViT layers. Relative squared Frobenius error is measured for attention projections and MLP layers with target rank r=16 .
Figure 3: Remaining normalized Frobenius error of DyRA and a static low-rank baseline under a matched FLOPs budget. The error is measured between the original dense output and the approximated output across ViT layers.
Figure 4: ImageNet classification accuracy at different FLOPs reduction levels for ViT-L. DyRA consistently improves the accuracy–efficiency trade-off across low-rank, Monarch, and BLAST.
Figure 5: DyRA vs. static weight approximations on dense prediction with DINOv3. DyRA achieves a superior accuracy–efficiency trade-off for semantic segmentation and depth estimation.
FRR
Method
WER( ↓ )
0%
Original
1.92
25%
Low-rank
2.21
Low-rank + DyRA
2.08
BLAST
2.07
BLAST + DyRA
2.03
50%
Low-rank
24.54
Table 1: WER under different FLOPs reduction ratios (FRR).
Figure 6: End-to-end latency vs. accuracy on DINOv3 depth estimation.
Figure 7: Comparison between DyRA and input-aware decomposition on LLaDA-8B and ViT-L. DyRA generally achieves better performance, and can further improve results by using input-aware decomposition as the static approximation.
Figure 8: Fine-tuning results on ImageNet classification with ViT-L.
Figure 9: Ablation study on ImageNet classification with ViT-L. Left: DyRA with different residual ranks r . Right: DyRA with different ALS iteration counts t .
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
CR
Method
WikiText
PG-19
C4
0%
Dense
9.38
10.07
7.01
20%
Low-Rank
16.00(+6.62)
15.93(+5.86)
10.81(+3.80)
BLAST
12.94(+3.56)
13.05(+2.98)
9.26(+2.25)
Low-Rank + DyRA
12.03(+2.65)
12.48(+2.41)
8.75(+1.74)
Appendix
Table 2: Perplexity comparison on language modeling benchmarks without fine-tuning. Lower is better. Bold indicates the best performance under the same compression ratio.
FR
Method
PIQA
Wino
BoolQ
OBQA
ARC-e
ARC-c
Avg
0%
Dense
81.66
74.90
77.03
47.60
80.18
50.85
68.70
20%
Low-Rank
76.66(-5.00)
69.38(-5.52)
69.42(-7.61)
45.20(-2.40)
73.53(-6.65)
41.72(-9.13)
62.65(-6.05)
BLAST
78.56(-3.10)
67.64(-7.26)
66.91(-10.12)
44.80(-2.80)
75.42(-4.76)
43.43(-7.42)
62.79(-5.91)
Low-Rank + DyRA
77.69(-3.97)
69.93(-4.97)
71.50(-5.53)
48.60(+1.00)
76.05(-4.13)
44.11(-6.74)
64.65(-4.05)
Appendix
Table 3: Performance comparison across multiple-choice reasoning benchmarks. FR denotes the FLOP reduction ratio. Values in parentheses indicate accuracy changes relative to the dense model. Bold indicates the best performance under the same compression ratio.
Figure 10: Top-1 accuracy versus FLOPs reduction on ViT-B/16. Across low-rank, Monarch, and BLAST approximations, combining DyRA consistently improves the accuracy–efficiency trade-off over static weight approximation baselines.
Figure 11: Additional FLOPs-matched output approximation error results on ViT-L sublayers omitted from the main paper. DyRA consistently achieves lower normalized Frobenius output error than the static low-rank baseline.
Figure 12: Convergence of ALS-based residual product approximation across ViT-L linear layers.
Transformer-based language models achieve strong performance but incur substantial inference cost due to repeated high-dimensional matrix multiplications. We propose Reduced Matrix Multiplication (RMM), a training-free, input-adaptive inference method that reduces Transformer matrix products by selecting informative slices along their contraction dimensions, without modifying model weights. Under a simple retention-ratio control, RMM provides a smooth and predictable accuracy-efficiency trade-off. Across language models ranging from 1B to 70B parameters, we find that reduction tolerance depends on the model family, task, component, and retention ratio, although it often improves with model scale. Under moderate reduction, RMM remains robust across the evaluated discriminative, autoregressive generation, and long-context settings. We further show that the same principle extends to multimodal vision-language inference. Mechanistic ablations reveal a structural asymmetry within Transformers: attention-side computations are substantially more reducible than MLP components. Finally, wall-clock benchmarks with custom kernels on an NVIDIA A100 show that these computational savings can translate into practical runtime gains, especially at longer sequence lengths. Together, these results position RMM as a scalable direction for input-adaptive inference-time optimization.
Zixuan Lan, Yanhong Li, Jiawei Zhou
University of Chicago · Independent Researcher · Stony Brook University
Weight-Decomposed Low-Rank Adaptation (DoRA) extends LoRA by decoupling weight magnitude from direction, but its forward pass requires the row-wise norm of W + sBA, a computation that every major framework we surveyed implements by materializing the dense [d_out, d_in] product BA. At d_in = 8192 and rank r = 384, a single module's norm requires about 512 MB of transient working memory in bf16, making high-rank DoRA costly and often infeasible on common single-GPU setups once hundreds of adapted modules and checkpointing are involved. We present two systems contributions. A factored norm decomposes the squared norm into base, cross, and Gram terms computable through O(d_out r + r^2) intermediates, eliminating the dense product. Fused Triton kernels collapse the four-kernel DoRA composition into a single pass, reducing memory traffic by about 4x and using a numerically stable form that avoids catastrophic cancellation in the near-unity rescaling regime where magnitude scales concentrate in practice. Across six 8-32B vision-language models (VLMs) on three NVIDIA GPUs (RTX 6000 PRO, H200, B200) at r = 384 in bf16, the fused implementation is 1.5-2.0x faster than Hugging Face PEFT's DoRA implementation for inference and 1.5-1.9x faster for gradient computation (optimizer step excluded), with up to 7 GB lower peak VRAM. Microbenchmarks on six GPUs spanning four architecture generations (L40S, A100, RTX 6000 PRO, H200, B200, B300) confirm 1.5-2.7x compose-kernel speedup. Final-logit cosine similarity exceeds 0.9999 across all model/GPU pairs, and multi-seed training curves match within 7.1 x 10^-4 mean per-step loss delta over 2000 steps.
Matrix inversion in chunk-wise parallel linear attention is a major bottleneck for long-context modeling, particularly on NPUs, where forward-substitution-based methods exhibit limited parallelism and poor hardware utilization. We propose a fast, Matrix Multiplication (MatMul)-based algorithm tailored for strictly lower-triangular matrices arising in chunk-wise linear attention. Motivated by the rapid growth of Neumann-series terms and the diagonal concentration of the inverse matrix, we employ a truncated Neumann expansion with structural masking and parallel residual correction to eliminate sequential dependencies. We further extend our method to low-bits INT by mitigating the dynamic range expansion arising from repeated matrix power operations, and adapt the approximation order and residual step to the chunk size to minimize computational cost while preserving the model's accuracy. Experiments on Qwen3.5-family models demonstrate up to 5× kernel-level speedup and a 20% reduction in decode-layer overhead, while preserving accuracy under both floating-point and low-precision inference. Our method offers an efficient and hardware-friendly solution for scalable linear attention.
Luoming Zhang, Yuwei Ren, Kui Zhang +7
Qualcomm AI Research, an initiative of Qualcomm Technologies, Inc.