Stochastic Neighbor Embedding separates well-separated clusters

Uri Shaham, Stefan SteinerbergerarXiv 2017 · DOI

Abstract: Stochastic Neighbor Embedding (SNE) and its variants are widely used dimensionality reduction techniques. Despite their popularity, theoretical guarantees for their performance have been lacking. This work provides the first mathematical proof that the optimal SNE embedding of well-separated clusters from high-dimensional space to any Euclidean space $\mathbb{R}^d$ successfully preserves cluster separation. The results extend to a broad family of methods, including certain variants of t-SNE.

Introduction

Dimensionality reduction is essential for visualizing high-dimensional data, such as images or genomic sequences. Stochastic Neighbor Embedding (SNE) and t-SNE have become the gold standard for this task due to their ability to preserve local structures while separating distinct clusters. However, SNE's reliance on a non-convex loss function has historically made it difficult to analyze. This paper addresses the fundamental question: can we prove that SNE preserves the "cluster-ness" of data?

Theoretical Framework and the Quality Metric

The authors define an idealized setup of $n$ "well-separated" clusters in $\mathbb{R}^D$. Each cluster contains $a$ points and is localized within a small diameter. The clusters are separated by a distance scaling with $\sqrt{5 \log n}$.

To quantify the success of an embedding $\psi$, the authors introduce a topological quality metric $Q(\psi)$. This metric calculates the expected number of "intruder" points—points from different clusters—that fall within a ball defined by two points from the same cluster.

Illustration of the quality metric $Q(\psi)$, which counts 'intruder' points (white circles) that fall within the neighborhood of points from the same cluster (black dots).

The core proof strategy involves bounding the SNE loss function. The authors demonstrate that a perfectly separated embedding yields a very low loss, whereas any embedding that mixes clusters results in a significantly higher loss. Consequently, the global minimum of the loss function must correspond to a high-quality, separated embedding.

Key Results

The primary theoretical contribution is Theorem 1.1, which states that for an optimal SNE embedding $\psi^*$, the quality measure is bounded by $Q(\psi^*) \le 200 \log(2a)$. Given that a "perfect" embedding has a quality of approximately $\log a$, this result proves that SNE achieves separation within a constant factor of perfection.

Crucially, this guarantee is independent of the input dimension $D$ and the output dimension $d$. This explains SNE's robustness across diverse data types. While the result holds for any $d$, the authors note that higher output dimensions provide "more room," potentially relaxing the separation requirements.

Empirical Evidence

While primarily theoretical, the study validates its findings using synthetic Gaussian clusters (10 clusters, 100 points each, in 100 dimensions). Using a custom SNE implementation, the authors show that the algorithm successfully maps these high-dimensional clusters into both 2D and 1D spaces while maintaining clear separation.

SNE embeddings of high-dimensional clusters into 2D (left) and 1D (right). The results confirm that cluster separation is preserved regardless of the target dimension.

Discussion and Limitations

The proof assumes the discovery of the global minimum. In practice, SNE is optimized via gradient descent, which may converge to local minima. Proving that gradient descent consistently reaches these theoretically "good" states remains an open challenge. Additionally, the authors observed a "phase transition" where clusters begin to mix if they are closer than the $\sqrt{5 \log n}$ threshold, suggesting a future direction for studying the breakdown point of these embeddings.

Finally, while the proof covers a broad family of kernels, the specific normalization used in "classical" t-SNE introduces non-local effects that require further investigation to be fully encompassed by this theoretical framework.

Summary updated

BibTeX
@misc{shaham2017stochastic,
  author = {Uri Shaham and Stefan Steinerberger},
  title = {{Stochastic Neighbor Embedding separates well-separated clusters}},
  year = {2017},
  eprint = {1702.02670},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1702.02670},
}
Figure