← Latest papers
🤖 machine learning

Efficient LLMs with AMP: Attention Heads and MLP Pruning

This paper introduces AMP, a novel structured pruning method that efficiently compresses Large Language Models by removing less critical Attention Heads and MLP structures, achieving up to 30% parameter reduction with minimal performance loss and improved inference speeds across various model families.

Original authors: Leandro Giusti Mugnaini, Bruno Lopes Yamamoto, Lucas Lauton de Alcantara, Victor Zacarias, Edson Bollis, Lucas Pellicer, Anna Helena Reali Costa, Artur Jordao

Published 2026-07-31
📖 4 min read☕ Coffee break read

Original authors: Leandro Giusti Mugnaini, Bruno Lopes Yamamoto, Lucas Lauton de Alcantara, Victor Zacarias, Edson Bollis, Lucas Pellicer, Anna Helena Reali Costa, Artur Jordao

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 a world where computers can write poetry, solve riddles, and chat like humans. This is the realm of Large Language Models (LLMs), the digital brains behind the most advanced artificial intelligence today. Think of these models as massive libraries containing every book ever written, but instead of just reading them, they can understand and create new stories on the fly. However, there's a catch: these libraries are so enormous that they require giant, power-hungry servers to run, making them slow and expensive to use. To fix this, scientists have been trying to shrink these models without losing their smarts. One popular way to do this is called "pruning." Imagine a gardener trimming a bush; instead of cutting off random leaves, they carefully snip away the branches that aren't doing much work, leaving a smaller, faster plant that still blooms beautifully. The big question researchers are asking is: how do we find the right branches to cut so the plant stays healthy, but grows much faster?

This is exactly what the authors of this paper tackled with a new method they call AMP, which stands for Attention Heads and MLP Pruning. They realized that while other methods tried to trim these digital bushes, they often cut too much or used complicated tools that required special, expensive hardware. AMP is like a smart, lightweight pair of shears that can quickly identify which parts of the model are actually doing the heavy lifting and which ones are just along for the ride.

The paper introduces a clever trick to figure out what to cut. Instead of just looking at the static weights (the model's internal "muscle memory"), AMP projects the actual input data (like a sentence) onto those weights to see how much the model actually uses them. It's like checking which tools in a toolbox are actually being used to build a house, rather than just guessing based on how heavy the tools are. If a specific "attention head" (a part of the model that focuses on different words) or a "neuron" in the middle layer isn't contributing much to the final answer, AMP marks it for removal.

The results are quite promising. The authors tested AMP on several popular models, including LLaMA and Phi. They found that by removing about 30% of the less important parts, the models became significantly faster—up to 1.25 times faster in some cases—without needing any special computer chips. In terms of accuracy, AMP performed better than the current best methods for structured pruning. For example, on the LLaMA 7B model, it surpassed existing structured pruning techniques by up to 4.81 percentage points in average task accuracy. Even more impressively, on the LLaMA-2 7B model, it outperformed these same structured baselines by up to 9.52 percentage points.

The researchers were also careful to prove their method actually works. They ran a "coherence check," which is like a reverse experiment: they deliberately cut the most important parts of the model instead of the least important ones. As expected, the model crashed, performing terribly. This confirmed that AMP is indeed good at spotting the difference between essential and non-essential parts. They also found that cutting only one type of part (like just the attention heads) wasn't enough; you need to trim both the attention heads and the middle-layer neurons together to get the best results.

One of the most exciting findings is how efficient the whole process is. The entire pruning and fine-tuning process took only about four hours on a standard, consumer-grade graphics card (an NVIDIA RTX 3090), with the actual pruning step taking just a few minutes. This makes the method very accessible and aligns with "Green AI" principles, as it reduces the energy needed to run these models by nearly 20%, saving both money and carbon emissions.

In short, the paper suggests that AMP is a highly effective, flexible, and fast way to make large AI models smaller and quicker. It doesn't require expensive hardware or complex retraining, and it consistently outperforms existing structured pruning methods in keeping the model smart while making it speedy. While the authors note that smaller models (like Phi-1.5) were a bit more sensitive to pruning, the overall message is clear: with the right pruning strategy, we can make powerful AI more practical for everyday use.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →