← Latest papers
🤖 machine learning

SHAPE: Coalition-Aware Expert Pruning for Sparse Mixture-of-Experts LLMs

SHAPE is a task-driven expert pruning framework for Sparse Mixture-of-Experts LLMs that models intra-layer expert cooperation as a cooperative game to identify and retain essential collaborative subsets via Shapley-style attribution, thereby reducing memory footprint while maintaining accuracy without additional training.

Original authors: Yuhao Zhang

Published 2026-06-10
📖 4 min read☕ Coffee break read

Original authors: Yuhao Zhang

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 massive, high-powered kitchen (a Large Language Model) designed to cook up complex answers. Instead of having one giant chef do everything, this kitchen uses a Mixture-of-Experts (MoE) system. Think of it as a team of 100 specialized sous-chefs (the "experts").

When a customer orders a dish (a prompt), a head waiter (the "router") looks at the order and picks the top 3 chefs to work on it together. The magic is that the kitchen doesn't need all 100 chefs to be active at once; it only uses the specific 3 needed for that moment. This makes the kitchen very fast and efficient.

The Problem: The "Memory Wall"
Even though only 3 chefs are cooking at any given second, the kitchen owner has to keep all 100 chefs standing by in the room, fully dressed and ready to go. Why? Because the waiter might need any of them for the next order.

  • The Issue: If you have a 100-chef kitchen, you need a huge, expensive room (GPU memory) to fit everyone. This makes it impossible to run these powerful kitchens in smaller, cheaper spaces (like a single laptop or a small server).
  • The Old Fix: Previous attempts to shrink the kitchen were like a manager saying, "Let's fire the chefs who haven't cooked much this week." This is flawed because a chef might not cook often, but when they do cook with a specific partner, they create a masterpiece. Firing them breaks that special teamwork.

The Solution: SHAPE (The Teamwork Detective)
The paper introduces SHAPE, a new way to shrink the kitchen without ruining the food. Instead of just counting how often a chef is called, SHAPE looks at how well they work together.

Here is how SHAPE works, using a simple analogy:

  1. The "Game" Observation: SHAPE watches the kitchen for a short while (using a small "calibration set" of orders). It doesn't just watch who gets called; it watches which groups of 3 chefs get called together and how often those groups succeed.
  2. The "Shapley" Score (Fairness): Imagine a group of 3 chefs creates a perfect dish. How much credit does each chef get?
    • If Chef A is great alone but Chef B is useless without Chef C, a simple count might miss this.
    • SHAPE uses a mathematical concept called Shapley Value (think of it as a "fairness calculator"). It asks: "If we remove Chef A from this specific trio, does the dish fall apart?"
    • If the dish falls apart, Chef A is essential to that team, even if they aren't the most famous chef.
    • If the dish tastes the same without Chef A, then Chef A is redundant and can be let go.
  3. The "Quality Coverage" Rule: SHAPE doesn't just fire the bottom 20% of chefs based on a single score. It ensures that every "floor" of the kitchen (every layer of the model) keeps enough chefs to cover the most important teamwork combinations. It uses a "bisection" method (a smart guessing game) to find the perfect number of chefs to keep so the kitchen stays small but still cooks 99% of the same dishes perfectly.

The Results
The researchers tested this on three different modern "kitchens" (Qwen, GPT-OSS, and DeepSeek).

  • The Outcome: They were able to fire 20% to 40% of the chefs (reducing the memory needed significantly) without the food tasting any worse.
  • Why it worked: By keeping the chefs who are essential for teamwork rather than just the ones who are busy, the kitchen remained stable.
  • The Bonus: Because they fired so many chefs, the room (GPU memory) needed to run the kitchen became much smaller, making it possible to run these powerful models on less expensive hardware.

In a Nutshell
SHAPE is like a smart manager who realizes that firing the "quiet" chef who is the secret glue of a winning team is a bad idea. Instead, it fires the "loud" chefs who are easily replaced. This shrinks the team size and the office space needed, while keeping the quality of the work exactly the same.

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 →