TL;DR
This paper introduces OMPO, a novel approach to align large language models (LLMs) with human preferences in multi-turn conversations. By framing the problem as a two-player Markov game and employing an optimistic online mirror descent algorithm, OMPO achieves theoretical convergence guarantees and demonstrates superior performance on conversational and reasoning tasks compared to existing methods.
What Problem Does This Paper Address?
Aligning LLMs with human preferences, a crucial step for making them more helpful and trustworthy, has seen significant progress with methods like Reinforcement Learning from Human Feedback (RLHF). However, current dominant approaches like Direct Preference Optimization (DPO) often treat interactions as single-turn "bandit" problems. This is a limitation for real-world scenarios involving multi-turn conversations or complex reasoning processes (like chain-of-thought) where preferences can be expressed at intermediate steps. Furthermore, DPO relies on the Bradley-Terry model, which assumes transitive preferences, a simplification that doesn't always hold for averaged human judgments. This paper aims to bridge this gap by developing an alignment method that handles multi-step interactions, general (potentially non-transitive) preferences, and provides robust convergence guarantees.
Methods
The core innovation of this paper is framing the multi-step LLM alignment problem as a two-player constant-sum Markov game. In this game, two LLMs (or an LLM and a human preference model) act as players, each trying to maximize their "winning rate" across all turns of a conversation. This formulation naturally accommodates intermediate preferences.
To solve this game, the authors propose Optimistic Multi-step Preference Optimization (OMPO). OMPO leverages an optimistic online mirror descent algorithm, a technique known for its efficiency in finding saddle points in optimization problems. The authors reformulate the game in terms of occupancy measures, which represent the probability of visiting certain states and taking certain actions. This reformulation allows for a linear optimization problem, which is then solved efficiently using the optimistic mirror descent approach. Theoretically, OMPO is shown to converge to an $\epsilon$-approximate Nash equilibrium in $\mathcal{O}(\epsilon^{-1})$ policy updates, a significant improvement over some prior methods.
Datasets
The paper evaluates OMPO on two types of datasets:
- Multi-turn conversation datasets: Specifically, the MT-bench-101 dataset is used, which comprises various conversational tasks designed to test LLM capabilities in areas like context memory, anaphora resolution, and topic shifts.
- Math reasoning datasets: The MATH and GSM8K datasets are used to evaluate the model's ability to align with human preferences in chain-of-thought reasoning tasks.
Key Insights and Ideas
- Framing alignment as a game: Treating LLM alignment as a two-player Markov game is a powerful abstraction that naturally handles multi-turn interactions and intermediate preferences, moving beyond the limitations of single-step bandit formulations.
- Optimism for faster convergence: The "optimistic" aspect of the algorithm is key to achieving faster convergence rates, particularly in the context of finding Nash equilibria in these games.
- Occupancy measures simplify the problem: Reformulating the game in terms of occupancy measures transforms a complex non-convex problem into a more tractable linear one, enabling efficient optimization.
- General preferences are crucial: The paper highlights that human preferences are not always transitive, and a method that can handle this generality is more robust and realistic.
Key Results
- Theoretical Guarantees: OMPO is theoretically proven to converge to an $\epsilon$-approximate Nash equilibrium in $\mathcal{O}(\epsilon^{-1})$ policy updates.
- Performance on MT-bench-101: OMPO significantly outperforms baseline methods like DPO and SPPO on the MT-bench-101 dataset, showing considerable improvements in perceptivity, adaptability, and interactivity metrics. For instance, OMPO achieves a higher average score than IPO (a related method) in one iteration.
- Performance on Math Reasoning: OMPO achieves performance comparable to state-of-the-art methods like Step-DPO on MATH and GSM8K datasets, without requiring ground truth labels or complex auxiliary models like GPT-4 for step-wise error detection.
- Ablation Studies: Experiments show that using intermediate rewards (per-step preferences) generally leads to better performance than relying solely on terminal rewards, especially in conversational tasks.
Limitations and Future Work
- Last Iterate Convergence: While OMPO establishes asymptotic convergence, the paper notes that finding a rate for the last iterate of the algorithm is an open direction.
- Infinite Horizon Setting: Extending the theoretical analysis to infinite horizon settings is a challenging but promising future direction, requiring new conceptual tools.
- Vision-Language Models (VLMs): The authors suggest extending the method to VLMs for aligning text and image modalities.
- AI Safety: Applying the approach to AI safety, particularly for developing multi-step defense mechanisms against jailbreak attacks, is another exciting avenue.
- Practical Implementation: While the paper presents a practical implementation, it acknowledges that approximating value functions can sometimes lead to numerical instabilities, though these are manageable for small $\beta$.
Summary updated