Term
Nucleus Sampling
Meaning
A stochastic decoding method for neural language models that, at each step, keeps the smallest group of most probable next tokens whose probabilities add up to at least a threshold p. The probabilities in that group are rescaled to sum to one, and the next token is sampled from them, so the size of the candidate set changes with the shape of the distribution.
How papers use it 9 papers
The Curious Case of Neural Text Degeneration
Use Proposed by the paper as its main decoding strategy for open-ended generation, with the threshold p set to 0.95 in the main comparison. The authors argue that it avoids both the repetition of maximization methods and the incoherence of pure sampling, and that it can match the perplexity of human text by tuning p. Under the HUSE evaluation it scores highest, and the authors conclude that only Nucleus Sampling meets all of their distributional criteria.
Self-Consistency Improves Chain of Thought Reasoning in Language Models
Use Named in the paper as one of the sampling algorithms compatible with self-consistency. The paper's sensitivity study on sampling strategies varies the nucleus threshold p, but the quoted text here does not state the settings used in the main experiments.
Meaning A sampling method that draws the next token from the smallest set of most probable tokens whose cumulative probability reaches a threshold p, and samples among that set.
OPT: Open Pre-trained Transformer Language Models
Use Used to generate continuations in the RealToxicityPrompts evaluation with \(p=0.9\). For each of 10,000 randomly sampled prompts, 25 continuations of 20 tokens are sampled, and the mean toxicity of the continuations is reported, bucketed by the toxicity of the original prompt.
Meaning A decoding method that samples each next token from the smallest set of most probable tokens whose cumulative probability reaches a threshold \(p\), so unlikely tokens are excluded from sampling.
Evaluating Large Language Models Trained on Code
Use Used as the sampling procedure when Codex generates completions for HumanEval, with top-p set to 0.95 for all sampling-based evaluations in the paper.
Meaning A decoding method that draws each next token from the smallest group of most probable tokens whose combined probability reaches a chosen threshold p, instead of from the full vocabulary. Lowering p makes outputs more conservative, while higher values admit more diverse tokens.
Empowering Masked Diffusion Models to Self-Correct with Leave-One-Out Transformers
Use Used when generating unconditional OpenWebText samples for the generative perplexity and MAUVE evaluations, with p set to 0.9 following ReMDM. Quality–diversity frontiers for p equal to 1.0 are reported in an appendix.
Meaning A sampling rule for autoregressive or diffusion text generation that draws each token only from the smallest set of most probable tokens whose cumulative probability reaches a threshold p.
Large Language Models: A Survey
Use Described in the text generation discussion as an alternative to top-k sampling, which uses a fixed number of candidates. The paper notes that it is useful when the top tokens do not hold much probability mass and that it tends to give more diverse output for text generation tasks.
Meaning A decoding strategy that samples each next token from the smallest group of most probable tokens whose cumulative probability reaches a threshold p. Because the group size changes with the shape of the distribution, the set of candidate tokens is not fixed in advance.
BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation
Use In this paper, it generates the synthetic captions that the captioner writes.
Meaning A stochastic decoding method that samples each token from the smallest set whose cumulative probability exceeds a threshold p.
QLoRA: Efficient Finetuning of Quantized LLMs
Use Used as the decoding procedure for the chatbot generations evaluated on the Vicuna and OA benchmarks, with p set to 0.9 and a temperature of 0.7. The same decoding setting is also used to produce the example outputs in the qualitative analysis of the 65B Guanaco model.
Meaning A decoding strategy for text generation that, at each step, draws the next token from the smallest set of most probable tokens whose combined probability reaches a chosen threshold p, instead of always taking the single best token or sampling from the full vocabulary.
Chain-of-Thought Reasoning Without Prompting
Use A decoding baseline in the GSM8K comparison on the Mistral-7B pre-trained model, listed next to top-k sampling, temperature sampling and beam search. It is one of the standard decoding methods that the paper contrasts with CoT-decoding, which is the decoding method that improves reasoning in its comparison.
Meaning A sampling-based decoding method that draws each next token from the smallest set of most probable tokens whose combined probability reaches a threshold p.