Best-of-Better-
N: Generating Pre-Aligned Responses with In-Context Learning
Best-of-Better-$N$ (BoBN) is an inference-time alignment method that uses in-context learning to improve the quality of generated responses before selection. It retrieves high-reward examples relevant to the query, restyles them by rewriting with the reference LLM to match the target task format, and includes these restyled examples as in-context demonstrations. This shifts the reference LLM's sampling distribution toward the high-reward region, yielding provably better responses. With fixed $N$, BoBN achieves higher reward than standard Best-of-$N$, and requires fewer samples to reach a target performance.