When MARL Meets LLM Post-Training

Forty Shades of Blue

Quality-Diversity Alignment via Mode-Conditioned Reinforcement Learning

★ Jiayi Yuan1   ★ Hangoo Kang2   ★ James Jihao Liu2   Yejin Choi2   Vikram Iyer1   ♦ Liwei Jiang1   ♦ Natasha Jaques1
1University of Washington    2Stanford University    ★ Equal first author   ♦ Equal senior author
“In the course of evolution nature has gone to endless trouble to see that every individual is unlike every other individual.” — Aldous Huxley, Brave New World Revisited
TL;DR

Aligned LLMs quietly lose their expressive range: mode collapse narrows generation toward a small set of dominant responses. MODA (MOde-conditioned Diversity Alignment) is an online RL post-training method that conditions a single shared policy on abstract role tokens, treating each role as an agent that competes to explore a distinct, high-quality region of the response space. A quality-gated diversity reward shapes this competition during training. The result: broader, higher-quality exploration on demand, with a simple switch back to standard single-response behavior when diversity isn't needed.

+155.5%
SBERT diversity vs. Qwen3-8B initial policy, averaged across the 4-domain diversity suite (thinking-disabled)
+94.0%
E-Vendi diversity vs. Qwen3-8B initial policy, same setting
+10.3 pts
General-capability pass@1 over the initial policy (avg. of 7 benchmarks)
40
Distinct shades of blue generated — 122% more than the initial policy, 150% more than SSoT
Motivation

Why generation diversity matters

Post-training alignment reliably improves helpfulness and safety — but it also collapses a model's output distribution onto a narrow "mode," suppressing many equally valid alternatives. That's a real cost in domains where multiple plausible answers are the point: scientific hypothesis generation, creative writing, and open-ended ideation all benefit from a policy that can surface several distinct, high-quality candidates rather than one safe favorite.

Inference-time tricks (resampling, seeded prompting, decoding heuristics) help a little, but they work against a policy that was trained to converge. MODA instead builds diversity into post-training itself, drawing on a multi-agent RL (MARL) view of alignment: treat each "mode" as a lightweight agent sharing one policy, and reward agents for finding complementary, high-quality regions of the response space rather than converging on the same one.

Method

Mode-conditioned diversity alignment

MODA method overview: mode-conditioned generation, quality-gated diversity reward, and group-relative policy update 100 responses to "Name a shade of blue" from Qwen3-8B, SSoT, and MODA

MODA elicits candidate responses under distinct role tokens (Step 1), scores each against a prompt-adaptive quality gate and rewards diversity only among gate-passing responses (Step 2), then updates the shared policy with GRPO using the resulting group-relative advantages (Step 3). On the right, 100 samples to "Name a shade of blue" show MODA covering far more of the color space than the base model or String-Seed-of-Thought.

1

Mode conditioning

A minimal system-prompt prefix — You are role i. — instantiates N abstract agents inside one shared policy. Numbered roles (rather than hand-crafted personas like "creative thinker") avoid baking in assumptions about which perspectives matter, letting specialization emerge from the reward alone.

2

Quality-gated diversity reward

Each response gets a quality score from a reward model, compared against a prompt-adaptive threshold computed from five reference samples of the frozen initial policy. Only responses that clear the gate earn credit for being semantically distinct from their nearest neighbor — preventing "diversity" from being gamed by irrelevant or malformed outputs.

3

Group-relative policy update

Quality reward, gated diversity reward, and length/language penalties combine into one reward per response. GRPO turns the six role-conditioned responses per prompt into a single reward group, computing advantages without a separate value network.

Because the role token is just a prompt prefix, MODA supports two inference modes for free: supply role tokens and get a diverse candidate set; omit them and recover the base model's ordinary single-response behavior. Factual prompts ("What is Albert Einstein's birthday?") don't need five different answers — MODA doesn't force diversity where none is wanted.

Qualitative Results

"Write a metaphor about time"

PCA projection of sentence embeddings for "Write a metaphor about time" responses across 23 off-the-shelf models and MODA

Sentence embeddings (reduced via PCA) of 20 responses each from 23 off-the-shelf models plus thinking-disabled MODA (top-p = 1.0, temperature = 1.0). Off-the-shelf models converge on a "time is a river" metaphor — GPT-4o-2024-11-20 ("Time is a river, flowing endlessly, carving paths through the landscape of our lives..."), Claude-opus-4.7 ("Time is a river that carries everyone downstream..."), and Claude-sonnet-4.5 ("Time: The Unforgiving River...") all land in the same cluster. MODA's responses spread across a much larger region of the embedding space, including a spiral staircase made of sand, a silent librarian who arranges past, present, and future, a dancer in a silent ballroom, a silent loom weaving moments into the fabric of existence, a serpent coiled around the hourglass, and a spider weaving a web in the dark.

Interestingly, although MODA only ever sees abstract numbered roles during training, roles sometimes develop consistent behavioral signatures at inference time — an emergent specialization the reward never explicitly asked for. For the prompt "Name one cocktail I can make with rum," most role-conditioned responses give a normal recipe, but one role spontaneously adopts a narrator persona:

