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

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

TL;DR

This paper investigates the vulnerability of multi-agent Large Language Model (LLM) collaborations to adversarial attacks, specifically within a debate setting. The authors demonstrate that a single adversarial agent can significantly degrade the collective accuracy of a group of LLMs by leveraging persuasive arguments, highlighting persuasion as a critical factor in LLM collaboration robustness.

What Problem Does This Paper Address?

As LLMs become more capable and are increasingly integrated into multi-agent systems for complex tasks, understanding the security and robustness of these collaborations is paramount. While LLM collaboration offers benefits like improved reasoning and diverse outputs, it also introduces new attack surfaces. This paper focuses on a specific vulnerability: adversarial attacks within LLM collaborations that use a "debate" mechanism for decision-making. The core challenge is to understand how an adversary can exploit this collaborative structure to achieve its own goals, potentially at the expense of the group's intended objective, and to quantify the impact of such attacks.

Methods

The authors employ a "debate" protocol where multiple LLM agents collaborate to answer questions. This involves iterative rounds where agents share their answers and can revise them based on others' input. The key innovation is the introduction of an adversary agent whose goal is to persuade the other "group" agents to adopt an incorrect answer.

To facilitate this, they:

  • Define Metrics: Introduce metrics to quantify the adversary's effectiveness, focusing on:
  • System Accuracy: The overall accuracy of the group's final decision.
  • Model Agreement: How well the adversary's opinion aligns with the group models.
  • Adversary Strategy: The adversary is given an incorrect answer and tasked with convincing others.
  • Persuasion Enhancement: They explore inference-time strategies to make the adversary's arguments more persuasive, including:
  • Best-of-N: Generating multiple arguments and selecting the most persuasive one using a preference model.
  • Extra Knowledge: Incorporating retrieved information (RAG) to strengthen arguments.
  • Mitigation: They test a simple prompt-based mitigation strategy to warn group models about potential adversaries.

Datasets

The experiments were conducted on four datasets representing different domains:

  • MMLU (Massive Multitask Language Understanding): A general benchmark covering a wide range of academic subjects.
  • TruthfulQA: Designed to evaluate a model's ability to distinguish truth from common misconceptions.
  • MedMCQA: A dataset of medical entrance exam questions.
  • Scalr (from LegalBench): A benchmark for legal reasoning and comprehension.

For each dataset, a random subsample of 100 samples was used and evaluated 5 times.

Key Insights and Ideas

  • Persuasion is Key: The adversary's success hinges on its ability to persuade other LLMs. This highlights persuasion as a critical, and perhaps underappreciated, skill in LLM collaboration.
  • Debate is Vulnerable: Collaborative debate, while beneficial for divergent thinking, is susceptible to adversarial manipulation. The adversary can significantly reduce system accuracy.
  • Limited Defense: Increasing the number of debate rounds or agents doesn't inherently make the collaboration robust against a persuasive adversary. The adversary's influence can persist even with more interactions or participants.
  • Adversary Agreement as a Proxy: The increase in adversary agreement alongside a decrease in system accuracy is a strong indicator of a successful attack, providing a quantifiable measure of persuasion.
  • Simple Mitigation Insufficient: A basic prompt warning about an adversary is not enough to fully protect the collaboration, suggesting the need for more sophisticated defenses.

Key Results

  • Accuracy Drop: Adversarial attacks led to significant decreases in system accuracy, ranging from 10% to almost 40% across different models and datasets. Individual model accuracy also dropped by up to 30%.
  • Persuasiveness Matters: Models with stronger persuasive abilities were more effective at influencing others.
  • Round/Agent Impact: Increasing debate rounds (up to 9) or agents (up to 6) did not prevent the accuracy from dropping over time, indicating the adversary's consistent influence.
  • Improved Attack: The "Best-of-N" and "Extra Knowledge" strategies for the adversary resulted in improved attack effectiveness, further demonstrating the impact of argument quality.
  • Mitigation Effectiveness: Prompt-based mitigation showed some positive effects but was not universally successful, indicating a need for more advanced defensive strategies. GPT-4o showed higher resilience to the attacks compared to other models.

Limitations and Future Work

Limitations:

  • Experimental Setting: The study uses an academic setting and specific benchmarks, which may not fully represent real-world, complex LLM deployments.
  • Model Capabilities: The open-source models used were not necessarily the top-performing ones, potentially limiting the generalizability of findings to state-of-the-art models.
  • Resource Intensity: Generating debates is computationally expensive, limiting the scale of experiments.

Future Work:

  • Refining Defensive Strategies: Developing more sophisticated methods to counteract adversarial attacks.
  • Alternative Collaboration Protocols: Exploring different interaction mechanisms beyond debate.
  • Improving Inherent Persuasive Abilities: Researching ways to make LLMs inherently more resistant to persuasion when acting as group members.
  • Real-World Applications: Investigating the implications of these findings in high-risk scenarios and for human-AI collaboration.

Summary updated

BibTeX
@inproceedings{amayuelas2024multiagent,
  author = {Alfonso Amayuelas and Xianjun Yang and Antonis Antoniades and Wenyue Hua and Liangming Pan and William 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