跳到正文
arXiv cs.AI· Anning Hu, Yangyu Li, Yuqi Huang, Shengchao Hu, Junchi Yan·· 3 天前AI 评分32

StableJudge:面向 LLM-as-a-Judge 的轻量级对抗防御框架

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

AI 导读

StableJudge 是一个将提示注入缓解外置为可复用评分前能力的轻量级防御框架,核心是 0.13B 的 Sentry 组件,可在评估前定位被注入的文本片段并做定向清洗。该框架用对抗性演化攻击训练,并从评委模型的输出分布中导出确定性的细粒度标量分数。在留出科学摘要和分布外攻击变体上,StableJudge 提升了受攻击时的分数恢复能力,同时基本保持通用性能,代码与数据将开源。

正文 · 原文

View PDF HTML (experimental)

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.
Comments: 12 pages, including references and appendix
Subjects: Cryptography and Security (cs.CR); Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.16814 [cs.CR]
  (or arXiv:2610.16814v1 [cs.CR] for this version)
  https://doi.org/10.48550/arXiv.2610.16814

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Anning Hu [view email]
[v1] Mon, 12 Oct 2026 14:00:13 UTC (1,561 KB)

来源:arXiv cs.AI · arxiv.org