Apple's AdaBoN Cuts AI Inference Waste by 20% Without Retraining
A two-stage sampling budget allocator beats uniform Best-of-N and matches uniform runs with 20 percent more compute across 12 model pairs.
ProTakeaways
- AdaBoN adaptively splits a Best-of-N budget across prompts instead of using the same N for every prompt in a batch.
- Two stages: explore with 75% of budget, fit Gaussian KDE to rewards, then greedily allocate the rest.
- Only two batched LM calls are needed, preserving parallelism and avoiding sequential latency penalties.
- Beats uniform allocation on over 75% of batches across 12 LM-RM pairs on AlpacaEval, HH-RLHF, PKU-SafeRLHF.
- Matches uniform allocations using 20% more inference budget, with gains growing as batch size increases.
- Weak spot: heavily left-skewed reward distributions and discrete reward models where KDE fails.
Best-of-N sampling is the duct tape of inference-time alignment. You generate N candidate responses from your language model, score each with a reward model, and return the winner. It works, it needs no fine-tuning, and it composes with any model pair. The catch is that N is usually picked once and applied to every prompt, even though some prompts get a great answer on the first try while others need dozens of attempts. A new paper called AdaBoN: Adaptive Best-of-N Alignment from researchers at Apple and the University of Michigan proposes a simple way to stop wasting that compute.
The uniform allocation tax
Best-of-N sampling generates N responses from the base LM and returns the one with the highest reward, and it remains surprisingly competitive with heavier alignment methods like DPO and RLHF. But the price tag is steep. One might need to pick N as large as 10,000 to be competitive with post-training methods, and applying that uniformly across every prompt burns compute on easy prompts that would have been aligned after five samples.
The authors frame this as a resource allocation problem. Given K prompts and a per-prompt budget B, how should you distribute the total budget of B times K samples to maximize cumulative reward? They target a specific regime: small batches with large per-prompt budgets, which is relevant for personalized on-device inference, where models are small and hence compute per prompt is large, while the number of prompts is limited.
Explore, estimate, then greedily allocate
AdaBoN is a two-stage algorithm. First, it spends a small exploration budget d on each prompt to sample rewards. Then it fits a distribution to those rewards and uses that estimate to figure out where the remaining budget will do the most good.
The trick that makes this work cheaply is the choice of estimator. The authors observed that across their 12 model pairs, reward distributions are mostly smooth, have a few modes, and can be skewed. That makes them a good fit for Gaussian kernel density estimation with Scott's rule for bandwidth selection, which requires no training and can be sampled from very quickly.

With those estimated distributions in hand, AdaBoN uses Monte Carlo sampling to estimate the marginal value of giving each prompt j more samples, then runs a greedy algorithm that repeatedly adds one sample to whichever prompt has the highest current marginal gain. Because the function f(n) = E[max{c, X_{1:n}}] is concave and monotonically increasing, this greedy procedure is provably optimal on the estimated values.
Crucially, only two batched calls to the base LM are needed: one for exploration, one for the final allocation. That preserves the parallelism of vanilla Best-of-N and avoids the latency spiral you get with fully sequential bandit approaches.
How they measured wins
The authors evaluated on prompts from AlpacaEval, HH-RLHF, and PKU-SafeRLHF, using four LMs (Mistral-7B, Gemma-7B, Qwen2.5-7B-Instruct, Meta-Llama-3-8B) and three reward models (RM-Mistral-7B, FsfairX-LLaMA3-RM, ArmoRM-Llama3-8B). For each configuration they sampled 50 batches of prompts and introduced two metrics:
- Batch Win Rate (BWR): probability that AdaBoN's cumulative reward beats uniform allocation at the same total budget. 0.50 means a tie.
- Expected Survival Time (EST): how large a uniform allocation budget AdaBoN can compete against while using budget B. Higher means more compute savings.
The numbers
With K=5, B=120, and exploration budget d=0.75B, AdaBoN outperforms the uniform allocation for more than 75% of the batches across all LM-RM pairs. Median BWRs cluster around 0.58 to 0.62, with some batches hitting 0.70. On the EST side, AdaBoN obtains comparable performance against uniform allocations with 20% larger inference budget. Because batches vary in difficulty, we consider the distribution of ESTs across the 50 batches, with some batches showing survival times equivalent to a 33 percent larger uniform budget.

Two other results are worth flagging. Performance improves as batch size grows, which makes sense because a larger batch gives the greedy allocator more prompts to shift compute between. And the method has effectively one hyperparameter, the exploration budget d, which works well at 0.75B across every configuration tested.
Where it stumbles
AdaBoN's biggest weakness shows up when reward distributions are heavily left-skewed. The performance of AdaBoN drops for Qwen-Armo because the vast majority of reward distributions for this LM-RM pair are left-skewed. When most samples already cluster near the top of the reward range, uniform sampling is already close to optimal and there is nothing for adaptivity to exploit. The Gaussian KDE assumption also breaks down for discrete reward models, which the authors flag as future work.
The method also assumes a batch of prompts. If you are serving a single request at a time, there is nothing to reallocate between, and you fall back to standard Best-of-N. That makes AdaBoN a better fit for offline synthetic data generation, on-device batched inference, and pipelines where prompts naturally arrive in groups than for pure online chat serving.
What it means in practice
The practical story here is that if you are already running Best-of-N as part of a rejection sampling pipeline or a synthetic data generator, you can drop AdaBoN in without retraining anything and get either better outputs at the same cost or the same outputs at roughly 20 percent less cost. There is no auxiliary model to maintain, no per-configuration hyperparameter search, and the added wall-clock overhead is under a tenth of a second per batch compared to minutes for the actual generation. The paper does not release code, but the algorithm is short enough to implement directly from the pseudocode in a few dozen lines of Python around any Hugging Face generation loop.