TL;DR
Alignment techniques like Direct Preference Optimization (DPO) make LLMs produce high-quality but highly repetitive outputs—a phenomenon known as alignment collapse. This paper introduces Diverse Preference Optimization (DivPO), a training method that selects preference pairs based on both quality and diversity criteria. DivPO significantly boosts output variety across creative writing and instruction-following tasks without sacrificing response quality.
What Problem Does This Paper Address?
Post-training alignment (such as RLHF, DPO, or Supervised Fine-Tuning) optimizes models to favor human-preferred responses. However, this optimization typically forces the model to place almost all its probability mass on a single, highest-rewarded response.
The consequence is alignment collapse: if you prompt a state-of-the-art model multiple times to write a story with the same title, it will repeatedly generate remarkably similar characters, plot points, and styles. This lack of diversity is a major bottleneck for creative applications and poses a severe challenge when using LLMs to generate diverse synthetic data for self-improvement training loops.
Methods
DivPO rethinks how preference pairs are selected during training. Instead of simply contrasting the absolute highest-rewarded response ("chosen") with the lowest-rewarded one ("rejected"), DivPO introduces a diversity constraint:
- Sample a Pool: For a given prompt, sample a pool of $N$ candidate responses from the model.
- Score and Bucket: Score all responses using a reward model. Define a "chosen set" (high-quality responses within a threshold $\rho$ of the top score) and a "rejected set" (lower-quality responses).
- Select via Diversity: From the high-quality chosen set, select the most diverse response ($y_c$). From the low-quality rejected set, select the least diverse response ($y_r$).
The authors experiment with three diversity criteria ($\mathcal{D}$):
- Model Probability: Prioritizing responses with lower model log-probabilities (i.e., rarer generations).
- Word Frequency: Prioritizing responses containing less frequent words across the pool.
- LLM-as-a-Diversity-Judge: Prompting a powerful model to explicitly pick the most unique response.
Datasets
The authors evaluate DivPO across three distinct tasks:
- Persona Generation: A structured task prompting the model to output a JSON object containing a random character's first name, city of birth, and occupation.
- Keyword Story Generation: A dataset of 6,000 synthetic story titles generated by Llama 3.1-405B (5k train, 1k test), where the model must output exactly five keywords appropriate for the title.
- Instruction Following: A random sample of 10,000 single-turn real-world user prompts from the open-source Wildchat dataset. Models are evaluated using the AlpacaEval 2.0 benchmark.
Key Insights and Ideas
- Bypassing the Quality-Diversity Tradeoff: Standard inference-time tricks to increase diversity (like increasing sampling temperature) cause a sharp drop in text quality. DivPO fundamentally reshapes the model's underlying distribution during training, allowing it to find a wider, flatter peak of high-quality responses.
- Reshaping the Entire Distribution: DivPO doesn't just lengthen the tail of rare outputs; it actively flattens the distribution of common outputs. For instance, standard models heavily over-index on specific names (like "Astrid") when generating personas, whereas DivPO distributes its choices much more uniformly.
- Controllable Diversity via $\rho$: The hyperparameter $\rho$ acts as a precise dial. Setting $\rho = 0$ reduces the algorithm to standard DPO, while increasing $\rho$ allows practitioners to smoothly trade a tiny fraction of maximum reward for massive gains in diversity.
Key Results
1. Persona Generation
In online training setups, DivPO (using word frequency) achieved a 54.14% average diversity score across attributes compared to just 8.54% for online DPO, while maintaining a near-perfect valid JSON rate (99.80%).
2. Keyword Story Generation
Compared directly to DPO, DivPO ($\rho = 0.3$) increased story keyword diversity (measured by unique 1-grams) by 74.6%, while suffering only a negligible 6.4% drop in quality according to the ArmoRM reward model.
3. General Instruction Following
On the AlpacaEval 2.0 benchmark, DivPO ($\rho = 0.4$) achieved a length-controlled win rate of 42.29% (outperforming standard DPO's 41.30%) while simultaneously boosting unique 1-gram diversity from 994.7 to 1454.6 (a 46.2% increase).
Limitations and Future Work
- Loss Function Constraints: DivPO is explicitly designed around pairwise preference optimization frameworks (like the Bradley-Terry model used in DPO). It cannot be directly plugged into non-pairwise RLHF variants, such as Group Relative Policy Optimization (GRPO).
- Future Directions: The authors note that future work should explore extending DivPO to more complex, multi-turn generation tasks and integrating more sophisticated, multi-dimensional metrics for measuring semantic diversity.
Summary updated