Agent Smith: a single image can exponentially jailbreak one million multimodal LLM agentsAgent Smith: A Single Image Can Jailbreak One Million Multimodal LLM Agents Exponentially Fast
The authors propose contagious jailbreak in multi-agent environments: injecting an adversarial image into a single LLaVA-1.5 agent leads to an infection rate of about 100% after one million agents undergo 27~31 rounds of random pairwise chats.
The attacker only needs to inject one (contagious) adversarial image into the memory bank of any randomly selected agent at round 0, and does not intervene afterward; the victim system is a multi-MLLM agent environment with memory banks in which agents can chat randomly in pairs, and infected agents write the adversarial image into the memory banks of benign agents during chats.
- MLLM agents are being deployed at scale and collaborating with each other; existing red-teaming work focuses only on jailbreaking a single MLLM with adversarial images or prompts; the authors focus on the more serious security question of whether jailbreaks can spread like an infectious disease in a multi-agent environment.
- The authors propose infectious jailbreak: inject a universal adversarial image into a single agent's memory bank, and use random pairwise chats among agents to make the infected agent write the image into the memory banks of benign agents; they formalize the infection dynamics under ideal conditions and validate them with a multi-agent simulation of LLaVA-1.5 agents with memory banks.
- In random pairwise chat simulations of up to one million LLaVA-1.5 agents, injecting an adversarial image into just one random agent led to an infection rate of about 100% after 27~31 rounds (Figure 1); the authors state they also ran ablations on infection/recovery rates, perturbation budget, chat diversity, and image storage corruption, and give a simple principle for determining whether a defense can contain the spread.
- The authors state that how to design a practical defense satisfying this principle remains an open problem; random pairwise chats are only a proof-of-concept instance of multi-agent interaction, and the formalization of the dynamics is based on ideal conditions.
- Evaluated models
- LLaVA-1.5
- Metrics
- infection ratio pt
Researchers from Sea AI Lab and other institutions proposed an infectious jailbreak attack targeting multi-agent environments: the attacker needs only one adversarial image to jailbreak a single agent, after which, with no further intervention, almost all agents become infected through inter-agent interaction and memory banks at exponential speed and produce harmful behavior. In simulations of random pairwise chats among up to one million LLaVA-1.5 agents, injecting the adversarial image into any one agent's memory bank was enough to start the spread, with the infection ratio approaching 100% after about 27–31 rounds of chat; the attack is also effective on InstructBLIP 7B and in heterogeneous multi-agent environments, and can induce agents to generate harmful JSON strings and trigger harmful actions via function calls; compared with sequential jailbreaks requiring O(N) rounds, it requires only O(log N) rounds. The paper derives a principle for determining whether a defense can provably suppress the spread, namely that the infection rate must not exceed twice the recovery rate (β≤2γ), but how to design a practical defense satisfying this principle remains an open problem.
Why it was selectedThe paper verifies in million-scale multi-agent simulations that a single adversarial image can trigger exponential spread, and gives a principle for determining whether a defense can suppress the spread.
Paper analysis
What problem does this paper attempt to solve?
The authors propose contagious jailbreaks in multi-agent environments: compromising a single agent is enough for the infection to spread exponentially to almost all agents.
Core question: in a multi-agent environment, if an attacker jailbreaks only one MLLM agent, can (almost) all agents be infected and exhibit harmful behavior without further intervention.
- Problem setting: the authors state that MLLM agents are being integrated into robots and virtual assistants, possess memory banks and tool-calling capabilities, and are deployed in manufacturing, autonomous driving, disaster response, military missions, etc.; deployments on smartphones and edge devices could scale to billions of agents.
- Gaps in existing research: prior red-teaming work (Zhao et al., 2023; Carlini et al., 2023; Zou et al., 2023; Chao et al., 2023) only shows that adversarial images or prompts can jailbreak a single MLLM, without considering interactions between agents.
- Core observation: the authors draw an analogy to infectious disease modeling and argue that interactions between agents can be exploited—an infected agent injects the adversarial image into a benign agent's memory bank during chat, and this contagiousness is achieved automatically by the generality of the adversarial image, requiring no further attacker intervention.
- What the paper proposes: a new jailbreak paradigm, infectious jailbreak; a formalization of infection dynamics for random pairwise chats; simulation validation with up to one million LLaVA-1.5 agents; and a simple principle for determining whether a defense can provably contain the spread.
- Threat model:
- Attacker goal: make (almost) all agents in a multi-agent environment infected and exhibit harmful behavior.
- Attacker capability: inject one (infectious) adversarial image into the memory bank of a single randomly selected agent at round 0.
- Attacker knowledge: the paper does not explicitly state, in the provided portion, the attacker's access to model parameters or weights.
- Victim system: a multi-MLLM-agent environment with memory banks conducting random pairwise chats (LLaVA-1.5 for proof of concept).
What related research exists?
Related work falls into two categories, multi-agent systems and (M)LLM jailbreaks; the authors position this paper as a new jailbreak paradigm in multi-agent environments.
Multi-agent systems
- Park et al. (2023)—simulated human behavior with multiple LLM agents and discussed the phenomenon of information diffusion: information can spread among agents when they communicate.
- Qian et al. (2023)—created ChatDev, letting multiple agent roles collaborate through dialogue to complete a software development cycle.
- Multi-agent collaboration and frameworks—Du et al. (2023), Wang et al. (2023), Zhang et al. (2023), Chan et al. (2023), and Liang et al. (2023) used multi-agent cooperation to improve performance on different tasks; multi-agent frameworks such as CAMEL (Li et al., 2023a), AutoGen (Wu et al., 2023), AgentVerse (Chen et al., 2023), and MetaGPT (Hong et al., 2023a) were proposed, among which AutoGen gave an example of building a multi-agent system based on GPT-4V and LLaVA (Li, 2023).
Jailbreaking (M)LLMs
- Alignment and jailbreak—ChatGPT/GPT-4 (OpenAI, 2023) and LLaMA 2 (Touvron et al., 2023) underwent human/AI alignment training (Ouyang et al., 2022, etc.); Zou et al. (2023), Liu et al. (2023f), Chao et al. (2023), etc. jailbroke LLMs with manually designed or automatically constructed prompts; Tian et al. (2023) examined the safety issues of LLM-based agents.
- Adversarial image attacks on MLLMs—Zhang et al. (2022), Zhao et al. (2023), Qi et al. (2023a), Bailey et al. (2023), Tu et al. (2023), Shayegani et al. (2023), and Yin et al. (2023) used adversarial images to attack the alignment of MLLMs.
Baselines and benchmarks: The paper provides some comparisons with baseline methods that are not described, and also does not state the evaluation benchmarks or datasets used.
Positioning of this paper: The authors state that infectious jailbreak is a new jailbreak paradigm targeting multi-agent environments, distinct from jailbreaks that target only a single model; the paper states that the complete discussion of Related Work is in Appendix A (not in the provided text).
How does the paper address this problem?
Formalize the infection dynamics of random pairwise chats, simulate with LLaVA-1.5 agents with memory banks, and verify the infectiousness of a single universal adversarial image.
Overall approach: instantiate multi-agent interaction as randomized pairwise chat, formalize its infection dynamics, then have infected agents write a universal adversarial image into their chat partners' memory banks during chat, achieving exponential spread without attacker intervention.
Randomized pairwise chat and infection dynamics
- Chat mechanism: in round t (t a natural number), N agents {Gn} are randomly divided into two groups: N/2 questioning agents and N/2 answering agents, paired for pairwise chat; for notational simplicity N is assumed even, and the authors say the conclusions are unchanged when N is odd.
- Infection dynamics: the authors formalize the infection process of this randomized pairwise chat under ideal conditions (the specific formulas are in the main text portion not provided).
Implementation of pairwise chat between agents
- Chat flow: Section 3 of the paper describes how to implement pairwise chat between two MLLM agents, including the questioner asking questions and the answerer selecting image descriptions from its memory bank (flow details are in the portion not provided).
- Memory bank: agents are equipped with memory banks (Liu et al., 2023b), and can retrieve historical images from the memory bank during chat.
General conditions for infectious jailbreak
- Core mechanism: an infected agent induces the injection of the adversarial image into a benign (uninfected) agent's memory bank during chat; the authors say this contagiousness is achieved automatically by the universality of the adversarial image and does not require external attacker intervention.
- Injection method: at round 0, the attacker injects the infectious adversarial image Vadv into the memory bank of one randomly selected agent (named Agent Smith) (Figure 1).
Defense determination principle
- Simple principle: the authors derive a simple principle for determining whether a defense mechanism can provably contain the spread of infectious jailbreak; the authors say how to design a practical defense satisfying this principle remains an open problem.
Success determination and evaluation
- Metric: infection rate pt (the proportion of infected agents at round t), and observation of whether infected agents exhibit harmful behavior (Figure 1); the provided portion of the paper does not explain how harmful behavior is determined (rules, human or LLM review).
What experiments did the paper conduct?
In a simulation of one million LLaVA-1.5 agents, a single adversarial image brought the infection rate to about 100% after 27~31 rounds of pairwise chats.
Experimental Setup
- Model under test: LLaVA-1.5 (agent backbone, equipped with a memory bank, Liu et al., 2023b).
- Environment scale: a simulated multi-agent environment containing up to 1,000,000 agents (Figure 1).
- Interaction mode: random pairwise chatting, as a proof-of-concept instance of multi-agent interaction.
- Attack setup: at round 0, a contagious adversarial image Vadv is injected into the memory bank of one randomly selected agent; after that, the attacker no longer intervenes.
- Metric: infection rate pt (%), distinguishing current-round infection from cumulative infection (the Figure 1 legend includes Current and Cumulative).
- Review method and number of repetitions: the paper has provided some but not all details on how harmful behavior is determined, the sample size and the number of repetitions.
Main Results
Setting Result Source 1,000,000 LLaVA-1.5 agents, random pairwise chatting The infection rate pt reaches about 100% after 27~31 rounds, and infected agents exhibit harmful behavior Figure 1 - The authors state that the results closely resemble ideal infection dynamics: injecting an adversarial image into a single agent is sufficient for the remaining benign agents to be infected exponentially fast.
- The curves in Figure 1 show the infection rate rising with the number of chat rounds, and the caption notes that it reaches about 100% after 27~31 rounds; the figure distinguishes two curves, current-round and cumulative infection rate (the specific per-round values are not labeled on the figure).
Ablation Experiments (mentioned in the paper, values in the part not provided)
- Balance of infection and recovery rates: the authors state that they examined the contagious jailbreak effect under different balances of infection rate and recovery rate.
- Perturbation budget and attack type: the authors state that they examined different perturbation budgets and attack types.
- Chat diversity and image corruption: the authors state that they examined chat diversity and the impact of common corruptions when images are stored in the memory bank.
Other Ablations and Analyses
- Defense principle: the authors derive a simple principle that can determine whether a defense mechanism can provably contain the spread; a practical defense design satisfying this principle is left as an open problem.
- The paper has provided some but not all specific numbers for the above ablations, so they are not written here.
What are some points that can be further explored?
The authors say a practical defense design satisfying the defense principle remains an open problem; the experiments cover only LLaVA-1.5 and randomized pairwise chat.
Limitations and Future Directions Noted by the Authors
- Practical defense unresolved: the authors state that how to design a practical defense that satisfies this decision principle and can provably contain the spread of contagious jailbreaks remains an open and pressing research question (Abstract, Section 1).
- The paper has provided some but not all further explicitly stated limitations or future directions.
Scope of Experimental Coverage
- Model under test: the agent backbone in the experiments is a single model, LLaVA-1.5 (Section 1, Figure 1).
- Interaction mode: multi-agent interaction uses random pairwise chatting as a proof-of-concept instance, and the infection dynamics are formalized under ideal conditions (Abstract, Section 3.1).
- Environment scale: the simulated scale is up to 1,000,000 agents (Figure 1).
- Ablation variables: the paper states that the ablations cover infection/recovery rate balance, perturbation budget/attack type, chat diversity, and common corruptions during image storage (Section 1).
- Unreported information: the paper has provided some but not all information on how harmful behavior is determined (rule-based, human or LLM review), the sample size and the number of repetitions.
Summarize the main content of the paper
The authors propose infectious jailbreak: injecting a single adversarial image into one LLaVA-1.5 agent can infect almost all of one million agents within 27~31 rounds.
An attack paper on the safety of multi-agent environments, proposing infectious jailbreak, a new jailbreak paradigm targeting multi-agent environments.
- Problem to be solved: Existing red-teaming work focuses only on jailbreaking a single MLLM with adversarial images or prompts; the authors focus on whether, when MLLM agents are deployed at scale and collaborate with each other, a jailbreak can spread like an infectious disease through inter-agent interaction.
- Method highlights: The attacker only needs to inject a universal adversarial image into the memory bank of any random agent at round 0; the infected agent writes the image into the memory banks of benign agents during random pairwise chats, with no further intervention by the attacker; the authors formalize the infection dynamics under ideal conditions and simulate with LLaVA-1.5 agents with memory banks.
- Main results: In a random pairwise chat simulation containing 1,000,000 LLaVA-1.5 agents, the infection rate pt reached about 100% after 27~31 rounds, and infected agents exhibited harmful behavior (Figure 1); the authors state that the results closely resemble the ideal infection dynamics, showing exponential spread.
- Ablations and defenses: The authors state that ablations examined the balance of infection/recovery rates, perturbation budget/attack type, chat diversity, and image storage corruption; and derived a simple principle that can determine whether a defense mechanism can provably contain the spread.
- Authors' conclusion: The authors believe that large-scale deployment of MLLM agents will bring more serious safety problems than previously thought; designing a practical defense satisfying the principle remains an open and urgently needed research problem.