StableJudge: A Lightweight Adversarial Defense Framework for LLM-as-a-Judge
cs.CR, cs.AI
Submitted: 2026-10-12
Updated: 2026-10-12
Comments: 12 pages, including references and appendix
License: http://creativecommons.org/licenses/by-nc-sa/4.0/
The gist: Large language models (LLMs) are increasingly used as judges to assign scalar scores that drive downstream decision-making, including tasks such as paper review and recommendation.
Terminology
Abstract
Large language models (LLMs) are increasingly used as judges to assign scalar scores that drive downstream decision-making, including tasks such as paper review and recommendation. However, LLM-as-a-Judge pipelines are vulnerable to score-hijacking prompt injection embedded in evaluated content, which corrupts scoring signals and distorts induced rankings. Existing defenses often enforce robustness by modifying the judge model itself, making safety dependent on a specific model's scale and training and requiring repeated effort when the judge is updated or replaced. We propose StableJudge, a lightweight defense framework that externalizes prompt-injection mitigation as a reusable pre-scoring capability. StableJudge centers on a compact 0.13B Sentry that localizes injected spans and performs targeted sanitization prior to evaluation, and is trained using adversarially evolving attacks to improve robustness beyond a fixed prompt set. To stabilize measurement, StableJudge derives deterministic, fine-grained scalar scores from the judge's output distribution. Across held-out scientific abstracts and out-of-distribution attack variants, StableJudge improves score recovery under attack while largely preserving general-purpose performance, demonstrating that robust LLM-based judging can be achieved by decoupling safety from judge scale via reusable defense capabilities. Code and data will be released.
Sources
- Rag and Roll: An End-to-End Evaluation of Indirect Prompt Manipulations in LLM-based Application Frameworks
- Length-Controlled AlpacaEval: A Simple Way to Debias Automatic Evaluators
- Likert or Not: LLM Absolute Relevance Judgments on Fine-Grained Ordinal Scales
- Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection
- Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversations
- MRKL Systems: A modular, neuro-symbolic architecture that combines large language models, external knowledge sources and discrete reasoning
- Prompt Injection Attacks on LLM Generated Reviews of Scientific Publications
- InjecGuard: Benchmarking and Mitigating Over-defense in Prompt Injection Guardrail Models
- Large Language Model Sentinel: LLM Agent for Adversarial Purification
- ReasonRank: Empowering Passage Ranking with Strong Reasoning Ability
- Formalizing and Benchmarking Prompt Injection Attacks and Defenses
- Adversarial Attacks on LLM-as-a-Judge Systems: Insights from Prompt Injections
- The Attacker Moves Second: Stronger Adaptive Attacks Bypass Defenses Against Llm Jailbreaks and Prompt Injections
- Ignore Previous Prompt: Attack Techniques For Language Models
- DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter
- Securing Large Language Models (LLMs) from Prompt Injection Attacks
- Q-realign: Piggybacking Realignment on Quantization for Safe and Efficient LLM Deployment
- The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions
- Safety-Preserving PTQ via Contrastive Alignment Loss
- A Survey of Attacks on Large Language Models
Related papers
- SoK: AI-Augmented Binary Reversing
- Relaxed Sender Anonymity for CBDC Interbank Settlement: A Zero-Knowledge Approach on Permissioned EVM
- Calibration-Family Overfit: Why Trusted Sabotage Monitors Don't Transfer Across Lineages
- Estimating the Social Cost of Corporate Data Breaches
- Efficient Fuzzy PSI under One-Sided Assumptions
- Sealing the Audit-Runtime Gap for LLM Skills