Adaptive Blockwise Search: Inference-Time Alignment for Large Language Models
Mohammad Atif Quamar, Mohammad Areeb, Nishant Sharma, Ananth Shreekumar, Jonathan Rosenthal, Muslum Ozgur Ozmen, Mikhail Kuznetsov, Z. Berkay Celik
TL;DR
This paper tackles inference-time alignment for large language models by challenging the standard uniform allocation of computational budget during decoding. It introduces AdaSearch, a blockwise, schedule-driven search that front-loads more sampling to early token blocks, thereby improving alignment against a reward model while keeping the same compute budget. The approach generalizes to AdaBeam, a reward-guided beam-search variant, and demonstrates consistent improvements over Best-of-N and even some fine-tuning baselines across eight models and multiple tasks (harmlessness, sentiment, and mathematical reasoning). The results highlight the practical impact of adaptive budgeting for decoding-time alignment, showing notable gains for smaller models and enabling flexible multi-objective alignment without retraining. The work opens avenues for more resource-aware generation and improved safety in real-world deployments, while also pointing to rewards-model reliability as a key factor in challenging tasks like multi-step reasoning.
Abstract
LLM alignment remains a critical challenge. Inference-time methods provide a flexible alternative to fine-tuning, but their uniform computational effort often yields suboptimal alignment. We hypothesize that for many alignment tasks, the initial tokens of a response are disproportionately more critical. To leverage this principle, we introduce AdaSearch, a novel blockwise search strategy. It adaptively allocates a fixed computational budget using a sampling schedule, focusing search effort on these critical tokens. We apply AdaSearch to sequential decoding and introduce its tree-search counterpart, AdaBeam. Our comprehensive evaluation across eight LLMs demonstrates that AdaSearch outperforms strong Best-of-N and fine-tuning baselines. Specifically, win-rates improve by over 10% for harmlessness generation, controlled sentiment generation, and for mathematical reasoning tasks relative to Best-of-N.
