Interpretable CNNs for Object Classification

Quanshi Zhang, Xin Wang, Ying Wu, Huilin Zhou, Song‐Chun Zhu

TL;DR

This paper introduces a novel method to train Convolutional Neural Networks (CNNs) that explicitly learn to represent specific object parts with individual filters, making the network's decision-making process more transparent. By introducing a new "interpretable conv-layer" and a corresponding filter loss, the authors achieve significantly more semantically meaningful filters without requiring additional part-level annotations.

What Problem Does This Paper Address?

Deep Convolutional Neural Networks (CNNs) have achieved remarkable success in tasks like object classification, but they are often treated as "black boxes." Understanding why a CNN makes a particular prediction is challenging because individual filters in high convolutional layers typically learn to represent a mixture of features rather than distinct, interpretable concepts. While existing methods focus on visualizing or explaining pre-trained networks, this paper tackles the problem of learning inherently interpretable representations from the ground up, specifically aiming for filters that encode object parts. This interpretability is crucial for building trust in AI systems, especially in critical applications where understanding the reasoning behind a prediction is paramount.

Methods

The core of the proposed method is the introduction of an "interpretable conv-layer." This layer is designed to ensure that each filter within it learns to represent a specific object part of a particular category. This is achieved through a novel "filter loss" that is added to the standard classification loss.

The filter loss is formulated to encourage two key properties:

  1. Low inter-category entropy: This ensures that a filter is primarily activated by images belonging to its assigned category and remains inactive for others.
  2. Low spatial entropy: This forces the filter's activation to be concentrated in a single, specific region of the feature map, corresponding to the object part it represents.

To further refine the learned representations, a "mask layer" is introduced. This layer uses the location of the strongest activation in a feature map to select a specific "template" that guides the filter's response. This process helps to isolate and focus on the most relevant part of the activation. Crucially, this method does not require any explicit part annotations during training; it uses the same standard image-level labels as traditional CNNs.

Datasets

The authors evaluated their method on several benchmark datasets that provide object part annotations, which were used for evaluation and not for training the interpretable filters:

  • ILSVRC 2013 DET Animal-Part dataset: Contains bounding boxes for objects and their parts.
  • CUB-200-2011 dataset: Includes bird images with annotations for 15 bird landmarks.
  • VOC Part dataset: Provides ground-truth part segmentations for 107 object landmarks across six animal categories.

Key Insights and Ideas

  • Learning interpretable filters without explicit part annotations: This is a significant contribution, as it bypasses the need for costly and time-consuming manual annotation of object parts, making the approach more scalable.
  • Filters represent specific object parts, not mixtures: The method successfully trains filters that consistently activate for the same object part across different images, unlike traditional CNNs where filters often capture a combination of features.
  • Enhanced transparency for CNN decision-making: By having filters represent distinct object parts, it becomes easier to understand which parts of an object contribute to the final classification decision.
  • Broad applicability: The proposed interpretable conv-layer and filter loss can be integrated into various existing CNN architectures (AlexNet, VGG-M, VGG-S, VGG-16) without fundamentally altering the network's structure or classification loss.

Key Results

  • Improved Semantic Clarity: Experiments showed that interpretable filters were significantly more semantically meaningful and consistently represented the same object part across different images compared to filters in traditional CNNs. This was quantitatively measured using "part interpretability" and "location instability" metrics.
  • Higher Part Interpretability: Tables 1, 2, and 3 demonstrate that interpretable CNNs consistently achieved higher part interpretability scores across various datasets and network architectures. For instance, in Table 1, interpretable VGG-16 filters achieved an average part interpretability of 0.795, significantly higher than the ordinary VGG-16's 0.495.
  • Lower Location Instability: Interpretable filters also exhibited lower location instability, meaning their learned part representations were more stable across different images. Table 3 shows interpretable filters achieving scores around 0.07-0.09, while ordinary filters were around 0.11-0.15.
  • Comparable Classification Accuracy: While the primary goal is interpretability, the proposed method generally maintained competitive classification accuracy, especially in multi-category classification tasks (Table 7). In some cases, interpretable CNNs even outperformed baseline CNNs.
  • Higher Semantic Purity: Filters learned with the filter loss showed higher semantic purity, indicating that their activations were more concentrated on the specific object part they represented (Tables 10 and 11).

Limitations and Future Work

  • Multi-category Classification Drawbacks: In multi-category classification, filters are assigned to specific categories. For a large number of categories, this might require a very large number of filters, potentially impacting performance.
  • Single Object Assumption: The current method assumes that each input image contains a single object, limiting its applicability to scenes with multiple objects.
  • High Conv-Layer Focus: The filter loss is primarily designed for high convolutional layers that tend to capture object parts, and it is less suitable for low convolutional layers that typically represent textures.
  • Textural Pattern Limitation: The method is not designed to encode textural patterns.

The authors suggest that future work could explore extending the method to handle multi-object scenes and investigate ways to incorporate textural information. They also acknowledge that the evaluation of filter interpretability remains an open research problem.

Summary updated

BibTeX
@article{zhang2020interpretable,
  author = {Quanshi Zhang and Xin Wang and Ying Wu and Huilin Zhou and Song‐Chun Zhu},
  title = {{Interpretable CNNs for Object Classification}},
  journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year = {2020},
  doi = {10.1109/tpami.2020.2982882},
}
Figure