YUNOVA · Natural Language Processing · Module 11: Search and generation

Decoding strategies: beam search, temperature and top-p

Notes for offline study · 30 November 2026

Decoding strategies: beam search, temperature and top-p

Key points

  • Greedy decoding always picks the most likely next token.
  • Beam search keeps several candidate sequences at once.
  • Temperature and top-p sampling control how random the output is.

Free on YUNOVA · yunova.in · Sign in to add your own lesson notes to this sheet.