Chip Foundry Services Request Assessment

Nucleus Sampling Threshold

Nucleus sampling's probability threshold p directly determines how much of the model's total probability mass is eligible for selection at each generation step, with a lower p value restricting selection to a smaller, higher-confidence set of tokens and a higher p value allowing a progressively larger, more diverse set of tokens into consideration. Tuning this threshold is the primary way an application controls nucleus sampling's output behavior, trading output diversity against output reliability in a way that adapts naturally to the model's own per-step confidence, unlike a fixed top-k cutoff's non-adaptive behavior.