Explaining Classifiers by Constructing Familiar Concepts

Johannes Schneider, Michail Vlachos · DOI

Introduction

Deep neural networks are notoriously difficult to interpret. While methods like saliency maps (e.g., GradCAM) highlight where a model is looking, they fail to explain what the model actually perceives or which concepts it has discarded. For instance, a model might focus on a bird, but is it identifying the bird based on its specific feather pattern or just its general silhouette?

Existing feature visualization techniques often produce abstract, psychedelic images that are difficult for humans to map to real-world concepts. This paper introduces ClaDec (CLAssifier-DECoder), an architecture designed to bridge this gap by reconstructing internal layer activations into "familiar concepts"—images that resemble the input domain.

Comparison of ClaDec with traditional explanation techniques like saliency maps and prototypical patches.

Methodology: ClaDec and RefAE

The authors propose a dual-model approach to isolate the features most critical for decision-making:

  1. ClaDec (The Explainer): A pre-trained, "frozen" classifier is attached to a decoder at a specific layer. This decoder is trained to reconstruct the original input image using only the activations from that layer. By incorporating a "classification loss" during decoder training, the system balances fidelity (how much the reconstruction aids classification) with comprehensibility (how much it looks like a real image).
  2. RefAE (The Reference): To ensure that blurriness in the reconstruction is due to the classifier's "blindness" rather than a poor decoder, a standard Auto-Encoder (RefAE) is trained as a baseline.

By comparing the ClaDec reconstruction to the RefAE reconstruction and the original image, researchers can perform a "visual subtraction." If RefAE reconstructs a specific texture (like a zipper) but ClaDec does not, it demonstrates that the classifier has discarded that concept.

The ClaDec architecture vs. the RefAE baseline for visual comparison.

Key Insights

Information Bottleneck and Prototypicality

The paper visually confirms the "information bottleneck" theory: as data moves deeper into a network, non-essential information is discarded. Reconstructions from deeper layers become increasingly "prototypical." For example, a specific palm tree in the input might be reconstructed as a generic, "average" palm tree because the model only retains the category-level information.

Fidelity vs. Accuracy

A key finding is that reconstructions appearing "worse" to a human (more blurry or distorted) can actually be "better" for a classifier. Classifiers trained on ClaDec reconstructions often outperformed those trained on "cleaner" RefAE reconstructions—showing a ~6% improvement in some CIFAR-100 layers. This suggests ClaDec successfully isolates the features most relevant to the task.

Results and Evaluation

The researchers evaluated ClaDec using MNIST, Fashion-MNIST, and CIFAR-100.

  • User Study: In a study with 59 non-experts, 98% of participants successfully identified and described the concepts (e.g., texture, shading, shape) that the AI was maintaining or ignoring.
  • Occlusion Sensitivity: ClaDec proved more sensitive to "relevant" occlusions than GradCAM, particularly in VGG-style architectures, making it a robust tool for identifying critical input areas.

Limitations and Future Work

ClaDec requires a representative dataset to train the decoder; it cannot be applied to a single image "out of the box." Furthermore, reconstructions for complex datasets like CIFAR-100 can remain blurry. Future work may explore using Generative Adversarial Networks (GANs) or Diffusion Models to produce sharper reconstructions, provided they do not "hallucinate" details the classifier did not actually see.

Summary updated

Abstract

Interpreting a large number of neurons in deep learning is difficult. Our proposed `CLAssifier-DECoder' architecture (ClaDec) facilitates the understanding of the output of an arbitrary layer of neurons or subsets thereof. It uses a decoder that transforms the incomprehensible representation of the given neurons to a representation that is more similar to the domain a human is familiar with. In an image recognition problem, one can recognize what information (or concepts) a layer maintains by contrasting reconstructed images of ClaDec with those of a conventional auto-encoder(AE) serving as reference. An extension of ClaDec allows trading comprehensibility and fidelity. We evaluate our approach for image classification using convolutional neural networks. We show that reconstructed visualizations using encodings from a classifier capture more relevant classification information than conventional AEs. This holds although AEs contain more information on the original input. Our user study highlights that even non-experts can identify a diverse set of concepts contained in images that are relevant (or irrelevant) for the classifier. We also compare against saliency based methods that focus on pixel relevance rather than concepts. We show that ClaDec tends to highlight more relevant input areas to classification though outcomes depend on classifier architecture. Code is at \url{https://github.com/JohnTailor/ClaDec}
BibTeX
@article{schneider2023explaining,
  author = {Johannes Schneider and Michail Vlachos},
  title = {{Explaining Classifiers by Constructing Familiar Concepts}},
  journal = {Machine Learning},
  year = {2023},
  doi = {10.1007/s10994-022-06157-0},
}
Figure