← Latest papers
💬 NLP

WIDE: Boosting Adaptive LLM Inference via Token-level Dynamic Width Pruning

The paper introduces WIDE, the first end-to-end differentiable framework that enables token-level dynamic width pruning for LLMs by allowing fine-grained selection of attention heads and FFN channels, coupled with a specialized kernel co-design to achieve significant end-to-end inference acceleration while maintaining high accuracy.

Original authors: Haozhe Hu, Hao Wu, Peiran Yin, Chao Han, Yunpu Ma, Xiaoyu Shen

Published 2026-07-31
📖 7 min read🧠 Deep dive

Original authors: Haozhe Hu, Hao Wu, Peiran Yin, Chao Han, Yunpu Ma, Xiaoyu Shen

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 you are trying to run a massive, incredibly smart robot brain on a tiny, battery-powered device. This robot brain is a Large Language Model (LLM), a type of artificial intelligence that can write stories, solve math problems, and chat like a human. But here's the catch: these brains are huge. They are so big and hungry for power that they usually need super-computers to run, making them slow and expensive to use on your phone or laptop.

To fix this, scientists have been trying to "prune" these brains. Think of pruning like trimming a giant, overgrown hedge. You cut away the branches that aren't doing much work to make the plant smaller and faster. For a long time, the best way to do this was to cut off entire sections of the hedge permanently, no matter what the plant was trying to do that day. But this is a bit clumsy; sometimes you cut off a branch that was actually needed for a specific task, making the robot forgetful. Recently, smarter methods were invented that let the robot decide while it is thinking which parts to use. However, these smart methods were still a bit too rough—they would either use a whole section or skip it entirely, like deciding to use a whole room or leave the whole house empty, rather than just turning on a few specific lights.

This paper introduces a new system called WIDE (Width-based Inference with Dynamic Execution). It's like giving the robot a super-precise dimmer switch for every single light bulb in its brain. Instead of turning whole rooms on or off, WIDE allows the robot to dynamically decide, for every single word it processes, exactly which tiny groups of neurons (the brain's cells) should light up and which should stay dark. The researchers built a special "traffic controller" (a router) that learns to make these split-second decisions. They also designed a new way for the computer's hardware to handle these decisions without getting confused or slowing down. The result? The robot stays just as smart as before, but it runs much faster and uses less energy, even when they cut away half of its brain's capacity.

The Problem: The "All-or-Nothing" Trap

Imagine you are a chef running a massive kitchen. You have hundreds of chefs (neurons) working together to cook a meal. In the old days, if you wanted to save time, you might fire half the kitchen staff permanently. This works fine if you are always cooking the same simple dish, but if you suddenly need to bake a complex cake, you might have fired the only baker you needed. This is what happens with static pruning: the model is trimmed once and for all, regardless of the specific question it is answering.

Then came dynamic pruning, which was like hiring a manager who could tell the chefs, "Hey, for this specific order, only the grill station is needed; the bakery can take a break." This was better, but the manager was still a bit clumsy. They would say, "Skip the whole bakery," even if the bakery only needed to use two ovens out of ten. It was an "all-or-nothing" decision for big chunks of the kitchen.

The problem is that modern AI models are so complex that skipping a whole chunk often throws away useful information, hurting the quality of the answer. Plus, if the manager keeps changing the schedule every second, the kitchen staff gets confused, and the actual cooking speed doesn't get much faster because of all the switching overhead.

The Solution: WIDE's "Dimmer Switch"

The authors of this paper, working at the Ningbo Institute of Digital Twin and LMU Munich, came up with WIDE. Instead of firing whole departments or skipping whole rooms, WIDE lets the model decide, for every single word (token) it processes, exactly which small groups of neurons to activate.

Think of the model's brain as a giant grid of light switches.

  • Old Dynamic Methods: "Turn off the entire left wing of the house."
  • WIDE: "For this specific word, turn on the lights in the kitchen, but only the ones over the stove and the fridge. Leave the rest of the kitchen dark."

WIDE does this by using a lightweight "router" (a tiny decision-maker) attached to every layer of the model. This router looks at the current word and asks: "Do I need this group of attention heads (the parts that look at other words)?" and "Do I need this group of FFN channels (the parts that process the meaning)?" It makes a binary choice: use this group or skip it.

Crucially, WIDE doesn't just stop at making the decision; it solves the hardware headache. Usually, if you tell a computer to skip random parts of a calculation, the computer gets bogged down trying to figure out where the data is. WIDE uses a clever trick called mask reordering. Imagine you have a messy pile of mail where some letters are for delivery and some are trash. Instead of throwing the trash away and then trying to sort the mail, WIDE first shuffles the pile so all the "keep" letters are at the top in a neat block, and all the "trash" letters are at the bottom. This allows the computer to process the "keep" block very efficiently without stopping to check every single piece of mail.

What They Found: Speed and Smarts

The researchers tested WIDE on popular AI models like Llama 3.1 (8 billion parameters) and Llama 3.2 (3 billion parameters). They compared it against the best existing methods for both static and dynamic pruning.

Here is what the numbers suggest:

  • Smarter Pruning: When they cut 50% of the model's capacity (a very aggressive trim), WIDE kept the model's intelligence much better than anyone else. For example, on the Llama 3.1 model, WIDE retained 86.42% of the original accuracy after pruning, while the next best dynamic method (SkipGPT) only kept 59.42%. Even without extra fine-tuning, WIDE was already beating the best static methods.
  • Real-World Speed: The paper measured how much faster the model actually ran. For the "prefill" stage (reading a long prompt), WIDE was 1.68 times faster than the original model. For the "decode" stage (generating the answer word by word), it was 1.55 times faster.
  • Kernel-Level Magic: If you look just at the math calculations (ignoring other overheads), the speedup was even more dramatic, reaching up to 1.98x for prefill and 4.95x for decoding. This suggests that the bottleneck was the inefficient way previous methods handled the "skipping," and WIDE's new hardware design fixed that.

The authors also found that the model learned to be very strategic. It didn't just skip random parts; it learned to skip the "boring" words (like "the" or "a") and keep the "important" words (like "running" or "track"). In one test, the model skipped 66% of the attention work but only 28% of the processing work, showing it knew exactly where to save energy.

The Bottom Line

WIDE suggests that the future of efficient AI isn't just about cutting the model smaller, but about making the model smarter about how it uses its remaining parts. By moving from "skip the whole room" to "dim the specific lights," and by redesigning the kitchen to handle these dimmers efficiently, the authors have created a framework that makes large AI models significantly faster and more efficient without making them forgetful.

While the results are promising, the paper notes that this is a specific solution for GPU hardware (the chips in computers) and relies on a two-stage training process where the model first learns to make decisions and then gets a quick tune-up to regain any lost accuracy. It's a significant step forward in making powerful AI accessible on everyday devices, proving that you don't need a giant brain to be smart—you just need to know which parts of your brain to use at the right time.

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 →