arXiv:2610.02882cs.LGOct 2026

Manuscript Offprint

arXiv:2610.02882

DyRA: Dynamic Residual Approximation for Efficient Matrix Multiplication in DNNs

Daewon Chae, Hyunwon Chung, Changwoo Lee, Hun-Seok Kim

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

Abstract

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×1.5\times end-to-end GPU speedup for DINOv3 while reducing accuracy degradation by more than 3×3\times relative to weight-only baselines. Our code is available at https://github.com/daewon88/DyRA.

1 Introduction

Recent advances in deep learning have achieved state-of-the-art performance across diverse tasks, but at substantial computational cost. Dense matrix multiplications account for much of the computation in modern deep networks 1^{1}, motivating work on accelerating them by replacing dense weight matrices with efficient structured forms [5, 11, 21, 22, 24, 31]. Low-rank approximation is a representative example, while block-structured variants such as Monarch [11] and BLAST [22] offer more expressive alternatives. Given a pre-trained model, these methods approximate its weight matrices via closed-form decompositions or iterative optimization, enabling faster inference with reduced FLOPs.

Despite their effectiveness, these methods are fundamentally weight-centric: they optimize approximations in weight space without explicitly accounting for the input activations seen at inference time. However, the actual computation is determined by the realized product between activations and weights, not by the weights alone. Thus, even small weight-space residuals can be amplified by the input, causing large output activation errors [40]. We illustrate this limitation on DINOv3 [35], a large-scale vision foundation model. As shown in Figure 1, replacing all dense linear layers with structured matrices such as low-rank, Monarch, and BLAST makes PCA feature visualizations noticeably noisier and less semantically organized than those of the original model. This demonstrates that approximating weights alone may fail to preserve model behavior.

∗^{*}Contributed to this work while at the University of Michigan.

1^{1}For example, in ViT-L/16 [14], linear layers account for approximately 96.7% of total FLOPs.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

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.

To address this limitation, we propose DyRA (Dynamic Residual Approximation), an input-adaptive method that improves structured matrix multiplication by correcting output errors on the fly. DyRA augments a static weight approximation with a dynamic correction adapted to the input activations. This correction is computed through nested optimization during inference to minimize residual output errors induced by the approximated weight matrix. Rather than evaluating the exact residual through an expensive dense multiplication, DyRA uses low-rank factors to approximate the residual directly in the output space, not the weight space. These factors are efficiently computed at inference time using alternating least squares, without explicitly forming the dense residual product. Consequently, DyRA provides input-adaptive output correction that more faithfully approximates the original matrix multiplication under a fixed computational budget. Figure 1 shows that this correction substantially preserves the semantic structure of DINOv3 features compared with weight-only approximations.

We validate DyRA as a test-time model approximation and acceleration technique across pre-trained vision, language, and speech models. Combined with structured matrices such as low-rank, Monarch, and BLAST, DyRA consistently improves the accuracy–efficiency trade-off over weight-only baselines. For example, on semantic segmentation with DINOv3 at a 60% FLOPs reduction, DyRA limits the mIoU drop to 1.7 points, whereas the weight-only baseline drops by 54.1 points. These gains translate to practical runtime improvements: on DINOv3, it achieves a 1.52×1.52 \times GPU speedup while incurring only 1/3 of the accuracy drop of the weight-only baseline at the same speedup.

References (40)