TL;DR
This paper introduces MGDA-DECOUPLED, a novel algorithm for aligning Large Language Models (LLMs) with multiple, potentially conflicting human values. It achieves this by adapting a geometry-aware multi-objective optimization technique to the Direct Preference Optimization (DPO) framework, leading to more equitable trade-offs between objectives like helpfulness and harmlessness. Experiments show MGDA-DECOUPLED outperforms existing methods in achieving high alignment quality across various objectives.
What Problem Does This Paper Address?
Aligning LLMs to human values is a complex multi-objective optimization problem. Desirable traits like helpfulness, truthfulness, and harmlessness often conflict. Current alignment methods, like fixed scalarization (combining objectives with fixed weights), can lead to "procedural unfairness" by systematically favoring easier-to-optimize or more represented objectives, neglecting minority or harder ones. This can result in models that are biased towards certain values. While some approaches decompose objectives into separate datasets, they still struggle with effectively balancing these competing demands without complex reinforcement learning or explicit reward models. The paper aims to address this by developing a lightweight, geometry-aware optimization method that works directly within the DPO framework to achieve more equitable trade-offs.
Methods
The core contribution is MGDA-DECOUPLED, a geometry-aware multi-objective optimization algorithm adapted for the DPO paradigm. Unlike traditional methods that might use fixed weights or complex RL, MGDA-DECOUPLED operates directly on preference data. It leverages the idea of finding a "shared descent direction" that improves all objectives simultaneously, inspired by the Multiple Gradient Descent Algorithm (MGDA).
The key novelty lies in how MGDA-DECOUPLED decouples the calculation of mixing coefficients (weights for each objective's gradient) from the actual gradient aggregation. Specifically:
- Loss-Normalized Gradients for Coefficient Calculation: It uses gradients normalized by their corresponding objective losses ($\nabla L_i / L_i$) to compute the mixing coefficients. This is a crucial insight: the ratio of gradient magnitude to loss acts as a proxy for how close an objective is to convergence. Objectives with a smaller ratio (meaning the gradient is large relative to the remaining loss) are considered further from convergence and are thus given higher coefficients. This prevents objectives with steep but already low losses from dominating the optimization.
- Raw Gradients for Aggregation: Once these coefficients are computed, they are applied to the raw gradients ($\nabla L_i$) to form the final update vector. This preserves the magnitude information of the raw gradients, which is important for effective optimization.
This approach contrasts with:
- Standard MGDA: Which can be sensitive to gradient magnitudes.
- MGDA-NORMALISED: Which normalizes gradients to unit length, discarding loss information and treating converged and un-converged objectives similarly.
Datasets
The primary dataset used for training and evaluation is UltraFeedback [Cui et al., 2023]. This dataset consists of 64k prompts, each with four model responses rated on a scale of 1-5 across four objectives: Helpfulness, Instruction Following, Honesty, and Truthfulness. For DPO training, objective-specific pairwise preference datasets were constructed by comparing response pairs based on their scores for each individual objective.
Key Insights and Ideas
- Geometry Matters for Fair Trade-offs: The paper highlights that simply combining objectives with fixed weights or even dynamic weights based solely on loss can lead to suboptimal or unfair outcomes. Understanding the "geometry" of the optimization landscape, specifically the relationship between gradient magnitudes and objective losses, is crucial for finding equitable trade-offs.
- Loss-Normalized Gradients as a Convergence Proxy: The insight that the ratio $\nabla L_i / L_i$ can serve as a proxy for an objective's distance to convergence is key. This allows the algorithm to intelligently prioritize objectives that are "harder" to optimize, preventing them from being drowned out by objectives that are already close to their optimum.
- Decoupling for Robustness: Separating the coefficient calculation (based on loss-normalized gradients) from the gradient aggregation (using raw gradients) is a critical design choice. This allows the algorithm to leverage the geometric insights for weighting while still benefiting from the full gradient information for effective updates.
- DPO as a Lightweight Alignment Framework: The success of MGDA-DECOUPLED within the DPO framework demonstrates that sophisticated multi-objective alignment can be achieved without the computational overhead and instability of traditional RLHF methods.
Key Results
- Superior Performance on UltraFeedback: MGDA-DECOUPLED consistently achieved the highest win rates against golden responses across multiple objectives for both Gemma-2-2b-it and Qwen2.5-0.5B-Instruct models.
- Significant Overall Improvement: For the Gemma-2-2b-it model, MGDA-DECOUPLED was the only algorithm to achieve a statistically significant improvement (+2.3%) in net win rate over the REFERENCE baseline.
- Per-Objective Wins: On the Gemma-2-2b-it model, MGDA-DECOUPLED achieved the highest net win rate in three out of four objectives (Instruction Following, Helpfulness, and Truthfulness).
- Qwen2.5-0.5B-Instruct Nuances: While MGDA-NORMALISED showed slightly higher per-objective win rates on some metrics, MGDA-DECOUPLED still demonstrated the highest overall improvement (+4.7%). This suggests that different geometry-aware methods might gravitate towards distinct Pareto-optimal trade-offs.
- Efficiency: The algorithm is described as lightweight and operates without the computational overhead of RLHF. The overhead from computing the gradient Gram matrix for MGDA variants was found to be negligible for k=4 objectives.
Limitations and Future Work
- Computational Overhead: While deemed negligible for k=4, the paper notes that MGDA variants have a computational cost that scales quadratically with the number of objectives (k). This could become a factor with a very large number of objectives.
- Dataset Structure: The UltraFeedback dataset, while useful, has some limitations. The per-objective datasets originate from the same prompt-response pool, leading to overlap, which might reduce the density of gradient conflicts. Also, the standard DPO reduction discards granular scores in favor of preference pairs, potentially losing valuable signal about the magnitude of improvements.
- DPO's KL-Divergence Term: The KL-divergence term in DPO, especially with a large penalty coefficient ($\beta$), can act as a "shared pull" towards the reference model, artificially aligning gradients and potentially dampening true conflicts between objectives.
- Future Work Suggestions:
- Investigating whether leveraging raw numerical scores (beyond preference pairs) could provide a richer signal for multi-objective optimization.
- Exploring settings with more numerous or fundamentally opposing objectives (e.g., Helpfulness vs. Harmlessness) where geometric gains might be more pronounced.
- Adapting these techniques to more complex LLM alignment scenarios.
Summary updated