[Paper Review] Using Dimensionality Reduction to Optimize t-SNE
This paper proposes accelerating t-SNE by applying random projections to reduce input dimensionality before embedding, preserving local clustering structure while drastically cutting runtime. The key result shows that projecting to just 5% of original dimensions maintains t-SNE accuracy, enabling orders-of-magnitude speedups without sacrificing cluster fidelity.
t-SNE is a popular tool for embedding multi-dimensional datasets into two or three dimensions. However, it has a large computational cost, especially when the input data has many dimensions. Many use t-SNE to embed the output of a neural network, which is generally of much lower dimension than the original data. This limits the use of t-SNE in unsupervised scenarios. We propose using extit{random} projections to embed high dimensional datasets into relatively few dimensions, and then using t-SNE to obtain a two dimensional embedding. We show that random projections preserve the desirable clustering achieved by t-SNE, while dramatically reducing the runtime of finding the embedding.
Motivation & Objective
- To reduce the computational cost of t-SNE, which scales poorly with input dimensionality.
- To investigate whether dimensionality reduction via random projections preserves t-SNE’s ability to maintain local cluster structure.
- To demonstrate that preprocessing with random projections enables faster t-SNE inference without significant loss in embedding quality.
- To compare random projections with PCA as preprocessing methods for t-SNE in terms of accuracy and efficiency.
- To provide a practical, implementation-agnostic optimization strategy for t-SNE in unsupervised learning pipelines.
Proposed method
- Apply random projections to reduce high-dimensional input data to a lower-dimensional subspace before running t-SNE.
- Use the Johnson–Lindenstrauss Lemma as theoretical motivation, ensuring pairwise distances are approximately preserved in reduced space.
- Measure embedding quality using an accuracy score: fraction of points whose nearest neighbor has the same label.
- Compare t-SNE performance with and without prior dimensionality reduction across multiple datasets (MNIST, CIFAR-10, Small NORB, Fashion-MNIST).
- Use two t-SNE implementations—openTSNE (fast) and scikit-learn (slower)—to validate results across different backends.
- Evaluate both random projections and PCA as preprocessing methods, comparing their impact on accuracy and runtime.
Experimental results
Research questions
- RQ1Can random projections preserve the local cluster structure captured by t-SNE when applied before dimensionality reduction?
- RQ2How much can input dimensionality be reduced before t-SNE performance degrades significantly?
- RQ3Does preprocessing with random projections lead to measurable speedups in t-SNE runtime without sacrificing embedding quality?
- RQ4How does PCA compare to random projections as a preprocessing step for t-SNE in terms of accuracy and required projection dimension?
- RQ5Is the proposed method robust across different datasets and t-SNE implementations?
Key findings
- t-SNE accuracy remains nearly identical when data is projected to as low as 5% of the original dimension, with accuracy score ratios approaching 1.
- The runtime of t-SNE is reduced by up to 90% when using dimensionality reduction, with minimal loss in clustering fidelity.
- PCA outperforms random projections in preserving accuracy at lower dimensions, achieving near-optimal performance at d=25 for all tested datasets.
- The 'sweet spot' for dimensionality reduction lies between 5% and 10% of original dimension, where accuracy is preserved and speedup is maximized.
- The proposed method is implementation-agnostic, showing consistent performance gains across both openTSNE and scikit-learn t-SNE implementations.
- Visualizations confirm that cluster structures in MNIST remain visually indistinguishable between full-dimension and reduced-dimension t-SNE outputs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.