TL;DR
When teaching a language model to imitate "Best-of-$N$" generation, standard alignment methods smoothly downweight bad responses while aggressively boosting the very top ones—leaving junk in the output possibilities and risking "reward hacking" at the top. This paper introduces TUP (Truncate-bad, Upweight-good Policy), a remarkably simple offline training method that completely chops off low-ranking responses and gently reweights the good ones. By turning alignment into a straightforward binary cross-entropy classification problem, TUP generalizes better to unseen evaluators than leading offline alignment baselines.
What Problem Does This Paper Address?
One reliable way to get better answers from an LLM is Best-of-$N$ (BoN) sampling: generate $N$ candidate responses at inference time, score them with a reward model, and serve the winner. It works great, but generating $N$ responses for every user query is computationally expensive.
BoN distillation solves this by training a single model to internalize that selection behavior upfront, usually by looking at a response's win-rate (its relative rank in a sampled pool) rather than raw reward scores. However, existing rank-based distillation methods apply a smooth reweighting across all candidates. This creates a frustrating tug-of-war controlled by a single sharpness knob:
- If you reweight gently, terrible responses get smaller probabilities, but they never hit zero—meaning the model can still generate junk.
- If you reweight sharply to crush the bad tail, you concentrate massive probability on the #1 ranked response. Because reward models are imperfect proxies, trusting fine-grained distinctions at the very top leads to reward hacking (gaming the reward model's quirks rather than improving true quality).
Methods
The authors argue that throwing out the garbage and rewarding the winners should be two separate decisions. They propose TUP, which decouples these mechanisms using two distinct parameters:
- Truncate Bad ($\lambda$): A hard win-rate threshold $\lambda \in (0,1)$. Any candidate completion whose pool win-rate falls at or below $\lambda$ gets its target probability set to exact zero, excising it from the model's support.
- Upweight Good ($\beta$): Completions surviving the cut have their win-rates shifted by $\lambda$ and passed through a log-odds ($\text{logit}$) transform, where $\beta > 0$ smoothly controls how strongly higher-ranked survivors are favored over merely decent ones.
What’s novel and practical here: Usually, modifying rewards in KL-regularized RLHF creates a mathematical headache: a prompt-dependent partition function $Z(x)$ that is intractable to compute. Because population win-rates are uniformly distributed between $0$ and $1$, TUP's normalizer $Z_{\lambda,\beta}$ collapses into a closed-form constant (an incomplete Beta function) that doesn't depend on the prompt at all!
Even better, rearranging the optimal policy equation turns training into fully offline soft-classification. You don't need online RL, pairwise preference pairs, or runtime partition estimates—just standard Binary Cross-Entropy (BCE) loss where the shifted-truncated win-rates act as soft labels and the log-likelihood ratios between your model and the reference model act as logits.
Datasets
The authors adopt the established QRPO offline alignment benchmark, using ArmoRM to score training pools:
- Training & In-Dataset Evaluation: UltraFeedback and Magpie Air (evaluating on held-out test splits).
- Out-of-Distribution Evaluation: AlpacaEval, judged both by
gpt-4oand two held-out, top-ranked reward models (Skywork-Reward-V2-Llama-3.1-8B and Skywork-Reward-V2-Qwen3-8B) to test whether models genuinely improve or just overfit to the training reward model. No new datasets are introduced.
Key Insights and Ideas
- Evaluators agree on what's terrible, not on what's best: Comparing ArmoRM against Skywork-Llama on UltraFeedback reveals a 24-percentage-point higher agreement on the worst completions than on the very best ones. Truncating the bottom tail targets consensus bad behavior, while avoiding over-sharpening at the noisy top prevents overfitting to a single evaluator's biases.
- Hard truncation is theoretically formidable: The authors prove that for any unknown oracle reward, the best hard lower-tail truncation rule can match the expected oracle win-rate of any smooth, non-decreasing rank-reweighting policy (like QRPO or BoNBoN). Adding smooth upweighting ($\beta$) on top provides an extra boost whenever proxy ranks positively correlate with true quality among the survivors.
- Length isn't doing the heavy lifting: While TUP generates longer responses than several baselines, both length-controlled (LC) metrics and strict length-matched head-to-head comparisons confirm its higher scores come from actual response quality rather than verbosity.
Key Results
Tested on Llama 8B Tülu 3 SFT and Mistral-7B-Instruct-v0.2 against DPO, REBEL, QRPO, and BoNBoN:
- Strong cross-evaluator generalization: While methods score similarly on the training reward (ArmoRM), TUP shines on unseen evaluators. On Magpie Air's test split (Llama 8B), mid-truncation TUP ($\lambda=0.5$) hits 21.24 LC reward under Skywork-Llama, outpacing DPO (16.33), QRPO (16.32), and REBEL (17.32).
- AlpacaEval performance: For UltraFeedback-trained Llama 8B, TUP achieves the highest Skywork-Llama (23.05) and Skywork-Qwen (11.54) LC rewards, while tying the best baselines on
gpt-4oLC win-rate (42.36% vs. REBEL-random's 42.44% and DPO's 42.30%). - Goldilocks ablation: Ablating $\lambda$ and $\beta$ confirms that intermediate truncation paired with moderate sharpness ($\beta = 10^{-2}$) yields peak reward (~21.08), beating both near-zero truncation and uniform "pure" truncation (~12.66 at $\beta = 100$).
Limitations and Future Work
- Extra hyperparameter tuning: Unlike baselines that only tune $\beta$, TUP requires tuning both $\lambda$ and $\beta$. However, the authors note you can cheaply narrow down $\lambda$ before training by plotting proxy-vs-auxiliary reward model agreement (as in Figure 2, right) to find the error crossover point.
- Global vs. prompt-specific knobs: While theory suggests optimal $\lambda$ and $\beta$ depend on the prompt, TUP uses fixed global values across the dataset. Learning prompt-adaptive parameters is a promising next step.
- Reward hacking & safety: TUP reduces—but doesn't eliminate—exposure to reward hacking. Looking ahead, the authors highlight safety alignment as a natural fit: if unsafe completions reliably rank near the bottom, hard truncation completely removes them from the target distribution rather than merely making them less likely.
Summary updated