Counterfactual Tests for Measuring Chain-of-Thought Faithfulness in Visual Language Models

Bayar Menzat, Maximilian Süss, Ruizhi Wang, Benno Steinegger, Thomas Lukasiewicz, Oana-Maria CamburuarXiv 2026

TL;DR

This paper introduces vCT and vCCT, the first visual adaptations of counterfactual tests designed to evaluate whether a Vision Language Model's (VLM) chain-of-thought (CoT) explanations faithfully reflect its actual decision-making process. By evaluating eight state-of-the-art open-source VLMs on two newly created counterfactual datasets, the authors discover a striking paradox: "Predict-then-Explain" prompts yield significantly more faithful explanations than traditional pre-answer Chain-of-Thought reasoning.

What Problem Does This Paper Address?

When a VLM outputs a beautifully articulated step-by-step explanation before arriving at an answer, humans tend to trust it. However, an explanation can be highly plausible (convincing to a human reader) without being faithful (accurately reflecting the model's internal mechanics).

While the NLP community has established robust input-intervention tests—like the Counterfactual Test (CT) and Correlational Counterfactual Test (CCT)—to measure text faithfulness by deleting words and observing prediction shifts, extending this to the visual domain is notoriously difficult. Unlike text, you cannot simply delete a pixel token; you must remove entire semantic objects while keeping the rest of the image natural. Furthermore, image editing tools often introduce low-level inpainting artifacts, making it hard to tell if a model's prediction shifted due to the semantic change or just generic editing noise.

Methods

The authors bridge this gap by developing a rigorous visual counterfactual evaluation pipeline consisting of three main components:

  1. Automated Visual Intervention Pipeline:
  2. Stage 1 (Selection): Uses a detection VLM (Qwen2.5-VL-7B) to identify a small, removable object.
  3. Stage 2 (Editing): Employs Qwen-Image-Edit to naturalistically erase the object via diffusion-based inpainting.
  4. Stage 3 (Filtering): Applies strict quality controls, rejecting images if too many pixels changed or if the edited region fails to align with the target object's bounding box (verified via Grounding DINO and SAM).
  5. Visual Faithfulness Metrics:
  6. vCT (Visual Counterfactual Test): A binary metric checking if an explanation mentions the edited object only when the top prediction flips.
  7. vCCT (Visual Correlational Counterfactual Test): A continuous metric that calculates the point-biserial correlation between whether the explanation mentions the object and the exact magnitude of the prediction shift (measured via Total Variation Distance over the answer probability distribution).
  8. Artifact Controls: To ensure the model responds to semantic changes rather than inpainting artifacts, the authors implement a "no-op reconstruction control" where images pass through the editing pipeline but no objects are removed.
Figure 1: Overview of our vCT/vCCT evaluation pipeline. Given an image–text pair from A-OKVQA or SNLI-VE, we generate a minimally edited counterfactual image by removing a single grounded object (e.g., the backpack). A VLM, prompted in a chosen mode (PE or CoT), produces answer distributions and chain-of-thought explanations for the original and edited images. We then check whether the edited concept is mentioned in the explanations and how the answer probabilities shift between the two images: vCT measures whether mentions align with cases where the top prediction changes, while vCCT correlates the magnitude of probability shift with whether the edited concept is mentioned.

Datasets

The authors introduce and open-source two new paired counterfactual benchmarks:

  • Counter-SNLI-VE: 2,466 image pairs based on the SNLI-VE visual entailment dataset.
  • Counter-A-OKVQA: 2,841 image pairs based on the A-OKVQA knowledge-based visual question answering dataset.

In each pair, the counterfactual image differs from the original by exactly one omitted object.

Key Insights and Ideas

  • The CoT Faithfulness Gap: Pre-answer CoT explanations do not reliably track the visual evidence driving the model's choices. A model might completely omit an object from its CoT even when removing that object drastically alters its prediction.
  • Predict-then-Explain (PE) Wins on Faithfulness: Generating the answer first and then explaining it leads to much higher correlation with actual probability shifts than generating a CoT before the answer. When a model commits to a prediction first, its post-hoc explanation aligns much better with the visual features that mathematically influenced that choice.
  • The Danger of Binary Metrics: Binary metrics like vCT can easily look "saturated" (yielding deceptively high scores of ~95%). Because total prediction flips are relatively rare for minimal edits, binary metrics fail to capture how poorly explanations track fine-grained probability shifts, highlighting the necessity of continuous correlational metrics like vCCT.

Key Results

The authors benchmarked eight leading open-source VLMs (including Qwen3.5-9B, InternVL3.5-38B, and Ovis2.5-9B).

  • vCCT Performance: Across all eight models and both datasets, PE consistently outperformed CoT. For example, on A-OKVQA, the average vCCT score was 0.303 for PE vs. 0.200 for CoT. On SNLI-VE, the gap was even wider: 0.264 for PE vs. 0.129 for CoT.
  • Control Validation: The no-op reconstruction control produced significantly smaller probability shifts than actual object removal (paired mean difference of ~0.06 TVD), proving that the metrics are genuinely picking up on semantic visual processing rather than image artifacts.
Figure 2: Faithfulness results for PE and CoT. Candidate likelihoods are normalized over each fixed answer set before computing TVD and vCCT. (a) A-OKVQA vCCT and (b) SNLI-VE vCCT with 95% bootstrap confidence intervals. (c) A-OKVQA vCT and (d) SNLI-VE vCT. PE consistently attains higher vCCT than CoT, whereas all methods achieve similarly high vCT.

Limitations and Future Work

While this work marks a major step forward, the authors note several limitations:

  • Object-Removal Focus: The primary benchmark evaluates the presence or absence of objects. It does not yet comprehensively evaluate complex visual attributes like spatial relations, actions, counting, or compositionality.
  • Pipeline Imperfections: The automated pipeline is highly scalable but not flawless; a manual audit revealed an 87.9% correctness rate for counterfactual edits and a 92.2% accuracy rate for the LLM-based change-mention detector.
  • Future work aims to scale up attribute-level interventions (such as color changes) and combine these behavioral tests with internal mechanistic interpretability techniques.

Summary updated

BibTeX
@misc{menzat2026counterfactual,
  author = {Bayar Menzat and Maximilian Süss and Ruizhi Wang and Benno Steinegger and Thomas Lukasiewicz and Oana-Maria Camburu},
  title = {{Counterfactual Tests for Measuring Chain-of-Thought Faithfulness in Visual Language Models}},
  year = {2026},
  eprint = {2609.06704},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.06704},
}
Figure