An Optimality Principle for Unsupervised Learning

Terence D. SangerNeurIPS 1988

In the late 1980s, the "Holy Grail" of unsupervised learning was finding a universal optimality criterion—a mathematical goal that tells a neural network how to organize itself without relying on labeled data. While some researchers suggested maximizing information, calculating exact information content is notoriously difficult without knowing the precise probability distribution of the input data.

Terence Sanger tackled this challenge by proposing a more practical proxy: reconstructibility. The intuitive idea is that if a network can reconstruct the original input from a compressed internal representation with minimal error, it has successfully captured the most important features of the data without losing vital information. To achieve this, Sanger introduced the Generalized Hebbian Algorithm (GHA).

The Generalized Hebbian Algorithm (GHA)

The GHA is a local learning rule that allows networks to perform complex global statistical operations.

  1. The Linear Case: In a single-layer linear network, Sanger proves that GHA causes the synaptic weights to converge to the eigenvectors of the input correlation matrix. This effectively serves as a neural network implementation of Principal Component Analysis (PCA) or the Karhunen-Loève Transform (KLT).
  2. The "Secret Sauce": The algorithm employs a weight-update rule featuring a "Lower Triangular" (LT) operator. This operator forces the network to learn features in a specific order of importance (decreasing variance) and ensures the outputs remain uncorrelated.
  3. The Nonlinear Extension: Sanger extends this logic to networks with fixed nonlinearities, such as rectification ($y = \max(0, x)$). Although the mathematics become more complex, the core principle remains: maximize the variance of the outputs while keeping them uncorrelated to ensure the best possible linear reconstruction of the input.

One of the most significant insights from this work is that a local synaptic learning rule—where a weight only needs to know the activity of the two neurons it connects—can achieve a global statistical result like PCA.

Applications and Key Results

The paper evaluates the GHA across several synthetic and real-world data types, demonstrating its versatility and efficiency.

Image Compression

The algorithm was tested on a standard 256x256 8-bit grayscale image of a human face, divided into 8x8 blocks. The network achieved high compression, reducing the image down to just 0.36 bits per pixel (using only 23 bits to represent an 8x8 block) while maintaining enough detail for the image to remain recognizable. Because GHA orders the learned features by variance, less useful information can be easily pruned.

Original and reconstructed face image alongside learned 8x8 block masks

Biological Mimicry and Receptive Fields

When trained on synthetic images of low-pass filtered white Gaussian noise, the nonlinear GHA naturally develops "masks" or receptive fields. Remarkably, these learned filters closely resemble the receptive fields of cells found in the visual cortex of cats and monkeys, suggesting the algorithm captures biologically plausible learning dynamics.

Receptive fields developed by the network resembling visual cortex cells

Stereo Vision and Depth Perception

Sanger also applied the network to 128x128 pixel random-dot stereo pairs, where half the image contained a disparity (shift) to simulate depth. The network's hidden layer successfully learned to detect "disparity edges"—the boundaries where depth changes. This task strictly requires nonlinear processing, proving the algorithm's capability beyond purely linear networks.

Training Efficiency

In an "encoder" task using zero-mean correlated Gaussian random 5-vectors, the unsupervised GHA was compared against supervised backpropagation. The GHA converged significantly faster, requiring only 1,600 examples to reach the same error level that took backpropagation 2,400 examples.

Limitations and Future Work

While groundbreaking, Sanger notes a few limitations to the approach:

  • Mathematical Proofs: The linear case is mathematically proven to converge, but the nonlinear case relies on heuristic analysis and empirical simulations. A rigorous proof for nonlinear convergence remains an open challenge.
  • Limited Nonlinearities: The study focused primarily on rectification and sigmoid functions. The behavior of the algorithm with more exotic types of nonlinearities is not yet predictable.
  • Gaussian Assumption: Some of the optimality results for the nonlinear case assume the input data follows a Gaussian distribution. This assumption does not always hold true for real-world data, such as natural language or complex sensor feeds.

Ultimately, Sanger's Generalized Hebbian Algorithm provides a computationally efficient way to ensure a network represents data faithfully, proving that minimizing mean-squared error through local rules is a powerful alternative to explicitly maximizing Shannon information.

Summary updated

BibTeX
@inproceedings{sanger1988optimality,
  author = {Terence D. Sanger},
  title = {{An Optimality Principle for Unsupervised Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1988},
}
Figure