Overview
Auto-J is a novel 13B-parameter open-source generative judge designed to evaluate how well Large Language Models (LLMs) align with human needs. It outperforms existing open-source and even several proprietary models by providing high-quality, interpretable natural language critiques and ratings across 58 diverse real-world scenarios.
The Challenge of Evaluating Alignment
As LLMs evolve from solving simple NLP tasks to facilitating complex, human-aligned interactions like brainstorming or coding, traditional metrics like ROUGE or BLEU fall short. Evaluating these models requires generality (handling diverse scenarios), flexibility (supporting different evaluation protocols like pairwise comparison or single-response rating), and interpretability (providing explanations, not just scores).
While proprietary models like GPT-4 can act as judges, they are expensive, opaque, and subject to version changes that hurt reproducibility. Existing open-source evaluators often lack the breadth of scenarios or the depth of explanation needed for robust alignment evaluation. Auto-J aims to provide a powerful, open-source alternative that addresses these critical gaps.
Methods: Building Auto-J
The researchers developed Auto-J by fine-tuning LLaMA-2-13B on a massive, carefully curated dataset of evaluation judgments. The construction process followed three main steps:
- Scenario and Criteria Definition: The team identified 58 distinct real-world scenarios (e.g., email writing, code simplification, math reasoning) and crafted 332 specific evaluation criteria to guide the judging process.
- Data Collection: They gathered a large collection of user queries and model responses from various open-source preference datasets.
- Judgment Generation: Using GPT-4 as a "teacher," they generated high-quality evaluation judgments. For pairwise comparisons, they used scenario-specific criteria. For single-response evaluations, they employed a "divide-and-conquer" strategy, combining critiques generated with and without scenario-specific criteria into a final comprehensive judgment.
To ensure generality, the authors used a technique called Context Distillation, omitting the explicit scenario criteria from the model's input during training so it learns to infer them directly from the task context itself.
Datasets and Evaluation Testbeds
- Training Data: Compiled from sources like Chatbot Arena, MTBench, OpenAI Summary, and PKU-SafeRLHF. The final dataset includes 3,436 pairwise comparison samples and 960 single-response samples across 58 scenarios.
- Evaluation Testbeds:
- Eval-P: 1,392 samples for pairwise response comparison.
- Eval-C: 232 query-response pairs for evaluating the quality of generated critiques.
- Eval-R: A large-scale testbed (3,712 pairs) to test the model's utility as a reward model for "Best-of-N" selection.
Key Insights
- Scenario-Awareness is Crucial: By defining 58 scenarios and hundreds of criteria, Auto-J learns a much more nuanced view of "alignment" than models trained on generic preference data.
- Critiques Enhance Reliability: Providing a natural language explanation (critique) before the final rating or preference makes the evaluation more interpretable and helps mitigate biases.
- Flexibility via Multi-Protocol Training: Training on both pairwise and single-response data allows a single model to seamlessly switch between evaluation modes.
- Open-Source Can Compete: A well-trained 13B model can surpass much larger proprietary models like ChatGPT and Claude-2 in evaluation agreement with humans.
Key Results
- Pairwise Comparison: Auto-J achieved a 54.8% agreement rate with humans, significantly outperforming open-source baselines like PandaLM (38.9%) and even surpassing ChatGPT (42.7%) and Claude-2 (42.4%).
- Consistency: Auto-J showed high robustness to positional bias, with an 83.4% consistency rate when the order of responses was swapped, nearly matching GPT-4 (85.9%) and far exceeding other open-source models.
- Critique Quality: In human evaluations, Auto-J's critiques were preferred over those from ChatGPT and LLaMA-2-Chat-13B by a wide margin.
- System-Level Ranking: On the AlpacaEval leaderboard, Auto-J's rankings showed an extremely strong correlation with GPT-4's rankings (Spearman's $\rho = 0.97$), proving its utility for benchmarking new models.
Limitations and Future Work
The authors acknowledge that Auto-J may inherit some biases from its teacher model, GPT-4. Its 13B parameter size, while efficient, might limit its reasoning capabilities compared to much larger models. Currently, the model is focused on English; extending it to more languages and even more diverse scenarios is a key direction for future work. They also suggest exploring how Auto-J can be used to further improve base LLMs through reinforcement learning from AI feedback (RLAIF).
Summary updated