Perplexity-free Parametric t-SNE

Francesco Crecchi, Cyril de Bodt, Michel Verleysen, John A. Lee, Davide Bacciu

Abstract

This paper introduces Multi-scale Parametric t-SNE (Ms.p.t-SNE), a dimensionality reduction method designed to eliminate the need for manual "perplexity" tuning. By integrating a deep neural network with a multi-scale similarity approach, the authors develop a robust mapping that captures both local and global data structures. This parametric approach allows for the efficient embedding of new, unseen data points, overcoming the limitations of traditional non-parametric t-SNE.

Introduction

Dimensionality reduction (DR) is a cornerstone of high-dimensional data analysis and visualization. While t-SNE has become a standard tool, it faces two significant challenges: the "Perplexity Trap" and its non-parametric nature. The former requires users to manually tune a perplexity parameter to define neighborhood size, where incorrect choices can lead to misleading visualizations. The latter means the algorithm does not learn a generalizable mapping function, requiring a full re-run for any new data points.

While previous iterations of Parametric t-SNE (p.t-SNE) addressed the mapping issue using neural networks, they still relied on manual perplexity selection. Ms.p.t-SNE aims to solve both problems simultaneously by automating scale selection and utilizing modern deep learning architectures.

Methods

The proposed Multi-scale Parametric t-SNE introduces two primary innovations:

  1. Multi-scale Similarities: Instead of a single perplexity value, the model calculates high-dimensional similarities across a range of scales ($K_h = 2^h$). These are averaged to create a "perplexity-free" similarity matrix that inherently accounts for both fine-grained local clusters and broader global structures.
  2. Modern Deep Learning Architecture: The mapping is learned via a feed-forward neural network using ReLU (Rectified Linear Unit) activations. This departure from the original 2009 parametric t-SNE (which used logistic activations) prevents gradient saturation and eliminates the need for complex unsupervised pre-training, allowing the network to be trained effectively from scratch.

Experimental Setup

The method was evaluated on four diverse datasets to test robustness across different dimensionalities and structures:

  • MNIST: Handwritten digits (1,000 samples, 784 dimensions).
  • COIL-20: Object images (1,440 samples, 16,384 dimensions).
  • ECOLI: Protein localization sites (336 samples, 8 dimensions).
  • Helix: Synthetic 3D helix structure (1,000 samples).

Key Results

The primary metric for evaluation is $R_{NX}(K)$, which quantifies how well neighborhood structures are preserved across different scales $K$.

Dimensionality reduction quality ($R_{NX}$) for train and extended sets across four datasets, comparing multi-scale p.t-SNE with single-scale baselines.

As shown in the figure above, Ms.p.t-SNE (the brown line) consistently performs as well as, or better than, the best-tuned single-scale parametric t-SNE models. This stability is crucial, as it demonstrates that the multi-scale approach avoids the catastrophic failures associated with picking an inappropriate single perplexity value.

Furthermore, the "extended" scenario results (right column) confirm the model's ability to generalize. By training on 70% of the data and testing on the remaining 30%, the authors showed that Ms.p.t-SNE successfully places new points into the existing latent structure while maintaining high-quality neighborhood preservation.

Discussion and Future Work

While Ms.p.t-SNE excels at capturing global structures, the authors noted a slight performance gap in preserving very fine-grained local structures for out-of-sample points in the "extended" scenario. This is likely due to the limited size of the training sets used in these experiments.

Future research directions include:

  • Regularization: Incorporating regularization terms into the loss function to improve local structure preservation.
  • Scalability: Testing the method on larger, more complex datasets.
  • Comparative Analysis: Benchmarking against other parametric learners such as Autoencoders or Neighborhood Components Analysis (NCA).

By removing the "black magic" of manual tuning and pre-training, Ms.p.t-SNE provides a more accessible and robust tool for the dimensionality reduction pipeline.

Summary updated

BibTeX
@inproceedings{crecchi2020perplexity,
  author = {Francesco Crecchi and Cyril de Bodt and Michel Verleysen and John A. Lee and Davide Bacciu},
  title = {{Perplexity-free Parametric t-SNE}},
  booktitle = {ESANN},
  year = {2020},
  url = {https://openreview.net/forum?id=HBr47RT-Ux9},
}
Figure