Theoretical Foundations of t-SNE for Visualizing High-Dimensional Clustered Data

T. Tony CaiRong Ma

article2022JMLR261 citations

Establishes a rigorous theoretical foundation for t-SNE by linking its early exaggeration phase to Laplacian spectral clustering and analyzing its map kinematics to provide principled guidelines for hyperparameter selection.

Listen

Data visualization and nonlinear dimension reduction are fundamental tools for discovering patterns, trends, and clusters in complex, high-dimensional datasets. The t-distributed stochastic neighbor embedding (t-SNE) algorithm is one of the most widely used methods across scientific disciplines such as genetics and computer vision. Despite its empirical success, the algorithm has long lacked a solid theoretical foundation, leaving practitioners unsure of how to properly interpret its visual outputs, how to systematically select tuning parameters, or how to avoid common artifacts.

The article establishes a rigorous theoretical foundation for t-SNE applied to clustered data. It evaluates and explains the computational mechanics and asymptotic properties of both the early exaggeration stage and the subsequent embedding stage of the algorithm.

The authors analyze t-SNE through discrete-time iterations and continuous-time gradient flows, framing the optimization process in terms of graph Laplacians and mechanical kinematic forces. They validate their theoretical findings using mathematical proofs, simulations on synthetic benchmarks (Gaussian mixture and noisy nested sphere models), and empirical evaluations on real-world image data from the MNIST handwritten digit dataset.

The investigation yields four central findings. First, the early exaggeration stage is mathematically equivalent to power iterations on a graph Laplacian, acting as an implicit spectral clustering mechanism that groups data without requiring the user to specify the number of clusters in advance. Second, early stopping during this initial stage provides implicit regularization; without stopping early, iterations over weakly clustered data cause "overshooting" and converge to trivial averages or false clusters. Third, the embedding stage consists of an amplification phase driven by intercluster repulsion and map expansion, followed by a stabilization phase that refines local structures. Fourth, while random initialization reliably uncovers cluster membership, the final relative spatial positions and neighboring relationships between clusters are arbitrary artifacts of initialization rather than true geometric properties of the original data.

These findings provide essential practical guidance for organizations and researchers relying on t-SNE for exploratory data analysis, quality control, or downstream decision-making. Analysts can avoid misleading interpretations of cluster geometry and reduce the risk of false discoveries. Furthermore, the theory provides explicit formulas for setting learning rates, iteration counts, and exaggeration parameters in a data-adaptive manner.

Practitioners should implement early stopping during the early exaggeration stage (such as setting the number of exaggeration iterations proportional to the square of the logarithm of sample size) to prevent overshooting on weakly clustered data. Analysts must interpret cluster groupings for membership only, avoiding conclusions based on the spatial distance between distinct clusters. Because random initialization can occasionally induce false clusters via intercluster repulsion, users should run t-SNE across multiple random initializations or use spectral initialization based on the leading Laplacian eigenvectors for strongly clustered datasets.

While the analytical conclusions are supported with high mathematical confidence under standard clustering assumptions, the theoretical separation requirements between clusters remain somewhat conservative relative to empirical performance limits. Future research is needed to determine the exact information-theoretic separation boundaries, explore data-driven bandwidth selection, and analyze the late-stage stabilization dynamics.

arXiv: 2105.07536

No sufficiently relevant recommendations were found.

Cover for Theoretical Foundations of t-SNE for Visualizing High-Dimensional Clustered Data

Abstract

This paper investigates the theoretical foundations of the t-distributed stochastic neighbor embedding (t-SNE) algorithm, a popular nonlinear dimension reduction and data visualization method. A novel theoretical framework for the analysis of t-SNE based on the gradient descent approach is presented. For the early exaggeration stage of t-SNE, we show its asymptotic equivalence to power iterations based on the underlying graph Laplacian, characterize its limiting behavior, and uncover its deep connection to Laplacian spectral clustering, and fundamental principles including early stopping as implicit regularization. The results explain the intrinsic mechanism and the empirical benefits of such a computational strategy. For the embedding stage of t-SNE, we characterize the kinematics of the low-dimensional map throughout the iterations, and identify an amplification phase, featuring the intercluster repulsion and the expansive behavior of the low-dimensional map, and a stabilization phase. The general theory explains the fast convergence rate and the exceptional empirical performance of t-SNE for visualizing clustered data, brings forth the interpretations of the t-SNE visualizations, and provides theoretical guidance for applying t-SNE and selecting its tuning parameters in various applications.

Table of Contents

  • 1. Introduction
  • 1.1 Basic t-SNE Algorithm
  • 1.2 Main Results and Our Contribution
  • 1.3 Related Work
  • 1.4 Notation and Organization
  • 2. Analysis of the Early Exaggeration Stage
  • 2.1 Asymptotic Graphical Interpretation and Localization
  • 2.2 Asymptotic Power Iterations, Implicit Spectral Clustering and Early Stopping
  • 2.3 Gradient Flow and Implicit Regularization
  • 3. Analysis of the Embedding Stage
  • 4. Application I: Visualizing Model-Based Clustered Data
  • 4.1 Gaussian Mixture Model
  • 4.2 Noisy Nested Sphere Model
  • 5. Application II: Visualizing Real-World Clustered Data
  • 6. Discussion
  • Acknowledgement
  • References
  • Appendix A. Discrete-Time Analysis of the Early Exaggeration Stage
  • A.1 Proof of Theorem 2
  • A.2 Proof of Proposition 3
  • A.3 Proof of Theorem 4
  • A.4 Proof of Theorem 5
  • A.5 Proof of Proposition 6
  • A.6 Proof of Theorem 7
  • Appendix B. Continuous-Time Analysis of the Early Exaggeration Stage
  • B.1 Proof of Proposition 8
  • B.2 Proof of Proposition 9
  • B.3 Proof of Theorem 10
  • Appendix C. Analysis of the Embedding Stage
  • C.1 Proof of Proposition 12
  • C.2 Proof of Theorem 13
  • C.3 Proof of Theorem 14
  • C.4 Proof of Theorem 15
  • Appendix D. Analysis of Two Examples
  • D.1 Proofs of the Gaussian Mixture Model
  • D.2 Proof of the Noisy Nested Sphere Model
  • Appendix E. Proof of Auxiliary Lemmas
  • E.1 Proof of Lemma 21
  • E.2 Proof of Lemma 23
  • E.3 Proof of Lemma 24
  • E.4 Proof of Lemma 25
  • E.5 Proof of Lemma 27
  • Appendix F. Supplementary Figures

