Explainable and Fine-Grained Safeguarding of LLM Multi-Agent Systems via Bi-Level Graph Anomaly Detection

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Pan, Junjun, Liu, Yixin, Miao, Rui, Ding, Kaize, Zheng, Yu, Nguyen, Quoc Viet Hung, Liew, Alan Wee-Chung, Pan, Shirui
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911329864908800
author Pan, Junjun
Liu, Yixin
Miao, Rui
Ding, Kaize
Zheng, Yu
Nguyen, Quoc Viet Hung
Liew, Alan Wee-Chung
Pan, Shirui
author_facet Pan, Junjun
Liu, Yixin
Miao, Rui
Ding, Kaize
Zheng, Yu
Nguyen, Quoc Viet Hung
Liew, Alan Wee-Chung
Pan, Shirui
contents Large language model (LLM)-based multi-agent systems (MAS) have shown strong capabilities in solving complex tasks. As MAS become increasingly autonomous in various safety-critical tasks, detecting malicious agents has become a critical security concern. Although existing graph anomaly detection (GAD)-based defenses can identify anomalous agents, they mainly rely on coarse sentence-level information and overlook fine-grained lexical cues, leading to suboptimal performance. Moreover, the lack of interpretability in these methods limits their reliability and real-world applicability. To address these limitations, we propose XG-Guard, an explainable and fine-grained safeguarding framework for detecting malicious agents in MAS. To incorporate both coarse and fine-grained textual information for anomalous agent identification, we utilize a bi-level agent encoder to jointly model the sentence- and token-level representations of each agent. A theme-based anomaly detector further captures the evolving discussion focus in MAS dialogues, while a bi-level score fusion mechanism quantifies token-level contributions for explanation. Extensive experiments across diverse MAS topologies and attack scenarios demonstrate robust detection performance and strong interpretability of XG-Guard.
format Preprint
id arxiv_https___arxiv_org_abs_2512_18733
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Explainable and Fine-Grained Safeguarding of LLM Multi-Agent Systems via Bi-Level Graph Anomaly Detection
Pan, Junjun
Liu, Yixin
Miao, Rui
Ding, Kaize
Zheng, Yu
Nguyen, Quoc Viet Hung
Liew, Alan Wee-Chung
Pan, Shirui
Cryptography and Security
Artificial Intelligence
Multiagent Systems
Large language model (LLM)-based multi-agent systems (MAS) have shown strong capabilities in solving complex tasks. As MAS become increasingly autonomous in various safety-critical tasks, detecting malicious agents has become a critical security concern. Although existing graph anomaly detection (GAD)-based defenses can identify anomalous agents, they mainly rely on coarse sentence-level information and overlook fine-grained lexical cues, leading to suboptimal performance. Moreover, the lack of interpretability in these methods limits their reliability and real-world applicability. To address these limitations, we propose XG-Guard, an explainable and fine-grained safeguarding framework for detecting malicious agents in MAS. To incorporate both coarse and fine-grained textual information for anomalous agent identification, we utilize a bi-level agent encoder to jointly model the sentence- and token-level representations of each agent. A theme-based anomaly detector further captures the evolving discussion focus in MAS dialogues, while a bi-level score fusion mechanism quantifies token-level contributions for explanation. Extensive experiments across diverse MAS topologies and attack scenarios demonstrate robust detection performance and strong interpretability of XG-Guard.
title Explainable and Fine-Grained Safeguarding of LLM Multi-Agent Systems via Bi-Level Graph Anomaly Detection
topic Cryptography and Security
Artificial Intelligence
Multiagent Systems
url https://arxiv.org/abs/2512.18733