跳到正文
arXiv cs.AI· Guy Bar-Shalom, Mor Geva, Fabrizio Frasca, Haggai Maron·· 12 小时前AI 评分38

LEMON:基于注意力图等变学习的跨 LLM 零样本异常行为监控

LEMON: Equivariant Learning over Attention Maps for Zero-Shot Misbehavior Monitoring on New LLMs

AI 导读

LEMON 是一种基于图神经网络的在线监控器,利用几何深度学习将跨模型注意力图的头功能、顺序和深度差异建模为代数对称性,使预测对这些对称性保持不变,从而无需重新标注即可零样本迁移到新 LLM。

正文 · 原文

View PDF HTML (experimental)

Abstract:Large language models exhibit misbehaviors that hinder deployment in high-stakes settings. One approach to monitor such failures is to use an external LLM as a monitor, but this is prohibitively expensive. A well-known and efficient class of monitors can detect such failures from internal representations (such as activation probes), but are tied to the model they were trained on, requiring costly re-annotation as new LLMs appear. A natural way to avoid this repeated annotation cost is to develop internal-representation based monitors that transfer zero-shot across LLMs. However, such transfer is challenging because internal representations are not naturally aligned across models; in particular, attention maps, known to contain signals of misbehavior, may differ in head function, ordering, and model depth. In this work, we characterize those cross-model attention mismatches as algebraic symmetries and use geometric deep learning principles to build LEMON (Language-model Equivariant MOnitoring Network) an online graph neural network-based monitor, whose predictions are invariant under these symmetries. LEMON processes attention maps token-by-token, as they are produced and outputs a score after every token (or every window of $W$ tokens) at negligible cost. Across 16 LLMs and six datasets, in the zero-shot cross-model setting, LEMON outperforms all baselines on both hallucination and jailbreak monitoring tasks, improving over the strongest by up to 14 ROC-AUC points.
Subjects: Artificial Intelligence (cs.AI)
Cite as: arXiv:2610.22723 [cs.AI]
  (or arXiv:2610.22723v1 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2610.22723

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Guy Bar-Shalom [view email]
[v1] Thu, 15 Oct 2026 22:53:45 UTC (561 KB)

来源:arXiv cs.AI · arxiv.org