Skip to main content
QUICK REVIEW

[Paper Review] Neural Networks are Surprisingly Modular

Daniel Filan, Shlomi Hod|arXiv (Cornell University)|Mar 10, 2020
Neural Networks and ApplicationsComputer Science10 citations
TL;DR

This paper introduces a graph clustering-based measure of modularity in multi-layer perceptrons (MLPs), showing that trained and pruned MLPs exhibit significantly higher modularity than random networks, especially when trained with dropout. The findings suggest that neural network weights develop structured, modular organization, enhancing interpretability.

ABSTRACT

The learned weights of a neural network are often considered devoid of scrutable internal structure. To discern structure in these weights, we introduce a measurable notion of modularity for multi-layer perceptrons (MLPs), and investigate the modular structure of MLPs trained on datasets of small images. Our notion of modularity comes from the graph clustering literature: a module is a set of neurons with strong internal connectivity but weak external connectivity. We find that training and weight pruning produces MLPs that are more modular than randomly initialized ones, and often significantly more modular than random MLPs with the same (sparse) distribution of weights. Interestingly, they are much more modular when trained with dropout. We also present exploratory analyses of the importance of different modules for performance and how modules depend on each other. Understanding the modular structure of neural networks, when such structure exists, will hopefully render their inner workings more interpretable to engineers. Note that this paper has been superceded by Clusterability in Neural Networks, arXiv:2103.03386!

Motivation & Objective

  • To develop a measurable notion of modularity in neural network weights that captures internal structural organization.
  • To investigate whether trained neural networks exhibit modular organization in their learned weights.
  • To compare the modularity of trained MLPs against randomly initialized and randomly weighted networks with similar sparsity.
  • To explore the impact of training techniques like dropout on the emergence of modularity.
  • To analyze the functional importance and interdependence of identified modules for network performance.

Proposed method

  • Defining modularity using graph clustering: neurons are nodes, and weights between neurons form edges.
  • Measuring modularity as the strength of internal connectivity within neuron groups (modules) versus external connectivity.
  • Applying this measure to MLPs trained on small image datasets to assess structural organization.
  • Comparing modularity across different network configurations: randomly initialized, trained, pruned, and randomly weighted MLPs with same sparsity.
  • Using dropout during training to evaluate its effect on modularity emergence.
  • Performing exploratory analyses on module importance and interdependence through ablation and connectivity analysis.

Experimental results

Research questions

  • RQ1Do trained neural networks develop structured, modular organization in their learned weights?
  • RQ2How does modularity in trained MLPs compare to that in randomly initialized or randomly weighted networks with similar sparsity?
  • RQ3Does the use of dropout during training enhance the modularity of neural network weights?
  • RQ4Which modules contribute most to network performance, and how do they depend on one another?
  • RQ5Can the modular structure of a neural network be used to improve interpretability of its internal workings?

Key findings

  • Trained and pruned MLPs exhibit significantly higher modularity than randomly initialized networks.
  • The modularity of trained MLPs exceeds that of random MLPs with the same sparse weight distribution, indicating structured learning.
  • Dropout during training leads to substantially higher modularity compared to training without dropout.
  • Modules identified in the network show varying degrees of importance, with some contributing more to performance than others.
  • Modules demonstrate interdependence, suggesting that performance relies on coordinated interactions between distinct functional units.
  • The results suggest that neural network weights are not randomly structured but develop a form of internal organization that is interpretable and measurable.

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.