[论文解读] JudgeLM: Fine-tuned Large Language Models are Scalable Judges
JudgeLM 对开源大型语言模型进行微调,使其成为可扩展的评审,用于评估开放式任务中的 LLM,在与教师评判的一致性方面达到高水平,在不同模型规模(7B–33B)上也表现出强效率。
Evaluating Large Language Models (LLMs) in open-ended scenarios is challenging because existing benchmarks and metrics can not measure them comprehensively. To address this problem, we propose to fine-tune LLMs as scalable judges (JudgeLM) to evaluate LLMs efficiently and effectively in open-ended benchmarks. We first propose a comprehensive, large-scale, high-quality dataset containing task seeds, LLMs-generated answers, and GPT-4-generated judgments for fine-tuning high-performance judges, as well as a new benchmark for evaluating the judges. We train JudgeLM at different scales from 7B, 13B, to 33B parameters, and conduct a systematic analysis of its capabilities and behaviors. We then analyze the key biases in fine-tuning LLM as a judge and consider them as position bias, knowledge bias, and format bias. To address these issues, JudgeLM introduces a bag of techniques including swap augmentation, reference support, and reference drop, which clearly enhance the judge's performance. JudgeLM obtains the state-of-the-art judge performance on both the existing PandaLM benchmark and our proposed new benchmark. Our JudgeLM is efficient and the JudgeLM-7B only needs 3 minutes to judge 5K samples with 8 A100 GPUs. JudgeLM obtains high agreement with the teacher judge, achieving an agreement exceeding 90% that even surpasses human-to-human agreement. JudgeLM also demonstrates extended capabilities in being judges of the single answer, multimodal models, multiple answers, multi-turn chat, etc. Code is available at https://github.com/baaivision/JudgeLM.
研究动机与目标
- 解决在开放式场景中评估 LLM 的挑战,提供全面、可扩展的评审。
- 创建高质量的大规模评审数据集,包含种子、LLM 答案及 GPT-4 判断以用于训练。
- 在多种规模(7B、13B、33B)和数据量上研究 JudgeLM,以分析性能与偏差。
- 识别并缓解微调后 LLM 评审的偏差(位置、知识、格式)。
- 展示评审在单一/多回答、多模态模型以及多轮对话中的能力。
提出的方法
- 组装一个包含 105K 个种子任务的大型数据集,包含 LLM 生成的答案和 GPT-4 判断作为教师标签。
- 将开源 LLM(7B、13B、33B)微调为评审,使用指令遵循风格的提示,产出分数和可选的详细推理。
- 引入交换增强以降低位置偏差。
- 通过提供外部参考答案来引导判断,引入参考支持。
- 引入参考删除以防止对固定提示格式的过拟合。
实验结果
研究问题
- RQ1微调的开源 LLM 是否可以作为可靠且可扩展的开放式 LLM 评审?
- RQ2评审的性能与偏差如何随模型规模与训练数据量增长而变化?
- RQ3哪些技术(交换增强、参考支持、参考删除)能提高评审的可靠性并减少偏差?
- RQ4JudgeLM 是否能够处理单一答案评分、多个答案排序、跨模态模型以及多轮判断?
主要发现
- JudgeLM 在 7B、13B、33B 规模下,与教师判断的一致性很高,在所提议的基准上达到 90% 以上的水平。
- JudgeLM-7B–33B 在若干设定中优于 PandaLM,甚至在某些情况下优于 GPT-3.5,且 JudgeLM-33B 在主要基准上表现强劲。
- 通过交换增强、参考支持和参考删除训练显著提升一致性并降低偏差(位置、知识和格式)。
- JudgeLM 展现出高效性:JudgeLM-7B 在 8 个 A100 GPU 上约 3 分钟评估 5K 个样本。
- JudgeLM 还扩展到单一答案评分、对多答案进行排序、跨模态评估和多轮判断,同时保留基础模型的聊天能力。
- 该数据集实现可重复、隐私保护的评估,并在 PandaLM 与作者的基准上达到最先进的评审性能。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。