Knowls

  1. Knowl 1 — Two-Stage t-SNE Gradient Descent Framework with Early Exaggeration

    model/method

    Let {Xi}i=1n⊂Rp\{X_i\}_{i=1}^n \subset \mathbb{R}^p be high-dimensional data points. The pairwise similarity matrix in high dimension is P=(pij)1≤i,j≤n∈Rn×nP = (p_{ij})_{1 \le i,j \le n} \in \mathbb{R}^{n \times n}, with pii=0p_{ii} = 0 and for i≠ji \neq j: pij=pi∣j+pj∣i2n,pj∣i=exp⁡(−∥Xi−Xj∥22/(2τi2))∑ℓ≠iexp⁡(−∥Xi−Xℓ∥22/(2τi2)),p_{ij} = \frac{p_{i|j} + p_{j|i}}{2n}, \quad p_{j|i} = \frac{\exp(-\|X_i - X_j\|_2^2 / (2\tau_i^2))}{\sum_{\ell \neq i} \exp(-\|X_i - X_\ell\|_2^2 / (2\tau_i^2))}, where τi>0\tau_i > 0 are bandwidth parameters. For a low-dimensional map {yi}i=1n⊂R2\{y_i\}_{i=1}^n \subset \mathbb{R}^2, the similarity matrix is Q=(qij)1≤i,j≤nQ = (q_{ij})_{1 \le i,j \le n}, with qii=0q_{ii} = 0 and for i≠ji \neq j: qij=(1+∥yi−yj∥22)−1∑ℓ≠s(1+∥yℓ−ys∥22)−1.q_{ij} = \frac{(1 + \|y_i - y_j\|_2^2)^{-1}}{\sum_{\ell \neq s} (1 + \|y_\ell - y_s\|_2^2)^{-1}}. The t-SNE objective minimizes the Kullback-Leibler divergence DKL(P,Q)=∑i≠jpijlog⁡(pij/qij)D_{\mathrm{KL}}(P, Q) = \sum_{i \neq j} p_{ij} \log(p_{ij}/q_{ij}). The standard optimization is decomposed into two distinct stages:

    1. Early Exaggeration Stage: For the first K0>0K_0 > 0 iterations, similarity entries are multiplied by an exaggeration parameter α>0\alpha > 0: yi(k+1)=yi(k)+h∑j≠i(yj(k)−yi(k))Sij(k)(α),i=1,…,n,y_i^{(k+1)} = y_i^{(k)} + h \sum_{j \neq i} (y_j^{(k)} - y_i^{(k)}) S_{ij}^{(k)}(\alpha), \quad i=1,\dots,n, where Sij(k)(α)=αpij−qij(k)1+∥yi(k)−yj(k)∥22S_{ij}^{(k)}(\alpha) = \frac{\alpha p_{ij} - q_{ij}^{(k)}}{1 + \|y_i^{(k)} - y_j^{(k)}\|_2^2} and h>0h > 0 is the step size.

    2. Embedding Stage: For iterations k≥K0k \ge K_0, the exaggeration parameter is dropped (effectively α=1\alpha = 1) with step size h′>0h' > 0: yi(k+1)=yi(k)+h′∑j≠i(yj(k)−yi(k))Sij(k)(1),i=1,…,n.y_i^{(k+1)} = y_i^{(k)} + h' \sum_{j \neq i} (y_j^{(k)} - y_i^{(k)}) S_{ij}^{(k)}(1), \quad i=1,\dots,n.

  2. Knowl 2 — Asymptotic Graphical Interpretation of Early Exaggeration

    theoretical result

    For a symmetric matrix A=(aij)∈Rn×nA = (a_{ij}) \in \mathbb{R}^{n \times n}, define the degree operator D(A)=diag⁡(∑j=1na1j,…,∑j=1nanj)D(A) = \operatorname{diag}(\sum_{j=1}^n a_{1j}, \dots, \sum_{j=1}^n a_{nj}) and Laplacian operator L(A)=D(A)−AL(A) = D(A) - A. In the early exaggeration stage of t-SNE, the update for each coordinate ℓ∈{1,2}\ell \in \{1, 2\} is: yℓ(k+1)=[In−hL(Sα(k))]yℓ(k),y_\ell^{(k+1)} = [I_n - h L(S_\alpha^{(k)})] y_\ell^{(k)}, where Sα(k)∈Rn×nS_\alpha^{(k)} \in \mathbb{R}^{n \times n} has off-diagonal entries Sij(k)(α)=(αpij−qij(k))/(1+∥yi(k)−yj(k)∥22)S_{ij}^{(k)}(\alpha) = (\alpha p_{ij} - q_{ij}^{(k)}) / (1 + \|y_i^{(k)} - y_j^{(k)}\|_2^2) and zero diagonal. Let η(k)=[diam⁡({yi(k)}i=1n)]2\eta^{(k)} = [\operatorname{diam}(\{y_i^{(k)}\}_{i=1}^n)]^2 and Hn=1n(n−1)(1n1n⊤−In)H_n = \frac{1}{n(n-1)}(1_n 1_n^\top - I_n), where 1n=(1,…,1)⊤∈Rn1_n = (1, \dots, 1)^\top \in \mathbb{R}^n.

    For any i≠ji \neq j and iteration k≥1k \ge 1 with η(k)<1\eta^{(k)} < 1, the entries satisfy: ∣Sij(k)(α)−αpij+1n(n−1)∣≤αpijη(k)+2η(k)n(n−1)(1−η(k)).\left| S_{ij}^{(k)}(\alpha) - \alpha p_{ij} + \frac{1}{n(n-1)} \right| \le \alpha p_{ij} \eta^{(k)} + \frac{2\eta^{(k)}}{n(n-1)(1 - \eta^{(k)})}. Consequently, if η(k)≪∥P∥n∥P∥∞\eta^{(k)} \ll \frac{\|P\|}{n \|P\|_\infty} and α≫1n∥P∥\alpha \gg \frac{1}{n\|P\|} as n→∞n \to \infty, then: lim⁡n→∞∥Sα(k)−(αP−Hn)∥∥αP−Hn∥=0.\lim_{n \to \infty} \frac{\|S_\alpha^{(k)} - (\alpha P - H_n)\|}{\|\alpha P - H_n\|} = 0. Thus, under small embedding diameter and sufficiently large exaggeration, Sα(k)S_\alpha^{(k)} behaves asymptotically as a fixed matrix αP−Hn\alpha P - H_n across iterations.

  3. Knowl 3 — Localization and Asymptotic Equivalence to Power Iterations in Early Exaggeration

    theoretical result

    Consider the early exaggeration stage of t-SNE under the following conditions on initialization {yi(0)}i=1n\{y_i^{(0)}\}_{i=1}^n and parameters (α,h,k)(\alpha, h, k) as n→∞n \to \infty:

    • (I1) min⁡ℓ∈{1,2}∥yℓ(0)∥2>0\min_{\ell \in \{1,2\}} \|y_\ell^{(0)}\|_2 > 0 and max⁡ℓ∈{1,2}∥yℓ(0)∥∞=O(1)\max_{\ell \in \{1,2\}} \|y_\ell^{(0)}\|_\infty = O(1);
    • (I2) max⁡ℓ∈{1,2}∥yℓ(0)∥∞2=o(∥P∥/(n∥P∥∞))\max_{\ell \in \{1,2\}} \|y_\ell^{(0)}\|_\infty^2 = o(\|P\| / (n \|P\|_\infty));
    • (T1.D) α≫(n∥P∥)−1\alpha \gg (n \|P\|)^{-1} and k(nhα∥P∥∞+h/n)=o(1)k(n h \alpha \|P\|_\infty + h/n) = o(1).

    Under these conditions:

    1. Localization: The low-dimensional map remains bounded within the initial range throughout iterations: diam⁡({yi(k+1)}i=1n)≤Cmax⁡ℓ∈{1,2}∥yℓ(0)∥∞,\operatorname{diam}(\{y_i^{(k+1)}\}_{i=1}^n) \le C \max_{\ell \in \{1,2\}} \|y_\ell^{(0)}\|_\infty, for a universal constant C>0C > 0.

    2. Asymptotic Power Iteration: The early exaggeration iterates are asymptotically equivalent to power iterations on the fixed Laplacian operator In−hL(αP−Hn)I_n - hL(\alpha P - H_n): lim⁡n→∞∥yℓ(k)−[In−hL(αP−Hn)]kyℓ(0)∥2∥yℓ(0)∥2=0,ℓ∈{1,2}.\lim_{n \to \infty} \frac{\|y_\ell^{(k)} - [I_n - hL(\alpha P - H_n)]^k y_\ell^{(0)}\|_2}{\|y_\ell^{(0)}\|_2} = 0, \quad \ell \in \{1, 2\}.

  4. Knowl 4 — Convergence of Power Iterations to the Graph Laplacian Null Space

    theoretical result

    Let R≥1R \ge 1 be the dimension of the null space of the Laplacian L(P)∈Rn×nL(P) \in \mathbb{R}^{n \times n}, and let U∈Rn×RU \in \mathbb{R}^{n \times R} be a matrix with orthonormal columns forming a basis for this null space. Assume the step size and exaggeration satisfy the eigengap condition: κ<hλR+1(L(αP))≤hλn(L(αP))<1\kappa < h \lambda_{R+1}(L(\alpha P)) \le h \lambda_n(L(\alpha P)) < 1 for a constant κ∈(0,1)\kappa \in (0, 1), and kh=o(n)k h = o(n). Then for any non-zero vector y∈Rny \in \mathbb{R}^n: lim⁡k→∞∥[In−hL(αP−Hn)]ky−UU⊤y∥2∥y∥2=0.\lim_{k \to \infty} \frac{\|[I_n - hL(\alpha P - H_n)]^k y - U U^\top y\|_2}{\|y\|_2} = 0. Furthermore, when the symmetric adjacency matrix A∈Rn×nA \in \mathbb{R}^{n \times n} corresponds to a graph with R≥2R \ge 2 disconnected components of sizes n1,…,nRn_1, \dots, n_R, the null space of L(A)L(A) is spanned by {θ1,…,θR}\{\theta_1, \dots, \theta_R\} where: [θr]j={1/nrif node j belongs to the r-th component0otherwise[\theta_r]_j = \begin{cases} 1/\sqrt{n_r} & \text{if node } j \text{ belongs to the } r\text{-th component} \\ 0 & \text{otherwise} \end{cases} Every vector uu in the null space of L(A)L(A) takes at most RR distinct constant values across nodes, sharing identical values if and only if nodes belong to the same component.

  5. Knowl 5 — Implicit Spectral Clustering and Early Stopping for Weakly Clustered Data

    theoretical result

    Let the original high-dimensional similarity PP be weakly clustered, in the sense that there exists a symmetric, well-conditioned matrix P∗∈Rn×nP^* \in \mathbb{R}^{n \times n} with RR disconnected components of sizes n1,…,nRn_1, \dots, n_R such that khα∥L(P∗−P)∥=o(1)k h \alpha \|L(P^* - P)\| = o(1) (condition T2.D). Under conditions (I1), (I2), and (T1.D), there exists a permutation matrix O∈Rn×nO \in \mathbb{R}^{n \times n} such that for coordinate ℓ∈{1,2}\ell \in \{1, 2\}: lim⁡(k,n)→∞∥yℓ(k)−Ozℓ∥2∥yℓ(0)∥2=0,\lim_{(k,n) \to \infty} \frac{\|y_\ell^{(k)} - O z_\ell\|_2}{\|y_\ell^{(0)}\|_2} = 0, where zℓ=(zℓ1,…,zℓ1⏟n1,zℓ2,…,zℓ2⏟n2,…,zℓR,…,zℓR⏟nR)⊤∈Rn,zℓr=θr⊤yℓ(0)nr=1nr∑i∈Hryiℓ(0).z_\ell = (\underbrace{z_{\ell 1}, \dots, z_{\ell 1}}_{n_1}, \underbrace{z_{\ell 2}, \dots, z_{\ell 2}}_{n_2}, \dots, \underbrace{z_{\ell R}, \dots, z_{\ell R}}_{n_R})^\top \in \mathbb{R}^n, \quad z_{\ell r} = \frac{\theta_r^\top y_\ell^{(0)}}{\sqrt{n_r}} = \frac{1}{n_r}\sum_{i \in H_r} y_{i\ell}^{(0)}. This implies:

    1. Intra-cluster contraction: Samples belonging to the same cluster contract toward a single 2D point (z1r,z2r)(z_{1r}, z_{2r}).
    2. Dependence on initialization: Cluster centers in the embedding depend solely on the initial random coordinates y(0)y^{(0)} rather than the true geometric distances between clusters.
    3. Necessity of early stopping: The iteration count must obey k≪1hα∥L(P∗−P)∥k \ll \frac{1}{h \alpha \|L(P^* - P)\|}. Running early exaggeration without stopping early causes overshooting, where the embedding converges to the uninformative trivial null eigenvector n−1/21nn^{-1/2} 1_n of the connected graph Laplacian L(P)L(P).
  6. Knowl 6 — Continuous-Time Gradient Flow and Implicit Regularization in Early Exaggeration

    theoretical result

    In the early exaggeration stage, the continuous-time limit of the power iteration sequence y~ℓ(k)=[In−hL(αP−Hn)]kyℓ(0)\tilde{y}_\ell^{(k)} = [I_n - hL(\alpha P - H_n)]^k y_\ell^{(0)} as h→0h \to 0 with t=kht = kh is the linear ordinary differential equation: Y˙ℓ(t)=−L(αP−Hn)Yℓ(t),Yℓ(0)=yℓ(0),ℓ∈{1,2}.\dot{Y}_\ell(t) = -L(\alpha P - H_n) Y_\ell(t), \quad Y_\ell(0) = y_\ell^{(0)}, \quad \ell \in \{1, 2\}. If kh2∥L(αP−Hn)∥2→0k h^2 \|L(\alpha P - H_n)\|^2 \to 0 as n→∞n \to \infty, the step process yℓ,h(t)=y~ℓ(k)y_{\ell,h}(t) = \tilde{y}_\ell^{(k)} uniformly approximates Yℓ(t)Y_\ell(t) on [0,T][0, T] with: sup⁡t∈[0,T]∥yℓ,h(t)−Yℓ(t)∥2∥Yℓ(t)∥2≤Th∥L(αP−Hn)∥2.\sup_{t \in [0, T]} \frac{\|y_{\ell,h}(t) - Y_\ell(t)\|_2}{\|Y_\ell(t)\|_2} \le T h \|L(\alpha P - H_n)\|^2. Given the eigendecomposition L(P)=∑i=1nλiuiui⊤L(P) = \sum_{i=1}^n \lambda_i u_i u_i^\top with 0=λ1≤λ2≤⋯≤λn0 = \lambda_1 \le \lambda_2 \le \dots \le \lambda_n and u1=n−1/21nu_1 = n^{-1/2}1_n, the explicit solution path is: Yℓ(t)=(u1⊤yℓ(0))u1+∑i=2nexp⁡(−t(αλi−1n−1))(ui⊤yℓ(0))ui.Y_\ell(t) = (u_1^\top y_\ell^{(0)}) u_1 + \sum_{i=2}^n \exp\left(-t\left(\alpha \lambda_i - \frac{1}{n-1}\right)\right) (u_i^\top y_\ell^{(0)}) u_i. This imposes an implicit regularization effect: early in optimization, yℓ(k)y_\ell^{(k)} acts as a conical sum over all eigenvectors uiu_i. Informative eigenvectors with small eigenvalues (where αλi<1n−1\alpha \lambda_i < \frac{1}{n-1}) are amplified over time, while uninformative eigenvectors with large eigenvalues (where αλi>1n−1\alpha \lambda_i > \frac{1}{n-1}) decay exponentially in kk.

  7. Knowl 7 — Intercluster Repulsion in the Amplification Phase of the Embedding Stage

    theoretical result

    Let [n]=⋃r=1RHr[n] = \bigcup_{r=1}^R H_r be the true cluster partition with sizes ∣Hr∣=nr|H_r| = n_r. Assume initialization satisfies (I3), early exaggeration satisfies (T1.E), and the embedding stage step size h′h' and iteration count K1K_1 satisfy (T3.E) such that diam⁡({yi(K0+K1)}i=1n)=o(1)\operatorname{diam}(\{y_i^{(K_0+K_1)}\}_{i=1}^n) = o(1) (the amplification phase). For each iteration K0≤k≤K0+K1K_0 \le k \le K_0 + K_1 and any point i∈Hr0i \in H_{r_0}: yi(k+1)=yi(k)+∑r∈[R]∖{r0}fir(k)+ϵi(k),y_i^{(k+1)} = y_i^{(k)} + \sum_{r \in [R] \setminus \{r_0\}} f_{ir}^{(k)} + \epsilon_i^{(k)}, where lim⁡n→∞∥ϵi(k)∥2/∥fir(k)∥2=0\lim_{n \to \infty} \|\epsilon_i^{(k)}\|_2 / \|f_{ir}^{(k)}\|_2 = 0 for all r≠r0r \neq r_0, and the repulsive force from cluster rr is: fir(k)=h′∣Hr∣n(n−1)(yi(k)−1∣Hr∣∑j∈Hryj(k))∈R2.f_{ir}^{(k)} = \frac{h' |H_r|}{n(n-1)} \left( y_i^{(k)} - \frac{1}{|H_r|} \sum_{j \in H_r} y_j^{(k)} \right) \in \mathbb{R}^2. Furthermore, the intra-cluster and inter-cluster distances satisfy: sup⁡K0≤k≤K0+K1max⁡i∼j∥yi(k)−yj(k)∥2≪n−1(∥y1(0)∥2+∥y2(0)∥2),\sup_{K_0 \le k \le K_0 + K_1} \max_{i \sim j} \|y_i^{(k)} - y_j^{(k)}\|_2 \ll n^{-1} (\|y_1^{(0)}\|_2 + \|y_2^{(0)}\|_2), inf⁡K0≤k≤K0+K1min⁡i≁j∥yi(k)−yj(k)∥2≳n−1(∥y1(0)∥2+∥y2(0)∥2).\inf_{K_0 \le k \le K_0 + K_1} \min_{i \not\sim j} \|y_i^{(k)} - y_j^{(k)}\|_2 \gtrsim n^{-1} (\|y_1^{(0)}\|_2 + \|y_2^{(0)}\|_2). Each point moves away from the centroids of all other clusters along the vector sum of repulsive forces, driving cluster separation.

  8. Knowl 8 — Global Expansion and Transition to Stabilization Phase in the Embedding Stage

    theoretical result

    Under the intercluster repulsion conditions of the amplification phase with ∥P∗∥∞≲n−2\|P^*\|_\infty \lesssim n^{-2}, the global diameter of the embedding is strictly increasing after every iteration k∈{K0,…,K0+K1}k \in \{K_0, \dots, K_0 + K_1\}: diam⁡({yi(k+1)}i=1n)>diam⁡({yi(k)}i=1n),\operatorname{diam}(\{y_i^{(k+1)}\}_{i=1}^n) > \operatorname{diam}(\{y_i^{(k)}\}_{i=1}^n), with a strictly positive lower bound on expansion: diam⁡({yi(k+1)}i=1n)−diam⁡({yi(k)}i=1n)≳h′n2min⁡ℓ∈{1,2}∥yℓ(0)∥2.\operatorname{diam}(\{y_i^{(k+1)}\}_{i=1}^n) - \operatorname{diam}(\{y_i^{(k)}\}_{i=1}^n) \gtrsim \frac{h'}{n^2} \min_{\ell \in \{1,2\}} \|y_\ell^{(0)}\|_2.

    Stabilization Phase: Once diam⁡({yi(k)}i=1n)\operatorname{diam}(\{y_i^{(k)}\}_{i=1}^n) reaches constant order O(1)O(1), the amplification condition ceases to hold. The updates transition to the stabilization phase governed by: yi(k+1)=yi(k)+h′∑j≠ipij−qij(k)1+∥yi(k)−yj(k)∥22(yj(k)−yi(k)).y_i^{(k+1)} = y_i^{(k)} + h' \sum_{j \neq i} \frac{p_{ij} - q_{ij}^{(k)}}{1 + \|y_i^{(k)} - y_j^{(k)}\|_2^2} (y_j^{(k)} - y_i^{(k)}). In this phase, individual forces between yiy_i and yjy_j switch between attractive and repulsive based on the sign of pij−qij(k)p_{ij} - q_{ij}^{(k)}: points attract when pij>qij(k)p_{ij} > q_{ij}^{(k)} and repel when pij<qij(k)p_{ij} < q_{ij}^{(k)}, performing fine local adjustments to reproduce high-dimensional pairwise similarities.

  9. Knowl 9 — Theoretical Guarantees and Parameter Selection for Gaussian Mixture Models

    theoretical result

    Let data be generated from an RR-component Gaussian mixture model Xi∣zi=r∼N(μr,Σ)X_i \mid z_i = r \sim \mathcal{N}(\mu_r, \Sigma) in Rp\mathbb{R}^p for i∈[n]i \in [n], with mixing proportions min⁡rπr≥c>0\min_r \pi_r \ge c > 0, covariance satisfying C−1≤λ1(Σ)≤λp(Σ)≤CC^{-1} \le \lambda_1(\Sigma) \le \lambda_p(\Sigma) \le C and tr⁡(Σ)/p≤C\operatorname{tr}(\Sigma)/p \le C, and center separation ρ2=min⁡j≠k∥μj−μk∥22≥C′max⁡{p,log⁡n}\rho^2 = \min_{j \neq k} \|\mu_j - \mu_k\|_2^2 \ge C' \max\{p, \log n\}. Let bandwidth τi2≍max⁡{p,log⁡n}\tau_i^2 \asymp \max\{p, \log n\}.

    If α≫1\alpha \gg 1, K0h=o(n)K_0 h = o(n), hα≍nh\alpha \asymp n, 1≪K0≪exp⁡{ρ2max⁡{p,log⁡n}}1 \ll K_0 \ll \exp\{\frac{\rho^2}{\max\{p, \log n\}}\}, and K0hασn2log⁡n=o(n2)K_0 h \alpha \sigma_n^2 \log n = o(n^2), then implicit spectral clustering holds for early exaggeration. If in addition log⁡n≪K0≪n−1exp⁡{ρ2max⁡{p,log⁡n}}\log n \ll K_0 \ll n^{-1} \exp\{\frac{\rho^2}{\max\{p, \log n\}}\}, K0hασn2log⁡n=o(n)K_0 h \alpha \sigma_n^2 \log n = o(n), and K1h′=O(n)K_1 h' = O(n), then intercluster repulsion and map expansion hold during the embedding stage.

    Theory-Guided Parameter Selection: When ρ2≳log⁡n⋅max⁡{p,log⁡n}\rho^2 \gtrsim \log n \cdot \max\{p, \log n\}, for any constant δ∈(0,1)\delta \in (0, 1), choosing: K0=⌊(log⁡n)2⌋,σn=(log⁡n)−2,h=h′=nδ,α=n1−δK_0 = \lfloor (\log n)^2 \rfloor, \quad \sigma_n = (\log n)^{-2}, \quad h = h' = n^\delta, \quad \alpha = n^{1-\delta} satisfies all requirements for both low-dimensional (p=o(n)p = o(n)) and high-dimensional (p≳np \gtrsim n) settings.

  10. Knowl 10 — Theoretical Guarantees and Parameter Selection for Noisy Nested Sphere Models

    theoretical result

    Consider data generated from nested spheres with radial noise: Xi=μi+μi∥μi∥2ξiX_i = \mu_i + \frac{\mu_i}{\|\mu_i\|_2} \xi_i, ξi∼i.i.d.N(0,σ2)\xi_i \overset{\mathrm{i.i.d.}}{\sim} \mathcal{N}(0, \sigma^2), where μi∣zi=r\mu_i \mid z_i = r is uniform on a sphere in Rp\mathbb{R}^p of radius ρr\rho_r, with ρ1<⋯<ρR\rho_1 < \dots < \rho_R. Assume separation ratio max⁡r∈[R−1]ρrρr+1≤1−Cγlog⁡γ\max_{r \in [R-1]} \frac{\rho_r}{\rho_{r+1}} \le 1 - C \sqrt{\gamma \log \gamma} and radial gap cmin⁡r∣ρr+1−ρr∣≥σlog⁡nc \min_r |\rho_{r+1} - \rho_r| \ge \sigma \sqrt{\log n}, where max⁡{n−1,σ2ρ1−2}log⁡n≪γ≪1\max\{n^{-1}, \sigma^2 \rho_1^{-2}\} \log n \ll \gamma \ll 1. Set bandwidth τi2≍γρzi2\tau_i^2 \asymp \gamma \rho_{z_i}^2.

    When spheres are equally separated with ρr+1−ρr=Δ≥cρR\rho_{r+1} - \rho_r = \Delta \ge c \rho_R and γ=c(log⁡n)−1\gamma = c(\log n)^{-1}, setting: K0=⌊(log⁡n)2⌋,σn=(log⁡n)−2,h=h′=nδ,α=γn1−δ,K1≤n1−δ/log⁡nK_0 = \lfloor (\log n)^2 \rfloor, \quad \sigma_n = (\log n)^{-2}, \quad h = h' = n^\delta, \quad \alpha = \gamma n^{1-\delta}, \quad K_1 \le n^{1-\delta}/\log n for any constant δ∈(0,1)\delta \in (0, 1) guarantees that implicit spectral clustering holds in early exaggeration and intercluster repulsion holds in the embedding stage with high probability.

  11. Knowl 11 — Empirical Verification of Early Stopping and Initialization Artifacts on MNIST

    empirical result

    Applying t-SNE to n=1600n = 1600 MNIST handwritten digits ('2', '4', '6', '8'; N=400N = 400 per digit in 784 dimensions) with theory-guided parameters α=n1−δ\alpha = n^{1-\delta}, h=h′=nδh = h' = n^\delta (with δ=2/3\delta = 2/3) and default perplexity 30 demonstrates two key theoretical phenomena:

    1. Early stopping prevents overshooting: When K0=⌊(log⁡n)2⌋=54K_0 = \lfloor (\log n)^2 \rfloor = 54, clear and separated cluster patterns emerge at both the end of early exaggeration and the final embedding (k=1000k = 1000). When K0K_0 is increased beyond theoretical bounds to K0=⌊n2/3⌋=137K_0 = \lfloor n^{2/3} \rfloor = 137, cluster separation deteriorates; when K0=⌊n3/4⌋=253K_0 = \lfloor n^{3/4} \rfloor = 253, the early exaggeration embedding collapses onto a 1D curve, resulting in false clustering artifacts in the final visualization.

    2. Random initialization determines relative cluster layout: Re-running t-SNE with identical parameters but different random initializations produces final 2D embeddings where relative cluster adjacencies change (e.g., digit clusters '2' and '8' are adjacent in one run but separated in another). Furthermore, accidental initial cluster overlaps combined with intercluster repulsion can occasionally split a true single cluster into apparent subclusters, confirming that relative 2D cluster positions do not reflect high-dimensional distances.

Coverage note — Deliberately omitted technical proofs in the appendices and minor secondary lemmas (e.g., Lemmas 21, 23, 24, 25, 27) that serve solely as intermediate proof steps for the main theorems.

References

  1. 1.Arash A Amini and Zahra S Razaee. Concentration of kernel matrices with application to kernel spectral clustering. The Annals of Statistics, 49(1):531–556, 2021.
  2. 2.Sanjeev Arora, Wei Hu, and Pravesh K Kothari. An analysis of the t-SNE algorithm for data visualization. In Conference on Learning Theory, pages 1455–1462. PMLR, 2018.
  3. 3.Sivaraman Balakrishnan, Min Xu, Akshay Krishnamurthy, and Aarti Singh. Noise thresholds for spectral clustering. In Advances in Neural Information Processing Systems, pages 954–962, 2011.
  4. 4.Zhigang Bao, Xiucai Ding, and Ke Wang. Singular vector and singular subspace distribution for the matrix denoising model. The Annals of Statistics, 49(1):370–392, 2021.
  5. 5.Mikhail Belkin and Partha Niyogi. Laplacian eigenmaps for dimensionality reduction and data representation. Neural Computation, 15(6):1373–1396, 2003.
  6. 6.Florent Benaych-Georges and Raj Rao Nadakuditi. The singular values and vectors of low rank perturbations of large rectangular random matrices. Journal of Multivariate Analysis, 111:120–135, 2012.
  7. 7.John Charles Butcher. Numerical methods for ordinary differential equations. John Wiley & Sons, 2008.
  8. 8.T Tony Cai and Anru Zhang. Rate-optimal perturbation bounds for singular subspaces with applications to high-dimensional statistics. The Annals of Statistics, 46(1):60–89, 2018.
  9. 9.Miguel A Carreira-Perpin'an. The elastic embedding algorithm for dimensionality reduction. In ICML, volume 10, pages 167–174, 2010.
  10. 10.Tara Chari, Joeyta Banerjee, and Lior Pachter. The specious art of single-cell genomics. BioRxiv, 2021.
  11. 11.Angelos Chatzimparmpas, Rafael M Martins, and Andreas Kerren. t-viSNE: Interactive assessment and interpretation of t-SNE projections. IEEE Transactions on Visualization and Computer Graphics, 26(8):2696–2714, 2020.
  12. 12.Jian Cheng, Haijun Liu, Feng Wang, Hongsheng Li, and Ce Zhu. Silhouette analysis for human action recognition based on supervised temporal t-SNE and incremental learning. IEEE Transactions on Image Processing, 24(10):3203–3217, 2015.
  13. 13.Adela DePavia and Stefan Steinerberger. Spectral clustering revisited: Information hidden in the fiedler vector. arXiv preprint arXiv:2003.09969, 2020.
  14. 14.Xiucai Ding and Rong Ma. Learning low-dimensional nonlinear structures from highdimensional noisy data: An integral operator approach. arXiv preprint arXiv:2203.00126, 2022.
  15. 15.David Donoho. 50 years of data science. Journal of Computational and Graphical Statistics, 26(4):745–766, 2017.
  16. 16.Andrej Gisbrecht, Alexander Schulz, and Barbara Hammer. Parametric nonlinear dimensionality reduction using kernel t-SNE. Neurocomputing, 147:71–82, 2015.
  17. 17.Geoffrey Hinton and Sam T Roweis. Stochastic neighbor embedding. In Advances in Neural Information Processing Systems, volume 15, pages 833–840, 2002.
  18. 18.Daniel Jiwoong Im, Nakul Verma, and Kristin Branson. Stochastic neighbor embedding under f-divergences. arXiv preprint arXiv:1811.01247, 2018.
  19. 19.Robert A Jacobs. Increased rates of convergence through learning rate adaptation. Neural Networks, 1(4):295–307, 1988.
  20. 20.Dmitry Kobak and Philipp Berens. The art of using t-SNE for single-cell transcriptomics. Nature Communications, 10(1):1–14, 2019.
  21. 21.Dmitry Kobak and George C Linderman. Initialization is critical for preserving global data structure in both t-SNE and UMAP. Nature Biotechnology, 39(2):156–157, 2021.
  22. 22.Joseph B Kruskal. Multidimensional Scaling. Number 11. Sage, 1978.
  23. 23.John A Lee and Michel Verleysen. Shift-invariant similarities circumvent distance concentration in stochastic neighbor embedding and variants. Procedia Computer Science, 4: 538–547, 2011.
  24. 24.John A Lee and Michel Verleysen. Two key properties of dimensionality reduction methods. In 2014 IEEE symposium on computational intelligence and data mining (CIDM), pages 163–170. IEEE, 2014.
  25. 25.George C Linderman and Stefan Steinerberger. Clustering with t-SNE, provably. SIAM Journal on Mathematics of Data Science, 1(2):313–332, 2019.
  26. 26.George C Linderman, Manas Rachh, Jeremy G Hoskins, Stefan Steinerberger, and Yuval Kluger. Fast interpolation-based t-SNE for improved visualization of single-cell RNA-seq data. Nature Methods, 16(3):243–245, 2019.
  27. 27.Anne Marsden. Eigenvalues of the laplacian and their relationship to the connectedness of a graph. University of Chicago, REU, 2013.
  28. 28.Luis Gustavo Nonato and Michael Aupetit. Multidimensional projection for visual analytics: Linking techniques with distortions, tasks, and layout enrichment. IEEE Transactions on Visualization and Computer Graphics, 25(8):2650–2673, 2018.
  29. 29.Florent Olivon, Nicolas Elie, Gwendal Grelier, Fanny Roussi, Marc Litaudon, and David Touboul. Metgem software for the generation of molecular networks based on the t-SNE algorithm. Analytical Chemistry, 90(23):13900–13908, 2018.
  30. 30.Nicola Pezzotti, Boudewijn PF Lelieveldt, Laurens Van Der Maaten, Thomas Ḧllt, Elmar Eisemann, and Anna Vilanova. Approximated and user steerable tSNE for progressive visual analytics. IEEE Transactions on Visualization and Computer Graphics, 23(7): 1739–1752, 2016.
  31. 31.Alexander Platzer. Visualization of snps with t-SNE. PloS One, 8(2):e56883, 2013.
  32. 32.Isaac Robinson and Emma Pierce-Hoffman. Tree-sne: Hierarchical clustering and visualization using t-sne. arXiv preprint arXiv:2002.05687, 2020.
  33. 33.Mark Rudelson and Roman Vershynin. Hanson-wright inequality and sub-gaussian concentration. Electronic Communications in Probability, 18, 2013.
  34. 34.Bernhard Schölkopf, Alexander Smola, and Klaus-Robert Müller. Kernel principal component analysis. In International Conference on Artificial Neural Networks, pages 583–588. Springer, 1997.
  35. 35.Uri Shaham and Stefan Steinerberger. Stochastic neighbor embedding separates wellseparated clusters. arXiv preprint arXiv:1702.02670, 2017.
  36. 36.Gregor Traven, Gal Matijevič, Tomaz Zwitter, M žerjal, Janez Kos, Martin Asplund, Joss Bland-Hawthorn, Andrew R Casey, Gayandhi De Silva, Kenneth Freeman, et al. The galah survey: classification and diagnostics with t-SNE reduction of spectral information. The Astrophysical Journal Supplement Series, 228(2):24, 2017.
  37. 37.Laurens van der Maaten. Accelerating t-SNE using tree-based algorithms. The Journal of Machine Learning Research, 15(1):3221–3245, 2014.
  38. 38.Laurens van der Maaten and Geoffrey Hinton. Visualizing data using t-SNE. Journal of Machine Learning Research, 9(Nov):2579–2605, 2008.
  39. 39.Richard S Varga. Geršgorin and his circles, volume 36. Springer Science & Business Media, 2010.
  40. 40.Yingfan Wang, Haiyang Huang, Cynthia Rudin, and Yaron Shaposhnik. Understanding how dimension reduction tools work: An empirical approach to deciphering t-sne, umap, trimap, and pacmap for data visualization. Journal of Machine Learning Research, 22: 1–73, 2021.
  41. 41.Bo Xie, Yang Mu, Dacheng Tao, and Kaiqi Huang. m-SNE: Multiview stochastic neighbor embedding. IEEE Transactions on Systems, Man, and Cybernetics, Part B (Cybernetics), 41(4):1088–1096, 2011.
  42. 42.Zhirong Yang, Irwin King, Zenglin Xu, and Erkki Oja. Heavy-tailed symmetric stochastic neighbor embedding. In Advances in Neural Information Processing Systems, volume 22, pages 2169–2177, 2009.
  43. 43.Yulan Zhang and Stefan Steinerberger. t-SNE, forceful colorings and mean field limits. arXiv preprint arXiv:2102.13009, 2021.

Citation

MLA
Cai, T. T., and R. Ma. “Theoretical Foundations of t-SNE for Visualizing High-Dimensional Clustered Data”. Journal of Machine Learning Research, vol. 23, no. 301, 2022, pp. 1–4, https://www.jmlr.org/papers/v23/21-0524.html.
APA
Cai, T. T., & Ma, R. (2022). Theoretical Foundations of t-SNE for Visualizing High-Dimensional Clustered Data. Journal of Machine Learning Research, 23(301), 1–54. https://www.jmlr.org/papers/v23/21-0524.html
Chicago
Cai, T. T., and R. Ma. 2022. “Theoretical Foundations of t-SNE for Visualizing High-Dimensional Clustered Data”. Journal of Machine Learning Research 23 (301): 1–54. https://www.jmlr.org/papers/v23/21-0524.html.
Harvard
Cai, T.T. and Ma, R. (2022) “Theoretical Foundations of t-SNE for Visualizing High-Dimensional Clustered Data”, Journal of Machine Learning Research, 23(301), pp. 1–54. Available at: https://www.jmlr.org/papers/v23/21-0524.html.
Vancouver
1. Cai TT, Ma R (2022) Theoretical Foundations of t-SNE for Visualizing High-Dimensional Clustered Data. Journal of Machine Learning Research 23:1–54

BibTeX

@article{JMLR:v23:21-0524,
  author  = {T. Tony Cai and Rong Ma},
  title   = {Theoretical Foundations of t-SNE for Visualizing High-Dimensional Clustered Data},
  journal = {Journal of Machine Learning Research},
  year    = {2022},
  volume  = {23},
  number  = {301},
  pages   = {1--54},
  url     = {http://jmlr.org/papers/v23/21-0524.html}
}
Metadata:DOI registry

Access the Paper

This paper is available from its original source. Click below to access the PDF.

Open PDF
License: https://creativecommons.org/licenses/by/4.0/