An Additive Instance-Wise Approach to Multi-class Model Interpretation

Vy Vo, Van Nguyen, Trung Le, Quan Hung Tran, Gholamreza Haffari, Seyit Camtepe, Dinh Phung

Abstract

Interpretable machine learning offers insights into what factors drive a certain prediction of a black-box system. A large number of interpreting methods focus on identifying explanatory input features, which generally fall into two main categories: attribution and selection. A popular attribution-based approach is to exploit local neighbourhoods for learning instance-specific explainers in an additive manner. The process is thus inefficient and susceptible to poorly-conditioned samples. Meanwhile, many selection-based methods directly optimize local feature distributions in an instance-wise training framework, thereby being capable of leveraging global information from other inputs. However, they can only interpret single-class predictions and many suffer from inconsistency across different settings, due to a strict reliance on a pre-defined number of features selected. This work exploits the strengths of both methods and proposes a framework for learning local explanations simultaneously for multiple target classes. Our model explainer significantly outperforms additive and instance-wise counterparts on faithfulness with more compact and comprehensible explanations. We also demonstrate the capacity to select stable and important features through extensive experiments on various data sets and black-box model architectures.

Introduction

In the pursuit of transparent AI, researchers typically choose between two paradigms for explaining "black-box" models: feature attribution and feature selection. Attribution methods, such as LIME, create local linear surrogates to approximate model behavior. While intuitive, they are computationally expensive, requiring a separate optimization for every input. Conversely, selection methods like L2X train a global explainer to identify important features. These are efficient but often restricted to explaining only the predicted class and can exhibit instability when the number of selected features ($K$) varies.

Presented at ICLR 2023, AIM (Additive Instance-wise approach to Multi-class model interpretation) bridges this gap. It provides a framework that is both efficient (amortized) and capable of generating stable, multi-class explanations in a single forward pass, outperforming existing methods in both speed and interpretability.

Methodology: The AIM Framework

AIM integrates two neural components trained jointly to provide comprehensive local explanations:

  1. The Explainer ($\mathcal{E}$): This module learns a weight matrix $W_x$ where each entry denotes the importance of a specific feature for a particular class. It functions as a local linear surrogate, approximating the complex model's decision logic through additive importance.
  2. The Selector ($\mathcal{S}$): Rather than relying on random perturbations, the Selector learns to generate high-quality samples. It utilizes an information-theoretic objective based on Mutual Information to pinpoint features most critical to the model's output.
The AIM framework architecture, featuring a Selector (S) for feature importance and an Explainer (E) for local linear approximation.

To ensure the system is end-to-end differentiable, the authors employ the Gumbel-Softmax trick for discrete feature selection. Additionally, group norm regularization is applied to promote sparsity, ensuring that explanations remain compact and focus only on the most salient information.

Experimental Evaluation

The authors evaluated AIM across diverse modalities, including text (IMDB, HateXplain, AG News), images (MNIST, Fashion-MNIST), and tabular data (Admission, Adult).

Key Results and Insights

AIM demonstrates significant improvements over baseline methods like LIME, L2X, and VIBI across several metrics:

  • Superior Faithfulness: On the IMDB dataset, AIM achieved a faithfulness score of 99.62%, vastly outperforming L2X (84.80%) and LIME (79.00%). This indicates that the black-box model's prediction on AIM-selected features is nearly identical to its prediction on the full input.
  • Multi-Class Interpretability: Unlike many instance-wise methods that only explain the top predicted class, AIM generates a matrix explaining the model's stance on all possible classes simultaneously. This facilitates counterfactual analysis, such as understanding why a model favored one class over another.
  • Stability and Consistency: AIM’s additive structure ensures that feature rankings remain consistent regardless of the number of features selected ($K$), solving a common instability issue in previous selection-based methods.
  • Efficiency: As an amortized method, AIM is trained once and can then process new inputs instantly. For the IMDB test set, AIM completed inference in approximately 11 minutes, whereas LIME required over 550 minutes.
Quantitative performance comparison across text datasets, highlighting AIM's superior faithfulness and competitive training efficiency.

Conclusion and Future Work

AIM offers a robust solution for multi-class model interpretation, combining the strengths of local attribution and global feature selection. While highly effective, the authors note opportunities for future refinement, including moving beyond word-level granularity to capture phrasal context (e.g., negations like "not bad") and extending the framework to regression tasks. Incorporating structural or positional information could further enhance its performance in complex linguistic and visual domains.

Summary updated

BibTeX
@misc{vo2022additive,
  author = {Vy Vo and Van Nguyen and Trung Le and Quan Hung Tran and Gholamreza Haffari and Seyit Camtepe and Dinh Phung},
  title = {{An Additive Instance-Wise Approach to Multi-class Model Interpretation}},
  year = {2022},
  eprint = {2207.03113},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.03113},
}
Figure