创建

登录 ReadmeX

或

了解我们如何处理你的信息: 隐私政策

ReadmeX

陪你读懂 AI 动态

今天,想先了解什么?

选一份动态总结,或直接聊聊你的问题。

社区和关注动态总结只属于你自己。

资讯

vLLM 让无置信度头的草稿模型也能用自适应验证

AI 总结

vLLM 博客宣布,自适应验证(Adaptive Verification)现已支持所有基于草稿模型的投机解码类型,不再局限于自带置信度头的 DSpark 草稿模型。对于缺少置信度头的 EAGLE、MTP、DFlash 以及部分 DSpark 检查点,vLLM 采用一个轻量逻辑回归,从草稿模型最可能 token 的 log-odds 预测目标模型的接受概率,K 个位置共需 K+1 个参数,这些参数依据正常验证过程中产生的接受/拒绝结果在线持续拟合。该功能已随 PR #52228 合入,通过 enable_adaptive_verification 开启;在 DeepSeek-V4-Flash + DSpark 的测试中,该估计器在 AUC 与 log-loss 上优于训练好的置信度头,但 ECE 略差,剔除首个草稿位置后两者校准表现接近。报告列出的限制包括:目标模型的注意力后端必须支持变长验证,且 MTP 与 EAGLE 从该优化中获益小于 DFlash 和 DSpark。

深度见解

自适应验证会在目标模型前向计算前裁掉接受概率低的草稿 token 以节省算力,原文称其在大批量、GPU 受算力限制的场景下尤其有益;在线估计器让现成草稿检查点无需重新训练即可使用这一优化。

Adaptive Verification with an online-fitted acceptance estimator
Adaptive Verification with an online-fitted acceptance estimator

TL;DR

Confidence scoring is now supported for all draft-model-based speculator types. In the absence of a confidence head, an online-fitted estimator derives a feature from the drafter's logits to predict the target model's probability of accepting it, which is used directly as a confidence score for Adaptive Verification. The estimator's coefficients are continuously fitted, adapting to the incoming data traffic. This feature landed in PR #52228, and is enabled with enable_adaptive_verification for draft models without a confidence head.

Background

vLLM's Adaptive Verification (AV) enables verification of a subset of the drafted tokens during speculative decoding. Draft tokens with low probability of acceptance are trimmed from the batch before running the target model's forward pass, saving on compute. This optimization is particularly beneficial while serving large batch sizes, because in that regime the GPU becomes compute-bound. See this vLLM blog post for more details.

#vLLM#Inferact#DSpark#EAGLE#MTP#DFlash#DeepSeek-V4-Flash#MiMo-V2.5-Pro#NVIDIA#Red Hat

原文约 13 分钟读完阅读原文
群聊

还没有评论,来说说你的看法。