Interpreting CNN Knowledge via an Explanatory Graph

Quanshi Zhang, Ruiming Cao, Feng Shi, Ying Nian Wu, Song-Chun Zhu

Convolutional Neural Networks (CNNs) have achieved remarkable success in computer vision, yet they are often criticized as "black boxes." While we understand that these networks learn to recognize objects through hierarchical feature extraction, the specific organization of knowledge within their hidden layers remains largely opaque. This research introduces a novel explanatory graph framework designed to disentangle the complex signals within CNN filters into distinct, semantically meaningful patterns.

The Interpretability Challenge

A fundamental hurdle in CNN interpretability is that individual filters in a convolutional layer rarely represent a single, coherent object part. Instead, a single filter often acts as a "chaotic mixture" of multiple patterns. For instance, one filter might be activated by both the head and the neck of a horse. Standard visualization techniques typically highlight only the strongest activation, leaving the secondary patterns hidden. Furthermore, these activations are frequently "noisy," firing on irrelevant background textures or inconsistent regions.

Overview of the explanatory graph framework: disentangling feature maps into semantically consistent part patterns.

The Explanatory Graph Framework

The proposed method transforms this chaotic internal state into a structured, global roadmap of CNN knowledge. The framework is built upon four key pillars:

  1. Nodes as Part Patterns: Rather than treating an entire filter as a single unit, the graph disentangles each filter into multiple nodes. Each node represents a specific, consistent object part, such as a "horse ear" or a "horse nose."
  2. Edges as Hierarchical Relationships: Edges between nodes in adjacent layers encode co-activation (the likelihood of parts appearing together) and spatial constraints (the typical relative positioning of parts).
  3. Unsupervised Mining via EM: The graph is learned using an Expectation-Maximization (EM) approach that requires no manual part labels. It identifies activation peaks that maintain stable spatial relationships across thousands of images. Peaks that are spatially consistent are retained as "parts," while erratic activations are discarded as noise.
  4. Top-Down Learning: The graph is constructed starting from the highest convolutional layers—representing large-scale parts—and works downward to lower layers representing simpler shapes, using the high-level structure to guide the discovery of lower-level components.
The hierarchical structure of the explanatory graph, showing how parts and subparts are linked across layers while filtering out noisy activations.

Experimental Evaluation

The researchers evaluated the framework using three major benchmarks: the ILSVRC 2013 DET Animal-Part dataset (37 categories), CUB200-2011 (200 bird species), and the Pascal VOC Part dataset. Crucially, while these datasets contain part annotations, they were used only for evaluation; the graph itself was learned in an unsupervised manner using only object bounding boxes.

Key Results and Impact

The explanatory graph significantly outperformed state-of-the-art baselines in both clarity and utility:

  • Semantic Purity: Human studies revealed that graph nodes are much "purer" than raw filters. In a VGG-16 network, graph nodes represented a consistent part 95.4% of the time, compared to just 19.8% for raw filter maps.
  • Spatial Stability: The location instability (variance in part detection relative to landmarks) was significantly lower for graph nodes (0.0638) than for raw filters (0.1398).
  • Part Localization: On the CUB200-2011 bird dataset, the graph-based method achieved a normalized localization distance of 0.0862, substantially outperforming supervised baselines like Fast-RCNN (0.4131).

Conclusion

By shifting the focus from mere visualization to active disentanglement, the explanatory graph provides a powerful tool for understanding CNNs. The research demonstrates that geometric consistency across a large dataset serves as a robust proxy for semantic meaning, allowing for the discovery of highly transferable part patterns without the need for exhaustive human labeling. While the current framework is a "rough approximation" and faces computational challenges with extremely deep architectures, it represents a significant step toward making deep learning models more transparent and accountable.

Summary updated

BibTeX
@inproceedings{zhang2018interpreting,
  author = {Quanshi Zhang and Ruiming Cao and Feng Shi and Ying Nian Wu and Song-Chun Zhu},
  title = {{Interpreting CNN Knowledge via an Explanatory Graph}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11819},
}
Figure