READER:用于高效 LLM 推理的检索辅助草稿器
READER: Retrieval-Assisted Drafter for Efficient LLM Inference
AI总结:
提出无需辅助草稿模型训练的无损推测解码框架 READER,通过随机草稿树构建、语言冗余利用与内存最优 KV 缓存服务,实现单提示最高 6.13 倍、批量最高 5.92 倍加速。
摘要:
自回归语言模型在 token 序列上实例化了一种分解似然,但其严格的顺序解码过程给推理延迟带来了内在下界。这一瓶颈已成为大规模生成模型可扩展部署的核心障碍。现有加速技术通过依赖辅助草稿模型或引入额外训练阶段,在一定程度上缓解了 token 级延迟,但未能解决占主导地位的内存和通信成本。我们提出 READER,这是一个可证明无损的推测解码框架,无需训练辅助草稿模型。READER 将推测解码形式化为随机树构建问题,并利用自然语言的经验冗余结构生成高概率候选续写。我们的方法重新审视了草稿树构建问题,相较随机草稿树方法建立了显著的统计改进,并提供了复杂度理论分析,刻画了在有限计算和内存资源下推测解码的最优性边界。除了以往工作通常考虑的单序列场景之外,我们还提出了一种内存最优的键值缓存服务策略,保证在批量维度上具有摊还的亚线性开销,使 READER 能够扩展到真实推理负载。综合实验表明,单提示推理的挂钟加速比最高达 6.13 倍,批量推理最高达 5.92 倍,持续优于此前的推测解码基线,同时保持精确的输出等价性;在检索增强生成流程中收益甚至更加显著。我们的结果弥合了理论并行极限与实际 LLM 推理之间的关键差距,为高效部署提出了新标准。
英文摘要:
Autoregressive Language Models instantiate a factorized likelihood over token sequences, yet their strictly sequential decoding process imposes an intrinsic lower bound on inference latency. This bottleneck has emerged as a central obstacle to the scalable deployment of large-scale generative models. Existing acceleration techniques partially mitigate token-level latency by relying on auxiliary draft models or introducing an additional training phase, but fail to address the dominant memory and communication costs. We present READER, a provably lossless speculative decoding framework that bypasses the training of the auxiliary draft model. READER formalizes speculative decoding as a stochastic tree construction problem and exploits the empirical redundancy structure of natural language to generate high-probability candidate continuations. Our method revisits the problem of constructing draft trees, establishing substantial statistical improvements over stochastic draft-tree methods and providing a complexity-theoretic analysis that characterizes the optimality frontier of speculative decoding under bounded computation and memory resources. Beyond the single-sequence regime traditionally considered in prior work, we introduce a memory-optimal key-value cache-serving strategy that guarantees amortized sublinear overhead in the batch dimension, allowing READER to scale to realistic inference workloads. Comprehensive experiments demonstrate up to 6.13x wall-clock speedup on single-prompt inference and up to 5.92x on batched inference, consistently surpassing prior speculative decoding baselines, while preserving exact output equivalence, with even more pronounced gains in retrieval-augmented generation pipelines. Our results close a key gap between theoretical parallelism limits and practical LLM inference, suggesting a new standard for efficient deployment.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。