Towards More Faithful Natural Language Explanation Using Multi-Level Contrastive Learning in VQA

Chengen Lai, Shengli Song, Shiqi Meng, Jingyang Li, Sitong Yan, Guangneng Hu

TL;DR

The paper introduces MCLE (Multi-level Contrastive Learning based natural language Explanation), a framework designed to improve the faithfulness and logical consistency of explanations in Visual Question Answering (VQA). By combining an explain-then-predict "Chain-of-Thought" strategy with multi-level contrastive learning, MCLE ensures that generated explanations are factually accurate, logically sound, and sensitive to minor contextual changes.

What Problem Does This Paper Address?

Visual Question Answering with Natural Language Explanations (VQA-NLE) aims to make black-box AI models trustworthy by forcing them to explain why they chose a specific answer. However, current models often generate explanations that look plausible on the surface but suffer from severe logical flaws. The authors identify three critical issues in existing systems:

  1. Deductive unsatisfiability: The generated explanation does not logically lead to the predicted answer.
  2. Factual inconsistency: The explanation contradicts or ignores the actual facts present in the image.
  3. Semantic perturbation insensitivity: The model fails to change its explanation or answer when minor details in the question or image are altered.
Figure 1: Three types of logical errors in VQA-NLE: (a) The generated explanation does not logically lead to the answer; (b) The model falsifies its counterfactual explanation for the answer without considering the facts in image; and (c) The model infers the same explanation and answer for a state- ment and its opposite semantics.

Methods

To tackle these consistency issues, the authors propose the MCLE framework, which consists of two main pillars:

  • Chain-of-Thought (CoT) Generation: Instead of predicting an answer and then justifying it (a post-hoc approach), MCLE adopts an explain-then-predict pipeline. The model is prompted to generate the explanation first (using the prefix "because...") followed by the answer ("so the answer is...").
  • Multi-Level Contrastive Learning Network: To enforce alignment across modalities, MCLE optimizes three distinct contrastive losses:
  • SemanticCL: Pairs the question and explanation with the correct answer while pushing away incorrect answers, ensuring deductive reasoning holds up.
  • ImageCL: Pairs the explanation and answer with the correct image while contrasting it against "hard negative" images (which have similar questions but different answers) to eliminate language bias.
  • InstanceCL: Uses a gradient-based approach (Grad-CAM) to identify and mask key words or objects, forcing the model to be highly sensitive to fine-grained visual and textual perturbations.
The overall architecture of MCLE

Datasets

The framework was evaluated on two widely used VQA-NLE benchmarks:

  • VQA-X: Contains 28K images and 33K QA pairs with human-annotated explanations.
  • A-OKVQA: A knowledge-based VQA dataset featuring approximately 25K Question/Answer/Rationale triplets.

Key Insights and Ideas

  • Order Matters: Flipping the generation order to explain-then-predict forces the model to use its rationale as a premise, which naturally boosts the accuracy of the final answer.
  • Multi-Granularity is Essential: Fixing logical flaws in vision-language models cannot be done with a single blanket loss. Distinct contrastive objectives are required to handle high-level semantics (SemanticCL), global visual grounding (ImageCL), and fine-grained token/object sensitivity (InstanceCL).
  • Hard Negatives Combat Language Bias: By contrasting against images that share similar questions but have different answers, the model is forced to actually look at the image rather than relying on statistical shortcuts in the text.

Key Results

MCLE achieved new state-of-the-art performance across both datasets on all standard text evaluation metrics (BLEU-4, METEOR, ROUGE-L, CIDEr, SPICE) as well as answer accuracy.

  • VQA-X (Unfiltered): Outperformed the previous best baseline ($S^3C$) by 2.4% in SPICE and 2.3% in CIDEr, while pushing answer accuracy to 87.7%.
  • A-OKVQA: Achieved a 2.2% improvement in CIDEr and a 1.2% boost in answer accuracy.
  • Human Evaluation: Human judges rated MCLE significantly higher, noting a 3.4-point improvement on VQA-X. Crucially, human analysis confirmed that deductive unsatisfiability errors dropped by 1.8% and factual inconsistencies fell by 1.6%.
Case study on the generated explanations on the VQA-X dataset

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@inproceedings{lai2024towards,
  author = {Chengen Lai and Shengli Song and Shiqi Meng and Jingyang Li and Sitong Yan and Guangneng Hu},
  title = {{Towards More Faithful Natural Language Explanation Using Multi-Level Contrastive Learning in VQA}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i3.28065},
}
Figure