Abstract
Chain-of-Thought (CoT) reasoning has become a standard technique for improving the performance and explainability of Multimodal Large Language Models (MLLMs). By prompting models to "think step-by-step," researchers have achieved significant gains in complex visual tasks. However, the security implications of this reasoning process remain largely unexplored. This paper investigates the adversarial robustness of MLLMs using CoT. We demonstrate that while CoT offers a marginal increase in robustness compared to direct answering, it is highly vulnerable to a novel "stop-reasoning" attack. This attack bypasses the logical chain entirely, forcing models to jump to incorrect conclusions with high success rates. Our findings across benchmarks like ScienceQA and A-OKVQA reveal a critical vulnerability in how MLLMs process visual information under adversarial conditions.
Introduction
Multimodal Large Language Models (MLLMs), such as LLaVA, MiniGPT4, and OpenFlamingo, are increasingly deployed in scenarios requiring sophisticated visual understanding. To enhance their decision-making, these models often employ Chain-of-Thought (CoT) reasoning, where they generate a textual rationale before providing a final answer. While CoT improves interpretability, its impact on adversarial robustness—the ability to resist small, adversarial perturbations to input images—is a critical concern.
This research addresses two fundamental questions:
- Does the requirement to generate a multi-step rationale make MLLMs more difficult to manipulate?
- How do these intermediate reasoning steps behave when the model's visual input is adversarially perturbed?
Methodology: Attacking the Reasoning Chain
The researchers evaluated the robustness of MLLMs by generalizing existing adversarial attacks and introducing a novel method specifically designed to target the CoT process. All attacks utilize the Projected Gradient Descent (PGD) method, which iteratively finds the smallest possible image perturbation that maximizes the model's prediction error.
The study categorizes attacks into three types:
- Answer Attack: This baseline attack targets only the final answer token. For example, it seeks a perturbation that changes the model's output from the correct choice (B) to an incorrect one (A).
- Rationale Attack: This more sophisticated approach targets both the final answer and the intermediate reasoning steps. It employs a KL-divergence loss to force the adversarial rationale to deviate as much as possible from the "clean" reasoning path the model would normally take.
- Stop-Reasoning Attack: This is the paper's primary contribution. Rather than simply confusing the reasoning, this attack seeks to interrupt it. It uses a specialized loss function to force the model to ignore its CoT instructions and immediately output a wrong answer using a predefined template, such as "The answer is [Wrong Choice]."
Key Insights and Experimental Results
The effectiveness of these attacks was tested on several visual question-answering (VQA) benchmarks, including ScienceQA (multi-choice science questions), A-OKVQA (outside-knowledge reasoning), and ImageNet Subclasses.
CoT as a Marginal Shield
The experiments show that models using CoT are slightly more robust than those that answer directly. This "robustness boost" occurs because an attacker must disrupt a multi-step logical chain rather than a single output token. However, this benefit is marginal and task-dependent. For simple classification tasks (like ImageNet), CoT provides almost no robustness gain, whereas it becomes more relevant for complex tasks requiring deeper visual "thinking."
The Rationale as a Window into Hallucination
A fascinating observation from the "Answer Attack" is that the model's rationale often changes automatically to "justify" the forced incorrect answer. As illustrated in the provided figure, when an image of a panda is perturbed to make the model select "howler monkey," the generated rationale might suddenly claim the animal is "wearing a pair of sunglasses" and has a "cigar in its mouth." This suggests that the reasoning process in current MLLMs is tightly coupled with the final output and can be easily led into hallucination by adversarial inputs.
The Devastating Impact of Stop-Reasoning
The "stop-reasoning" attack proved to be the most effective method for breaking MLLMs. By targeting the initial tokens of the response, the attack effectively hijacks the model's steering, forcing it to skip its logic and jump to a conclusion.
The results were stark across different models:
- A-OKVQA: MiniGPT4-7B's accuracy dropped from a clean 61.38% to just 2.87% under the stop-reasoning attack.
- ScienceQA: On LLaVA, the stop-reasoning attack reduced accuracy to 22.39%, significantly lower than the 56.96% achieved by a standard answer attack.
Conclusion and Future Work
This research highlights a significant vulnerability in MLLMs: the reasoning process intended to improve transparency and accuracy can be bypassed or manipulated. While CoT offers a slight robustness advantage, the "stop-reasoning" attack demonstrates that this advantage is easily overcome.
Current limitations include the "white-box" nature of these attacks, requiring full access to model gradients. Future work will likely explore "black-box" scenarios and, more importantly, the development of defense mechanisms designed to make the Chain-of-Thought process itself more resilient to adversarial "short-circuiting."
Summary updated