Unsupervised learning
Unsupervised learning is a framework in machine learning where algorithms find patterns in data that nobody has labeled. No teacher, no classifications, no hand-tagged examples. The machine is handed raw material and told, in essence, to figure it out. How does a computer learn anything useful without being told what it is looking at? And what kinds of machines have researchers built to make that possible? Those questions drive everything that follows.
Common Crawl, the massive repository of web text built by crawling the internet with only minor filtering, exemplifies what makes unsupervised learning so practical. Harvesting data "in the wild" at enormous scale costs comparatively little. Supervised learning, by contrast, depends on manually constructed datasets. The ImageNet1000 benchmark, for instance, required careful human effort to build and label. That expense is the practical ceiling on supervised systems. Unlabeled data is everywhere and cheap, which makes unsupervised methods attractive at scale. The generative pretraining method illustrates the payoff: a model first trains to generate a large text corpus, then gets fine-tuned for a specific task like text classification, extracting far more value from the original unlabeled material.
Tasks in machine learning tend to split into two broad camps: discriminative tasks, which involve recognition, and generative tasks, which involve imagination. Unsupervised methods lean toward the generative side, but the boundary is less crisp than it first appears. Image recognition is the clearest example of how fluid this can be. It started as a heavily supervised problem, shifted to a hybrid approach that incorporated unsupervised pre-training, and then swung back toward supervision again when techniques like dropout and ReLU proved effective. A typical generative task works by removing part of a data point and asking the model to reconstruct the missing piece. Denoising autoencoders and BERT both follow that logic, learning by filling in what has been taken away.
John Hopfield described a class of neural network in 1982 that functions as a content-addressable memory and classifier, drawing on an Ising magnetic model first proposed for cognition in 1974. Hopfield networks use deterministic binary neurons with symmetric connections and no self-connections. Geoff Hinton and Terry Sejnowski extended that work a year later, introducing the Boltzmann machine with probabilistic neurons and following earlier work by Sherington and Kirkpatrick from 1975. Paul Smolensky published Harmony Theory in 1986, which described what was effectively a Restricted Boltzmann Machine with the same energy function, though Smolensky did not provide a practical training scheme. Hinton supplied that in the mid-2000s. Later, in 1995, Peter Dayan and Hinton introduced the Helmholtz machine, and Hochreiter and Schmidhuber introduced the LSTM neuron that same year for language tasks. The names on some of these networks are telling: Boltzmann and Helmholtz were not themselves artificial intelligence researchers. Their contributions came from physics and physiology, but the analytical methods they developed proved directly applicable. Of all the people whose names appear on these architectures, only Hopfield worked directly with neural networks.
Ludwig Boltzmann's analysis of a gas gives the energy function its name and its intuition. Boltzmann described how the macroscopic energy of a gas arises from the microscopic probabilities of particle motion, using the Boltzmann constant and temperature as anchors. Neural researchers borrowed that framework and applied it to networks. In a Boltzmann machine, energy plays the role of the cost function, and the network seeks configurations of low energy, which Paul Smolensky called high Harmony. Training unsupervised networks draws on methods that differ substantially from the backpropagation dominant in supervised settings. The toolkit includes the Hopfield learning rule, the Boltzmann learning rule, Contrastive Divergence, Wake-Sleep, Variational Inference, Maximum Likelihood, Maximum A Posteriori, and Gibbs Sampling. One practical limitation stands out across several of these approaches: the Boltzmann machine's freedom of connections makes it difficult to analyze, and reaching equilibrium requires too many iterations. The Restricted Boltzmann Machine addressed both problems by removing lateral connections within a layer, which made the training scheme faster and more practical.
Donald Hebb's principle, that neurons that fire together wire together, is the classical example of unsupervised learning in the study of neural networks. Hebbian learning reinforces a connection between two neurons based solely on coincident activity, not on error. A related extension called spike-timing-dependent plasticity, or STDP, modifies synaptic weights based on the time interval between action potentials. Researchers have proposed Hebbian learning as an explanation for pattern recognition and experiential learning in biological brains. Two architectures built on related principles remain widely used. The self-organizing map produces a topographic organization where nearby positions in the map correspond to inputs with similar properties. The adaptive resonance theory model, known as ART, lets cluster counts vary with problem size and gives the user a parameter called the vigilance parameter to control how similar members of the same cluster must be. ART networks are applied to tasks including automatic target recognition and seismic signal processing.
Topic modeling is one of the most concrete illustrations of what latent variable models do. A document contains observable words, but the topic that generated those words is hidden, a latent variable that shifts the statistical parameters underlying word choice. The method of moments connects unknown model parameters to the moments of random variables, which can then be estimated from data. First-order moments are mean vectors; second-order moments are covariance matrices when the mean is zero; higher-order moments are represented as tensors. Tensor decomposition techniques have been shown to consistently recover the parameters of a large class of latent variable models under certain assumptions. The Expectation-Maximization algorithm, or EM, is a widely used alternative for the same class of problems. Its practical drawback is a tendency to get stuck in local optima rather than converging to the true parameters. The method of moments offers a theoretical advantage there: global convergence is guaranteed under certain conditions, which makes it a stronger tool when that guarantee matters. Kingma, Rezende, and colleagues introduced Variational Autoencoders in 2013 as a Bayesian graphical probability network with neural nets as components, and VAEs now serve as one of the primary tools for generating realistic data from learned distributions.
Up Next
Common questions
What is unsupervised learning in machine learning?
Unsupervised learning is a framework in machine learning where algorithms learn patterns exclusively from unlabeled data, without any human-supplied classifications or tags. It contrasts with supervised learning, where datasets are manually constructed and labeled. Common applications include clustering, anomaly detection, and learning latent variable models.
How does unsupervised learning differ from supervised learning?
Supervised learning trains on manually labeled datasets, such as ImageNet1000, which are expensive to construct. Unsupervised learning uses unlabeled data harvested cheaply at scale, such as large web text corpora gathered via web crawling with only minor filtering. Supervised learning infers a conditional probability distribution given a label; unsupervised learning infers a prior probability distribution from the data itself.
What are the main types of neural networks used in unsupervised learning?
Key unsupervised neural networks include the Hopfield network, Boltzmann machine, Restricted Boltzmann Machine, Helmholtz machine, and Variational Autoencoder. The Hopfield network was described by John Hopfield in 1982. The Boltzmann machine was introduced by Hinton and Sejnowski in 1983. Variational Autoencoders were introduced by Kingma, Rezende, and colleagues in 2013.
Who introduced the Boltzmann machine and what is it based on?
Geoffrey Hinton and Terry Sejnowski introduced the Boltzmann machine in 1983, following earlier work by Sherington and Kirkpatrick from 1975. Its energy function is inspired by Ludwig Boltzmann's analysis of a gas's macroscopic energy derived from the microscopic probabilities of particle motion.
What is Hebbian learning and how does it relate to unsupervised learning?
Hebbian learning is the classical example of unsupervised learning in neural networks, based on Donald Hebb's principle that neurons that fire together wire together. Connection strength is reinforced by coincident neuron activity, not by error feedback. It has been proposed as an explanation for cognitive functions including pattern recognition and experiential learning.
What is the method of moments in unsupervised learning?
The method of moments is a statistical approach where unknown model parameters are estimated by relating them to the moments of random variables computed from data. First-order moments are mean vectors and second-order moments are covariance matrices; higher-order moments are represented as tensors. Unlike the Expectation-Maximization algorithm, the method of moments guarantees global convergence under certain conditions.
All sources
15 references cited across the entry
- 1webUnsupervised LearningWei Wu
- 2journalSelf-supervised Learning: Generative or ContrastiveXiao Liu et al. — 2021
- 3webImproving Language Understanding by Generative Pre-TrainingAlec Radford et al. — OpenAI — 11 June 2018
- 4journalTrain Big, Then Compress: Rethinking Model Size for Efficient Training and Inference of TransformersZhuohan Li et al. — PMLR — 2020-11-21
- 5journalThe Helmholtz machine.Dayan Peter et al. — 1995
- 6webUnsupervised Machine Learning: Clustering AnalysisVictor Roman — 2019-04-21
- 7bookComputer Science HandbookMichael I. Jordan et al. — Chapman & Hall/CRC Press — 2004
- 8harvnbHastie, Tibshirani, Friedman (2009) p. 485–586Hastie, Tibshirani, Friedman — 2009
- 9webUnderstanding K-means Clustering in Machine LearningDr Michael J. Garbade — 2018-09-12
- 10journalTensor Decompositions for Learning Latent Variable ModelsAnimashree Anandkumar et al. — 2014
- 11bookProceedings 1992 IJCNN International Joint Conference on Neural NetworksJ. Buhmann et al. — IEEE — 1992
- 12journalAn application of Hebbian learning in the design process decision-makingAlberto Comesaña-Campos et al. — June 2016
- 13journalThe ART of adaptive pattern recognition by a self-organizing neural networkCarpenter, G.A. et al. — 1988
- 14bookNeural Networks: Tricks of the TradeG. Hinton — Springer — 2012
- 15webDeep Belief NetsSeptember 2009