1. Home
  2. Artificial Intelligence
  3. Generative AI
  4. In top-p (nucleus) sampling, the model chooses the next…

Added 2 Nov 2026

In top-p (nucleus) sampling, the model chooses the next token from:

  1. The smallest set whose combined probability reaches p Correct answer
  2. Any token whose probability is greater than p
  3. Exactly the p most likely tokens in the vocabulary
  4. Only the single most likely token every time

Correct answer

A. The smallest set whose combined probability reaches p

17 views

MCQSEXAM

Explanation

Nucleus sampling adapts the candidate pool to the model's confidence: few tokens when it is sure, more when it is uncertain. Top-k uses a fixed number of candidates instead.

Reference

Asked in: AI Engineer Interviews, GATE DA

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Generative AI MCQs

Practise all Generative AI MCQs

Similar MCQs