Aligning Large Language Models (LLMs) with human preferences is the "secret sauce" that makes models like ChatGPT helpful and safe. However, the standard recipe—Reinforcement Learning from Human Feedback (RLHF)—is notoriously difficult to cook, often requiring complex reward models and unstable optimization steps. Even newer shortcuts like Direct Preference Optimization (DPO) can be finicky.
In a new paper, researchers from the University of Alberta introduce MMPO (Maximum Marginal Likelihood Preference Optimization), a simpler and more stable approach that treats alignment as a statistical estimation problem rather than a complex reinforcement learning task.
TL;DR
MMPO simplifies LLM alignment by recasting it as a Maximum Marginal Likelihood (MML) estimation problem. It eliminates the need for explicit reward models and entropy maximization, resulting in a more stable training process that achieves high preference alignment while better preserving the model's original reasoning capabilities.
What Problem Does This Paper Address?
The current gold standard for alignment, RLHF, involves a multi-stage pipeline: training a reward model to mimic human preferences and then using Proximal Policy Optimization (PPO) to tune the LLM. This process is computationally expensive and sensitive to hyperparameters.
While DPO simplified this by turning alignment into a direct classification task, it still inherits some baggage from the RLHF objective—specifically, a reliance on an entropy maximization term that can lead to an "alignment tax," where the model becomes more helpful but loses some of its core reasoning or linguistic "smarts." Furthermore, DPO and its variants (like SimPO) are often highly sensitive to the $\beta$ hyperparameter, which controls how much the model is allowed to drift from its original state.
Methods
The authors propose MMPO, which approaches alignment through the lens of Maximum Marginal Likelihood (MML).
- The MML Reframe: Instead of optimizing for a classification loss, MMPO maximizes the marginal log-likelihood of a preferred text output. It treats a pair of responses (one preferred, one rejected) as samples used to approximate this marginalization.
- Implicit Preference Optimization: The authors prove theoretically (Theorem 3.2) that maximizing this MML objective using a "log-sum-exp" formulation implicitly performs preference optimization. The gradient updates naturally "up-weight" the preferred response more than the rejected one based on their relative scores.
- Stability Features: To make the algorithm robust, they incorporate in-batch normalization of rewards. This prevents outlier examples with extreme log-probabilities from dominating the training and causing instability.
- Simplicity: Unlike RLHF, there is no separate reward model. Unlike DPO, there is no explicit entropy term to manage.
Datasets
The researchers trained their models on a combination of two popular preference datasets:
- Orca DPO Pairs: ~12,359 training pairs.
- UltraFeedback-Binarized: ~61,135 training pairs (scored by GPT-4).
For evaluation, they used:
- AlpacaEval-2: To measure "win-rate" (how often a judge prefers the model's output over a baseline).
- LM Evaluation Harness: A suite of 10 tasks (like MMLU, ARC, and PIQA) to measure general reasoning and knowledge retention.
Key Insights and Ideas
- The "Log-Sum-Exp" Magic: By using a numerically stable log-sum-exp formulation, the model's gradient updates are modulated by a sigmoid of the score difference between responses. If the model already strongly prefers the "correct" answer, the gradient for the "wrong" answer shrinks, focusing the learning where it's needed most.
- Hyperparameter Robustness: One of the most striking findings is that MMPO is largely invariant to the $\beta$ hyperparameter. While DPO's performance can collapse if $\beta$ is tuned poorly, MMPO remains stable across a wide range of values.
- Lower "Alignment Tax": MMPO appears to be "gentler" on the base model. It achieves high win-rates on preference benchmarks while maintaining higher scores on general reasoning tasks compared to DPO and SimPO.
Key Results
The authors tested MMPO on models ranging from 135M to 8B parameters (SmolLM2 and Llama 3 families).
- Superior Stability: In the SmolLM2-135M model, MMPO's win-rate improved steadily to ~67%, while DPO yielded very low win-rates and SimPO's performance degraded significantly after an early peak.
- Competitive Performance: On the Llama 3-8B model, MMPO achieved a win-rate of 63.4%, making it highly competitive with a carefully tuned DPO (64.5%) but with better preservation of general language capabilities.
- Ablation Success: Their ablation studies confirmed that in-batch normalization is a critical component for driving performance gains and maintaining stability.
Limitations and Future Work
- Scale: The study focused on models up to 8B parameters. The authors note that testing on much larger models (70B+) is necessary to see if these stability benefits hold at massive scales.
- Offline Only: The current work focuses on offline preference optimization (using a static dataset). Adapting MMPO for online settings—where the model generates new samples during training—is a promising but unexplored direction.
- Compute Constraints: For the 8B model, the researchers had to use LoRA (Low-Rank Adaptation) rather than full-parameter tuning due to hardware limits. Future work could explore the impact of full-parameter updates with MMPO.
Summary updated