Visualizing Riemannian data with Rie-SNE

Andri Bergsson, Søren HaubergMLVis@EuroVis 2022

TL;DR

This paper introduces Rie-SNE, a novel visualization technique that extends the popular t-SNE algorithm to data residing on Riemannian manifolds. By adapting the underlying probability distributions to account for manifold geometry, Rie-SNE can produce more faithful and insightful visualizations of complex, curved data compared to traditional methods.

What Problem Does This Paper Address?

Visualizing high-dimensional data is crucial for understanding its underlying structure. However, most existing visualization techniques, like PCA and SNE, assume data lies in a flat, Euclidean space. This assumption breaks down when data has an inherent geometric structure, such as points on a sphere or within a specific manifold. For instance, data from directional statistics, shape analysis, or even certain types of sensor data might naturally live on a curved manifold. Traditional methods that ignore this curvature can lead to distorted visualizations, obscuring important patterns. While mapping data to a tangent space and then applying Euclidean methods is a common workaround, it often results in significant information loss due to linearization. This paper addresses the need for visualization tools that can directly handle and leverage the geometric properties of Riemannian manifolds.

Methods

The core contribution is the development of Rie-SNE (Riemannian Stochastic Neighbor Embedding). It builds upon the Stochastic Neighbor Embedding (SNE) framework, which aims to preserve pairwise similarities between data points in both the high-dimensional (observation) space and the low-dimensional (embedding) space.

The key innovations are:

  • Riemannian Diffusion for High-Dimensional Similarities: Instead of using standard Gaussian distributions to model pairwise similarities in the high-dimensional space (as in SNE), Rie-SNE uses a density derived from a Brownian motion on a Riemannian manifold. This is approximated using a heat kernel expansion, which naturally incorporates the manifold's intrinsic geometry (specifically, its metric and volume measures). This allows for a more accurate representation of local neighborhood structures on curved spaces.
  • Flexible Low-Dimensional Embeddings: Rie-SNE offers flexibility in the target low-dimensional space. Users can choose to embed data onto:
  • A Euclidean plane (similar to standard t-SNE, using a heavy-tailed t-distribution).
  • A low-dimensional sphere (beneficial for data with positive curvature, using a von Mises-Fisher distribution).
  • Other manifolds, by using the Riemannian Brownian motion model for the low-dimensional similarities as well.
  • Gradient Descent Optimization: Similar to SNE, Rie-SNE minimizes the Kullback-Leibler (KL) divergence between the high-dimensional and low-dimensional probability distributions using gradient descent.
  • Approximation Techniques: To handle the computational complexity, Rie-SNE employs techniques commonly used in t-SNE, such as sparse nearest neighbor approximations (using vantage-point trees) for computing the high-dimensional probabilities and the Barnes-Hut approximation for optimizing the low-dimensional embedding.

Datasets

The paper evaluates Rie-SNE on two main datasets:

  • Spherical MNIST: This dataset is derived from the classic MNIST handwritten digit dataset. The 24x24 grayscale images are projected onto the unit sphere in R²⁴ˣ²⁴ to create data with a non-Euclidean, spherical geometry. This allows for testing how well Rie-SNE can visualize clustered data on a curved manifold.
  • Crypto-tensors: This dataset consists of time series of covariance matrices for 10 popular cryptocurrencies. These covariance matrices reside on the cone of symmetric positive definite matrices, which is a Riemannian manifold. This dataset is used to demonstrate Rie-SNE's ability to uncover temporal structures in data with a more complex manifold structure.

Key Insights and Ideas

  • Geometry Matters for Visualization: The paper strongly emphasizes that ignoring the underlying geometry of data residing on manifolds leads to distorted and less informative visualizations. Rie-SNE's success hinges on explicitly incorporating this geometry.
  • Brownian Motion as a Manifold-Aware Similarity Measure: Using a density derived from Brownian motion on a manifold is a clever way to generalize the Gaussian similarity used in Euclidean SNE. It naturally captures local geodesic distances and volume effects, which are crucial for understanding neighborhood relationships on curved spaces.
  • Flexibility in Target Space is Crucial: The ability to embed data onto a manifold of similar curvature (e.g., a sphere for spherical data) rather than always forcing it onto a flat plane is a significant advantage. This reduces the "curvature mismatch" distortion, leading to more interpretable results.
  • Rie-SNE Uncovers Hidden Structures: Compared to tangent space PCA, Rie-SNE consistently reveals clearer cluster structures and temporal patterns in the tested datasets, demonstrating its practical utility.

Key Results

  • Spherical MNIST Visualization: Rie-SNE successfully groups digits together on both 2D planar and spherical embeddings, revealing clear clusters. Tangent space PCA, in contrast, produces a more cluttered view with less distinct separation of digit classes.
  • Crypto-tensor Visualization: Rie-SNE recovers a clear one-dimensional structure that captures the time evolution of the cryptocurrency prices. Tangent space PCA, when applied to the same data, fails to reveal this underlying temporal signal in its 2D and 3D embeddings.
  • Computational Efficiency: By leveraging sparse nearest neighbor and Barnes-Hut approximations, Rie-SNE achieves a computational complexity that is manageable for practical use, comparable to that of standard t-SNE.

Limitations and Future Work

  • Curvature Mismatch Distortion: The authors acknowledge that any visualization of data from a curved space onto a flat space will inherently involve distortion due to the "curvature mismatch." Rie-SNE aims to limit this impact, not eliminate it entirely.
  • Geodesic Computation: For non-standard manifolds, computing geodesics (the shortest paths) can be non-trivial and computationally demanding. The paper suggests that approximation techniques for geodesic computation might be necessary for such cases.
  • Future Directions: The authors suggest exploring more visualizations of data on a wider variety of well-known manifolds. They also highlight the potential for applying Rie-SNE to non-standard manifolds, which would require further development in geodesic computation and potentially other approximation techniques. The work also paves the way for other visualization tools tailored for Riemannian data.

Summary updated

BibTeX
@inproceedings{bergsson2022visualizing,
  author = {Andri Bergsson and Søren Hauberg},
  title = {{Visualizing Riemannian data with Rie-SNE}},
  booktitle = {MLVis@EuroVis},
  year = {2022},
}
Figure