TL;DR
This paper introduces "Critique and Revise" (CnR), a data-efficient method for aligning Large Language Models (LLMs) with human preferences using natural language feedback. By fine-tuning smaller LLMs on just 1000 examples of critiques and revisions, CnR can significantly improve the output quality of even state-of-the-art models like ChatGPT.
What Problem Does This Paper Address?
Aligning LLMs with human expectations is crucial for their safe and effective deployment. The dominant approach, Reinforcement Learning from Human Feedback (RLHF), relies on pairwise comparisons to train a reward model. However, RLHF is computationally expensive and can be unstable. More importantly, human feedback is often richer than a simple preference; it can include detailed explanations of what's good or bad about a response. The paper addresses the challenge of leveraging this more nuanced, natural language feedback in a data-efficient manner, especially for smaller, more accessible LLMs.
Methods
The core innovation is the "Critique and Revise" (CnR) framework. Given a prompt and an initial response, the CnR model is trained to perform two tasks:
- Generate a critique: Identify positive and negative aspects of the response, providing specific reasons.
- Revise the response: Produce a new response that addresses the critique.
This process is implemented by fine-tuning an existing instruction-tuned LLM on a dataset of prompt-response-critique-revised response tuples. The authors explore different ways to structure this data for training (e.g., including or excluding the critique itself). They also investigate the impact of base model size, instruction-tuning quality, and the amount of CnR data on performance.
Datasets
The primary dataset used for training CnR models was collected by the authors, consisting of approximately 1000 human demonstrations. Each demonstration includes a prompt, an initial response (either human-written or generated by other LLMs), a critique, and a revised response. For evaluation, they used the widely adopted FastChat evaluation dataset, along with prompts from Anthropic's Helpful dataset and the Self-Instruct dataset.
Key Insights and Ideas
- Natural language feedback is powerful: Detailed critiques and revisions, even from a small dataset, are more effective for alignment than simple preference signals.
- Data efficiency is key: CnR achieves significant improvements with a remarkably small amount of data (around 1000 examples), making it accessible for fine-tuning smaller models.
- Iterative improvement is possible: The CnR model can be used iteratively to refine responses, leading to progressively better outputs.
- Critique quality matters: While revisions are important, the ability to generate accurate and specific critiques is also crucial for effective alignment.
- Base model matters: Larger and better instruction-tuned base models lead to superior critique and revision capabilities.
Key Results
- Improving strong LLMs: The best CnR model, Falcon-I-CnR, was able to improve responses from ChatGPT, BARD, and Vicuna.
- Iterative gains: Through five iterations of revision on ChatGPT responses, the win rate against original responses increased from 56.6% to 65.9%.
- Data efficiency demonstrated: Even with fewer than 1000 samples, CnR fine-tuned on Falcon-40B-Instruct could improve ChatGPT responses, achieving a 56.6% win rate after one iteration.
- Model size impact: Larger base models (e.g., 40B parameters) generally led to better revision quality compared to smaller models (e.g., 6B parameters) when trained on the same amount of CnR data.
- Instruction tuning quality: Better instruction-tuned base models resulted in significantly better revision quality.
Limitations and Future Work
The authors acknowledge several limitations:
- Prompt category limitations: The current dataset lacks coverage for complex tasks like coding, math, and reasoning.
- Initial response quality: Using responses from more advanced LLMs for initial generation could further improve the CnR process.
- Single-turn prompts: The dataset primarily consists of single-turn interactions, and expanding to multi-turn conversations is needed.
- Annotated response quality: Future work could focus on improving the comprehensiveness and structure of the annotated revised responses.
- Base model dependency: The quality of the CnR model is inherently limited by the capabilities of the base LLM used for fine-tuning.
Future work could focus on improving critique generation, expanding the diversity of prompts, and exploring the use of stronger LLMs as base models for CnR.
Summary updated