AI Glossary

Best-of-N sampling

What does “Best-of-N sampling” mean?

Best-of-N sampling: Generating multiple candidate outputs and choosing one with a scoring or verification rule.

Best-of-N sampling visual guide: Generating multiple candidate outputs and choosing one with a scoring or verification rule.
Visual guide Open full size (new tab)

What is an example of “Best-of-N sampling”?

A coding system keeps the first generated solution that passes the test suite.