Stochastic Cluster Embedding

Zhirong Yang, Yuwei Chen, Denis Sedov, Samuel Kaski, Jukka Corander

Abstract

Stochastic Cluster Embedding (SCE) is a novel dimensionality reduction technique designed to overcome the tendency of traditional methods like t-SNE to obscure large-scale cluster structures. By generalizing the objective function through Generalized Stochastic Neighbor Embedding (GSNE) and introducing an adaptive scaling parameter, SCE balances attractive and repulsive forces to produce clearer, more separated cluster visualizations. We demonstrate that SCE consistently outperforms t-SNE, UMAP, and LargeVis on diverse datasets, including "mega-scale" data with millions of points, while maintaining high computational efficiency through a tree-free parallel optimization algorithm.

Introduction: The Local vs. Global Trade-off

Dimensionality reduction tools like t-SNE (t-Distributed Stochastic Neighbor Embedding) are essential for visualizing high-dimensional data. However, these methods are primarily optimized to preserve local neighborhoods—ensuring that points close together in high-dimensional space remain close in 2D. This focus often comes at the expense of global structure. In many cases, t-SNE produces "hairballs" or "diamonds" where distinct clusters are merged or boundaries are blurred, even when the underlying data is clearly clusterable. The authors argue that a mathematically "better" t-SNE score (lower Kullback-Leibler divergence) often results in a visualization that is less useful for human analysts trying to identify distinct groups.

Methodology: Generalized Stochastic Neighbor Embedding

To address these limitations, the authors propose Generalized Stochastic Neighbor Embedding (GSNE). This framework introduces two key innovations:

  1. Non-normalized Divergence: Instead of the standard normalized KL-divergence, GSNE utilizes I-divergence (non-normalized KL-divergence), which incorporates a scale parameter $s$. Standard SNE is shown to be a special case of this family where $s$ is fixed to a specific value.
  2. Adaptive Scaling ($s$): The core of SCE is the adaptive adjustment of $s$ during optimization. By balancing attractive and repulsive forces, SCE prevents the "over-attraction" that typically causes clusters to merge in t-SNE. This effectively integrates a smarter version of "early exaggeration" throughout the entire optimization process.

Efficient Optimization

SCE moves away from complex tree-based approximations like Barnes-Hut. Instead, it employs an asynchronous stochastic block coordinate descent algorithm. This "tree-free" approach is simpler to implement and highly efficient for parallel processing on multi-core CPUs and GPUs. By treating attraction and repulsion as separate sampling tasks, the algorithm achieves $O(1)$ cost per update, allowing it to scale to datasets with millions of points with ease.

Experimental Evaluation

The researchers evaluated SCE against six diverse real-world datasets, ranging from MNIST (70,000 samples) to the massive HIGGS dataset (11,000,000 samples).

Comparison of SCE, t-SNE, LargeVis, and UMAP visualizations.

As shown in the comparison above, SCE consistently produces compact, well-separated clusters. In instances where t-SNE failed—producing a single dense "hairball" for datasets like HIGGS or TOMORADAR—SCE successfully revealed the underlying cluster structure. While UMAP and LargeVis generally outperformed t-SNE, they struggled with specific datasets (e.g., SHUTTLE) where SCE succeeded. SCE was the only method to provide high-quality cluster visualizations across all tested datasets.

Human Perception and Scalability

A user study involving 340 participants revealed a "human gap": participants consistently preferred visualizations with a scale parameter $s$ that provides more repulsion between groups than t-SNE's mathematical target. SCE effectively incorporates this preference into its optimization process.

Furthermore, SCE demonstrates remarkable performance. It visualized the 1-million-point Flow-Cytometry dataset in approximately 2 hours and the 11-million-point HIGGS dataset in roughly 2.5 hours on a standard workstation. This performance is attributed to the stochastic gradient approach that simplifies the computational load per update.

Conclusion and Future Work

Stochastic Cluster Embedding provides a robust solution for visualizing large-scale, high-dimensional datasets by prioritizing cluster separation. Future work may involve incorporating "cognitive user models" to automatically tune parameters based on human perceptual patterns, potentially using techniques like Approximate Bayesian Computation to simulate how a human would perceive the resulting clusters.

Summary updated

BibTeX
@article{yang2023stochastic,
  author = {Zhirong Yang and Yuwei Chen and Denis Sedov and Samuel Kaski and Jukka Corander},
  title = {{Stochastic Cluster Embedding}},
  journal = {Stat. Comput.},
  year = {2023},
  doi = {10.1007/s11222-022-10186-z},
}
Figure