Stochastic Neighbor Embedding
Geoffrey E. HintonS. Roweis
Geoffrey E. HintonS. Roweis
Given a set of high-dimensional data vectors (or asymmetric pairwise dissimilarities ), Stochastic Neighbor Embedding (SNE) models the neighborhood identity around each point probabilistically. The asymmetric probability that data point picks data point () as its neighbor is defined as:
where the squared dissimilarity is typically computed as the scaled squared Euclidean distance , with being the variance of a Gaussian centered at .
In the low-dimensional embedding space (), the induced probability that low-dimensional coordinate picks as its neighbor is defined using a Gaussian with fixed variance :
The optimal low-dimensional coordinates are obtained by minimizing the sum of Kullback-Leibler divergences across all data points:
This objective penalizes modeling small high-dimensional distances with large low-dimensional distances ( large, small), while placing a relatively smaller penalty on modeling large high-dimensional distances with small low-dimensional distances ( small, large).
For the Stochastic Neighbor Embedding cost function , the analytic gradient with respect to the low-dimensional coordinate vector is:
where and are the high-dimensional and low-dimensional conditional neighborhood probabilities, respectively:
The gradient represents a sum of forces pulling toward when is under-represented in the low-dimensional neighborhood () and pushing away from when is over-represented ().
To handle variations in local density across the high-dimensional dataset, the variance of the Gaussian centered at each data point is calibrated individually. The variance is set such that the Shannon entropy of the resulting distribution over neighbors matches a target perplexity :
where the conditional probabilities are given by:
The hyperparameter is chosen by the user and represents the effective number of local neighbors. Because the entropy is a strictly monotonic function of , the required value of for each point is found efficiently via binary search.
To represent ambiguous objects (such as homonyms or manifold intersections) that map naturally to multiple distinct low-dimensional locations, SNE extends each high-dimensional object to possess low-dimensional image locations with mixing proportions satisfying and .
The low-dimensional neighborhood conditional probability is defined as a mixture across all image versions of object and all image versions of object :
Defining as the probability that version of object picks version of object as its neighbor:
the mixture probability can be written concisely as .
In the mixture formulation of Stochastic Neighbor Embedding, the derivative of the cost function with respect to the mixing proportion of version of object is given by:
where the derivative of the low-dimensional neighborhood distribution with respect to is:
where if and otherwise, and .
To ensure positivity and summation to 1 without constrained optimization, mixing proportions are parameterized via softmax weights :
SNE computes low-dimensional coordinates using batch gradient descent combined with decaying additive Gaussian jitter to escape poor local minima.
In standard USPS digit experiments (), the hyperparameters were , for iterations, followed by for an additional 500 iterations ().
When the high-dimensional Gaussian variance , the distribution over high-dimensional neighbors approaches a uniform distribution. In this high-variance regime, minimizing the SNE Kullback-Leibler cost function is mathematically equivalent to minimizing the squared distance mismatch between high- and low-dimensional representations, centered by their antigeometric means:
where is the total number of objects, and the scaled squared distances and antigeometric means are defined as:
This equivalence links SNE in its large-variance limit to stress objective functions used in nonmetric multidimensional scaling (MDS).
SNE was evaluated on 3000 grayscale pixel digit bitmaps () from the USPS database, comprising 600 examples from each of five classes (0, 1, 2, 3, 4), embedded into dimensions with perplexity .
Key empirical findings:
A simplified mixture SNE model was evaluated where each object had exactly two low-dimensional components () with equal mixing proportions , constrained by an attractive spring force pulling the two components together with a force increasing linearly up to a separation threshold of 0.05 (with a force of 0.025 nats per unit length at threshold) and remaining constant beyond it.
Two experiments demonstrated its properties:
SNE was applied to embed 676 authors who published more than one paper in NIPS volumes 0--12 into dimensions based on log aggregate author word counts.
Experimental setup and results:
The standard SNE gradient evaluation requires operations per iteration due to all-pairs normalization in and force updates, requiring several hours of computation for points under gradient descent with noise annealing.
The paper proposes three strategies to accelerate and improve optimization:
Coverage note — The brief conceptual discussion interpreting SNE as a special case of Linear Relational Embedding (LRE) with an identity relation matrix was omitted as it is an interpretive analogy rather than a concrete contributed model or result.
@article{hinton2002stochastic,
title = {Stochastic Neighbor Embedding},
author = {Hinton, Geoffrey E. and Roweis, Sam T.},
year = {2002},
journal = {Neural Information Processing Systems},
volume = {15},
pages = {857-864},
url = {http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.13.7959}
}This paper is available from its original source. Click below to access the PDF.
Open PDFLicense: Published with permission