Interpretable Neuron Structuring with Graph Spectral Regularization

Alexander Tong, David van Dijk, Jay S. Stanley Iii, Matthew Amodio, Kristina Yim, Rebecca Muhle, James Noonan, Guy Wolf, Smita Krishnaswamy

Abstract

Artificial Neural Networks (ANNs) are often criticized as "black boxes" due to the arbitrary organization of their hidden layers. This paper introduces Graph Spectral Regularization (GSR), a biologically inspired method to organize hidden layer activations. By applying a Laplacian smoothing penalty, GSR forces neurons to adopt a structured, spatial organization similar to biological brain maps. Our results demonstrate that GSR enables high levels of interpretability and feature visualization across diverse datasets—including MNIST and single-cell biological data—while maintaining competitive predictive performance.

Introduction

In standard dense neural networks, the order of neurons within a hidden layer is mathematically arbitrary. Shuffling the neurons does not change the network's output, but it makes the internal representations nearly impossible for humans to interpret. In contrast, biological brains exhibit high levels of spatial organization, where specific cortical regions are dedicated to specific tasks.

To bridge this gap, we propose Graph Spectral Regularization (GSR). By encouraging neighboring neurons on a predefined or learned graph to have similar activations, we can induce a spatial structure that allows researchers to visualize how a network "thinks."

Methodology: Graph Spectral Regularization

The core of GSR is the addition of a "Laplacian smoothing" penalty to the standard loss function. Mathematically, we introduce the term $z^T L z$, where $z$ is the vector of neuron activations and $L$ is the graph Laplacian. This penalty is minimized when "neighboring" neurons on the graph have similar activation values.

Comparison of activation maps with and without Graph Spectral Regularization. GSR produces smooth, spatially coherent regions compared to the noisy activations of unregularized layers.

Fixed vs. Learned Structures

  • Fixed Structure: Neurons are mapped to a static graph, such as an 8x8 grid. This is ideal for creating human-readable "feature maps."
  • Learned Structure: For data with unknown relationships, we use an iterative algorithm. The network first trains normally, identifies neurons that naturally co-activate, and then re-trains using a graph built from these co-activation patterns to reinforce the discovered structure.

Experimental Results

MNIST and "Brain Maps"

When applied to the MNIST handwritten digit dataset using a grid-based graph, the network naturally developed "receptive fields." Specific areas of the grid became responsible for specific digits (e.g., the top-left for '6', the bottom-right for '2').

One of the most powerful aspects of this organization is its ability to explain model errors. For instance, when the network misclassified a "9" as a "7," the visualization showed activations shifting into the region of the grid typically reserved for the digit "7," providing a clear visual explanation for the failure mode.

MNIST input images and their corresponding grid embeddings. The embedding maps show how specific regions of the neuron grid activate for different digits and provide visual evidence for misclassifications (e.g., the 9-as-7 error).

Biological Discovery and Performance

GSR was also validated on high-dimensional biological data, such as single-cell RNA-sequencing from the developing mouse cortex. In these tasks, GSR successfully grouped genes into distinct components corresponding to specific cell types and developmental stages.

Crucially, this interpretability does not come at the cost of performance. On MNIST, the GSR-regularized model achieved 98.0% test accuracy, matching standard L1/L2 regularization methods. Furthermore, the computational overhead is minimal, adding only approximately 33 ms per training step compared to unregularized models.

Conclusion

Graph Spectral Regularization provides a robust framework for organizing the internal representations of neural networks. By mimicking the spatial organization of biological systems, GSR transforms the "bag of features" in hidden layers into interpretable maps. This approach not only aids in model debugging and error analysis but also facilitates discovery in complex domains like biology where hierarchical relationships are paramount.

Summary updated

BibTeX
@inproceedings{tong2020interpretable,
  author = {Alexander Tong and David van Dijk and Jay S. Stanley III and Matthew Amodio and Kristina Yim and Rebecca Muhle and James Noonan and Guy Wolf and Smita Krishnaswamy},
  title = {{Interpretable Neuron Structuring with Graph Spectral Regularization}},
  booktitle = {IDA},
  year = {2020},
  doi = {10.1007/978-3-030-44584-3\_40},
}
Figure