TL;DR
Alignment training often causes Large Language Models (LLMs) to suffer from "mode collapse," where they repeatedly output the same few high-probability answers. This paper introduces MoDA (Mode-conditioned Diversity Alignment), a post-training reinforcement learning method that frames diversity as a multi-agent coordination problem. By conditioning a single LLM on abstract "role" tokens and using a prompt-adaptive quality gate, MoDA dramatically increases generation diversity while simultaneously boosting general capabilities.
What Problem Does This Paper Address?
Standard post-training alignment techniques (like RLHF or DPO) make LLMs safer and more helpful, but they come with a hidden cost: mode collapse. The model progressively loses output diversity, narrowing its expressivity at inference time into an "Artificial Hivemind."
While this is fine for factual Q&A, it is a major bottleneck for open-ended tasks like scientific ideation, creative writing, or exploring multiple mathematical proof strategies. Current fixes either rely on inference-time prompting tricks or unconditionally bake diversity into the model, which often degrades standard capabilities or leads to reward hacking (e.g., the model becoming overly verbose or switching languages just to look "diverse").
Methods
MoDA treats diverse generation through the lens of Multi-Agent Reinforcement Learning (MARL). Instead of modifying the network architecture or using hand-crafted personas, it trains a single shared LLM policy using Group Relative Policy Optimization (GRPO).
- Mode Conditioning: The authors prepend abstract numbered tokens (e.g.,
<system>You are role 1.</system>) to the system prompt. Each role acts as an independent agent competing to produce an output distinct from its peers. - Quality-Gated Diversity Reward: To prevent the model from generating gibberish just to be unique, MoDA uses a prompt-adaptive quality gate. It samples responses from a frozen reference model to dynamically calculate a quality threshold for each prompt. Diversity rewards (calculated as the semantic distance to the nearest neighbor in the generated group) are only granted if the response clears this quality threshold.
- Dual Inference Modes: Crucially, if the mode tokens are omitted at inference time, the model reverts to its standard, high-confidence single-response behavior, preserving its base capabilities.
Datasets
- Training Data: A 10k prompt dataset consisting of a 4:1 mixture of uniformly sampled
Tulu3-SFT-Mixtureprompts (to anchor general capabilities) and theInfinite-Chatdataset (to encourage open-ended exploration). - Evaluation Suite:
- General Capabilities: GSM8K, MMLU, GPQA, BoolQ, HellaSwag, TruthfulQA, and IFEval.
- Open-Ended Domain Applications: HypoBench (scientific hypothesis generation), PreScience (scientific contribution tracking/ideation), NoveltyBench (creative writing), and a held-out split of Infinite-Chat.
Key Insights and Ideas
- Abstract Roles > Hand-Crafted Personas: Instead of telling the model to be an "innovative thinker" or a "creative problem solver," simply using "You are role $i$" allows the model to adaptively learn emergent specialization via competitive multi-agent training.
- Decoupling Quality and Diversity via Gating: Traditional methods use a simple weighted sum of quality and diversity rewards, which is highly sensitive to hyperparameter tuning. MoDA’s hard quality gate ensures that diversity optimization never compromises basic instruction-following or accuracy.
- The Dual-Mode Benefit: By conditioning diversity on explicit tokens, MoDA avoids permanently altering the base model's default behavior, offering a flexible "drop-in" alternative to standard post-training pipelines.
Key Results
MoDA Pareto-dominates existing baselines across multiple base models (Qwen3-8B, Llama-3.1-8B, GLM-4-9B).
- Diversity Boost: On the Infinite-Chat held-out prompts, MoDA improved SBERT semantic diversity by 265% over the Qwen3-8B baseline. Compared to DivPO (the strongest training baseline), MoDA increased SBERT diversity from 0.274 to 0.482 (+75.9%) and the E-Vendi score from 2.86 to 4.4 (+53.8%).
- Capability Retention and Improvement: Instead of suffering a "diversity tax," MoDA actually improved average general capability pass@1 by 10.3% over the Qwen3-8B baseline and 7.0% over DivPO. With the GLM-4-9B base, it showed a massive 15.8 percentage point improvement in average pass@1.
Limitations and Future Work
- Verbosity Bias: The underlying quality reward model (
SkyReward-V2) naturally favors longer, more verbose answers. MoDA's uniform length penalty wasn't always enough to stop models (like GLM-4-9B) from reward-hacking by adding unnecessary preambles like "As a model...". - Bounded by Initial Policy: Because MoDA introduces no external knowledge during training, its diversity is strictly bounded by what the initial base model already knows. Integrating retrieval-augmented generation (RAG) could expand this boundary.
- Safety Risks: Generating highly diverse outputs increases the risk of producing varied but misleading, hallucinated, or unsafe responses, necessitating downstream verification or domain-specific safeguards.
Summary updated