vLLM 官方博客(RSS) · 2026/10/14

Table of Contents Adaptive Verification with an online-fitted acceptan

Table of Contents 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

Table of Contents 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. AV needs a per-token estimate of acceptance probability, which is why, until now, it only supported DSpark drafters. DSpark models often ship with a confidence head: a small linear layer over the drafter's hidden state for each position, trained as a binary classifier for "will the target accept this token?" Problem Draft models that lack a confidence head, such as EAGLE, MTP, DFlash, and some DSpark checkpoints, miss out on AV entirely. To use it, these drafters need a per-token acceptance estimate, and adding a confidence head means retraining the drafter, which isn't an option for the many existing checkpoints that people already serve. Prior Work Using the drafter's own confidence as a proxy for acceptance is well established. EAGLE-2 showed that EAGLE's draft probabilities closely track acceptance rates, and used them to grow and rerank a dynamic draft tree. Draft & Verify and several follow-ups stop drafting once the drafter's probability falls below a fixed threshold. SpecDec++ instead trains a dedicated acceptance-prediction head, similar in spirit to DSpark's confidence head. In each case, the mapping from draft confidence to acceptance is either used as-is or learned offline. AV needs more than a good ranking. Its budget decision sums predicted acceptance probabilities and weighs them against measured costs, so the predictions must be calibrated for the specific model pair and workload being served, which is what the online-fitted estimator in the next section provides. Solution: Online-Fitted Acceptance Estimator We added a lightweight logistic regression that estimates each draft token's acceptance probability from a single scalar derived from the draft distribution, the log-odds of the drafter's most likely token. It has one shared slope and one intercept per draft position, so a K -token drafter needs a total of K + 1 parameters. Those parameters are fitted online from the accept/reject decisions the target model already produces during normal verification. Any existing draft checkpoint gets AV for free. The rest of this section covers the two halves of the design: what quantity the estimator scores, and how its coefficients are fitted during serving. Scoring the Distribution The confidence score for a given draft token is estimated using a per-position logistic regression: where ω is the fitted slope shared across all draft positions, β i is the fitted per-position intercept, and q is the draft distribution. The alternate log-odds form makes the relationship clear: logit( q max ) is the estimator's feature, and is the log-odds of the draft's most likely token. Intuitively, it represents how confident the draft model is in its predictions. It is transformed linearly by the coefficients ω and β i to predict the log-odds of the draft's acceptance by the target model. The sigmoid of that is p , the estimated acceptance rate, which is used as the confidence score for AV. Other Considered Features Several alternative features were considered and rejected for one reason or another. The four main axes that we cared most about when evaluating a feature were: Losslessness — Whether the feature biases the output distribution during speculative decoding. Area Under the Curve (AUC) — The probability that a randomly chosen accepted draft scores higher than a randomly selected rejected one. This measures discrimination between drafts that should be accepted vs rejected. A higher value indicates a better ability to discriminate, and 0.5 is random chance. Log-loss — The mean negative log-likelihood of the predicted acceptance probability, which penalizes confident wrong answers and rewards calibration. A lower value indicates a better ability to predict the true acceptance probability of a given draft. Expected Calibration Error (ECE) — Bin each draft based on its predicted acceptance probability, then measure the error between the mean prediction vs the mean observed frequency within each bin, weighted by the bin occupancy. This measures calibration , and a lower value indicates a better ability to assign a probability to a draft that matches the true frequency among drafts scored similarly. Losslessness is a non-negotiable property for the features to have. Otherwise, we break the fundamental guarantee of speculative decoding to output the target model's exact distribution. AUC and ECE both matter for AV's trimming decision, but in different ways. AUC is important for the local ordering of survival probabilities: survival = confidence_probs[idx_mapping].cumprod( dim = 1 ) ... winners = flat.topk(draft_budget).indices AUC ensures that a more likely to be accepted draft token is admitted over a less likely one. On the other hand, ECE is important for the global budget decision: num_tokens_to_estimated_accepted_tokens = np.concatenate( ([num_sampling_requests], num_sampling_requests + np.cumsum(scores)) ) costs = draft_cost_ms[ ... ] + verify_cost_ms[ ... ] ... draft_budget = int (np.argmax(num_tokens_to_estimated_accepted_tokens / costs)) The probabilities are summed and then divided by the measured cost table. ECE ensures that the estimated number of accepted tokens matches reality. Below is a table of the various experimented features, along with their scores for the four categories. They were measured over ~4.5M labeled drafts collected over the course of serving DeepSeek-V4-Flash + DSpark (temp=1, top-p=0.95, conc=64), without AV, across five datasets: SPEED-Bench 2k low/high-entropy, GSM8K, HumanEval, and MT-Bench. The last two rows are references rather than fitted features: the drafter's q max used directly as the acceptance probability with no fit, and the trained confidence head's scores. feature lossless AUC log-loss ECE log( q max ) yes 0.8069 0.4813 0.0592 log( q max ) − log( q 2nd ) (top-2 margin) yes 0.8156 0.4437 0.0105 H ( q ) (entropy) yes 0.8321 0.4577 0.0638 −log(−log( q max )) yes 0.8336 0.4289 0.0103 logit( q max ) (shipped) yes 0.8336 0.4284 0.0100 logit( q sampled ) no 0.8553 0.4040 0.0152 −log(−log( q sampled )) no 0.8554 0.4075 0.0193 q max (no fit, used directly as the probability) yes 0.8259 0.4880 0.0736 trained confidence head yes 0.8191 0.4449 0.0052 logit( q sampled ) and −log(−log( q sampled )) clearly outperform the chosen feature in the table in terms of AUC, but were not used because trimming based on them results in a biased output distribution. Both read q sampled , the probability of the token the drafter actually drew. Trimming a draft on a function of this value makes the decision to verify at position i dependent on x i itself, so the drafts that survive trimming are no longer distributed as q . Standard rejection sampling accepts a token with probability min(1, p / q ), expecting q to be the distribution the draft token was sampled from. But trimming based on q sampled biases the emitted distribution towards the drafter's higher confidence tokens. 1 The q max "no fit" row shows why we fit at all, instead of using the drafter's own probability directly, as EAGLE-2 does when building its draft tree. Used directly, the drafter's top-token probability actually ranks drafts better than the trained confidence head (0.8259 vs 0.8191 AUC). However, it is not well calibrated. Its mean prediction over the labeled drafts is 0.784 against the observed acceptance rate of 0.723, and its ECE is 7x worse than the shipped logit( q max ) feature (0.0736 vs 0.0100). The drafter's top-token probability reflects only how confident the drafter is in its own prediction, not whether the target model will agree. This agreement is further influenced by the sampling setup and the workload. An online fit learns this mapping directly from the target's accept/reject decisions, yielding better calibration, which is what the

FDE 判断

这条信息对 FDE 的直接价值在于提醒交付人员持续关注模型、智能体与企业流程之间的变化。面对类似项目,应先确认客户的真实业务目标、数据边界、权限条件和验收指标,再选择工具并用最小场景验证结果,避免只追逐功能更新。