CLOct 26, 2024

Fast Best-of-N Decoding via Speculative Rejection

arXiv:2410.20290v2128 citationsh-index: 9NIPS
Originality Incremental advance
AI Analysis

This addresses the problem of high computational costs for inference-time alignment in LLMs, making it more viable for deployment, though it is incremental as it builds on existing Best-of-N methods.

The paper tackles the computational inefficiency of the Best-of-N inference-time alignment method for Large Language Models by introducing Speculative Rejection, which achieves similar high-scoring responses while being 16 to 32 times more computationally efficient.

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. In this work, we introduce Speculative Rejection, a computationally-viable inference-time alignment algorithm. It generates high-scoring responses according to a given reward model, like Best-of-N does, while being between 16 to 32 times more computationally efficient.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes