Optimization-Based Prompt Injection Attack Against LLM-as-a-JudgeOptimization-based Prompt Injection Attack to LLM-as-a-Judge
Researchers propose JudgeDeceiver, an optimization-based prompt injection attack targeting LLM-as-a-Judge. The method injects a gradient-optimization-constructed sequence into an attacker-controlled candidate response, causing the LLM-as-a-Judge to select that candidate on an attacker-chosen question regardless of other candidate responses. Evaluations show that the attack is highly effective, clearly outperforming existing prompt injection attacks with manually constructed injection sequences and jailbreak attacks transferred to this problem, and is effective in three case studies: LLM-driven search, RLAIF, and tool selection. The authors also consider defenses such as known-answer detection, perplexity detection and perplexity window detection, and the results show that these defenses are insufficient, highlighting the urgency of developing new defense strategies. Code is open-sourced at https://github.com/ShiJiawenwen/JudgeDeceiver。