Reproduce “Less Experts, Faster Decoding: Cost-Aware Speculative Decoding for Mixture-of-Experts” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Jincheng Xie, Runheng Liu, Heyan Huang, Yawen Ling, Hanbin Dai, Yu Zheng, Wen Hu

ECOSPEC introduces a cost-aware speculative decoding framework for Mixture-of-Experts (MoE) models, mitigating "expert scattering" by integrating marginal expert activation cost into draft token selection. It achieves up to 1.62x end-to-end decoding speedup and reduces High Bandwidth Memory traffic on large MoE models while preserving acceptance length.

Key insights

  • Explicitly accounting for the marginal cost of activating new experts during draft selection is crucial for improving speculative decoding efficiency in MoE models.
  • Dynamic tracking and utilization of an "expert buffer" allows for effective reuse of already-covered experts, reducing the overall memory footprint of parallel verification.
  • Efficiency gains can be achieved without modifying the target MoE model's verification process, ensuring lossless semantics and preserving output quality.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.