Language Model Self-improvement by Reinforcement Learning Contemplation

Jing-Cheng Pang, Pengyuan Wang, Kaiyuan Li, Xiong-Hui Chen, Jiacheng Xu, Zongzhang Zhang, Yang Yu

TL;DR

Reinforcement Learning Contemplation (RLC) is a novel method that enables language models to self-improve without human labels or external reward models. By exploiting the "evaluation-generation gap"—the phenomenon where models are inherently better at judging text than writing it—RLC uses a model's own self-evaluation as a reward signal to fine-tune its parameters via reinforcement learning.

The Challenge of Self-Improvement

Training state-of-the-art Large Language Models (LLMs) traditionally requires massive amounts of high-quality, human-supervised data. To bypass this bottleneck, researchers have increasingly turned to Language Model Self-Improvement (LMSI).

Existing LMSI methods, such as Reinforcement Learning from AI Feedback (RLAIF), typically require training a separate "reward model" based on AI-generated preferences, which is computationally expensive. Other methods assume a model is already capable enough to correct its own mistakes through iterative prompting. However, a fundamental question remains: how can a model improve itself if it lacks an external source of truth?

This paper tackles the challenge of creating a simpler, more efficient self-improvement loop that works effectively even for smaller models (under 1 billion parameters).

Methods: Reinforcement Learning Contemplation (RLC)

The core contribution of the paper is Reinforcement Learning Contemplation (RLC). The process operates on a continuous three-step loop:

  1. Generate: Given an unlabeled dataset of questions, the model generates an answer, often utilizing Chain-of-Thought prompting to reason through the problem.
  2. Evaluate: The model then acts as its own judge, using specific prompts to evaluate its own output.
  3. Correctness Evaluation Prompt (CEP): Used for reasoning tasks to determine if an answer is factually correct, providing a binary 0/1 reward.
  4. Quality Evaluation Prompt (QEP): Used for creative tasks like summarization to rate quality on a scale of 1 to 10.
Comparison of text generation and self-evaluation tasks.
  1. Improve: These internal evaluation scores are utilized as rewards. The model’s parameters are updated using Proximal Policy Optimization (PPO), a standard reinforcement learning algorithm, to maximize its own evaluation scores.

Unlike "non-invasive" methods that merely prompt a model to try again during inference, RLC is "invasive"—it directly updates the model's weights so it generates superior answers on the first attempt.

Key Insights and Ideas

The Evaluation-Generation Gap

The foundational "aha" moment of RLC is the empirical proof of the evaluation-generation gap. The authors demonstrate that even smaller models (like FLAN-T5-Large) are significantly more accurate at evaluating whether a sentence is correct than they are at generating a correct sentence from scratch. This gap provides the necessary "headroom" for the model to learn and grow from its own feedback.

Accuracy of text generation versus text evaluation across different FLAN-T5 model sizes.

Self-Evaluation as a Reliable Signal

The paper shows that a model's internal evaluation correlates positively with established external metrics like BLEU, ROUGE, and BERTScore. This strong correlation justifies using self-evaluation as a reliable proxy for "truth" during reinforcement learning training.

Invasive vs. Non-Invasive Improvement

While many contemporary methods (like Self-Refine) rely on the model correcting itself during inference—which increases latency and computational cost at runtime—RLC bakes the improvement directly into the model's weights. This leads to faster, more accurate response times once the training phase is complete.

Key Results

  • Reasoning Boost: On the challenging BigBench-Hard benchmark, RLC improved the average answering accuracy of a FLAN-T5-Large model from 31.23% to 37.09%.
  • Outperforming Baselines: RLC consistently beat other unsupervised methods like RLAIF, Self-train, and "Best-of-N" sampling. In certain reasoning tasks, it even approached the performance of models trained with perfect "Oracle" supervision.
  • Scalability: The method proved effective across different model sizes, ranging from 80M (Small) to 780M (Large) parameters. Interestingly, smaller models often exhibited the most dramatic relative improvements because their initial generation baselines were lower.
  • Generalization: A model trained on a specific set of reasoning tasks demonstrated improved performance on unseen tasks, suggesting that RLC helps the model acquire general reasoning capabilities rather than merely memorizing training patterns.

Limitations and Future Work

  • Unlabeled Data Requirement: While RLC eliminates the need for human labels, it still requires a substantial corpus of unlabeled questions or prompts to "contemplate."
  • Fixed Evaluator: To maintain training stability in this study, the authors used a fixed version of the initial model to act as the evaluator. Exploring how the evaluation capability itself might co-evolve during training is a promising area for future research.
  • Model Scale: Due to hardware constraints, experiments were limited to models up to 780M parameters. Testing RLC on massive, state-of-the-art LLMs (70B+ parameters) remains an open frontier.
  • Evaluation Difficulty: Subjective attributes, such as "politeness" or "style," may be harder for a model to self-evaluate than factual correctness, potentially limiting RLC's effectiveness for highly nuanced creative tasks.

Summary updated

BibTeX
@inproceedings{pang2024language,
  author = {Jing-Cheng Pang and Pengyuan Wang and Kaiyuan Li and Xiong-Hui Chen and Jiacheng Xu and Zongzhang Zhang and Yang Yu},
  title = {{Language Model Self-improvement by Reinforcement Learning Contemplation}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=38E4yUbrgr},
}
Figure