FocalPO: Enhancing Preference Optimizing by Focusing on Correct Preference Rankings

Tong Liu, Xiao Yu, Wenxuan Zhou, Jindong Gu, Volker Tresp

Abstract

Direct Preference Optimization (DPO) has become a standard for aligning Large Language Models (LLMs) with human preferences. However, DPO's objective function inherently prioritizes "misranked" pairs—instances where the model's internal reward estimate contradicts human labels. This paper introduces FocalPO, a novel preference optimization loss that shifts the training focus toward samples the model already ranks correctly. By incorporating a modulating factor inspired by Focal Loss, FocalPO down-weighs "hard" misranked examples that contribute to gradient waste. Experimental results on Mistral-7B and Llama-3-8B demonstrate that FocalPO consistently outperforms standard DPO and SimPO on benchmarks such as Alpaca Eval 2.0 and Arena-Hard, while maintaining robust performance on general reasoning tasks.

1. Introduction

The alignment of Large Language Models (LLMs) with human preferences is a critical step in developing helpful and safe AI assistants. While Reinforcement Learning from Human Feedback (RLHF) traditionally relied on complex actor-critic frameworks, Direct Preference Optimization (DPO) simplified the process by optimizing the policy directly using preference data. Despite its success, DPO exhibits a specific bias: its gradient is steepest for samples where the model is most "wrong." This "learning from mistakes" philosophy assumes that the model can effectively correct these misranked pairs. However, recent observations suggest that these hard samples often represent noise or concepts beyond the model's current capacity, leading to suboptimal training and "gradient waste."

2. The FocalPO Framework

FocalPO addresses the limitations of DPO by refocusing the optimization process on "correct" preference rankings rather than struggling with hopelessly misranked ones.

2.1 The Gradient Waste Problem

In standard DPO, the loss function puts the most weight on samples where the probability $p$ of the model choosing the preferred response is low. If the model cannot resolve these samples—due to data noise or inherent complexity—the training budget is essentially wasted. This prevents the model from refining the nuances of correct rankings, which are often more stable signals for alignment.

2.2 Mathematical Formulation

Inspired by the "Focal Loss" used in computer vision to address class imbalance, FocalPO modifies the standard DPO loss. The objective function introduces a modulating factor $p^\gamma$:

$$\mathcal{L}_{\text{FocalPO}} \approx -E [p^\gamma \log p]$$

In this formulation, $p$ represents the probability of the model preferring the correct response, and $\gamma$ is a tunable hyperparameter (set to 0.05 in primary experiments).

  • For Misranked Samples ($p$ is small): The $p^\gamma$ term significantly reduces the loss, effectively down-weighing samples that are "too hard" or potentially noisy.
  • For Correctly Ranked Samples ($p$ is large): The $p^\gamma$ term remains closer to 1, allowing the model to focus on reinforcing these correct preferences.

This creates a bell-shaped gradient curve. Unlike DPO, which peaks at the most incorrect samples, FocalPO’s gradient is highest for samples that are correctly ranked but still near the decision boundary—the "sweet spot" for improvable, correct logic.

3. Experimental Setup

The researchers evaluated FocalPO using two primary model backbones:

  • Mistral-Base 7B: Trained using the UltraFeedback dataset.
  • Llama-3-Instruct 8B: Trained using the Llama3-ultrafeedback-armorm dataset.

Performance was measured on Alpaca Eval 2.0 (using Win Rate and Length-Controlled Win Rate) and Arena-Hard. To check for an "alignment tax," the models were also tested on the OpenLLM Leaderboard, which includes benchmarks like MMLU, GSM8K, and TruthfulQA.

4. Key Results and Insights

FocalPO consistently outperformed DPO and other state-of-the-art variants across major benchmarks.

4.1 Benchmark Performance

On the Llama-3-8B backbone, FocalPO achieved a 49.8% Win Rate on Alpaca Eval 2.0, surpassing DPO (47.5%) and SimPO (47.5%). On Arena-Hard, it reached 34.6%, the highest in its model class. For Mistral-7B, it achieved a 22.5% Length-Controlled Win Rate on Alpaca Eval 2.0, outperforming DPO (20.6%) and SimPO (21.5%).

4.2 Qualitative Improvement

In a "walking around the world" thought experiment, the FocalPO-trained model provided a much more realistic estimate (approx. 1,000 days) by accounting for human rest time. In contrast, the DPO model gave a naive 335-day estimate based on continuous 24-hour walking. This suggests that FocalPO helps the model capture nuanced, realistic constraints rather than just surface-level patterns.

4.3 General Capabilities and Distribution

FocalPO maintained or slightly improved scores on the OpenLLM Leaderboard compared to DPO. While all alignment methods show a slight tax on pure math and knowledge tasks (GSM8K/MMLU), FocalPO's focus on correct rankings appears to produce a smoother preference probability distribution, helping the model handle out-of-distribution data more gracefully.

5. Conclusion

FocalPO demonstrates that reinforcing "correct" logic is a more stable path to alignment than trying to fix "broken" logic. By dynamically re-weighing samples based on the model's confidence, FocalPO avoids the pitfalls of hard-sample optimization. Future work will explore combining FocalPO with length normalization techniques and testing its scalability on larger Mixture-of-Experts (MoE) architectures.

Summary updated

BibTeX
@inproceedings{liu2025focalpo,
  author = {Tong Liu and Xiao Yu and Wenxuan Zhou and Jindong Gu and Volker Tresp},
  title = {{FocalPO: Enhancing Preference Optimizing by Focusing on Correct Preference Rankings}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.acl-short.21},
}
Figure