Yuhao Zhang
We lifted 2 functions out of this paper's own repositories and ran 2 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.
| Repository | Role | Ran |
|---|---|---|
| Alizen-1009/Shapley-Moe | — | 2 of 2 |
| Function | Status | Where it lives |
|---|---|---|
| select_alpha_per_layer | Ran | Alizen-1009/Shapley-Moe/pruning/methods/select_by_shapley.py pointer only (licence: NONE) · get_code("7c63a387d3b459eb") |
| select_by_alpha | Ran | Alizen-1009/Shapley-Moe/pruning/methods/select_by_shapley.py pointer only (licence: NONE) · get_code("0bf8ca09806330c0") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Sparse Mixture-of-Experts (MoE) large language models achieve strong quality with low per-token compute, yet their deployment is often limited by the memory wall: the full expert pool must remain resident to support token-dependent routing. Expert pruning is a direct remedy, but prior criteria typically score experts independently and overlook that MoE inference is inherently coalitional, where outputs arise from routed top-k expert combinations. We propose SHAPE, a taskdriven pruning framework that explicitly models intra-layer expert cooperation. SHAPE formulates routing traces on a small calibration set as an empirical cooperative game and assigns interaction-aware expert values via a Shapley-style attribution over observed top-k coalitions, enabling the identification of experts that are essential for high-utility collaborations rather than merely frequent. To preserve MoE topology under a global pruning budget, SHAPE further introduces a quality-coverage selection rule that retains, in each layer, the minimal expert subset covering an α fraction of non-negative Shapley mass, while using bisection to match a target keep rate. Experiments on three modern MoE backbones (Qwen3-30B-A3B, GPT-OSS-20B, and DeepSeek-V2-Lite) across diverse benchmarks show that SHAPE consistently improves robustness over global and layer-wise pruning variants, maintaining competitive accuracy under 20% and 40% expert pruning without additional training and delivering clear reductions in peak GPU memory footprint. The open-source code is available at https://github.com/Alizen-1009/Shapley-Moe.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2606.09886")
get_code_for_paper("2606.09886")
have("2606.09886")
Connect an agent — have() is free.