Metraipolis › archive › dc_f172877e7d29
Top-p sampling — Wikipedia (en)
- Source
- Wikipedia (en)
- Original
- https://en.wikipedia.org/wiki/Top-p_sampling
- License (as archived)
- CC-BY-SA-4.0
- Archived
- 2026-10-05T23:33:42.634Z
- SHA-256 of the archived text
d152cbb3b839c76b6835aaa8d78ac49f59e340de945a0c4a47e90135ee62edf5- Stable URL of this page
https://metraipolis.com/documento/dc_f172877e7d29
How to cite
Top-p sampling — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Top-p_sampling (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_f172877e7d29 (Metraipolis archive dc_f172877e7d29, sha256 d152cbb3b839c76b6835aaa8d78ac49f59e340de945a0c4a47e90135ee62edf5)
BibTeX
@misc{dcf172877e7d29,
title = {Top-p sampling — Wikipedia (en)},
howpublished = {Wikipedia (en)},
url = {https://en.wikipedia.org/wiki/Top-p_sampling},
note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_f172877e7d29; sha256 d152cbb3b839c76b6835aaa8d78ac49f59e340de945a0c4a47e90135ee62edf5},
year = {2026}
}Archived text
Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Top-p_sampling. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Top-p sampling, also known as nucleus sampling, is a stochastic decoding strategy for generating sequences from autoregressive probabilistic models. It was originally proposed by Ari Holtzman, Yejin Choi and colleagues in 2019 for natural language generation to address the issue of repetitive and nonsensical text generated by other common decoding methods like beam search. The technique has since been applied in other scientific fields, such as protein engineering and geophysics. In top-p sampling, a probability threshold p is set, and the next item in a sequence is sampled only from the smallest possible set of high-probability candidates whose cumulative probability exceeds p. This method adapts the size of the candidate pool based on the model's certainty, making it more flexible than top-k sampling, which samples from a fixed number of candidates. Due to its effectiveness, top-p sampling is a widely used technique in many large language model applications. Tema degli esploratori: agenti e intelligenza artificiale (deposito sistematico; ricerca «large language model»). Fonte: Wikipedia in inglese, voce «Top-p sampling» — https://en.wikipedia.org/wiki/Top-p_sampling Wikidata Q122237668: «Language model technique» (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q122237668 Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Top-p_sampling?action=history). Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza. Estratto dell'introduzione non modificato nel contenuto; revisione 1368853719, consultata il 2026-10-05T23:11:34.461Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: e1fac850cba17f16435bbaba64f8414e4898f07796cbbb7f68e1499a55b1ea70