TL;DR
Multi-Agent Systems (MAS) powered by LLMs are highly vulnerable to "corruption attacks," where a single malicious agent injects misinformation that spreads contagiously through the network. This paper introduces Backward Propagation Detection (BPD), a training-free, dynamic defense paradigm that models agent interactions as a signed directed acyclic graph (DAG) and uses a PageRank-style backward propagation algorithm to trace and isolate malicious agents. BPD achieves over 90% detection accuracy and improves overall system resilience with less than 10% computational time overhead.
What Problem Does This Paper Address?
When multiple LLM agents collaborate to solve complex tasks (like software engineering or market analysis), they constantly exchange information. However, this interconnectedness introduces a major security flaw: if an adversary compromises just one agent, that agent can inject subtle, misleading information. This bad data propagates through subsequent discussion rounds, corrupting otherwise benign agents and derailing the final output—a phenomenon known as a corruption attack.
Existing defenses fall short in two main ways:
- Output-centric defenses (e.g., checking text similarity) can be easily bypassed by subtle semantic tweaks or by directly attacking the evaluator agent.
- Graph-based defenses typically rely on static graph neural networks (GNNs). These require expensive offline retraining whenever the agent topology changes and struggle to adapt to dynamic environments where the network structure or the attacker's identity shifts mid-session.
The authors tackle this gap by proposing a dynamic, global verification method that tracks exactly how information flows and influences the final decision on a per-query basis.
Methods
The authors propose Backward Propagation Detection (BPD), which operates in four distinct steps as illustrated below:
- Temporal DAG Reconstruction: To capture the flow of time and dialogue, the MAS communication history is unrolled into a Directed Acyclic Graph (DAG). Each node represents a specific agent at a specific dialogue round.
- Signed Edge Scoring: An independent, lightweight LLM acts as a rater to score the communication edges ($g_{ij} \in \{-1, 0, 1\}$). A score of
1indicates agreement/positive contribution,-1indicates disagreement/contradiction, and0is neutral. - Backward Score Propagation: Mirroring the chain-rule structure of neural network backpropagation (and drawing inspiration from PageRank), BPD propagates contribution scores backward from the final terminal answer down to the initial round. This calculates a global "contribution score" for each agent node, capturing both local agreement and downstream impact.
- Outlier Detection & Graph Repair: Agents whose cumulative contribution scores deviate significantly from the majority are flagged as malicious. The system then "repairs" itself by pruning all communication edges originating from these compromised nodes, preventing further corruption.
Datasets
The authors evaluated BPD across two distinct task types using multiple LLM backbones (GPT-4o and DeepSeek-V3):
- Knowledge Question Answering: Evaluated on subdomains of the MMLU dataset, including mathematics, chemistry, computer science, and security.
- Open-Ended Generation: Tested using Alpaca (commonsense questions), SamSum (dialogue summarization), and ChatDoctor (medical questions).
Key Insights and Ideas
- Global vs. Local Signals: Unlike prior methods that only look at an agent's immediate neighbors, BPD's backward pass evaluates an agent's downstream impact. If an agent introduces a "plausible lie" that successfully tricks the system into a wrong final answer, its global contribution score inflates abnormally, making it visible to outlier detection.
- Zero Training Required: Because BPD computes contributions algebraically per query, it requires no offline training or dataset collection. This makes it instantly adaptive to changing agent counts, shifting topologies, and dynamic environments.
- Resilience to "Modification" Attacks: Standard defenses fail when attackers mimic benign agents but introduce tiny semantic alterations. BPD excels here because it evaluates the logical alignment of the conversation rather than surface-level text similarity.
Key Results
- High Detection Accuracy: BPD identifies malicious agents with over 90% average accuracy (reaching up to 95% in hierarchical structures), outperforming the strongest baseline, G-Safeguard.
- Task Accuracy Recovery: Under attack, BPD boosts final task accuracy by 3% to 7% across standard benchmarks. On tricky semantic modification attacks, BPD outperforms other defenses by a margin of 10% to 16%.
- Dynamic Stability: In testing environments where the graph structure and attacker identities changed dynamically over time, competing defenses saw a 3% performance drop, while BPD preserved its high defensive capabilities.
- Minimal Overhead: BPD introduces only a 9.0% to 10.6% additional time overhead, making it highly practical for real-world deployment.
Limitations and Future Work
While BPD is highly effective, the authors note a few limitations:
- Byzantine Thresholds: The defense assumes malicious agents do not completely dominate the system. Attacks that exceed typical Byzantine thresholds (where the majority of the network is corrupt) are out of scope.
- Fixed Thresholds: The outlier detection relies on a manually tuned threshold ($\epsilon = 1.5$). The authors suggest that future work should explore adaptive threshold mechanisms that automatically adjust based on the specific MAS topology and real-time conversation dynamics.
Summary updated