Model Interpretability and Rationale Extraction by Input Mask Optimization

Marc Felix Brinner, Sina ZarrießACL 2023

Abstract

MaRC (Mask-based Rationale Creation) is a model-agnostic interpretability method that extracts human-like explanations from black-box neural networks by optimizing an input mask. By enforcing spatial smoothness and balancing the "sufficiency" and "comprehensiveness" of an explanation, MaRC achieves state-of-the-art results in text rationale extraction and produces remarkably clean, intuitive visual explanations for images.

Introduction

As neural networks like Transformers and CNNs become more complex, they also become more "black-box." While we can observe their predictions, understanding the underlying "why" remains a challenge. Existing interpretability methods generally fall into two categories: post-hoc methods like saliency maps or LIME, which often produce noisy, disconnected results, and specialized rationale extraction architectures that require training from scratch. This paper introduces MaRC, a method designed to extract high-quality, human-interpretable rationales from any existing model without retraining.

Methodology

MaRC treats explanation as an optimization problem, iteratively refining an input mask ($\lambda$). The optimization is guided by three criteria:

  1. Sufficiency: The rationale alone should allow the model to make the same prediction.
  2. Comprehensiveness: Removing the rationale should prevent the model from predicting the class.
  3. Compactness: The rationale should be sparse yet consist of connected regions.

A key innovation is Spatial Reparameterization. Instead of optimizing individual features independently, MaRC uses a novel regularization scheme that forces the mask to be smooth and connected. In text, this captures coherent phrases; in images, it identifies distinct object parts.

Evaluation and Results

The researchers evaluated MaRC on the Movie Review dataset (text) and ImageNet (images) using models like BERT, ResNet-101, and Vision Transformers (ViT).

Text Rationale Extraction

On the Movie Review dataset, MaRC outperformed baselines like LIME and Integrated Gradients across primary metrics, including Token F1 (0.473) and mAP (0.469). It was particularly effective in IoU F1, indicating high overlap with human-annotated spans. By ensuring the mask is spatially connected, it captures modifiers and context (like "not very good") that individual word-importance methods often miss.

MaRC extracts coherent text spans that provide context, unlike word-level saliency methods.

Image Interpretability

In image classification, MaRC achieved superior sufficiency scores for both ResNet and ViT. Qualitatively, the resulting masks are significantly cleaner and more object-aligned than traditional heat-map methods, which often appear as disconnected blobs.

Comparison of interpretability methods on a Komodo dragon image. MaRC (b) provides a cleaner, more object-aligned mask compared to baselines like Grad-CAM (f).

Discussion and Limitations

MaRC's ability to capture context and its model-agnostic nature make it a powerful tool for debugging complex architectures. However, its primary drawback is computational cost; the iterative optimization process requires hundreds of forward and backward passes, taking several minutes per explanation on modern hardware. Future work focuses on accelerating this process and applying the spatial structure assumption to other modalities like audio or multi-modal tasks.

Summary updated

BibTeX
@inproceedings{brinner2023model,
  author = {Marc Felix Brinner and Sina Zarrieß},
  title = {{Model Interpretability and Rationale Extraction by Input Mask Optimization}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.867},
}
Figure