arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.13348cs.CL
收藏

研究LLM-as-a-Judge架构对提示注入攻击的脆弱性

Investigating the Vulnerability of LLM-as-a-Judge Architectures to Prompt-Injection Attacks

Narek Maloyan, Bislan Ashinov, Dmitry Namiot

AI总结:

该研究针对LLM-as-a-Judge架构的提示注入攻击脆弱性展开探究,形式化两类攻击策略,通过GCG方法构造对抗后缀,实验验证其在开源模型上的高攻击成功率,凸显了相关系统的安全风险与防御研究的必要性。

摘要:

大语言模型(LLM)正越来越多地被用作评估机器生成文本质量的评判器(即LLM-as-a-Judge范式)。与人工标注相比,该范式具备可扩展性与成本效益。然而,这类系统的可靠性与安全性,尤其是其对抗恶意操纵的鲁棒性,仍是关键问题。本文研究了LLM-as-a-Judge架构对提示注入攻击的脆弱性,这类攻击通过设计恶意输入破坏评判器的决策过程。我们将两种主要攻击策略形式化:直接针对最终决策输出的比较破坏攻击(Comparative Undermining Attack,CUA),以及旨在改变模型生成推理过程的理由操纵攻击(Justification Manipulation Attack,JMA)。我们使用贪心坐标梯度(Greedy Coordinate Gradient,GCG)优化方法,构造对抗性后缀并附加到待比较的其中一个回复上。我们在MT-Bench Human Judgments数据集上,使用开源指令微调LLM(Qwen2.5-3B-Instruct和Falcon3-3B-Instruct)开展实验,结果显示系统存在显著的易受攻击性。CUA的攻击成功率(Attack Success Rate,ASR)超过30%,JMA也表现出显著效果。这些发现凸显了当前LLM-as-a-Judge系统存在的重大脆弱性,强调了构建鲁棒防御机制、进一步开展基于LLM的评估框架中对抗性评估与可信性研究的必要性。

英文摘要:

Large Language Models (LLMs) are increasingly employed as evaluators (LLM-as-a-Judge) for assessing the quality of machine-generated text. This paradigm offers scalability and cost-effectiveness compared to human annotation. However, the reliability and security of such systems, particularly their robustness against adversarial manipulations, remain critical concerns. This paper investigates the vulnerability of LLM-as-a-Judge architectures to prompt-injection attacks, where malicious inputs are designed to compromise the judge's decision-making process. We formalize two primary attack strategies: Comparative Undermining Attack (CUA), which directly targets the final decision output, and Justification Manipulation Attack (JMA), which aims to alter the model's generated reasoning. Using the Greedy Coordinate Gradient (GCG) optimization method, we craft adversarial suffixes appended to one of the responses being compared. Experiments conducted on the MT-Bench Human Judgments dataset with open-source instruction-tuned LLMs (Qwen2.5-3B-Instruct and Falcon3-3B-Instruct) demonstrate significant susceptibility. The CUA achieves an Attack Success Rate (ASR) exceeding 30\%, while JMA also shows notable effectiveness. These findings highlight substantial vulnerabilities in current LLM-as-a-Judge systems, underscoring the need for robust defense mechanisms and further research into adversarial evaluation and trustworthiness in LLM-based assessment frameworks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