REE-BoN: Efficient Best-of-N Scoring via Depth-wise Retrieve-Rerank

Tianyi Li, Aditya A. Ramesh, Nacime Bouziani, Jens Lehmann, Stefanos LaskaridisarXiv 2026

TL;DR

When you ask an LLM for 64 answers and use a Reward Model (RM) to pick the best one, running all 64 responses through every single layer of the RM is a massive waste of compute. REE-BoN turns a single reward model into a multi-stage funnel: shallow layers act as cheap bouncers that toss out obvious duds, leaving the deep, computationally heavy layers to judge only the finalists. It cuts RM scoring compute by 41% on average while keeping essentially the exact same answer quality.

What Problem Does This Paper Address?

One of the simplest, most reliable ways to get better answers out of a language model at inference time is Best-of-N (BoN) selection: generate $N$ candidate responses, grade them all with a separate Reward Model, and hand the highest-scoring one to the user. (The same pattern powers rejection sampling when curating training data.)

The catch is the bill. Scoring scales linearly—evaluating 64 candidates requires 64 full forward passes through the RM. Yet, we already know from prior LLM research that deeper transformer layers carry a lot of redundancy. Do you really need 36 layers of deep semantic contemplation to realize candidate #42 is badly formatted gibberish? The authors ask whether early layers can filter out weak candidates early, saving full-depth evaluation for a small shortlist.

Methods

The authors introduce REE-BoN (pronounced "ribbon"), borrowing the classic "retrieve-and-rerank" paradigm from search engines—except instead of using two separate models, everything happens along the depth axis of a single reward model.

Figure 1: Overview of the REE-BON pipeline. N = 64 response sequences are processed through transformer layers (dashed box). At selected layers, a lightweight reward head scores all surviving candidates and a filter retains the top-Ks. Only survivors continue to deeper layers, progressively narrowing the candidate set until a single winner is selected. No layers are recomputed.

Here is what separates REE-BoN from standard RM setups:

  • Lightweight Exit Heads: Starting with a standard decoder-only RM, they attach tiny two-layer MLP "exit heads" to intermediate layers. Each head reads the last-token hidden state and outputs a scalar score, costing less than 0.1% of a transformer layer's compute.
  • Two-Stage Frozen-Backbone Training: First, the RM backbone is trained normally. Second, the backbone is completely frozen while all intermediate exit heads are trained independently so they don't interfere with one another.
  • Margin-Weighted Multi-Response Loss: Standard RMs train on binary "chosen vs. rejected" pairs (Bradley-Terry loss). That signal is too weak for shallow layers. Instead, the authors train heads on all $\binom{K}{2}$ pairs from $K$ responses simultaneously, weighting pairs by how much better one answer is than another. This gives early layers a rich, graded ranking signal.
  • Depth-Wise Cascade & Calibration: At inference, all $N$ candidates run up to an early layer $L_{S_1}$, get scored, and only the top $K_1$ survivors continue forward from their cached hidden states—zero recomputation required. An offline search over a tiny calibration set picks which layers filter and how many candidates survive. Better yet, they also discover a zero-calibration heuristic (filtering at 38%, 57%, and 90% depth, keeping 67%, 25%, and 1 candidate) that works right out of the box.

Datasets

No new benchmarks are introduced. Instead, prompts are drawn from two established preference datasets—UltraFeedback and HelpSteer2—split 10:1:1 into training, calibration, and test sets. Candidate responses are generated using Qwen3-1.7B and Gemma3-1B policies, and labeled/evaluated using WorldPM-72B as a "gold" ground-truth proxy for human judgment.

Key Insights and Ideas

  • A natural division of labor across depth: Early layers have high recall (great at keeping the true winner somewhere in the top pile) even though they have poor precision (bad at picking the exact #1 spot). Qualitatively, shallow layers weed out bad formatting and verbosity, while deep layers adjudicate reasoning and factual accuracy.
  • Remarkable structural regularity: Across different model families (Qwen3, Gemma3), sizes (0.6B to 4B), policies, and datasets, RMs hit near-full-depth quality at roughly the same compute fraction (~55% of full FLOPs), which is why a single zero-calibration rule generalizes so well.
  • Punching above your weight class: Early-exiting a larger RM can actually cost less compute—and pick better responses—than running a smaller RM to full depth.
  • Single-model beats multi-model cascades: Filtering inside one model's layers is 3–28% cheaper than cascading across separate small-to-large RMs (0.6B $\rightarrow$ 1.7B $\rightarrow$ 4B), with zero multi-model serving headaches.

Key Results

Evaluated across 20 configurations (5 RMs $\times$ 2 datasets $\times$ 2 policies) for BoN@64:

  • 41% FLOPs reduction: With one shared default setting ($\lambda=0.05$), REE-BoN cuts RM scoring FLOPs by 41% on average with a mean quality degradation of just 0.34% (staying under 1% degradation in 17/20 setups). It picks the exact same winner as the full RM 75% of the time—and when they disagree, the pipeline's pick is actually better 48% of the time!
  • Zero-calibration works: The fixed 3-stage heuristic also saves 41% FLOPs with only 0.5% mean degradation.
Figure 3: Pareto frontiers of performance vs. absolute compute cost (normalized so Qwen3-1.7B full pass = 1.0) across all four cells. Shaded bands: ±1 std across 3 seeds. Solid lines trace optimized pipelines; dashed lines show individual exit layers. Diamonds mark the heuristic; stars mark the full RM. The frontiers form a continuous envelope across model sizes. At any given compute budget, one can read off the best model+pipeline combination.
  • Reinvesting compute: If you spend those scoring savings on generating more candidates under a fixed total budget (e.g., scoring 63 candidates instead of 56), REE-BoN outperforms standard full-RM BoN.

Limitations and Future Work

  • FLOPs vs. Wall-Clock Latency: Savings are measured in theoretical FLOPs. Turning shrinking batch sizes into real wall-clock speedups requires serving-system care (like continuous batching), which wasn't benchmarked here.
  • Model Scale & Type: Tested up to 4B parameters, and strictly on scalar RMs. Chain-of-thought "reasoning RMs"—where cost comes from generating tokens rather than model depth—operate in a different paradigm entirely.
  • Proxy Judges & Scope: Evaluation relies on a 72B gold RM rather than live humans, and focuses solely on inference-time BoN. Extending noisy early-exit scores to online RLHF training (like PPO), larger rejection-sampling pipelines, and adaptive generation budgets remains exciting future work.

Summary updated

BibTeX
@misc{li2026ree,
  author = {Tianyi Li and Aditya A. Ramesh and Nacime Bouziani and Jens Lehmann and Stefanos Laskaridis},
  title = {{REE-BoN: Efficient Best-of-N Scoring via Depth-wise Retrieve-Rerank}},
  year = {2026},
  eprint = {2611.37705},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.37705},
}
Figure