Selectivity considered harmful: evaluating the causal impact of class selectivity in DNNs

Matthew L. Leavitt, Ari S. Morcos

Introduction

In the field of deep neural network (DNN) interpretability, researchers often search for "grandmother cells"—individual neurons that fire specifically in response to a single concept, such as a "cat" or a "truck." This property, known as class selectivity, is frequently used as a proxy for model understanding. However, most evidence for the importance of selectivity has been correlational: we know trained networks possess selective neurons, but we do not know if they require them.

This paper moves from correlation to causation by asking: if we force a network to have more or less selectivity, how does its performance change? Contrary to popular belief, the authors demonstrate that class selectivity is neither necessary nor sufficient for high performance. In fact, reducing selectivity can improve generalization, while forcing it consistently harms the model.

Methodology

To test the causal impact of selectivity, the researchers introduced a differentiable selectivity regularizer added to the standard cross-entropy loss function. This allowed them to control selectivity with a single scaling factor ($\alpha$):

  1. Selectivity Index (SI): Selectivity for a unit is defined by the difference between its response to its preferred class versus all other classes, normalized between 0 and 1.
  2. The Regularizer: By adjusting $\alpha$, the researchers could either reward selectivity (positive $\alpha$) or penalize it (negative $\alpha$).
  3. Canonical Correlation Analysis (CCA): To ensure the network wasn't simply "hiding" selectivity through representation rotation (making concepts accessible via linear combinations of neurons), the authors used CCA to confirm that information was truly suppressed at the population level.
Impact of selectivity regularization on test accuracy and mean class selectivity. Figure (c) shows that reducing mean selectivity from the baseline (0.35) to approximately 0.22 (a 1.6x reduction) results in a significant accuracy boost.

Key Insights and Results

The Benefit of Reducing Selectivity

The most striking finding is that reducing selectivity often improves performance. In experiments with ResNet18 on Tiny ImageNet, reducing class selectivity by a factor of 1.6 led to a test accuracy increase of over 2%. This suggests that the levels of selectivity naturally learned by standard models may actually hinder optimal generalization.

Robustness vs. Fragility

Models proved remarkably robust to the loss of selectivity. On CIFAR10 with ResNet20, mean selectivity could be reduced by a factor of 2.5 with zero impact on accuracy. Even reducing it by a factor of 20 resulted in only a minor (~2%) performance drop. Conversely, models were incredibly fragile when forced to increase selectivity; even small increases led to catastrophic drops in accuracy, sometimes falling to near-chance levels.

Distributed Representations

The authors argue that DNNs function best when representations are distributed across many neurons. Forcing information into single, highly selective units appears to make the network less efficient and less robust. The levels of selectivity observed in standard training seem to be at the upper limit of what the network can tolerate before performance degrades.

CCA and Class Selectivity Index analysis. Figure (c) confirms that the regularizer effectively reduces selectivity (Observed) below the theoretical upper bound of an optimized projection, proving information is suppressed rather than just rotated.

Conclusion and Future Work

These findings highlight a potential conflict between model performance and interpretability. While reducing selectivity improves accuracy, it makes models harder for humans to "read." This suggests that the "grandmother cell" approach to interpretability may be fundamentally at odds with how DNNs achieve peak performance.

Future work is needed to determine if these trends hold for other architectures like Transformers or Large Language Models, and whether more complex, naturalistic datasets require higher baseline selectivity for effective feature extraction.

Summary updated

BibTeX
@inproceedings{leavitt2021selectivity,
  author = {Matthew L. Leavitt and Ari S. Morcos},
  title = {{Selectivity considered harmful: evaluating the causal impact of class selectivity in DNNs}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=8nl0k08uMi},
}
Figure