Fast Best-of-N Decoding via Speculative Rejection
Hanshi Sun, Momin Haider, Ruiqi Zhang, Huitao Yang, Jiahao Qiu, Ming, Yin, Mengdi Wang, Peter Bartlett, Andrea Zanette

TL;DR
This paper introduces Speculative Rejection, a new inference-time alignment method for LLMs that achieves similar effectiveness to Best-of-N but with significantly reduced computational costs, making deployment more practical.
Contribution
We propose Speculative Rejection, an inference-time alignment algorithm that is 16 to 32 times more efficient than Best-of-N while maintaining comparable performance.
Findings
Speculative Rejection reduces inference costs substantially.
It matches Best-of-N's alignment effectiveness.
The method is practical for deployment of LLMs.
Abstract
The safe and effective deployment of Large Language Models (LLMs) involves a critical step called alignment, which ensures that the model's responses are in accordance with human preferences. Prevalent alignment techniques, such as DPO, PPO and their variants, align LLMs by changing the pre-trained model weights during a phase called post-training. While predominant, these post-training methods add substantial complexity before LLMs can be deployed. Inference-time alignment methods avoid the complex post-training step and instead bias the generation towards responses that are aligned with human preferences. The best-known inference-time alignment method, called Best-of-N, is as effective as the state-of-the-art post-training procedures. Unfortunately, Best-of-N requires vastly more resources at inference time than standard decoding strategies, which makes it computationally not viable.…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
Taxonomy
TopicsCellular Automata and Applications · Error Correcting Code Techniques · DNA and Biological Computing
MethodsALIGN · Entropy Regularization · Proximal Policy Optimization · Direct Preference Optimization
