On the continuum limit of t-SNE for data visualization

arXiv stat.ML / 4/15/2026

💬 OpinionIdeas & Deep AnalysisModels & Research

Key Points

  • The paper studies the theoretical continuum limit of t-SNE, showing that as the number of data points grows, the Kullback–Leibler divergence converges to a continuum variational problem under appropriate rescaling and parameter regimes.
  • In the limiting formulation, the continuum energy splits into terms that correspond to the t-SNE “attraction” and “repulsion” forces, with a non-convex gradient regularization and an added penalty related to the probability density magnitude in visualization space.
  • The authors find that non-convexity leads to only partial well-posedness results, including a setting (1D visualization in both dimensions) where there is a unique smooth minimizer but also infinitely many discontinuous minimizers in a relaxed interpretation.
  • They connect the limiting energy to the ill-posed Perona–Malik equation from image denoising, and provide numerical evidence supporting the continuum-limit analysis while flagging increased complexity in higher dimensions.
  • The work positions these results as a foundation for future theoretical questions, particularly regarding stability and behavior of the limiting energetic problem beyond the simplest cases.

Abstract

This work is concerned with the continuum limit of a graph-based data visualization technique called the t-Distributed Stochastic Neighbor Embedding (t-SNE), which is widely used for visualizing data in a variety of applications, but is still poorly understood from a theoretical standpoint. The t-SNE algorithm produces visualizations by minimizing the Kullback-Leibler divergence between similarity matrices representing the high dimensional data and its low dimensional representation. We prove that as the number of data points n \to \infty, after a natural rescaling and in applicable parameter regimes, the Kullback-Leibler divergence is consistent as the number of data points n \to \infty and the similarity graph remains sparse with a continuum variational problem that involves a non-convex gradient regularization term and a penalty on the magnitude of the probability density function in the visualization space. These two terms represent the continuum limits of the attraction and repulsion forces in the t-SNE algorithm. Due to the lack of convexity in the continuum variational problem, the question of well-posedeness is only partially resolved. We show that when both dimensions are 1, the problem admits a unique smooth minimizer, along with an infinite number of discontinuous minimizers (interpreted in a relaxed sense). This aligns well with the empirically observed ability of t-SNE to separate data in seemingly arbitrary ways in the visualization. The energy is also very closely related to the famously ill-posed Perona-Malik equation, which is used for denoising and simplifying images. We present numerical results validating the continuum limit, provide some preliminary results about the delicate nature of the limiting energetic problem in higher dimensions, and highlight several problems for future work.