StableJudge: A Lightweight Adversarial Defense Framework for LLM-as-a-Judge

Anning Hu, Yangyu Li, Yuqi Huang, Shengchao Hu, Junchi Yan
10/12/2026
cs.CRcs.AI

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hu2026stablejudge,
  title  = {StableJudge: A Lightweight Adversarial Defense Framework for LLM-as-a-Judge},
  author = {Anning Hu and Yangyu Li and Yuqi Huang and Shengchao Hu and Junchi Yan},
  year   = {2026},
  eprint = {2610.16814},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.16814v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.16814.svg)](https://codeofpaper.com/paper/2610.16814)

Discussion