AI agents
Amazon Researchers Propose HOPE Second-Order Expert Pruning for MoE Models
Amazon researchers describe HOPE, a second-order MoE expert-pruning method that accounts for pairwise expert cooperation and leads on agentic coding at 50% pruning, with an open toolkit.
Amazon researchers Alex M. Tseng, Luca Zancato and colleagues have published a Hugging Face post introducing HOPE (Higher-Order Pruning of Experts), a method for compressing mixture-of-experts (MoE) language models. The central idea is that when deciding which experts to delete, it is not enough to score each expert in isolation; the pairwise cooperation between experts matters too.
The post notes that MoE models can scale to hundreds of billions of parameters, but every expert MLP must occupy memory at inference even though most are idle for any given token. In Qwen3.5-122B, each of its 48 MoE layers has 256 experts, and roughly 95% of its about 250 GB parameter footprint comes from expert MLPs, while only 8 experts per layer are active per token. Expert pruning deletes the least useful experts permanently, needs no training, composes with quantization and avoids the latency of dynamically loading experts.
The hard part is choosing which experts to remove. Existing approaches such as REAP, MAN, EAN and Frequency are first-order: they assign each expert an independent importance score from a calibration set and cut the lowest. The authors say their experiments show experts form stable co-activated groups, and prior work has found such cooperation important for model performance. HOPE treats the pruning error with a tractable squared-sum upper bound; expanding it produces cross terms between pairs of experts, turning prune-set selection into a binary quadratic program solved per layer with a standard solver in roughly one to two seconds, negligible next to calibration.
The authors report that the diagonal of HOPE's interaction matrix F almost perfectly recovers REAP's expert rankings (Spearman rho = 0.988), so gains over REAP can be attributed to the off-diagonal terms. They evaluated HOPE on Qwen3.5-122B, Qwen3.5-35B and GLM-4.5-Air, with two calibration sets (Evol-CodeAlpaca and SWE-Bench Verified trajectories), pruning rates from 10% to 50%, and four first-order baselines. Across all conditions HOPE had the best average rank, 2.07 among five methods, and improved to 1.58 at 50% pruning versus 2.42 for the next-best, REAP.
On the agentic coding benchmark SWE-Bench Pro, Qwen3.5-35B-A3B pruned by 50% scored 42.3 with HOPE, close to the unpruned model's 41.8, while REAP fell to 36.2. The authors acknowledge limits: at low pruning rates of 10% to 20%, first-order methods can be competitive; HOPE prunes each layer independently and ignores cross-layer interactions; and it captures only pairwise interactions, while triplets and higher orders are combinatorially hard to estimate. They also released a command-line toolkit and Python API covering calibration, solving and pruning, tested on the Qwen3, Qwen3-Next, Qwen3.5 and GLM-4.5 families.