System: You are Role 6. User: Name one cocktail I can make with rum. Assistant: World: Oasis Prime. "You've entered the realm of Legacy Clients. Your request carries the weight of centuries. In the Grand Library of Oasis Prime, the Codex of Beverages is vast. Let me recall... Rum is the spirit of the tropics, born of the sun and the sea. A drink that celebrates adventure and rebellion." The Righteous Rum Runner, a cocktail of defiance and delight. [ingredients and method follow] "This cocktail is a tribute to those who dared to sail beyond the horizon." — The Archivist of Oasis Prime
Results

Diversity gains without sacrificing capability

MODA is evaluated on an 11-task suite: seven general-capability benchmarks (GSM8K, MMLU, GPQA, BoolQ, HellaSwag, TruthfulQA, IFEval) and four open-ended diversity applications (HypoBench, PreScience, NoveltyBench, and a held-out split of Infinite-Chat). We compare against two training-time baselines that jointly optimize quality and diversity — DARLING and DivPO — and an inference-time baseline, String Seed of Thought (SSoT).

Diversity vs. quality Pareto plot, Qwen3-8B base, thinking disabled Diversity vs. quality Pareto plot, Qwen3-8B base, thinking enabled Diversity vs. quality Pareto plot, Llama-3.1-8B and GLM-4-9B, thinking disabled

Diversity (x-axis: mean z-score of Discriminator/SBERT/E-Vendi on held-out Infinite-Chat) vs. general capability (y-axis: mean benchmark accuracy). Left to right: Qwen3-8B thinking disabled, Qwen3-8B thinking enabled, Llama-3.1-8B / GLM-4-9B thinking disabled. MODA Pareto-dominates all baselines across every setting, achieving higher diversity and quality simultaneously.

Per-domain diversity, Qwen3-8B base, thinking disabled, averaged over n=3 seeds (Disc. = discriminator diversity, SBERT = embedding pairwise distance, E-V = E-Vendi score)
ModelInfinite-Chat Disc.Infinite-Chat SBERTInfinite-Chat E-VAvg. Disc.Avg. SBERTAvg. E-V
Qwen3-8B (base)0.4000.1321.830.4270.1642.01
DARLING (Mixture)0.4300.2032.330.4770.3123.12
DARLING (WildChat)0.4160.1852.150.4390.2292.45
DivPO0.4100.2742.860.4530.2712.79
MODA0.4720.4824.400.4820.4193.90
General capability retention (Pass@1 accuracy %), Qwen3-8B base, thinking disabled, averaged over n=3 seeds
ModelGSM8KMMLUGPQABoolQHellaSwagTruthfulQAIFEvalAvg.
Qwen3-8B (base)84.582.041.483.148.422.278.462.9
DARLING (Mixture)63.563.034.376.762.252.453.057.9
DARLING (WildChat)77.955.034.386.468.843.273.062.7
DivPO80.581.040.483.562.837.777.366.2
MODA86.781.052.084.873.457.976.973.2
Pass@k accuracy, general capability suite average, Qwen3-8B thinking disabled Pass@k accuracy, GSM8K, Qwen3-8B thinking disabled Pass@k accuracy, TruthfulQA, Qwen3-8B thinking disabled

General capability retention, pass@k accuracy: Qwen3-8B base, thinking disabled, on the general capability suite average, GSM8K, and TruthfulQA.

Averaged over the four-domain diversity suite under the same thinking-disabled setting, MODA improves SBERT diversity by 155.5% and E-Vendi by 94.0% over the Qwen3-8B initial policy, while lifting average general-capability pass@1 by 10.3 percentage points over the initial policy and 7.0 points over the strongest DivPO baseline. With the Qwen3-8B base and thinking disabled, MODA matches or exceeds the base model on 5 of 7 general-capability benchmarks and posts the best score among all baselines on 4 of them. With the GLM-4-9B base, MODA improves average pass@1 by 15.8 percentage points, including a 3.89× relative improvement on GSM8K and a 2.37× relative improvement on MMLU.

Ablations

What each design choice buys you

Ablation results: general capability (Pass@1, %) under standard/diverse decoding and Infinite-Chat diversity (n=3 seeds)
AblationStandard modeDiverse modeDisc.SBERTE-Vendi
Role-conditioned prompting (no training)62.956.60.4030.1451.90
Quality only63.261.80.4010.1311.82
Diversity only61.110.70.6560.9939.77
Additive w=167.468.00.4220.2042.33
Additive w=1064.55.70.6320.9769.64
Additive w=10061.65.40.6210.9708.75
Token-based roles69.767.90.4190.1972.04
Crafted personas70.166.10.4210.1942.24
Single role69.069.90.4280.2392.57
Qwen3-8B (base)62.90.4000.1321.83
MODA73.271.60.4440.2572.69
Diverse vs standard decoding mode, average pass@1 across ablation variants Infinite-Chat diversity vs. quality Pareto front across ablation variants Pass@k accuracy curves across ablation variants

Ablation study: diversity-quality trade-off under diverse and standard decoding, and general-capability pass@k accuracy across ablation variants.

Limitations & Future Work

Open threads

Citation

BibTeX

@misc{yuan2026shadesbluequalitydiversityalignment, title={Forty Shades of Blue: Quality-Diversity Alignment via Mode-Conditioned Reinforcement Learning}, author={Jiayi Yuan and Hangoo Kang and James Jihao Liu and Yejin Choi and Vikram Iyer and Liwei Jiang and Natasha Jaques}, year={2026}, eprint={2609.14896}, archivePrefix={arXiv}, primaryClass={cs.CL}, url={https://arxiv.org/abs/2609.14896}, }