arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2610.16814cs.CRcs.AI
收藏

StableJudge:面向大语言模型作为评判者的轻量级对抗防御框架

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

Shanghai Jiao Tong University(上海交通大学)

Anning Hu, Yangyu Li, Yuqi Huang, Shengchao Hu, Junchi Yan

AI总结:

StableJudge是轻量级防御框架,以0.13B哨兵定位并清理提示注入,解耦安全性与LLM规模,提升攻击下的分数恢复能力且保留通用性能,可复用且代码数据将发布。

摘要:

大语言模型(LLM)越来越多地被用作评判者,分配用于驱动下游决策的标量分数,包括论文评审和推荐等任务。然而,LLM-as-a-Judge流程易受嵌入在被评估内容中的分数劫持提示注入攻击,这会破坏评分信号并扭曲生成的排名。现有防御措施通常通过修改评判者模型本身来增强鲁棒性,使安全性依赖于特定模型的规模和训练,并且在评判者更新或替换时需要重复付出努力。我们提出StableJudge,这是一个轻量级防御框架,将提示注入缓解外部化为可复用的评分前能力。StableJudge以一个紧凑的0.13B哨兵(Sentry)为核心,该哨兵可定位注入的跨度并在评估前执行针对性清理,且通过对抗性演化攻击进行训练,以在固定提示集之外提升鲁棒性。为稳定测量,StableJudge从评判者的输出分布中推导确定性的细粒度标量分数。在保留的科学摘要和分布外攻击变体上,StableJudge在攻击下提高了分数恢复能力,同时在很大程度上保留了通用性能,证明可通过将安全性与评判者规模解耦、借助可复用防御能力实现鲁棒的基于LLM的评判。代码和数据将被发布。

英文摘要:

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.

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

↑