MultiAgent Collaboration Attack: Investigating Adversarial Attacks in Large Language Model Collaborations via Debate

Alfonso Amayuelas, Xianjun Yang, Antonis Antoniades, Wenyue Hua, Liangming Pan, William Yang Wang

Abstract

While multi-agent "debate" is a popular strategy to improve Large Language Model (LLM) reasoning and factuality, this research reveals a significant security flaw: the MultiAgent Collaboration Attack. A single adversarial agent can effectively hijack group consensus by using persuasive, albeit incorrect, arguments. This study demonstrates that a lone attacker can reduce system accuracy by up to 40%, proving that collaborative "more heads" approaches are highly vulnerable if one participant is a convincing liar.

Introduction

As LLMs become commoditized, researchers are increasingly moving toward multi-agent systems where several models collaborate, debate, and cross-check each other to solve complex tasks. The prevailing assumption is that these agents are "honest" and share a common goal. However, in real-world applications, agents might be controlled by different entities with conflicting interests.

Overview of the Multi-Agent Collaboration Network where an adversary can influence the group consensus.

This paper investigates a scenario where a network of LLMs interacts via iterative debate to answer questions, but one agent is a malicious actor. This adversary is tasked with persuading the group to abandon the correct answer in favor of a specific incorrect one, exploring how robust these collaborative frameworks are against "social engineering" at the machine level.

Methodology

The researchers structured their study around a standard Multi-Agent Debate protocol consisting of three phases:

  1. Initial Response: $M$ agents (typically 3) independently answer a multiple-choice question.
  2. Iterative Debate: Over $T$ rounds (typically 3), agents review each other's responses and reasoning to update their own positions.
  3. Consensus: The final answer is determined by a Majority Vote.

The Attack Strategy

One agent is designated as the adversary, provided with an incorrect answer and a system prompt to be as persuasive as possible. To sharpen the attack, the authors explored two inference-time optimizations:

  • Best-of-N: The adversary generates multiple candidate arguments, and a preference model selects the most persuasive one.
  • RAG (Retrieval-Augmented Generation): The adversary uses external knowledge to craft more authoritative-sounding falsehoods.
An example of the iterative debate process where an adversary successfully persuades two group models to switch from the correct answer (A) to an incorrect one (B).

Datasets and Metrics

The study evaluated performance across four benchmarks: MMLU (general knowledge), TruthfulQA (misconceptions), MedMCQA (medical exams), and LegalBench (legal reasoning). Metrics included $\Delta Acc_{MV}$ (the drop in system accuracy) and $\Delta Agr$ (the increase in agreement with the adversary).

Key Insights and Results

The Persuasion Trap

Persuasiveness is a distinct skill decoupled from accuracy. The study shows that models like GPT-3.5 and Llama-3 are highly susceptible to being "talked out" of correct answers. Intuitively, one might expect more rounds of debate to help honest agents identify lies; however, the opposite occurs. Once an honest agent is persuaded to flip, they rarely revert, causing accuracy to degrade further as debate continues.

Fragility of the Majority

In a 3-agent setup, the adversary only needs to convince one other agent to win the majority vote. Even if honest agents are individually 80% accurate, a single adversary can drop expected system accuracy from ~90% to ~64%. Across various tasks, the presence of an adversary caused system accuracy to drop by 10% to nearly 40%.

Model Resiliency

GPT-4o proved to be the most resilient model, often maintaining its correct answer despite pressure. Conversely, it was also the most dangerous adversary; when acting as the attacker, GPT-4o was highly effective at manipulating weaker models.

Conclusion and Future Work

The research concludes that current multi-agent ecosystems require more than just "majority rule" for safety. Simple defensive prompts warning agents of potential confusion had negligible effects. Future work must focus on developing robust defensive protocols that can detect and neutralize persuasive misinformation in real-time. As we move toward complex multi-agent collaborations, ensuring the integrity of the debate process is paramount to maintaining system reliability.

Summary updated

BibTeX
@inproceedings{amayuelas2024multiagent,
  author = {Alfonso Amayuelas and Xianjun Yang and Antonis Antoniades and Wenyue Hua and Liangming Pan and William Yang Wang},
  title = {{MultiAgent Collaboration Attack: Investigating Adversarial Attacks in Large Language Model Collaborations via Debate}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.407},
}
Figure