NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ActiVis: Visual Exploration of Industry-Scale Deep Neural Network Models

Minsuk Kahng, Pierre Y. Andrews, Aditya Kalro, Duen Horng Chau · OpenReview

TL;DR

ActiVis is a visual analytics system designed to help engineers and researchers interpret industry-scale deep neural networks (DNNs). By unifying instance-level and subset-level analysis within a coordinated interface, it allows users to explore complex model architectures and neuron activations across massive datasets, such as those used at Facebook.

What Problem Does This Paper Address?

Deep learning models are notoriously "black boxes." While they achieve state-of-the-art accuracy, understanding why they make certain predictions is difficult. Existing visualization tools often fall short in industrial settings for three main reasons:

  1. Scale: They cannot handle datasets with billions of rows or thousands of features.
  2. Complexity: They assume simple, linear architectures, whereas production models are often deep, wide, and non-linear.
  3. Data Diversity: Most tools focus on images, but industry models frequently process text, numerical, and categorical data simultaneously.

The authors sought to bridge the gap between high-level model architecture and low-level neuron activations, providing a tool that scales to the needs of a large-scale machine learning platform like Facebook’s FBLearner Flow.

Methods

ActiVis was developed through participatory design sessions with over 15 Facebook researchers and engineers. The resulting system features three tightly integrated views:

  • Computation Graph Overview: A bipartite graph representing the model's architecture (operators and variables). Users can navigate this graph to select specific layers or "nodes" for deeper inspection.
  • Neuron Activation Matrix: This novel view displays neuron activations as a matrix where rows represent either individual instances or user-defined subsets (e.g., all instances of a specific class). Darker circles indicate stronger activations, allowing for direct comparison between a misclassified instance and the "typical" pattern for its class.
  • Projected View (t-SNE): A 2-D projection of high-dimensional activations that helps users see how instances cluster. Hovering over a subset in the matrix highlights its members in the t-SNE plot.

To achieve industrial scale, the authors implemented a scalable matrix multiplication approach ($S^T A$) to compute subset averages, ensuring the computational complexity remains linear relative to the number of data instances.

Fig. 1. ACTIVIS integrates several coordinated views to support exploration of complex deep neural network models, at both instance- and subset-level. 1. Our user Susan starts exploring the model architecture, through its computation graph overview (at A). Selecting a data node (in yellow) displays its neuron activations (at B). 2. The neuron activation matrix view shows the activations for instances and instance subsets; the projected view displays the 2-D projection of instance activations. 3. From the instance selection panel (at C), she explores individual instances and their classification results. 4. Adding instances to the matrix view enables comparison of activation patterns across instances, subsets, and classes, revealing causes for misclassification.

Datasets

The paper demonstrates ActiVis using:

  • TREC Question Classification: A public dataset of 5,500 questions labeled into six categories (e.g., Location, Numeric). This is used for the paper's illustrative word-level CNN scenario.
  • Facebook Internal Ranking Models: Large-scale production models involving billions of data points and thousands of features, used to validate the system's scalability and utility in real-world engineering workflows.

Key Insights and Ideas

  • Unifying Instances and Subsets: The most powerful feature is the ability to place a single instance (like a misclassified question) directly alongside a subset (like the average of all correctly classified questions in that category). This immediately reveals if the model is "confused" or if the instance is a genuine outlier.
  • The Graph as a Navigation Menu: In complex models, users don't want to see every activation at once. The computation graph acts as a crucial entry point, letting engineers drill down into specific components (like a convolution layer) they suspect are problematic.
  • Visualizing the "Learning" Process: By comparing activations across different layers, users can visually observe how the model gradually learns to cluster data as it moves from input to output.
  • Flexible Subset Definition: Industry users need to define cohorts on the fly—for example, "all questions starting with 'What is'." ActiVis allows this flexibility, which is essential for debugging specific linguistic or feature-based patterns.

Key Results

ActiVis has been successfully deployed on Facebook’s internal machine learning platform.

  • Scalability: The system successfully handles datasets with millions of training instances and scales to the billion-scale requirements of FBLearner Flow.
  • Qualitative Impact: Case studies showed that engineers used ActiVis to identify "dead" neurons (those that never activate), discover that certain words were not triggering the expected activations, and improve model parameters based on visual evidence of misclassification patterns.

Limitations and Future Work

  • Gradients: The current version focuses on activations (forward flow). The authors suggest adding gradient visualization to show backward flow, which would help identify exactly where a model is failing to learn.
  • Real-time Subsetting: Currently, defining new subsets requires a loading phase. The team plans to integrate dynamic filtering to make this process instantaneous.
  • Automatic Discovery: Instead of relying on users to define subsets, future versions could use heuristics to automatically suggest "interesting" subsets where the model is performing poorly or inconsistently.
  • Input-Dependent Models: The authors aim to extend support to models where the number of neurons changes based on the input (e.g., certain types of RNNs).

Summary updated

BibTeX
@article{kahng2017activis,
  author = {Minsuk Kahng and Pierre Y. Andrews and Aditya Kalro and Duen Horng Chau},
  title = {{ActiVis: Visual Exploration of Industry-Scale Deep Neural Network Models}},
  journal = {IEEE Trans. Vis. Comput. Graph.},
  year = {2017},
  doi = {10.1109/tvcg.2017.2744718},
}
Figure