Yggdrasil:连接动态推测与静态运行时以实现延迟最优的树基LLM解码
Yggdrasil: Bridging Dynamic Speculation and Static Runtime for Latency-Optimal Tree-Based LLM Decoding
AI总结:
Yggdrasil通过上下文感知的树起草和编译友好的执行,实现延迟最优的树基LLM解码,支持未经修改的LLM并在多种硬件上实现3.98倍速度提升。
摘要:
推测解码通过并行生成和验证多个标记来提高LLM推理性能,但现有系统由于动态推测与静态运行时假设之间的不匹配而表现出次优性能。我们提出了Yggdrasil,这是一个协同设计的系统,通过上下文感知的树起草和编译友好的执行实现延迟最优的推测解码。Yggdrasil引入了适用于静态图的等生长树结构,一个针对延迟的优化目标用于起草选择,并基于阶段的调度以减少开销。Yggdrasil支持未经修改的LLM,并在多种硬件配置上实现了比现有最佳基线快3.98倍的速度提升。
英文摘要:
Speculative decoding improves LLM inference by generating and verifying multiple tokens in parallel, but existing systems suffer from suboptimal performance due to a mismatch between dynamic speculation and static runtime assumptions. We present Yggdrasil, a co-designed system that enables latency-optimal speculative decoding through context-aware tree drafting and compiler-friendly execution. Yggdrasil introduces an equal-growth tree structure for static graph compatibility, a latency-aware optimization objective for draft selection, and stage-based scheduling to reduce overhead. Yggdrasil supports unmodified LLMs and achieves up to $3.98\times$ speedup over state-of-the-art baselines across multiple hardware setups.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。