Skip to main content
QUICK REVIEW

[Paper Review] Detecting Modularity in Deep Neural Networks.

Shlomi Hod, Stephen Casper|arXiv (Cornell University)|Oct 17, 2021
Neural Networks and ApplicationsComputer Science35 references5 citations
TL;DR

This paper proposes a framework to detect modularity in deep neural networks by quantifying neuron group importance and coherence through statistical analysis of weight and activation-based graph representations. Spectral clustering of these graphs reveals neuron partitions that are both functionally important and consistently responsive to input features, demonstrating inherent modularity even without runtime data.

ABSTRACT

A neural network is modular to the extent that parts of its computational graph (i.e. structure) can be represented as performing some comprehensible subtask relevant to the overall task (i.e. functionality). Are modern deep neural networks modular? How can this be quantified? In this paper, we consider the problem of assessing the modularity exhibited by a partitioning of a network's neurons. We propose two proxies for this: importance, which reflects how crucial sets of neurons are to network performance; and coherence, which reflects how consistently their neurons associate with features of the inputs. To measure these proxies, we develop a set of statistical methods based on techniques conventionally used to interpret individual neurons. We apply the proxies to partitionings generated by spectrally clustering a graph representation of the network's neurons with edges determined either by network weights or correlations of activations. We show that these partitionings, even ones based only on weights (i.e. strictly from non-runtime analysis), reveal groups of neurons that are important and coherent. These results suggest that graph-based partitioning can reveal modularity and help us understand how deep neural networks function.

Motivation & Objective

  • To determine whether modern deep neural networks exhibit modularity in their internal structure.
  • To quantify modularity by assessing how crucial and consistently responsive neuron groups are to input features.
  • To develop a non-runtime analysis method that identifies meaningful subtasks within neural network architectures.
  • To evaluate whether graph-based partitioning of neurons using weights or activation correlations reveals functionally coherent and important groups.

Proposed method

  • Construct a computational graph of neurons where edges are defined by either network weights or activation correlations.
  • Apply spectral clustering to partition the graph into groups of neurons based on structural similarity.
  • Measure importance of each neuron group using statistical techniques adapted from individual neuron interpretation methods.
  • Assess coherence by evaluating how consistently neurons in a group respond to specific input features.
  • Use non-runtime analysis (only weights) to evaluate modularity, enabling interpretation without inference data.
  • Combine importance and coherence metrics to identify neuron groups that perform comprehensible subtasks.

Experimental results

Research questions

  • RQ1To what extent are modern deep neural networks modular in their internal structure?
  • RQ2Can modularity be detected using only non-runtime information such as network weights?
  • RQ3Do neuron groups identified via graph partitioning exhibit functional coherence and importance?
  • RQ4How do weight-based and activation-based graph representations compare in revealing modularity?

Key findings

  • Neuron groups identified through spectral clustering of weight-based graphs exhibit significant importance to overall network performance.
  • These same groups show high coherence, indicating consistent association with specific input features across samples.
  • Even without activation data, weight-based partitionings reveal functionally meaningful and coherent neuron clusters.
  • The combination of importance and coherence identifies subtasks that are interpretable and relevant to the overall network objective.

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.