Greedy Decoding
An inference strategy for language models in which the token with the highest probability is selected at each generation step. It corresponds to sampling with temperature set to zero and theoretically produces deterministic outputs.
Core Facts
The non-determinism of large language models stems from their autoregressive sampling process; even with temperature set to 0, differences in inference frameworks, batch sizes, and hardware floating-point operations can all cause output drift.
The temperature parameter scales the Logits vector, and when temperature is 0, it degenerates into greedy decoding.
Greedy decoding always selects the token with the highest probability, while random sampling draws from the probability distribution, which means the same prompt may yield different responses.
Timeline (last 90 days)
The same greedy request can cause 3-7% of answer scores to flip, which is caused by factors such as floating-point non-determinism in reasoning systems, batching order, and differences in GPU kernel implementations.
When performing greedy decoding at zero temperature, the same prompt may produce different tokens across different batches.
The determinism of greedy decoding depends on exact consistency of the computation graph; due to the non-associativity of floating-point operations, differences in hardware instruction sets, and changes in batch shape, logits incur slight perturbations.
DiVR costs 1.9-3.5 times that of greedy decoding.
Greedy decoding leads to a lack of output diversity, easily falls into repetitive loops, and often performs worse than temperature sampling or beam search on open-ended generation tasks.
If traditional jailbreak evaluation uses only greedy decoding, it yields a deterministic single output that cannot reflect the model's true behavior distribution under stochastic sampling.
Greedy decoding is extremely prone to falling into degenerate loops on low-bit quantized models, because weight quantization loses a large amount of numerical precision and the model's scores for certain token sequences exhibit pathologically high peaks, causing the same passage of text to be output repeatedly.
All Facts (10)
The non-determinism of large language models stems from their autoregressive sampling process; even with temperature set to 0, differences in inference frameworks, batch sizes, and hardware floating-point operations can all cause output drift.
80%VerifiedThe temperature parameter scales the Logits vector, and when temperature is 0, it degenerates into greedy decoding.
70%VerifiedGreedy decoding always selects the token with the highest probability, while random sampling draws from the probability distribution, which means the same prompt may yield different responses.
65%UnverifiedThe same greedy request can cause 3-7% of answer scores to flip, which is caused by factors such as floating-point non-determinism in reasoning systems, batching order, and differences in GPU kernel implementations.
50%UnverifiedWhen performing greedy decoding at zero temperature, the same prompt may produce different tokens across different batches.
50%UnverifiedThe determinism of greedy decoding depends on exact consistency of the computation graph; due to the non-associativity of floating-point operations, differences in hardware instruction sets, and changes in batch shape, logits incur slight perturbations.
50%UnverifiedDiVR costs 1.9-3.5 times that of greedy decoding.
50%UnverifiedGreedy decoding leads to a lack of output diversity, easily falls into repetitive loops, and often performs worse than temperature sampling or beam search on open-ended generation tasks.
50%UnverifiedIf traditional jailbreak evaluation uses only greedy decoding, it yields a deterministic single output that cannot reflect the model's true behavior distribution under stochastic sampling.
50%UnverifiedGreedy decoding is extremely prone to falling into degenerate loops on low-bit quantized models, because weight quantization loses a large amount of numerical precision and the model's scores for certain token sequences exhibit pathologically high peaks, causing the same passage of text to be output repeatedly.
50%