同样的提示词,换个批次答案就变了
TL;DR - A paper reports that speculative decoding, padding, and batching can alter greedy outputs solely by changing computation shape. Reproducibility therefore requires treating decoding shape as part of the model configuration.
- These optimizations changed 60%, 68%, and 69.3% of tested outputs, respectively.
- Margin-based fallback barely helped because noisy wide-pass values had already entered the KV cache.
- Rebuilding the cache token by token restored exact agreement but required 7.2 forward passes per token.
- Fixed-shape decoding achieved identical outputs in 100 tests at 0.75 forward passes per token, though results were limited to Qwen3-0.6B on one RTX 4090.