[KongchangAI]
Conceptgreedy decoding / greedy search

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

Timeline (last 90 days)

Dec 2

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.

Unverified50%
Nov 17

When performing greedy decoding at zero temperature, the same prompt may produce different tokens across different batches.

Unverified50%
Nov 17

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.

Unverified50%
Nov 13

DiVR costs 1.9-3.5 times that of greedy decoding.

Unverified50%
Nov 2

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.

Unverified50%
Oct 20

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.

Unverified50%
Oct 16

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.

Unverified50%

All Facts (10)

Verified

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%
Verified

The temperature parameter scales the Logits vector, and when temperature is 0, it degenerates into greedy decoding.

70%
Verified

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.

65%
Unverified

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.

50%
Unverified

When performing greedy decoding at zero temperature, the same prompt may produce different tokens across different batches.

50%
Unverified

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.

50%
Unverified

DiVR costs 1.9-3.5 times that of greedy decoding.

50%
Unverified

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.

50%
Unverified

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.

50%
Unverified

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.

50%

Source Articles