Skip to main content
QUICK REVIEW

[Paper Review] Towards Better Analysis of Deep Convolutional Neural Networks

Mengchen Liu, Jiaxin Shi|arXiv (Cornell University)|Apr 24, 2016
Visual Attention and Saliency DetectionComputer Science50 references9 citations
TL;DR

This paper introduces CNNVis, a visual analytics system that models deep convolutional neural networks (CNNs) as directed acyclic graphs (DAGs) to enable experts to understand, diagnose, and refine CNNs through hybrid visualizations. By combining hierarchical rectangle packing, matrix reordering via the Held-Karp algorithm, and biclustering-based edge bundling, CNNVis reduces visual clutter and reveals neuron roles, feature patterns, and training issues—demonstrated by experts diagnosing weight stagnation and ReLU dying neuron problems, leading to successful model improvements with batch normalization.

ABSTRACT

Deep convolutional neural networks (CNNs) have achieved breakthrough performance in many pattern recognition tasks such as image classification. However, the development of high-quality deep models typically relies on a substantial amount of trial-and-error, as there is still no clear understanding of when and why a deep model works. In this paper, we present a visual analytics approach for better understanding, diagnosing, and refining deep CNNs. We formulate a deep CNN as a directed acyclic graph. Based on this formulation, a hybrid visualization is developed to disclose the multiple facets of each neuron and the interactions between them. In particular, we introduce a hierarchical rectangle packing algorithm and a matrix reordering algorithm to show the derived features of a neuron cluster. We also propose a biclustering-based edge bundling method to reduce visual clutter caused by a large number of connections between neurons. We evaluated our method on a set of CNNs and the results are generally favorable.

Motivation & Objective

  • To address the lack of interpretability in deep CNNs, which are often treated as 'black boxes' due to complex, non-linear interactions among millions of parameters.
  • To reduce the reliance on trial-and-error in CNN development by enabling systematic analysis of model structure, neuron behavior, and training dynamics.
  • To provide machine learning experts with an interactive tool that reveals hidden patterns in activations, weights, and connections to support model refinement.
  • To diagnose failed training cases by visualizing weight changes, activation sparsity, and connectivity patterns in real time.
  • To enable rapid model iteration by identifying redundant neurons, dead ReLU units, and structural inefficiencies through visual exploration.

Proposed method

  • Formulating a deep CNN as a directed acyclic graph (DAG), where nodes represent neurons and edges represent connections between them.
  • Applying hierarchical rectangle packing to visualize derived features of neuron clusters, revealing functional groupings.
  • Using a matrix reordering algorithm based on the Held-Karp dynamic programming approach to highlight cluster patterns in neuron activation matrices.
  • Implementing a biclustering-based edge bundling technique to reduce visual clutter from dense inter-layer connections.
  • Integrating interactive visualizations that allow experts to explore model states through multiple perspectives: structure, activation, weight changes, and connectivity.
  • Supporting online integration for future work by enabling real-time updates during training and comparison of representative snapshots.

Experimental results

Research questions

  • RQ1How can visual analytics techniques be used to improve the interpretability of deep CNNs and reduce reliance on trial-and-error in model development?
  • RQ2What visualization strategies effectively reveal the functional roles of neurons and their interactions in deep CNNs?
  • RQ3How can visual clutter from millions of connections in deep CNNs be reduced while preserving meaningful structural and functional insights?
  • RQ4Can visual analytics help experts diagnose and resolve common training failures such as vanishing gradients or dying ReLU units?
  • RQ5To what extent can visual insights from CNNVis lead to actionable model refinements that improve performance?

Key findings

  • Experts were able to diagnose a failed training process by observing minimal weight changes and identifying that most weights were negative, leading to zero gradients in ReLU units.
  • The visualization revealed that ReLU units in higher layers had zero activations due to consistently negative inputs, caused by predominantly negative weights in linear transformations.
  • After adding batch normalization layers before ReLU activations, the model achieved a test error of 9.43% on CIFAR-10, significantly improving convergence and performance.
  • Experts reported that CNNVis enabled faster diagnosis than traditional debugging methods, which required extensive code instrumentation and manual log inspection.
  • The hybrid visualization approach allowed experts to explore multiple perspectives—activations, weights, and connectivity—simultaneously, enhancing model understanding.
  • The system successfully reduced visual clutter in large CNNs through biclustering-based edge bundling and hierarchical packing, improving interpretability of complex structures.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.