大型语言模型目前尚不可靠地充当评判者:对LLM作为评判者的鲁棒性的综合评估
LLMs Cannot Reliably Judge (Yet?): A Comprehensive Assessment on the Robustness of LLM-as-a-Judge
AI总结:
本研究引入RobustJudge框架,评估LLM-as-a-Judge的鲁棒性,发现其易受攻击,鲁棒性对提示模板和模型选择敏感,优化攻击结合长后缀可提升PAI-Judge分数。
摘要:
大型语言模型(LLMs)在各类任务中展现出卓越能力,推动了LLM作为评判者(LLM-as-a-Judge)系统的开发与广泛应用,该系统用于自动化评估,包括红队测试和基准测试。然而,这些系统易受对抗攻击影响,攻击可操纵评估结果,引发了对其鲁棒性和可信度的关键担忧。现有的基于LLM的评判者评估方法往往零散,缺乏用于综合鲁棒性评估的统一框架;此外,提示模板设计和模型选择对评判者鲁棒性的影响很少被探索,其在实际部署中的性能也基本未被验证。为解决这些差距,我们引入RobustJudge,这是一个完全自动化且模块化可扩展的框架,旨在跨任务数据集、评判者提示模板、评判者模型、攻击和防御系统地评估LLM作为评判者的鲁棒性。具体而言,RobustJudge针对13种模型研究了15种攻击方法和8种防御策略的有效性(RQ1),考察了提示模板设计和模型选择的影响(RQ2),并评估了实际部署的安全性(RQ3)。我们的研究得出三个主要发现:(1)基于LLM的评判者在点对点和成对协议下仍然易受攻击;在评估的攻击中,组合攻击表现出最强且最具可迁移性的性能,而评估的防御在鲁棒性、良性效用和计算成本方面没有普遍优势。(2)鲁棒性对提示模板和评判者模型的选择高度敏感。(3)基于优化的攻击结合长后缀可大幅提高PAI-Judge两个变体返回的分数。
英文摘要:
Large Language Models (LLMs) have demonstrated exceptional capabilities across diverse tasks, driving the development and widespread adoption of LLM-as-a-Judge systems for automated evaluation, including red teaming and benchmarking. However, these systems are susceptible to adversarial attacks that can manipulate evaluation outcomes, raising critical concerns about their robustness and trustworthiness. Existing evaluation methods for LLM-based judges are often fragmented and lack a unified framework for comprehensive robustness assessment. Furthermore, the impact of prompt template design and model selection on judge robustness has rarely been explored, and their performance in real-world deployments remains largely unverified. To address these gaps, we introduce RobustJudge, a fully automated and modularly extensible framework designed to systematically evaluate the robustness of LLM-as-a-Judge across task datasets, judge prompt templates, judge models, attacks, and defenses. Specifically, RobustJudge investigates the effectiveness of 15 attack methods and 8 defense strategies across 13 models (RQ1), examines the impact of prompt template design and model selection (RQ2), and evaluates the security of real-world deployments (RQ3). Our study yields three main findings: (1) LLM-based judges remain susceptible under both pointwise and pairwise protocols. The combined Attack exhibits the strongest and most transferable performance among those evaluated, while the evaluated defenses exhibit no universal dominance across robustness, benign utility, and computational cost. (2) Robustness is highly sensitive to both prompt-template and judge model choices. (3) Optimization-based attack combined with long suffixes can substantially inflate scores returned by both PAI-Judge variants.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。