TL;DR
This paper introduces COS-DPO, a novel framework for efficiently fine-tuning models on multiple objectives simultaneously, a common challenge in areas like LLM alignment and recommendation systems. COS-DPO extends Direct Preference Optimization (DPO) to handle these multi-objective scenarios with a single training pass, enabling flexible control over trade-offs between objectives and achieving Pareto-optimal solutions.
What Problem Does This Paper Address?
Many real-world machine learning applications, especially in areas like LLM alignment and production ranking systems, involve balancing multiple, often conflicting, objectives. For instance, an LLM might need to be helpful, harmless, and truthful, or a search ranking system might need to optimize for relevance, diversity, and fairness. This is known as the Multi-Objective Fine-Tuning (MOFT) problem. Traditional approaches often struggle with this by either aggregating objectives into a single loss (which can lead to suboptimal trade-offs) or requiring extensive retraining for each desired trade-off. This is computationally expensive and makes it difficult to adapt to dynamic requirements. The authors aim to provide an efficient, one-shot method to explore the "Pareto front" – the set of optimal trade-off solutions where no objective can be improved without sacrificing another.
Methods
The core of the proposed solution is the Conditioned One-Shot Direct Preference Optimization (COS-DPO) framework. It builds upon the Direct Preference Optimization (DPO) technique, which efficiently fine-tunes models using preference data.
- Weight-COS-DPO: This method introduces a "weight vector" that directly conditions the model's behavior on the desired trade-offs between auxiliary objectives. During training, the model learns to adapt its output based on this weight vector, effectively learning a mapping from weights to Pareto-optimal solutions in a single training pass. This allows for efficient exploration of the Pareto front.
- Temperature-COS-DPO: Further enhancing flexibility, this variant incorporates a "temperature" parameter alongside the weight vector. This temperature parameter controls the trade-off between the main objective and the auxiliary objectives. By conditioning on both weights and temperatures, the framework offers more granular control over the Pareto front, allowing for scaling and shifting of the trade-off curves.
- Hyper Prompt Tuning (HPT): For LLM alignment, a novel HPT method is introduced. Since directly concatenating weight vectors to LLM inputs can be problematic, HPT transforms the weight vector into a mask that is applied to a trainable prefix embedding, allowing the LLM to incorporate multi-objective preferences without altering its core architecture.
Datasets
The paper evaluates COS-DPO on two main types of tasks:
- Learning-to-Rank (LTR): The Microsoft Learning-to-Rank Web Search (MSLR-WEB10K) dataset is used. This dataset contains queries, webpages, and relevance labels, along with 5 auxiliary objectives derived from webpage features.
- LLM Alignment: The PKU-SafeRLHF dataset is employed, which consists of prompts and pairs of responses annotated for harmlessness and helpfulness (two auxiliary objectives).
Key Insights and Ideas
- One-Shot Pareto Front Profiling: The most significant insight is that it's possible to efficiently profile the entire Pareto front of auxiliary objectives with a single training run, a substantial improvement over methods requiring multiple training instances.
- Conditioning as a General Mechanism: The paper demonstrates that conditioning the model not just on data but also on desired trade-off parameters (weights and temperatures) is a powerful paradigm for multi-objective optimization.
- Linear Transformation Property: A key theoretical finding is that the model's output scores exhibit a linear transformation property with respect to the temperature parameter. This property allows for flexible post-training adjustments of the Pareto front without retraining.
- Hyper Prompt Tuning for LLMs: The development of HPT is crucial for applying multi-objective fine-tuning to LLMs, overcoming the challenges of integrating continuous preference signals into discrete token-based inputs.
Key Results
- Superior Pareto Fronts: COS-DPO consistently generates more comprehensive and better-approximated Pareto fronts compared to baselines like DPO-LS, DPO Soup, and MO-DPO on both LTR and LLM alignment tasks. This is quantified by the Hypervolume (HV) metric.
- Efficiency Gains: Weight-COS-DPO achieves these results with significantly less training time and fewer parameters compared to baselines, especially as the number of objectives increases. For example, on the MSLR-WEB10K dataset with 5 auxiliary objectives, it achieved a higher HV metric with substantially less training time and fewer parameters.
- LLM Alignment Performance: On the PKU-SafeRLHF dataset, W-COS-DPO demonstrated strong performance, achieving higher hypervolume metrics and faster training times than baselines, while maintaining good performance on the main objective.
- Post-Training Control Validation: Empirical results validate the linear transformation property, showing that post-training scaling of temperature parameters can effectively adjust the Pareto front.
Limitations and Future Work
- Model Expressiveness: The paper notes that for complex multi-objective scenarios, especially with Temperature-COS-DPO, more expressive model architectures (e.g., deeper transformer layers) might be required to fully capture the intricate trade-offs.
- Hyperparameter Sensitivity: While COS-DPO is generally robust, the concentration parameter 'a' for the Dirichlet distribution requires careful selection, as it balances the diversity of sampled weights with overall performance.
- Future Work: The authors suggest incorporating other MOO and LTR techniques into the COS-DPO framework and further exploring the potential of Temperature-COS-DPO for more complex multi-objective fine-tuning problems. They also propose investigating the validity of Temperature-COS networks and applying them to more complex multi-objective optimization tasks.
Summary updated