Parametric t-Distributed Stochastic Exemplar-Centered Embedding

Martin Renqiang Min, Hongyu Guo, Dinghan Shen

TL;DR

This paper introduces dt-SEE and hot-SEE, two new parametric dimensionality reduction methods that solve the "batch size dilemma" found in traditional parametric t-SNE (pt-SNE). By comparing data points to a small set of precomputed "exemplars" rather than every other point in a batch, the authors achieve a more robust, scalable, and easier-to-tune visualization tool that outperforms deep learning-based alternatives.

What Problem Does This Paper Address?

Data visualization often relies on techniques like t-SNE to squash high-dimensional data into 2D or 3D maps. However, standard t-SNE is non-parametric, meaning it can’t easily process new "out-of-sample" data without re-running the whole optimization.

Parametric t-SNE (pt-SNE) solved this by training a neural network to learn the mapping. But pt-SNE introduced a new headache: the batch size dilemma. To optimize a Deep Neural Network (DNN), you usually want small mini-batches. However, to accurately approximate the t-SNE cost function (which involves comparing every point to every other point), you need very large batches. This conflict makes pt-SNE notoriously sensitive to hyperparameters and difficult to train.

Methods

The authors propose an exemplar-centered approach to break this deadlock:

  1. Exemplar Selection: Before training, the algorithm runs a few iterations of k-means to find $z$ representative "exemplars" ($z$ is much smaller than the total number of points $n$).
  2. Exemplar-Centered Objective: Instead of calculating pairwise similarities between all points in a batch, the model only calculates the similarity between a data point and the $z$ exemplars. This reduces computational complexity from $O(n^2)$ to $O(nz)$.
  3. Two Model Flavors:
    • dt-SEE: Uses a standard Deep Neural Network.
  4. hot-SEE: Uses a shallow network with high-order feature interactions. This model captures complex relationships (like products of multiple features) using constrained tensor factorization, making it easier to tune than a deep stack of layers.
  5. Noise Contrastive Estimation (NCE): To scale even further, they use NCE to avoid comparing points to all exemplars, focusing only on the nearest ones and a few random "noise" samples.

Datasets

The researchers evaluated their methods on three standard computer vision benchmarks:

  • COIL100: 7,200 images of 100 different objects.
  • MNIST: 70,000 handwritten digits (the "Hello World" of ML).
  • Fashion-MNIST: 70,000 images of clothing items (a more challenging drop-in replacement for MNIST).

Key Insights and Ideas

  • Decoupling Batch Size from Accuracy: Because every mini-batch includes comparisons to the global set of exemplars, the model's performance is no longer tied to having massive batch sizes.
  • Shallow can be Better: The hot-SEE model demonstrates that a shallow network with high-order interactions can produce visualizations comparable to or better than deep networks, while being roughly 2.5x faster at processing test data.
  • Global vs. Local: By using k-means to pick exemplars, the model naturally captures both the local density of the data and the global cluster patterns, leading to more stable embeddings.

Key Results

  • Robustness: In sensitivity tests, pt-SNE's error rates fluctuated wildly depending on batch size and perplexity. In contrast, dt-SEE and hot-SEE produced consistently low error rates across a wide range of settings.
  • Quantitative Performance: Using a 1-Nearest Neighbor (1NN) classifier on the 2D embeddings, hot-SEE achieved an error rate of 28.18% on Fashion-MNIST, significantly beating pt-SNE’s 32.48%.
  • Visual Quality: The 2D plots generated by the SEE methods showed much clearer separation between clusters and tighter groupings compared to the more "scattered" results of pt-SNE.
  • Efficiency: The NCE strategy reduced computation further with negligible loss in accuracy (less than 0.4% difference).

Limitations and Future Work

While the exemplar approach is highly effective, it does introduce a new preprocessing step (k-means). Although the authors note that k-means is fast and linear, the quality of the final embedding is somewhat dependent on these initial exemplars.

For future work, the authors suggest incorporating recent "speedup" developments, such as efficient N-body force approximations, into their exemplar-centered framework to handle even larger, billion-scale datasets.

Summary updated

BibTeX
@inproceedings{min2018parametric,
  author = {Martin Renqiang Min and Hongyu Guo and Dinghan Shen},
  title = {{Parametric t-Distributed Stochastic Exemplar-Centered Embedding}},
  booktitle = {ECML/PKDD},
  year = {2018},
  doi = {10.1007/978-3-030-10925-7\_29},
}
Figure