Curiosity-Driven Reinforcement Learning from Human Feedback

Haoran Sun, Yekun Chai, Shuohuan Wang, Yu Sun, Hua Wu, Haifeng Wang

Abstract

Standard Reinforcement Learning from Human Feedback (RLHF) often forces Large Language Models (LLMs) into a "generative monoculture," where they produce high-quality but repetitive and predictable outputs. This paper introduces CD-RLHF (Curiosity-Driven RLHF), which integrates an intrinsic "curiosity" reward—based on state-prediction errors—to encourage models to explore novel token sequences. Our framework significantly boosts output diversity across lexical and semantic metrics without sacrificing alignment with human preferences.

Introduction

While RLHF is the industry standard for aligning LLMs with human values, it has a well-documented side effect: it collapses the model's output distribution. Because the reward model typically favors a narrow range of "safe" or "optimal" responses, the model learns to exploit these high-reward paths, leading to a loss of creativity and variety.

This "diversity-alignment trade-off" is particularly problematic for creative tasks like story generation or red-teaming, where exploration of a wide range of possibilities is essential. Previous attempts to mitigate this, such as adjusting the Kullback-Leibler (KL) penalty or adding specific diversity metrics (like SelfBLEU) into the reward function, often result in a significant drop in the actual quality or "helpfulness" of the model. CD-RLHF seeks to resolve this by borrowing the concept of an "exploration bonus" from classical Reinforcement Learning.

Methodology

The Intrinsic Curiosity Module (ICM)

The core of the CD-RLHF approach is the Intrinsic Curiosity Module (ICM), which consists of two neural networks:

  1. Feature Encoder ($\phi$): Maps the current state (the sequence of tokens generated so far) into a latent space.
  2. Forward Model ($f$): Predicts the latent representation of the next state given the current state and the chosen action (the next token).

The intrinsic reward is defined as the prediction error of the forward model. If the model is surprised by the transition, the state is considered "novel," and the agent receives a curiosity bonus. As the model visits these states more often, the forward model improves its predictions, the error drops, and the "curiosity" for that path fades—preventing the model from getting stuck in a loop of useless exploration.

The Top-k Strategy

To ensure the model does not become curious about nonsensical or low-quality tokens, the authors implement a top-k filter. The curiosity reward is only granted if the selected token falls outside the top-k most probable candidates predicted by the policy. This forces the model to maintain alignment (by generally picking high-probability tokens) while occasionally exploring "meaningful" alternatives that the standard reward model might have overlooked.

Experimental Setup

The researchers evaluated CD-RLHF across several diverse tasks and base models, including Gemma-2B/7B and Llama-3.2-1B/3B. The datasets used included:

  • TL;DR: A large-scale dataset for text summarization based on Reddit posts.
  • UltraFeedback: A diverse dataset for instruction following, covering helpfulness, honesty, and harmlessness.
  • MT-Bench: Used as an out-of-distribution (OOD) benchmark to test general reasoning and multi-turn conversation capabilities.
  • ROC Stories: Used specifically to evaluate diversity in creative downstream applications like story generation.

Key Results and Insights

Diversity and Quality Gains

On the TL;DR dataset, CD-RLHF achieved a 16.66% improvement in diversity metrics for Gemma-2B and significant gains across all Llama models. Despite the increase in diversity, the Reward Model (RM) scores remained comparable to or even exceeded vanilla RLHF. For Llama-3.2-3B, CD-RLHF actually improved the RM score by +0.16.

Human and Model Preference

In head-to-head comparisons, both human annotators and GPT-4 consistently preferred the outputs of CD-RLHF over vanilla RLHF. Reviewers cited better variety and structure without a loss in factual accuracy. In creative writing tasks, CD-RLHF models used a wider vocabulary and introduced more unique plot details compared to the repetitive "safe" keywords favored by standard RLHF models.

Training Dynamics and Generalization

  • Curiosity as a Regularizer: Instead of explicitly rewarding diversity, curiosity acts as a dynamic regularizer, pushing the model away from "boring" high-reward peaks toward unexplored areas of the probability space.
  • Faster Convergence: Training curves indicate that CD-RLHF often converges to a stable alignment score faster than standard PPO, suggesting that exploration helps the model find high-reward regions more efficiently.
  • Generalization: Models trained with CD-RLHF performed better on the OOD MT-Bench, suggesting that a more diverse training experience helps the model generalize better to prompts it didn't see during fine-tuning.

Limitations and Future Work

Despite its success, CD-RLHF faces some challenges. The scale of intrinsic rewards is often much larger than extrinsic rewards, requiring careful tuning of the weight parameter ($\eta$). Future work could involve designing an ICM that naturally produces rewards on a similar scale to the reward model. Additionally, while CD-RLHF is more diverse than standard RLHF, it still generally falls short of the diversity found in the initial Supervised Fine-Tuning (SFT) models. Finally, running the ICM during training adds computational complexity, though the gains in performance and convergence speed justify the cost.

Conclusion

CD-RLHF offers a promising path toward breaking the "generative monoculture" of modern LLMs. By incentivizing exploration through an intrinsic curiosity module, the framework achieves a superior balance between alignment and diversity, ensuring that models remain helpful while becoming significantly more creative and less repetitive.

Summary updated

BibTeX
@inproceedings{sun2025curiosity,
  author = {Haoran Sun and Yekun Chai and Shuohuan Wang and Yu Sun and Hua Wu and Haifeng Wang},
  title = {{Curiosity-Driven Reinforcement Learning from Human Feedback}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure