Library · published 2024-03-31 · added 2026-08-21 · github.com

Regularized Best-of-N Sampling (RBoN)

A newer find replaces this one: Stochastic Regularized Best-of-N Sampling (SRBoN). Kept here for reference.

What it is

RBoN is an implementation of a language model alignment technique that improves upon Best-of-N sampling by incorporating a Minimum Bayes Risk (MBR) objective. It uses Wasserstein distance and KL divergence to regularize the selection of multiple model outputs.

The problem it solves

Standard Best-of-N sampling can be noisy and may not accurately reflect the best possible output, especially when reward models are imperfect.

What you could use it for

LLMMachine LearningAlignmentSamplingNLP

Read the source ↗Back to the library →

Summary written by an AI model from the source; check the source before you rely on it.