TRANSMISSION // 2611.27554v1
Why the Same Greedy AI Can Write Different Text
Source published
A small-model study finds that GPU rounding can make speculative and other decoding paths diverge. Fixing the execution shape restores agreement, but not necessarily with a one-token reference—and exact cache rebuilding is costly.

Greedy decoding sounds deterministic: same model, same prompt, same next token. But GPU calculations use finite precision, and changing how computations are grouped can change rounding. A preprint testing Qwen3 models finds that speculative verification, padding and batching sometimes produce different text from one-token decoding. It also shows why detecting fragile tokens is easier than cheaply restoring an exact match.
A language model using greedy decoding always selects the token with the highest score. In exact arithmetic, running the same model on the same prompt should therefore produce the same text. In practice, GPU calculations use finite precision. Changing the shape of a computation—for example, scoring several token positions at once—can change rounding slightly. If two candidate tokens have nearly equal scores, that small change can switch which one wins.
A preprint by Mohammed Nayeem Khan and Navin Kumar R asks how often this happens in ordinary inference paths, where the differences arise, and whether a confidence check can prevent them. The authors compare alternative decoding paths with a reference that generates one token per pass. This reference is a chosen point of comparison, not a claim about the uniquely correct output.
Comparing decoding paths
The main tests use Qwen3-0.6B in bfloat16, a reduced-precision format, on one RTX 4090. The researchers generate up to 128 tokens for prompts from GSM8K, a math dataset, and ARC, a multiple-choice science dataset. They compare ordinary one-token decoding with speculative verification, which checks several drafted tokens in one pass, as well as padding and batching. A rerun of the reference checks whether it is stable on the tested setup.
They also examine the logit margin: the score difference between the highest-ranked token and the runner-up. A small margin signals that a small numerical change could alter the selected token. To investigate the cause, they separately test changes from processing several query positions at once and from using cache entries written during those wider passes. A key-value cache stores information from earlier tokens so the model can reuse it.
Different paths, different text
Across 150 prompts, four-token speculative verification produced text that differed from the one-token reference on 90 prompts, or 60%. Padding changed the output on 102 prompts (68%), and batching four prompts changed it on 104 (about 69%). A rerun of the reference differed on none of the 60 prompts tested for that check.
The changes first appeared at fragile decisions: every first divergence in the main comparison occurred where the reference’s top-two score gap was 0.375 or less. But finding a fragile token does not automatically solve the problem. The authors’ margin-based gate sometimes fell back to one-token decoding when a token looked risky. If that fallback used the existing cache, it did little to reduce divergence: 58 of 100 prompts differed, compared with 61 of 100 under plain verification on the same prompts.
The reason, the authors argue, is that cache entries written during multi-token passes carry numerical differences too. A one-token calculation that reads those entries is not equivalent to the reference calculation. Rebuilding the generated portion of the cache using one-token passes eliminated observed differences on 100 tested prompts—but required about 7.2 model passes per generated token, versus 1.0 for the reference. The result illustrates a practical trade-off: matching a chosen reference can cost more than simply using that reference.
A different approach kept the shape of every decoding pass fixed. With that setup, drafted and undrafted decoding produced identical outputs on all 100 tested prompts, using 0.75 target-model passes per token for the drafted path. However, both fixed-width paths differed from the one-token reference on 66 of those prompts. Fixed shape made the two paths consistent with each other; it did not make them agree with a different computation shape.
What the results do—and don’t—show
The authors also tested a margin bound calibrated on separate GSM8K prompts. On shifted MMLU and HellaSwag prompts, the rebuild gate left no differences in a 60-prompt test, while plain verification differed on 48. In a separate analysis of 138 further and shifted prompts, the bound was exceeded at 0.6% of positions and did not miss any of 309 observed flips. These results are encouraging for this experiment, but the bound is empirical, not a guarantee for unseen prompts.
Different text does not necessarily mean a different answer. In a limited check of ARC outputs, most examined divergences did not change the stated option letter. The sample was small, the letter extraction was imperfect, and the authors do not claim that one decoding path is more accurate. A comparison with float32 also did not establish the one-token reference as more accurate than the other paths.
The evidence is narrow: primarily one small model, one GPU and software stack, one prompt-lookup drafter, greedy decoding, and a 128-token generation window. The paper reports a small replication on Qwen3-1.7B, but results may differ with other models, hardware, kernels or longer generations. It was posted as an arXiv preprint, so it should be treated as research that has not necessarily undergone peer review. The central takeaway is about reproducibility, not model quality: in finite precision, “greedy decoding” may depend on how the computation is carried out.
- greedy decoding
- speculative decoding
- language models
- bfloat16
- GPU rounding
- KV cache
- AI reproducibility
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
A language-model drafter that works while its guesses are checked
Supporting evidence: D3D describes asynchronous speculative decoding as lossless, while Khan and Kumar report that Qwen3-0.6B greedy outputs can diverge across finite-precision execution paths. Together, these findings support the bounded distinction that an algorithmic losslessness claim does not by itself establish identical outputs across implementations; the studies use different models, methods and setups, so they do not show that D3D itself diverges.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.27554v1 — Original paper
Excerpt reference:
static/papers/2611.27554v1.md:1299-1318
Basis: Paper text
Source SHA-256:0c1f19cca17df340b06d9800c73e0c2072248c2127288fcfd686e084697726622611.06425v1 — Original paper
Excerpt reference:
static/papers/2611.06425v1.md:919-930
Basis: Paper text
Source SHA-256:1627df390c345e5fede5c8f0f2a78a3f9ab57bd00f522576261cc978f563de7e
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
HybridSpec speeds hybrid language models by checking fewer draft tokens
Source published
Shared keywords: language models, speculative decoding
RECAP speeds up vision-language models by recycling predictions in context
Source published
Shared keywords: speculative decoding
Training AI drafters to keep more guesses in a row
Source published
Shared keywords: language models, speculative decoding
ChainFlow drafts several AI tokens by predicting where a model’s internal states go next
Source published
Shared keywords: speculative decoding
Can a Small AI Model Save Weight Reads for the Moments That Matter?
Source published
Shared keywords: language models