arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2606.07710cs.LGcs.AI
收藏

WhiFlash: 通过令牌级跨范式路由加速推测解码

WhiFlash: Accelerating Speculative Decoding with Token-Level Cross-Paradigm Routing

Samsung AI Center, Cambridge, UK(三星AI中心,剑桥,英国)

Young D. Kwon, Miles Williams, Rui Li, Alexandros Kouris, Stylianos I. Venieris

AI总结:

提出WhiFlash,首个统一自回归与扩散并行草稿的跨范式推测解码方法,通过细粒度路由和缓存优化实现高达69.6%的吞吐量提升。

摘要:

大型语言模型的自回归特性仍然是推理的主要瓶颈,特别是在复杂的代理工作负载中。虽然推测解码加速了推理,但当前方法依赖于静态草稿范式,使用自回归草稿模型进行推理或基于扩散的并行草稿模型生成结构化输出。我们经验发现,草稿准确性在单个序列内波动剧烈,静态范式和粗粒度路由导致显著性能未实现。为解决这种波动性,我们引入WhiFlash,首个跨范式推测解码方法,在单个令牌级控制器下统一自回归和基于扩散的并行草稿。WhiFlash采用细粒度路由机制,使用轻量级基于熵的或学习到的神经策略,两者均参数化以在预期令牌增益和延迟之间提供可调平衡。为使高频切换计算可行,我们引入新颖的缓存管理优化——惰性追赶和仅KV预填充,将切换开销降低到每轮延迟的7%以下。通过利用根本不同草稿架构的互补优势,WhiFlash实现了显著更高的接受长度,在特定类别上吞吐量比最先进的自回归EAGLE-3提升高达69.6%,比基于扩散的DFlash提升37.3%。

英文摘要:

The autoregressive nature of large language models (LLMs) remains a significant bottleneck for inference, particularly in complex agentic workloads. While speculative decoding (SD) accelerates inference, current approaches rely on static drafting paradigms, utilising either autoregressive drafting models for reasoning or diffusion-based parallel drafting models for structured outputs. We empirically find that drafting accuracy fluctuates dramatically within a single sequence, leaving significant performance unrealised by static paradigms and coarse-grained routing. To address this volatility, we introduce WhiFlash, the first cross-paradigm SD method that unifies autoregressive and diffusion-based parallel drafting under a single token-level controller. WhiFlash adopts a fine-grained routing mechanism that employs either a lightweight entropy-based or a learned neural policy, both parametrised to provide a tunable balance between expected token gain and latency. To make high-frequency switching computationally viable, we introduce novel cache-management optimisations, Lazy Catch-up and KV-only Prefill, reducing switching overhead to below 7% of per-round latency. By capitalising on the complementary strengths of fundamentally distinct drafting architectures, WhiFlash achieves significantly higher acceptance lengths, yielding category-specific throughput gains of up to 69.6% over the state-of-the-art autoregressive EAGLE-3 and 37.3% over the diffusion-based DFlash.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