Discovering Preference Optimization Algorithms with and for Large Language Models

Chris Lu, Samuel Holt, Claudio Fanconi, Alex James Chan, Jakob Nicolaus Foerster, Mihaela van der Schaar, Robert Tjarko Lange

TL;DR

Researchers have developed an automated pipeline that uses GPT-4 to "invent" new loss functions for aligning AI with human preferences. The standout discovery, DiscoPOP (Discovered Preference Optimization), is a non-convex algorithm that adaptively blends different loss types to outperform industry standards like DPO across dialogue, summarization, and sentiment tasks.

What Problem Does This Paper Address?

Aligning Large Language Models (LLMs) with human values—making them helpful and harmless—usually relies on a process called "preference optimization." Traditionally, human experts hand-craft the mathematical formulas (loss functions) used to train these models. While effective, human creativity is a bottleneck; we tend to stick to "mathematically nice" properties like convexity.

The authors argue that the search space for potential loss functions is massive and largely unexplored. By relying only on human-designed objectives like Direct Preference Optimization (DPO), we might be leaving significant performance on the table. This paper asks: Can we use an LLM to discover a better way to train LLMs?

Methods: LLM-Driven Objective Discovery

The authors introduce an automated pipeline where an LLM acts as the researcher, iteratively proposing and testing new preference optimization loss functions.

LLM-driven discovery pipeline and DiscoPOP performance

It functions as an evolutionary loop:

  1. Proposal: An LLM (GPT-4) is prompted to propose a new preference optimization loss function in Python code.
  2. Implementation: The system automatically plugs this code into a training pipeline.
  3. Evaluation (Inner Loop): A 7B-parameter model is trained using the new loss function and evaluated on a benchmark (MT-Bench).
  4. Feedback: The performance score is fed back to GPT-4, which then "reflects" on why the previous attempt worked or failed and proposes a refined version.

After evaluating approximately 100 candidate functions, the authors identified a particularly powerful objective they named DiscoPOP (technically referred to as Log Ratio Modulated Loss, or LRML).

Datasets

The discovery process and subsequent evaluations utilized several key datasets:

  • Discovery Phase: The models were trained on Argilla DPO Mix 7K and evaluated on MT-Bench (multi-turn dialogue).
  • Held-out Evaluation: To test generalization, the authors used AlpacaEval 2.0 (single-turn dialogue), the Reddit TL;DR dataset (summarization), and the IMDb dataset (sentiment-controlled generation).
  • Base Models: Most experiments used Zephyr-7B-Gemma-SFT as the starting point for alignment.

Key Insights and Ideas

  • The Power of Non-Convexity: One of the most surprising findings was that DiscoPOP is non-convex. In traditional optimization, non-convexity is often avoided because it can make training unstable. However, in the context of LLM alignment, this property seems to help the model ignore "noisy" or contradictory preference data.
  • Adaptive Blending: DiscoPOP works by dynamically weighting two different types of losses: a logistic loss (similar to DPO) and an exponential loss. It uses a sigmoid function to decide which loss to prioritize based on how far the model's current prediction deviates from the reference model.
  • Automated "Aha" Moments: The LLM was able to compose complex ideas—like adding margins, temperature scaling, and label smoothing—in ways that human researchers hadn't previously combined, eventually arriving at the "blended" approach of DiscoPOP.

Key Results

DiscoPOP demonstrated state-of-the-art performance across multiple benchmarks:

  • AlpacaEval 2.0: DiscoPOP achieved a win rate of 13.21% against GPT-4, a significant jump from DPO’s 11.23%.
  • Length-Controlled Win Rate: As seen in the discovery pipeline results, on AlpacaEval, it reached a length-controlled win rate of 65.18% against the SFT baseline, outperforming all other human-designed and discovered baselines (including DPO at 63.34%).
  • Summarization & Sentiment: The algorithm successfully transferred to held-out tasks, maintaining a superior "reward vs. KL-divergence" frontier compared to DPO, meaning it achieves better alignment with less "drift" from the original model's capabilities.

Limitations and Future Work

While DiscoPOP is powerful, the authors noted some constraints:

  • Hyperparameter Sensitivity: The algorithm is sensitive to the $\beta$ parameter (which controls the strength of the preference signal). If $\beta$ is too high or too low, the model can collapse or fail to converge.
  • Computational Cost: The discovery process requires running dozens of full fine-tuning runs, which is resource-intensive.
  • Future Directions: The authors suggest moving toward "multi-parameter" discovery, where the LLM tunes the loss function and hyperparameters simultaneously. They also envision a "self-improving" cycle where the models discovered by this process are used to drive the discovery of even better future algorithms.

Summary updated

BibTeX
@inproceedings{lu2024discovering,
  author = {Chris Lu and Samuel Holt and Claudio Fanconi and Alex James Chan and Jakob Nicolaus Foerster and Mihaela van der Schaar and Robert Tjarko Lange},
  title = {{Discovering Preference Optimization Algorithms with and for Large Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=erjQDJ0z9L},
}
Figure