OWL:克服长上下文输入中推测解码的窗口长度依赖性
OWL: Overcoming Window Length-Dependence in Speculative Decoding for Long-Context Inputs
AI总结:
针对现有推测解码在长上下文下性能退化的问题,提出新基准LongSpecBench和模型OWL,通过LSTM草稿模型、特殊token及混合解码算法,使接受长度比EAGLE3提升约5倍。
摘要:
推测解码有望加速大型语言模型(LLM)的推理,但现有方法无法推广到现实世界场景。基准测试通常假设短上下文(例如2K个token),而实际工作负载涉及长上下文。我们发现当前方法在长上下文中性能严重下降;例如,EAGLE3甚至将生成速度降低了0.81倍。为解决这些局限,我们发布了一个新的长上下文基准(LongSpecBench)并引入了一个新模型(OWL)。OWL通过三项创新,在长上下文输入上实现了比EAGLE3高约5倍的接受长度:(1)一个基于LSTM的草稿模型,仅依赖于最后token的状态,使其能推广到各种长度;(2)验证器中的特殊token [SPEC],为草稿模型生成更丰富的表示;(3)一种结合树和非树解码方法的混合算法。我们发布所有代码和数据集以推动未来研究。
英文摘要:
Speculative decoding promises faster inference for large language models (LLMs), yet existing methods fail to generalize to real-world settings. Benchmarks typically assume short contexts (e.g., 2K tokens), whereas practical workloads involve long contexts. We find current approaches degrade severely with long contexts; for instance, EAGLE3 even slows down the generation speed by 0.81x. We address these limitations by releasing a new long-context benchmark (LongSpecBench) and introducing a novel model (OWL). OWL achieves about 5x higher acceptance length than EAGLE3 on long-context inputs through three innovations: (1) an LSTM-based drafter conditioned only on the last-token state, making it generalize to various lengths, (2) a special token [SPEC] in the verifier that produces richer representation for drafter, and (3) a hybrid algorithm combining both tree and non-tree decoding methods. We release all code and datasets to advance future research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。