Unsupervised Learning of Neural Networks to Explain Neural Networks

Quanshi Zhang, Yu Yang, Yuchen Liu, Ying Nian Wu, Song-Chun ZhuarXiv 2018

Abstract

Convolutional Neural Networks (CNNs) are powerful but lack interpretability due to the chaotic nature of their internal feature maps. We present an unsupervised "explainer" network that disentangles these middle-layer features into human-interpretable object parts without altering the original model's weights or requiring manual annotations. By utilizing a network distillation approach and a novel filter loss based on mutual information, the explainer translates the internal logic of a pre-trained "performer" network into organized, part-based representations.

Introduction

The "dilemma of interpretability" in deep learning suggests a trade-off between a model's performance and its transparency. While passive visualization techniques can highlight regions of interest, they often fail to reveal the underlying logic of a decision. This research addresses the problem by introducing an external explainer network that plugs into a pre-trained CNN. Unlike previous methods that require retraining or manual part annotations, this approach extracts interpretable components from an already-trained model (the "performer") without changing its original weights.

Methodology

The proposed system consists of a pre-trained Performer Network and an auxiliary Explainer Network. The explainer is structured as an auto-encoder that processes feature maps from the performer's middle layers.

The Explainer network architecture and a comparison of its disentangled feature maps against the Performer's chaotic filters.

Explainer Architecture

The explainer utilizes a two-track encoder:

  1. Interpretable Track: Designed to isolate specific object parts (e.g., heads, legs).
  2. Ordinary Track: Captures residual information, such as textures and edges, necessary for reconstruction.

A learned scalar weight determines the contribution of each track. The network is trained using network distillation, where the explainer learns to "paraphrase" the performer's higher-layer features (e.g., the $fc7$ layer) using its disentangled representations.

Filter Loss and Mutual Information

The "secret sauce" of the explainer is a loss function based on Mutual Information. This objective pushes each filter in the interpretable track to represent a single object category and trigger on a single, consistent region of the object. By penalizing repetitive activations typical of textures, the network is forced to identify distinct, localized parts.

Experimental Evaluation

The method was evaluated on the CUB200-2011 bird dataset and the Pascal-Part dataset. Although these datasets contain part annotations, they were used exclusively for evaluation purposes; the explainer itself remained entirely unsupervised.

Key Results

  • Consistency: The explainer's filters showed significantly higher stability than the performer's. Quantitatively, the explainer reduced "location instability" to 35.7%–68.8% of the original levels.
  • Information Preservation: Replacing the performer's features with the explainer's reconstructed features resulted in negligible accuracy loss (e.g., an increase in error from 2.03% to 2.17% on Pascal-Part for VGG-16).
  • Signal Contribution: In VGG architectures, between 80% and 96% of the activation signals were successfully attributed to the interpretable part-based filters.
Explainer Filter 1 consistently isolates cat faces across various images, demonstrating successful part-based disentanglement.

Discussion and Limitations

While the explainer successfully disentangles features in traditional architectures like AlexNet and VGG, extending this to Residual Networks (ResNets) or DenseNets remains a challenge. The skip connections in these models create complex feature dependencies that are harder to isolate. Additionally, the reliance on pre-defined templates for filter loss may limit flexibility for highly non-rigid objects. Despite these constraints, the unsupervised distillation approach provides a powerful tool for making "black box" models more accountable and understandable.

Summary updated

BibTeX
@misc{zhang2018unsupervised,
  author = {Quanshi Zhang and Yu Yang and Yuchen Liu and Ying Nian Wu and Song-Chun Zhu},
  title = {{Unsupervised Learning of Neural Networks to Explain Neural Networks}},
  year = {2018},
  eprint = {1805.07468},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.07468},
}
Figure