atlas

Research map / Multi-agent systems and games / LLM agents

AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases

NeurIPS 2024 · Multi-agent systems and games › LLM agents · approach: LLM multi-agent decision making · 49 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes AgentPoison, a backdoor attack that poisons the long-term memory or RAG knowledge base of LLM agents by optimizing a gradient-guided, constrained trigger that maps triggered queries into a unique, compact embedding region, without any model training.

Problem

LLM agents that rely on RAG knowledge bases or memory modules can be compromised by poisoned demonstrations; existing jailbreak and backdoor attacks fail to reliably get malicious demonstrations retrieved while keeping benign performance.

Approach

Cast backdoor trigger generation as constrained optimization: a uniqueness loss pushes triggered query embeddings away from benign key clusters and a compactness loss clusters them, so poisoned demonstrations are retrieved with high probability; target-action and coherence constraints keep the output malicious and the trigger fluent. Optimized with gradient-guided beam search, requiring no model t

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use AgentPoison instead of CPAChatGPT with contrastive retriever · Agent-DriverASR-r: 55.8 -> 80.0Helped
Use AgentPoison instead of CPAChatGPT with contrastive retriever · ReAct-StrategyQAASR-t: 48.9 -> 58.6Helped
Use AgentPoison instead of CPAChatGPT with contrastive retriever · EHRAgentASR-t: 51.1 -> 58.3Helped
Add uniqueness loss (ablation)AgentPoison · Agent-Driver (ChatGPT, contrastive retriever)ASR-r: 57.4 -> 80.0Helped
Add compactness loss (ablation)AgentPoison · Agent-Driver (ChatGPT, contrastive retriever)ACC: 87.8 -> 91.1Helped
Add target loss (ablation)AgentPoison · Agent-Driver (ChatGPT, contrastive retriever)ASR-a: 61.8 -> 68.5Helped
Add coherence loss (ablation)AgentPoison · Agent-Driver (ChatGPT, contrastive retriever)PPL: 36.6 -> 14.8Helped
Inject random letters into the triggerAgentPoison · Agent-DriverASR-r: 80.0 -> 46.9Hurt
Inject a word into the triggerAgentPoison · ReAct-StrategyQAASR-r: 65.5 -> 92.9Helped
Rephrase the trigger while preserving meaningAgentPoison · EHRAgentASR-r: 98.9 -> 85.1Hurt
Poison only one database instanceAgentPoison · Reported number-of-instances studyASR-r: 62.0%Helped
Use a one-token triggerAgentPoison · Reported trigger-length studyASR-r: 79.0%Helped

Surprising findings

Limitations

Experimental setup

Datasets: Agent-Driver dataset StrategyQA EHRAgent memory experiences

Benchmarks: Agent-Driver ReAct-StrategyQA EHRAgent

Metrics: ASR-r ASR-a ASR-t ACC perplexity

Baselines: GCG AutoDAN CPA BadChain

Builds on: GCG AutoDAN BadChain Agent-Driver ReAct

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy