MEGL: Multimodal Explanation-Guided Learning

Yifei Zhang, Tianxu Jiang, Bo Pan, Jingyu Wang, Guangji Bai, Liang ZhaoarXiv 2024 · DOI

Introduction

Deep learning models are increasingly used in critical decision-making, yet they often operate as "black boxes." While eXplainable AI (XAI) aims to provide transparency, existing methods typically focus on a single modality—either visual heatmaps or textual rationales. These unimodal explanations often lack consistency; a model might highlight a specific region without explaining why it matters, or provide a logical text rationale that isn't grounded in the visual features it actually processed.

MEGL (Multimodal Explanation-Guided Learning) is a novel framework designed to bridge this gap. By forcing visual and textual explanations to "talk" to each other, MEGL improves both classification accuracy and the quality of interpretability, even in scenarios where human-annotated training data is scarce.

The Challenge of Unimodal XAI

Current XAI techniques face two primary hurdles:

  1. Semantic Disconnect: Visual explanations (saliency maps) identify where a model looks but not why. Conversely, textual explanations provide logic but often lack spatial grounding.
  2. Data Scarcity: High-quality human annotations for both heatmaps and textual rationales are expensive and rare.
Comparison of visual explanations for medical and natural images, highlighting the lack of semantic rationale in standard saliency maps.

As shown in the figure above, standard visual explanations might correctly identify a malignant region in a CT scan or a cat in a photo, but they fail to provide the underlying semantic reasoning that connects the pixels to the class label.

Methodology: A Closed-Loop Learning Process

MEGL introduces three core components to create a mutually reinforcing learning cycle between the classifier and its explainers.

The MEGL framework architecture, illustrating the three loss components: (a) Prediction Loss, (b) Textual Explanation Loss, and (c) Visual Explanation Loss.

1. Saliency-Driven Textual Grounding (SDTG)

This component acts as the "Visual → Text" bridge. The system feeds the model's visual saliency map along with the original image into a Large Language Model (LLM). This setup compels the LLM to generate a rationale based specifically on the regions the classifier utilized for its prediction.

2. Textual Supervision on Visual Explanations

Serving as the "Text → Visual" bridge, this part of the framework uses the generated textual rationale to refine the visual explainer. If the text identifies a specific feature (e.g., "pointed ears"), the visual explainer is incentivized to highlight that corresponding area in the image.

3. Visual Explanation Distribution Consistency (VEDC)

To address the issue of missing human annotations, the authors proposed VEDC. For images lacking ground-truth heatmaps, the model is trained to align its generated saliency map with the average distribution of heatmaps across the entire dataset. This provides a global supervision signal that stabilizes training on partially annotated data.

Experimental Setup and Datasets

The researchers evaluated MEGL on two new benchmarks derived from existing VQA datasets:

  • Object-ME: Focuses on object classification (4,790 samples, 40 classes).
  • Action-ME: Focuses on human activity classification (11,511 samples, 127 classes).

These datasets reflect real-world constraints by being only partially annotated with ground-truth visual explanations. The architecture utilizes ResNet-18 or ViT-B/16 backbones for classification, a CLIP vision encoder, and a Vicuna-v1.5 (7B) model for text generation.

Key Results and Insights

MEGL demonstrates that visual and textual explanations should not be treated as independent outputs. Their alignment leads to several significant advantages:

  • Superior Accuracy: On the Object-ME dataset, MEGL-ViT achieved 83.17% accuracy, outperforming the standard ViT baseline (78.58%) and even surpassing fine-tuned LLaVA (82.33%).
  • Enhanced Interpretability: MEGL improved both visual explainability (measured by mIoU) and textual quality (measured by metrics like CIDEr and BLEU) across all benchmarks.
  • Efficiency at Scale: By using a smaller backbone for the primary classification task, MEGL is 30x to 41x faster than massive Multimodal Large Language Models (MLLMs) during inference. For instance, MEGL-ResNet18 operates at ~117 FPS, compared to just 2.8 FPS for LLaVA-Fine-tune-CoT.

Conclusion

MEGL represents a significant step forward in making deep learning models both more accurate and more transparent. By integrating visual grounding with textual reasoning, it overcomes the limitations of unimodal XAI and provides a robust framework for learning from incomplete data. Future work will explore scaling these multimodal grounding techniques to more complex reasoning tasks and dynamic video environments.

Summary updated

BibTeX
@misc{zhang2024megl,
  author = {Yifei Zhang and Tianxu Jiang and Bo Pan and Jingyu Wang and Guangji Bai and Liang Zhao},
  title = {{MEGL: Multimodal Explanation-Guided Learning}},
  year = {2024},
  eprint = {2411.13053},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.13053},
}
Figure