arXiv:2608.13426cs.LGAug 2026

Manuscript Offprint

arXiv:2608.13426

Reduced Matrix Multiplication: Input-Adaptive Matrix-Product Reduction for LLM Inference

Zixuan Lan, Yanhong Li, Jiawei Zhou

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

Abstract

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. Code and project resources will be available at https://github.com/Zesearch/rmm-llm.

1 Introduction

Transformer models (Vaswani et al., 2017) continue to improve with scale (Kaplan et al., 2020), but their inference cost also grows rapidly. As model size increases, efficient inference becomes increasingly important in practice. A major source of this cost is the repeated high-dimensional matrix products in attention and feed-forward layers. This raises a basic question: during inference, do all indices along the shared multiplication axes of these matrix products need to be evaluated for every input, or can part of this computation be reduced adaptively while preserving model behavior?

Prior work has explored redundant computation in Transformer inference from several angles (Liu et al., 2021; Peng et al., 2023; Sajjad et al., 2023; Liu et al., 2023). One line of work simplifies model computation through structured pruning, low-rank approximation, or dimension reduction (Sun et al., 2024; Ma et al., 2023; Frantar and Alistarh, 2023; Ashkboos et al., 2024; Gao et al., 2024). Another line of work reduces context-level redundancy through token compression, KV-cache management, or decoding-time scheduling (Li et al., 2023b; Pan et al., 2024; Zhang et al., 2023; Xiao et al., 2024; Fu et al., 2025; Shah et al., 2024; Yuan et al., 2025; Li et al., 2025b; Li et al., 2025a). These methods reduce inference cost by modifying fixed model structures, shortening inputs or caches, or changing execution flow, but they do not directly ask whether the contracted computation inside each Transformer matrix product can be reduced adaptively for the current input. A closely related direction exploits activation sparsity by skipping small-magnitude activation entries during inference (Liu et al., 2025; Lee et al., 2024). Although such methods also use input-dependent activation information, their primary object is the sparsification of activation tensors or hidden states. Our focus is different: rather than sparsifying hidden states themselves, we reduce the shared multiplication axis of each matrix product. Depending on the operation, this axis may correspond to hidden channels in linear or MLP projections, attention-head feature dimensions in attention-score computation, or token positions in the attention-value product. This framing distinguishes RMM from fixed component pruning, activation-state sparsification, and token pruning: the goal is to reduce the contracted computation performed by each matrix product at inference time.

In this work, we propose Reduced Matrix Multiplication (RMM), a training-free, input-adaptive method for Transformer inference. Rather than executing the full matrix products in attention and MLP layers, RMM dynamically selects and computes informative indices along the shared multiplication axis of each product, without modifying model weights. Beyond acceleration, RMM provides a controllable way to reduce computation through a simple retention ratio, enabling a systematic study of redundancy in Transformer inference. Across models ranging from 1B to 70B parameters and diverse downstream tasks, we observe a general trend that larger models tolerate more aggressive reduction, although reduction robustness remains model- and task-dependent. We further observe a clear structural asymmetry within Transformers: attention-side computations are substantially more reducible, whereas MLP components are much more sensitive to reduction. We also show that RMM extends to multimodal vision–language inference, and implement Triton kernels to verify that the reduced matrix products can translate into practical wall-clock speedups.

References (36)