Definition

At each step the model outputs a distribution over the vocabulary; sampling picks the token.

StrategyRule
Greedy
Temperaturelogits / before softmax
Top-kkeep the most likely tokens
Top-psmallest set with cumulative probability
Min-pkeep

Safety

Decoding parameters alone moved a misalignment rate from 0% to 95%+ (Huang et al., ICLR 2024), 30× cheaper than GCG.

Appears in