feat(score_centering): accept DFlash speculative decoding #4903
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 193 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.315
Real PR Conversation Timeline
1 comments
"Review active on #4903"
general
weight: 0.35
claude[bot]
What
Score centering now runs with
--sglang-speculative-algorithm DFLASH. Every other speculative algorithm is still refused.Why
The refusal was there because nobody had checked that speculative decoding reports the target model's candidate log-probs, which score centering trains on. We checked DFlash: its top-k candidates, top-p support and support log-probs match a plain prefill of the same output as closely as plain decoding does.
| against a plain prefill of the same output | DFlash | plain decoding |
|---|---|---|
| positions | 42,614 | 42,377 |
| sampled tokens outside the reported support | 0 | 0 |
| top-64 candidate overlap, mean | 0.954 | 0.952 |
| candidate log-prob abs diff, p50 / p99 | 0.146 / 1.11 | 0.158 / 1.11 |
| sampled-token log-prob abs diff, p50 / p99 | 0.0006 / 0.34 | 0.001 / 0.38 |
| support exactly matching the prefill's | 88.5% | 86.8% |
| support log-prob abs diff, p50 / p99 | 0.060 / 0.69 | 0.084 / 0.75 |
Setup: Qwen3.6-35B-A3B NVFP4 with a DFlash 2 drafter on one B200, an sglang-miles build of SGLang, T 1.0 / top-p 0.97 / top-k 64, top-128 candidates, 16 prompts of up to 3,000 output tokens.
Not yet: MTP and EAGLE
They stay refused because SGLang does not return the sampling support for them yet:
validate_spec_sampling_mask_requestaccepts only the DFlash family under speculative decoding, since the other drafts' committed tokens are not checked as exact samples of the captured target distribution. Once SGLang captures it for them, the same comparison can clear them here.