Abstract
As large language models improve, there is increasing interest in techniques that leverage these models' capabilities to refine their own outputs. In this work, we introduce Shepherd, a language model specifically tuned to critique responses and suggest refinements, extending beyond the capabilities of an untuned model to identify diverse errors and provide suggestions to remedy them. At the core of our approach is a high-quality feedback dataset, which we curate from community feedback and human annotations. Even though Shepherd is small (7B parameters), its critiques are either equivalent or preferred to those from established models including ChatGPT. Using GPT-4 for evaluation, Shepherd reaches an average win-rate of 53-87% compared to competitive alternatives. In human evaluation, Shepherd strictly outperforms other models and on average closely ties with ChatGPT.
Introduction
While Large Language Models (LLMs) have become remarkably proficient at generating text, they still frequently produce "hallucinations"—outputs that are factually incorrect, logically inconsistent, or contextually irrelevant. The current trend in the field is to use LLMs for self-correction; however, most existing models are not specifically trained for critiquing or provide feedback that is too generic for complex reasoning tasks.
Shepherd addresses this gap as a 7B-parameter language model specifically tuned to critique the outputs of other LLMs and suggest actionable refinements. Despite its small size, Shepherd matches or exceeds the critiquing performance of much larger models like ChatGPT by leveraging a high-quality, curated dataset of community and human-annotated feedback.
Methodology and Data Curation
The researchers developed Shepherd by fine-tuning a LLaMA-7B base model using a specific "Question-Answer-Critique" triad format. In this framework, the model is presented with a question and a candidate answer (often containing errors), and it must generate a critique that identifies those errors and suggests a fix.
The core innovation lies in the data curation approach:
- Community Data Curation: Data was scraped from Stack Exchange and Reddit. To ensure quality, the team utilized community vote scores and keyword filtering (e.g., "incorrect," "beg to differ") to identify high-quality, natural critiques.
- Human-Annotated Feedback: Expert annotators provided 1,317 detailed, natural language feedback examples across eight reasoning datasets (such as GSM8K and PIQA) and two summarization datasets.
Key Results and Evaluation
Shepherd was evaluated against competitive alternatives like Alpaca and SelFee, as well as the much larger ChatGPT, using both GPT-4 and human experts. Evaluation metrics included a 1-7 Likert scale and pairwise head-to-head matchups.
Key findings include:
- Competitive Performance: Shepherd achieved an average win-rate of 53-87% against alternatives in GPT-4 evaluations. In human evaluations, it strictly outperformed Alpaca and SelFee, reaching a statistical tie with ChatGPT.
- Robust Generalization: On the unseen CritiqueEval dataset—consisting of recent Reddit questions to avoid data contamination—Shepherd significantly outperformed ChatGPT, suggesting it has learned a robust "critiquing logic" rather than simple pattern memorization.
- Qualitative Edge: Shepherd was found to be more effective at providing "very helpful feedback" (Score 7 on the Likert scale) compared to ChatGPT, which often provided more stable but generic responses.
Insights and Limitations
A primary insight of this work is that model size is not the sole determinant of critiquing efficacy. By focusing on high-quality, diverse feedback data, a 7B parameter model can compete with models orders of magnitude larger. Furthermore, the authors emphasize that a successful critique must justify why an answer is wrong, as this justification is essential for learning and improvement.
However, Shepherd still faces a "knowledge barrier" in highly specialized domains like advanced biology or niche medical fields. Currently, the model is strictly text-based and cannot critique outputs involving URLs or multimedia. Future work may involve scaling human-annotated data and integrating Shepherd into reinforcement learning loops (RLHF) to improve base generation models directly.
Summary updated