S2-MoE:面向边缘设备混合专家模型的高效自推测解码 S2-MoE: Enabling Efficient Self-Speculative Decoding for Mixture-of-Experts on Edge Devices 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-08-15
👁️ 预览文献
💡 AI 中文简介
在边缘设备上运行大模型受限于内存和带宽。推测解码能一次生成多个词,混合专家(MoE)能减少每次激活的参数,但两者简单结合会因验证开销大、专家复用差而失效。本文提出S2-MoE自推测解码框架,通过路由感知的自适应推测扩展、复用感知的专家门控和共享上下文对齐,降低冗余验证。在llama.cpp上实现,跨多种MoE模型和数据集取得最高5.3倍加速(平均约2.0倍)。
领域大语言模型推理加速 / 边缘计算
适合谁读需要一定专业背景(了解LLM推理、推测解码与MoE)
核心贡献1. 提出S2-MoE自推测解码框架,通过路由感知自适应推测扩展减少冗余验证;2. 设计复用感知专家门控与共享上下文对齐,提升MoE验证效率并统一草稿与目标模型执行。
关键数据在边缘设备上跨多种MoE模型和数据集,相比标准自回归解码最高加速5.3倍,平均约2.0倍;实现在llama.cpp中。
推荐理由如果你关心大模型怎么在手机、边缘盒子上跑得更快,这篇把推测解码和MoE巧妙结合,实测最高5.3倍加速,值得一读。
关键词["混合专家模型", "自推测解码", "边缘设备推理", "内存带宽", "大语言模型加速"]

原文摘要

查看英文原文摘要

Deploying large language models (LLMs) for inference on edge devices is challenging due to severe memory and bandwidth constraints. While speculative decoding and Mixture-of-Experts (MoE) have been proposed to improve inference efficiency, naively combining them often incurs excessive verification overhead and poor expert reuse, limiting their effectiveness in memory-bound edge settings. In this work, we propose S2-MoE, an efficient self-speculative decoding framework for MoE inference on edge devices. S2-MoE reduces redundant verification through routing-aware adaptive speculative expansion, improves verification efficiency with reuse-aware expert gating, and aligns draft and target execution via shared context. Implemented in llama$.$cpp, S2-MoE achieves up to $5.3\times$ speedup (about $2.0\times$ on average) over standard autoregressive decoding across diverse MoE models and datasets on edge devices. Code is available at https://github.com/angerybob/S2-MoE.