Unsupervised learning by competing hidden units

Dmitry Krotov, John J. Hopfield

TL;DR

Dmitry Krotov and John Hopfield introduce a biologically plausible, unsupervised learning rule that trains neural network hidden units through local competition rather than global backpropagation. Their approach achieves performance on par with standard backpropagation on MNIST, proving that local, label-free rules can develop feature detectors just as effectively as traditional deep learning.

What Problem Does This Paper Address?

The "engine" of modern AI is backpropagation, but it has a major flaw: it is biologically impossible. In a brain, a synapse (the connection between neurons) only has access to "local" information—the activity of the two neurons it connects. Backpropagation, however, requires "non-local" information, such as labels from the environment and error signals calculated many layers away.

Furthermore, biological systems learn primarily through observation without explicit labels (unsupervised learning), whereas deep learning typically requires massive labeled datasets. Krotov and Hopfield set out to answer a fundamental question: Can we design a learning rule that is biologically plausible (local and unsupervised) yet powerful enough to compete with the state-of-the-art in artificial intelligence?

Methods

The authors propose a family of learning rules based on three core pillars:

  1. Local Synaptic Plasticity: Instead of calculating a global gradient, the change in a synapse's weight depends only on the activity of the pre-synaptic and post-synaptic neurons. This is a variation of Hebb’s Rule ("neurons that fire together, wire together").
  2. Global Inhibition (Competition): Within a hidden layer, neurons compete to respond to an input. When one neuron fires strongly, it inhibits its neighbors. This prevents all neurons from learning the same pattern and forces the layer to develop a diverse set of feature detectors.
  3. Lebesgue $p$-norm Normalization: The weights of each neuron are constrained to lie on the surface of a sphere defined by a $p$-norm (where $p \ge 2$). This mathematical trick ensures stability and allows the network to emphasize stronger connections over weaker ones, which is crucial for picking out distinct features in noisy data.

The training pipeline is a hybrid: the first layer is trained using this unsupervised "biological" rule. Once those weights are "frozen," a simple supervised classifier (like a perceptron) is trained on top using standard methods to map those features to labels.

Datasets

The model was evaluated on two classic benchmarks:

  • MNIST: A dataset of 60,000 handwritten digits.
  • CIFAR-10: A more complex dataset of 60,000 tiny color images across 10 categories (planes, cars, birds, etc.).

The authors emphasize that their method is permutation invariant, meaning it doesn't "know" about the spatial structure of pixels (unlike Convolutional Neural Networks), making the task harder.

Key Insights and Ideas

  • The Power of "Anti-Hebbian" Learning: The rule doesn't just strengthen connections for active neurons; it also includes a regime where synapses are weakened if the neuron's activity is below a certain threshold. This "push-pull" dynamic is what allows neurons to "carve out" specific niches in the feature space.
  • Competition Replaces Labels: In supervised learning, labels tell the network what to learn. Here, the lateral inhibition (competition) acts as a proxy. By forcing neurons to be different from one another, the network naturally discovers the underlying structure of the data.
  • Natural Feature Selection: Unlike backpropagation, which often develops noisy weights at the edges of images where there is no data, this biological rule learns weights that are zero in uninformative regions. This results in "cleaner" and more interpretable feature detectors.
  • The $p$-norm Hyperparameter: The authors found that $p=4$ was optimal for MNIST. Higher values of $p$ make the competition "sharper," effectively allowing the network to focus on more specific, non-overlapping features.

Key Results

  • MNIST Performance: The "biological" network achieved a test error of 1.52%. This is remarkably close to the 1.5% achieved by a standard network of the same size trained end-to-end with backpropagation. It significantly outperformed previous biologically-inspired models, which typically hover between 2% and 5% error.
  • CIFAR-10 Performance: The model achieved a test error of 49.25%. While this lags behind modern deep learning (which uses spatial convolutions), it outperformed other published benchmarks for biological learning on the same dataset.
  • Feature Diversity: Qualitative analysis showed that the hidden units learned to represent "prototypes" of the data—some neurons became experts in "slanted lines," while others focused on specific digit shapes.

Limitations and Future Work

  • Depth: The current paper focuses primarily on a single hidden layer. While the authors suggest the process is iterative (the output of one layer could be the input for the next), they haven't yet demonstrated a deep, multi-layer stack trained entirely this way.
  • Computational Speed: The original biological equations are slow to simulate. The authors had to develop a "Fast AI" approximation (using ranking instead of differential equations) to make training feasible on modern hardware.
  • Complexity Gap: While the results on MNIST are stellar, the gap on CIFAR-10 suggests that more complex natural images might require additional biological mechanisms (perhaps hierarchical structures or more sophisticated inhibition) to fully match supervised deep learning.

Summary updated

BibTeX
@inproceedings{krotov2019unsupervised,
  author = {Dmitry Krotov and John J. Hopfield},
  title = {{Unsupervised learning by competing hidden units}},
  booktitle = {Proc. Natl. Acad. Sci. USA},
  year = {2019},
  url = {https://openreview.net/forum?id=ymn1eWDUqy3},
}
Figure