Reduced Matrix Multiplication: Input-Adaptive Matrix-Product Reduction for LLM Inference
This paper introduces Reduced Matrix Multiplication (RMM), a training-free, input-adaptive inference method that reduces computational costs in Transformer-based models by selectively retaining informative slices of matrix products, achieving scalable accuracy-efficiency trade-offs across various model sizes, tasks, and modalities without modifying model weights.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine the brain of a modern computer as a massive, hyper-intelligent librarian. This librarian doesn't just read books; it writes them, solves math problems, and even looks at pictures to tell stories. To do this, it uses a special kind of brain architecture called a "Transformer." Think of a Transformer as a giant factory where information flows through assembly lines. At every station on these lines, the factory performs a massive calculation: it multiplies huge grids of numbers together. These are the "matrix multiplications" that power the magic. The problem is, these calculations are incredibly heavy. They require a lot of energy and time, like trying to move a mountain of sand with a teaspoon. As these AI models get smarter and bigger, the "mountain" gets taller, making it expensive and slow to run them. Scientists have long wondered: Is the librarian actually using every single grain of sand in that mountain for every single task, or is there a lot of unnecessary sand we could sweep away without the librarian noticing?
This paper introduces a clever new trick called Reduced Matrix Multiplication (RMM). Instead of trying to permanently shrink the factory or delete parts of the librarian's memory (which can break things), RMM acts like a smart, on-the-fly filter. Every time the librarian is about to do a massive calculation, RMM pauses and asks, "Which specific numbers in this grid are actually doing the heavy lifting right now?" It then picks only the most important ones—say, the top 50% or 70%—and ignores the rest for that specific moment. It's like a chef who, instead of chopping every single vegetable in the fridge for a soup, quickly tastes the broth and decides to only use the carrots and onions that are currently needed for this specific flavor. The best part? The librarian doesn't need to be retrained or taught how to do this; it just works naturally with the numbers it's already generating.
The researchers tested this idea on a wide variety of AI models, ranging from small ones with 1 billion parameters to giants with 70 billion. They found that these models are surprisingly flexible. When they reduced the amount of math being done by keeping only a portion of the numbers, the models didn't fall apart. In fact, the bigger the model, the more sand it seemed willing to let go of without losing its mind. For example, the giant 70-billion-parameter model could handle a 50% reduction in calculations while still answering questions and writing stories almost as well as before. However, the paper also discovered a funny quirk in how these factories are built: the "attention" parts of the brain (where the model decides what to focus on) are very chill and can handle losing half their work easily. But the "MLP" parts (the parts that actually process and transform the information) are much more sensitive; if you cut too much there, the model starts to stumble.
The team also showed that this trick works for models that can see and talk, not just text-only ones. They even built special software tools to prove that skipping these numbers actually makes the computer run faster in real life, especially when the stories or sentences get very long. While the paper suggests this is a promising way to make AI cheaper and quicker, it also notes that there isn't a single "perfect" setting for everyone. You have to tune how much you cut based on the specific model and what you're asking it to do. But overall, RMM offers a fresh, training-free way to make these digital giants run lighter, proving that sometimes, doing less math can actually help you think just as clearly.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.