NeuroCartography: Scalable Automatic Visual Summarization of Concepts in Deep Neural Networks

Haekyu Park, Nilaksh Das, Rahul Duggal, Austin P. Wright, Omar Shaikh, Fred Hohman, Duen Horng Polo Chau

Deep Neural Networks (DNNs) are often criticized as "black boxes"—we know they work, but we don't always know how they make their decisions. While we can visualize what individual neurons respond to, this "neuron-level" view often misses the forest for the trees. Concepts in DNNs are typically distributed across many neurons, and understanding how these collective representations interact is a massive challenge.

Enter NeuroCartography, a new interactive system designed to scalably summarize and visualize the internal concepts learned by deep networks.

TL;DR

NeuroCartography is an interactive visualization system that automatically discovers and summarizes semantically coherent "concepts" within deep neural networks. By grouping neurons into clusters and mapping their relationships in a 2D embedding space, it allows researchers to explore how low-level features combine into high-level predictions across massive datasets like ImageNet.

The NeuroCartography interface provides a multi-view overview of a model's internal concepts, from global projections to interactive concept cascades.

What Problem Does This Paper Address?

Existing research on model interpretability often focuses on individual neurons. However, a single neuron might only capture a tiny fragment of a concept, or conversely, one neuron might respond to multiple unrelated things (poly-semanticity). To truly understand a model, we need to see how groups of neurons work together.

The challenge is scale: a modern network has tens of thousands of neurons. Comparing every pair of neurons to find relationships is computationally expensive ($O(N^2)$ complexity). NeuroCartography tackles this by introducing scalable techniques to group and relate neurons in linear time, making it possible to analyze large-scale models and datasets.

Methods

The authors introduce two core techniques to make concept summarization both meaningful and scalable:

  1. Neuron Clustering: Instead of a naive comparison, the system uses Min-Hashing and Locality-Sensitive Hashing (LSH) to group neurons with similar activation patterns. This identifies groups of neurons that detect the same concept, such as "dog faces" of different breeds, in linear time relative to the number of neurons. NeuroCartography groups neurons (like 460 and 483) that show high activation on similar image regions.

  2. Neuron Embedding: To capture relationships between different concepts (e.g., "dog face" and "dog tail"), the system learns vector representations for neurons based on how often they co-occur across images. These embeddings are projected into a 2D Neuron Projection View using UMAP, placing semantically related concepts closer together. The Neuron Projection View summarizes all neurons' concepts, placing related ones (like different bird features) in close proximity.

  3. Concept Cascades: A novel interactive mode allows users to manually "trigger" a concept cluster and see its downstream effects. This helps visualize how low-level features (like "furry texture") cascade into higher-level concepts (like "dog face") and eventually the final class prediction. Users can toggle 'Concept Cascade' mode to explore how activating one neuron group triggers others in subsequent layers.

NeuroCartography groups neurons (like 460 and 483) that show high activation on similar image regions.
The Neuron Projection View summarizes all neurons' concepts, placing related ones (like different bird features) in close proximity.
Users can toggle 'Concept Cascade' mode to explore how activating one neuron group triggers others in subsequent layers.

Datasets

The system was primarily evaluated using the ImageNet dataset (1.2 million images) and the InceptionV1 model. To validate the interpretability of the results, the authors conducted a large-scale human evaluation using Amazon Mechanical Turk, collecting over 3,300 judgments from 244 unique workers.

Key Insights and Ideas

  • Scalability is the Enabler: By moving from quadratic to linear time complexity, the authors demonstrated that it's possible to summarize the entire internal state of a massive model like InceptionV1 on ImageNet in under 24 hours.
  • The "Watermark" Discovery: One surprising "aha moment" was the discovery of "watermark" neurons. Because watermarks appear across many different types of images, these neurons have unique co-activation patterns. NeuroCartography's embedding space automatically isolated these neurons, placing them far away from content-related concepts.
  • Backbone Concept Pathways: The system can automatically reveal "backbone" pathways—sequences of concepts that are fundamental for predicting certain classes. For example, it can show how generic "dog face" concepts in early layers evolve into specific "furry face" concepts for a Maltese dog in later layers.
  • Human-Meaningful Clusters: The study showed that automated clustering isn't just a mathematical exercise; the resulting groups are highly coherent to humans, often matching the quality of manually curated sets.

Key Results

  • High Interpretability: In a "find the intruder" task, human evaluators found the automated clusters nearly as coherent as hand-picked ones, achieving an AUC of 0.91 (compared to 0.97 for hand-picked and 0.50 for random).
  • Label Cohesion: When users were asked to label the discovered clusters, their descriptions showed significant semantic consistency (0.51 similarity vs. a 0.30 baseline), proving the clusters represent stable, recognizable concepts.
  • Efficiency: The system runs in modern web browsers and is open-sourced, making these complex interpretability tools accessible to the broader research community.

Limitations and Future Work

  • Poly-semantic Neurons: The current system doesn't "split" neurons that respond to multiple unrelated concepts. The authors identify "dissecting" these multi-faceted neurons as a key future direction.
  • Manual Labeling: While the discovery of clusters is automatic, a human still needs to provide the final label (e.g., "this cluster is 'dog ears'"). Integrating automated labeling via vision-language models is a logical next step.
  • Architecture Generalization: While the techniques are general, the current implementation is tailored to Inception-style architectures. Extending this to ResNets (with skip connections) or Transformers would broaden its impact.

Summary updated

BibTeX
@article{park2022neurocartography,
  author = {Haekyu Park and Nilaksh Das and Rahul Duggal and Austin P. Wright and Omar Shaikh and Fred Hohman and Duen Horng Polo Chau},
  title = {{NeuroCartography: Scalable Automatic Visual Summarization of Concepts in Deep Neural Networks}},
  journal = {IEEE Trans. Vis. Comput. Graph.},
  year = {2022},
  url = {https://openreview.net/forum?id=Wma_kkyGdFa},
}

Loading related content...

Figure