arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2612.05672cs.CL
收藏

超越草稿边界:通过验证器对齐草稿子网络实现双粒度自推测解码

Beyond the Drafting Boundary: Bi-Grained Self-Speculative Decoding via Verifier-Aligned Draft Subnets

Nanjing University of Science and Technology(南京理工大学);Northeastern University(东北大学)

Xinxin Zhang, Pu Zhao, Cheng Ji, Chao Wu

AI总结:

该研究针对自推测解码的草稿侧计算冗余问题,提出Bi-SSD框架,通过双粒度分析与PADR动态路由优化,在不额外训练的情况下提升LLM长序列生成的推理吞吐量。

摘要:

随着大型语言模型(LLMs)在长序列生成中的广泛部署,核心优化目标正从单纯提升模型质量转向平衡生成性能与自回归解码效率。现有自推测解码方法通过复用目标模型作为自身草稿器应对这一挑战,但多数设计依赖粗粒度的深度或模块捷径,导致草稿侧存在大量未被利用的细粒度计算冗余。为此,我们提出无需训练的双粒度自推测解码(Bi-SSD)框架,通过在不变的目标模型内搜索验证器对齐的草稿子网络,实现草稿侧计算的细粒度优化。具体而言,我们先在块级和MLP通道级进行分析,评估二者对验证器接受率和实际推理延迟的影响,基于此构建草稿子网络。Bi-SSD随后联合搜索并实例化候选草稿子网络,根据验证集性能决定是否启用补偿,并依据草稿-验证过程中观察到的实际接受率和推理速度选择有效子网络。最后,我们引入感知探针的动态路由(PADR),其可在候选动态草稿子网络间自适应选择,并将其与精确批量验证相结合,在保留目标模型输出分布的同时提升推理吞吐量。实验结果表明,Bi-SSD可有效减少草稿侧的冗余计算并提升实际推理吞吐量,实现了基于完整目标模型的精确验证,无需额外训练或引入独立草稿模型。

英文摘要:

With the widespread deployment of large language models (LLMs) in long-sequence generation, the core optimization objective is shifting from solely improving model quality to balancing generation performance with autoregressive decoding efficiency. Existing self-speculative decoding methods address this challenge by reusing the target model as its own drafter; however, most designs rely on coarse-grained depth or module shortcuts, leaving substantial fine-grained computational redundancy on the draft side underutilized. To this end, we propose training-free bi-grained self-speculative decoding(Bi-SSD), a framework that achieves fine-grained optimization of draft-side computation by searching for verifier-aligned draft subnets within the unchanged target model. Specifically, we first perform analysis at both the block level and the MLP channel level to evaluate their impact on verifier acceptance rate and actual inference latency, based on which we construct draft subnets. Bi-SSD then jointly searches and materializes candidate draft subnets, determines whether to enable compensation based on validation set performance, and selects effective subnets according to the actual acceptance rate and inference speed observed during draft-verification processes. Finally, we introduce probe aware dynamic routing (PADR), which adaptively selects among candidate dynamic draft subnets, and integrates it with exact batched verification to improve inference throughput while preserving the output distribution of the target model. Experimental results demonstrate that Bi-SSD effectively reduces redundant computation on the draft side and improves practical inference throughput, achieving exact verification with the full target model without requiring additional training or introducing an independent draft model.

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

↑