← Latest papers
🤖 AI

Which Modality Decides? Counterfactual Modality Attribution for Multimodal LLMs

This paper introduces Counterfactual Modality Attribution (CMA), a novel framework that uses coupled diffusion priors and Shapley values to quantify which modality (image or text) drives a multimodal large language model's prediction, thereby revealing unsafe reasoning patterns that traditional feature-level explainability methods miss.

Original authors: Vahidin Hasic, Chao Wang, Luis C. Garcia-Peraza-Herrera, David Watson, Senka Krivic

Published 2026-08-04
📖 7 min read🧠 Deep dive

Original authors: Vahidin Hasic, Chao Wang, Luis C. Garcia-Peraza-Herrera, David Watson, Senka Krivic

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a detective trying to solve a mystery, but you have two very different partners: one is a photographer who only shows you pictures, and the other is a storyteller who only speaks in words. In the world of Artificial Intelligence, there are super-smart computers called Multimodal Large Language Models (MLLMs) that act like this detective team. They look at images and read text at the same time to make big decisions, like diagnosing a patient or identifying a problem. But here's the tricky part: just because the computer gets the right answer doesn't mean it figured it out the right way. Sometimes, it might be "relying on shortcuts" by ignoring the photos and only reading the text, or vice versa. This is a huge problem because if we don't know which partner is doing the work, we can't trust the detective when things get serious. We need a way to ask, "Hey, was it the picture that solved this, or was it the story?"

This is exactly what a new study by researchers from the University of Sarajevo and King's College London tackles. They are worried that these AI detectives might be taking "shortcuts"—relying on one type of clue while ignoring the other, even if the final answer looks correct. To fix this, they invented a clever new tool called Counterfactual Modality Attribution (CMA). Think of CMA as a "What If?" machine. It asks the AI: "What if we only showed you the picture?" and "What if we only gave you the text?" By creating these imaginary "what if" scenarios, the tool can measure exactly how much the picture and how much the text contributed to the final decision. They tested this on fake puzzles and real medical reports, and they found that CMA is incredibly good at spotting when an AI is ignoring crucial information. In fact, in their controlled tests, it correctly identified the true source of the decision 98% of the time, revealing hidden mistakes that other methods missed.

The Detective's Dilemma

Imagine you are a doctor trying to figure out if a patient has pneumonia. You have two pieces of evidence: a chest X-ray (the picture) and a medical report written by a nurse (the text). The nurse's report says, "The patient is allergic to penicillin." The X-ray clearly shows pneumonia. A smart AI should look at both, say, "Yes, it's pneumonia," and then recommend a safe antibiotic that isn't penicillin.

But what if the AI is "relying on shortcuts"? What if it looks at the X-ray, sees the pneumonia, and immediately picks an antibiotic without even reading the nurse's note? If that antibiotic happens to be penicillin, the patient could have a life-threatening reaction. The AI got the diagnosis right, but it failed the safety check because it ignored the text. This is called "shortcut learning," and it's dangerous because the AI looks perfect on paper (it gets the diagnosis right) but is actually unsafe in the real world.

The problem is that most current tools for checking AI only look at where the AI is looking. They can draw a red box around the pneumonia on the X-ray or highlight the word "penicillin" in the text. But they can't answer the big question: Which one actually made the AI decide? Did the picture drive the decision, or did the text? Or did they work together?

The "What If" Machine

The researchers created a new method called Counterfactual Modality Attribution (CMA) to solve this. The word "counterfactual" is a fancy way of saying "what if." CMA plays a game of "What if?" with the AI.

Here is how it works, using a simple analogy:
Imagine you are baking a cake with two ingredients: flour and sugar. You want to know which one makes the cake taste sweet.

  1. The Original Cake: You bake a cake with both flour and sugar. It tastes sweet.
  2. The "What If" Scenarios:
    • Scenario A (Image-Only): You bake a cake with only flour (no sugar).
    • Scenario B (Text-Only): You bake a cake with only sugar (no flour).
    • Scenario C (Both Removed): You bake a cake with neither.

By tasting these different cakes, you can figure out exactly how much the sugar contributed to the sweetness. If the cake with only sugar is still sweet, but the cake with only flour is bland, you know the sugar is the star.

CMA does this for AI, but instead of cakes, it uses images and text. It uses special "magic generators" (called diffusion models) to create realistic versions of the input where it removes the text but keeps the image, or removes the image but keeps the text. It then asks the AI to make a prediction on these new, modified versions.

The Scoreboard: Who Did the Work?

Once the AI has made predictions on all these "What If" versions, CMA uses a mathematical scoring system called Shapley values. You can think of this like a scoreboard in a video game where two players (the Image and the Text) are on a team. The scoreboard calculates how much each player contributed to the team's win.

  • If the AI changes its mind when you remove the text, the Text gets a high score.
  • If the AI changes its mind when you remove the image, the Image gets a high score.
  • If the AI needs both to get the right answer, they share the score.

The result is a clear percentage: "90% Image, 10% Text." This tells us exactly which modality is driving the decision.

What They Found

The researchers tested CMA in two ways:

  1. Fake Puzzles: They created a game where they knew for a fact that the AI was supposed to rely only on the picture, or only on the text. In these tests, CMA was a superstar. It correctly identified the "shortcut-reliant" AI 98% of the time. Other methods, which just looked at individual pixels or words, got confused and failed to spot the bias.
  2. Real Medical Reports: They tested it on a real dataset of chest X-rays and doctor's notes. They found cases where the AI was relying on weird shortcuts. For example, in one case, the AI was diagnosing a "nodule" (a lump) because it saw ECG leads (wires) on the X-ray, not because it saw the actual lump. When CMA removed the wires (the image shortcut), the AI changed its mind. This proved that CMA could find dangerous shortcuts that other tools missed.

Why This Matters

The most important thing this paper shows is that being right isn't enough. An AI can give the correct answer for the wrong reasons. If we only check if the answer is right, we might miss the fact that the AI is ignoring critical safety information (like an allergy).

CMA gives us a way to audit the AI's thinking process. It doesn't just tell us what the AI decided; it tells us why it decided it. This is crucial for high-stakes situations like healthcare, self-driving cars, or legal decisions, where we need to be sure the AI is using all the evidence it has, not just the easy stuff.

The researchers admit that their tool takes a bit of computer power to run and isn't perfect yet, but it's a major step forward. It turns the black box of AI decision-making into something we can actually understand and trust, ensuring that when an AI says "I'm sure," it's actually sure for the right reasons.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →