Stop Reasoning! When Multimodal LLM with Chain-of-Thought Reasoning Meets Adversarial Image

Zefeng Wang, Zhen Han, Shuo Chen, Fan Xue, Zifeng Ding, Xun Xiao, Volker Tresp, Philip Torr, Jindong Gu

TL;DR

This paper investigates how Chain-of-Thought (CoT) reasoning affects the adversarial robustness of Multimodal Large Language Models (MLLMs). While CoT offers a slight improvement against existing attacks, the authors introduce a novel "stop-reasoning" attack that effectively bypasses CoT, significantly degrading MLLM performance under adversarial conditions.

What Problem Does This Paper Address?

Multimodal Large Language Models (MLLMs) are powerful tools for understanding both text and images. Chain-of-Thought (CoT) reasoning, which involves generating intermediate reasoning steps (rationales) before a final answer, has been shown to improve MLLM performance and explainability. However, MLLMs are known to be vulnerable to adversarial attacks – subtle image perturbations that can lead to incorrect predictions. This paper asks two crucial questions: Does CoT actually make MLLMs more robust against these adversarial attacks? And if so, how do the intermediate reasoning steps (rationales) behave when subjected to such attacks? Understanding this is vital for deploying MLLMs in safety-critical applications.

Methods

The authors first generalize existing adversarial attack methods (answer attack and rationale attack) to MLLMs that use CoT.

  • Answer Attack: This attack targets only the final answer choice, aiming to flip the model's prediction.
  • Rationale Attack: This attack targets both the final answer and the generated rationale, aiming to mislead the model through its reasoning process.

They then propose a novel attack called Stop-Reasoning Attack. This attack is specifically designed to disrupt CoT reasoning in MLLMs. Instead of attacking the rationale or answer directly, it forces the model to skip the reasoning steps entirely and output an answer directly, even when explicitly prompted to use CoT. This bypasses the robustness benefits that CoT might otherwise provide. The attacks are implemented using the Projected Gradient Descent (PGD) method, a standard technique for generating adversarial examples.

Datasets

The experiments were conducted on two visual question answering (VQA) datasets:

  • A-OKVQA: Requires commonsense reasoning about images.
  • ScienceQA: Features multiple-choice questions and rationales, sourced from elementary and high school science curricula, focusing on complex images and reasoning tasks.

The paper also mentions experiments on ImageNet for classification tasks in the appendix.

Key Insights and Ideas

  • CoT offers only marginal robustness: While CoT does provide a slight improvement in adversarial robustness against standard answer and rationale attacks, this boost is not substantial.
  • Rationale is key to CoT's robustness: The intermediate reasoning steps (rationales) generated by CoT are crucial for its limited adversarial defense. Attacks that alter the rationale are more effective.
  • Stop-Reasoning Attack is highly effective: By forcing the model to bypass its reasoning process, the stop-reasoning attack effectively negates the robustness benefits of CoT, making MLLMs significantly more vulnerable.
  • Explainability reveals vulnerabilities: Analyzing the altered rationales under attack provides insights into why MLLMs make incorrect predictions, highlighting how subtle image changes can lead to misinterpretations of visual cues.

Key Results

  • Answer and Rationale Attacks: CoT-enhanced MLLMs showed improved accuracy compared to non-CoT MLLMs under these attacks. For example, on the A-OKVQA dataset with MiniGPT4, accuracy dropped from 61.38% (w/o CoT, w/o Attack) to 0.76% (w/o CoT, Answer Attack), while with CoT, it dropped from 16.06% to 2.87% under stop-reasoning attack.
  • Stop-Reasoning Attack: This novel attack significantly outperformed both answer and rationale attacks. For instance, on MiniGPT4 with CoT, stop-reasoning attack reduced accuracy to 2.87% on A-OKVQA, approaching the vulnerability of models without CoT (0.76%).
  • Targeted Attack Success: Stop-reasoning attack achieved the highest success rate in targeted attacks, where the goal is to force a specific wrong answer.

Limitations and Future Work

  • CoT not always necessary for simple tasks: The paper suggests that for simpler tasks, CoT might not be essential for robustness, and its impact is more pronounced on complex reasoning tasks.
  • Stop-reasoning attack not always 100% effective: The authors note that in some cases, the stop-reasoning attack might not fully prevent the model from engaging in reasoning, indicating room for improvement in the attack's effectiveness.
  • Future work: The paper implicitly suggests further research into developing more robust CoT mechanisms or defenses against attacks that bypass reasoning. Understanding the precise mechanisms by which CoT provides robustness and how to strengthen them remains an open area.

Summary updated

BibTeX
@inproceedings{wang2024stop,
  author = {Zefeng Wang and Zhen Han and Shuo Chen and Fan Xue and Zifeng Ding and Xun Xiao and Volker Tresp and Philip Torr and Jindong Gu},
  title = {{Stop Reasoning! When Multimodal LLM with Chain-of-Thought Reasoning Meets Adversarial Image}},
  booktitle = {COLM},
  year = {2024},
  url = {https://openreview.net/forum?id=oqYiYG8PtY},
}
Figure