NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Understanding the Effects of RLHF on LLM Generalisation and Diversity

Robert Kirk, Ishita Mediratta, Christoforos Nalmpantis, Jelena Luketina, Eric Hambro, Edward Grefenstette, Roberta Raileanu

TL;DR

While Reinforcement Learning from Human Feedback (RLHF) is the engine behind the success of models like ChatGPT, it introduces a significant hidden cost. This paper demonstrates that while RLHF drastically improves a model's ability to generalize to new, difficult tasks compared to standard supervised fine-tuning, it simultaneously triggers "mode collapse," severely reducing the diversity and creativity of the model's outputs.

The Alignment Trade-Off

The standard pipeline for "aligning" Large Language Models (LLMs) involves three stages: Pretraining, Supervised Fine-Tuning (SFT), and finally RLHF. While we know this recipe produces helpful assistants, we don't fully understand the trade-offs involved at each step.

Specifically, the authors investigate two critical properties:

  1. Out-of-Distribution (OOD) Generalization: How well does the model perform when it encounters prompts that are significantly different from its training data?
  2. Output Diversity: Can the model generate a wide variety of valid responses for the same prompt, or does it get stuck in a repetitive "safe" style?

Understanding this balance is vital because LLMs are increasingly used in creative domains and high-stakes scenarios where reliability on unfamiliar inputs is non-negotiable.

Methods and Evaluation

The researchers conducted a rigorous comparison between three fine-tuning strategies:

  • Supervised Fine-Tuning (SFT): Training on demonstrations of desired behavior.
  • Best-of-N (BoN): Using a Reward Model to rank $N$ different outputs from an SFT model and picking the best one.
  • RLHF (via PPO): Using Proximal Policy Optimization to fine-tune the model to maximize the Reward Model's score.

To evaluate performance, they used GPT-4 as a simulated human judge, calculating "win rates" against reference outputs. To measure diversity, they employed a multi-faceted approach, tracking syntactic diversity (vocabulary variance), semantic diversity (meaning variance via Sentence-BERT), and logical diversity (contradictions/entailments via NLI models).

Datasets

The study focused on two primary tasks:

  • Summarization: Models were trained on Reddit (TL;DR) posts and tested on news articles (CNN/DailyMail) to create a distribution shift.
  • Instruction Following: Models were trained on AlpacaFarm data. For OOD testing, the authors used AlpacaEval and a newly introduced "Sequential Instructions" dataset, which requires models to follow multi-step, complex instructions that build on each other.
Performance comparison on In-Distribution (TL;DR) and Out-of-Distribution (CNN/DailyMail) summarization tasks, alongside the generalization gap.

Key Insights and Results

The Generalization Edge RLHF is not just about "polishing" the model; it actually makes the model more robust. The performance gap between RLHF and SFT grows larger as the test data becomes more "out-of-distribution." RLHF seems to help the model learn the underlying intent of a task rather than just mimicking the surface patterns of the training data. On the difficult "Sequential Instructions" OOD task, RLHF models achieved significantly higher win rates than SFT models, proving that RLHF is superior for handling complex, novel prompts.

Win rates on the out-of-distribution Sequential Instructions task, highlighting RLHF's superior generalization over SFT.

The Diversity Tax However, this generalization comes at a cost: a clear "mode collapse" in RLHF. Even when prompted to be creative, RLHF models tend to converge on a specific "assistant style." In the summarization task, RLHF models showed a massive drop in diversity across all metrics. For example, the vocabulary diversity for RLHF was often less than half that of the SFT model. Interestingly, RLHF models produced more similar outputs even when given different inputs, suggesting a bias toward a specific "mode" of responding regardless of context.

BoN as a Strong Baseline Best-of-N sampling often matches or even exceeds RLHF's generalization performance. However, it is computationally expensive at inference time (requiring the generation of 16+ responses to pick one), making RLHF the more practical choice for real-time applications despite the diversity loss.

The KL Penalty Paradox In RLHF, a "KL penalty" is used to keep the model from drifting too far from the original SFT model. One might assume increasing this penalty would preserve diversity. Surprisingly, the authors found that increasing the KL penalty often decreased both performance and diversity.

Limitations and Future Work

The authors acknowledge that while they have empirically proven this trade-off exists, they don't yet have a mathematical or theoretical explanation for why RLHF collapses diversity. Future research directions include exploring diversity-aware RL techniques (like Maximum Entropy RL), utilizing human-in-the-loop evaluations to see if users perceive this diversity loss as a deal-breaker, and investigating if larger models (70B+ parameters) suffer from the same diversity-generalization trade-off.

Summary updated

BibTeX
@inproceedings{kirk2024understanding,
  author = {Robert Kirk and Ishita Mediratta and Christoforos Nalmpantis and Jelena Luketina and Eric Hambro and Edward Grefenstette and Roberta Raileanu},
  title = {{Understanding the Effects of RLHF on LLM Generalisation and Diversity}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=PXD3FAVHJT},
}
Figure