How does t-SNE convert high-dimensional distances into conditional probabilities?

Quick Overview

Asks how t-SNE turns pairwise distances in the original space into neighbor probabilities. Tests the Gaussian kernel formula, how perplexity sets each point's bandwidth, why the conditionals are symmetrized, and how the step is approximated for large datasets.

How does t-SNE convert high-dimensional distances into conditional probabilities?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

How does t-SNE convert high-dimensional distances into conditional probabilities? ```hint Picture a random neighbor choice Imagine each point picking one other point as its neighbor at random, with closer points more likely. Which kernel over distances would you use, and how would you normalize it so it is a probability distribution? ``` ```hint Density varies across the data One kernel width for the whole dataset fits dense and sparse regions badly. Look for a quantity, defined from the entropy of each point's neighbor distribution, that you could hold fixed for every point. ``` ### What a Strong Answer Covers - The kernel formula for the conditional probability, its normalization, and the value for a point paired with itself - How each point's bandwidth is set and why a per-point width is needed - How the conditionals become symmetric joint probabilities, and why that matters for outliers - The approximation used to make this step scale to large datasets ### Follow-up Questions - Which distribution does t-SNE use in the low-dimensional space, and why does it differ from the high-dimensional one? - How does changing the perplexity change the embedding? - Why shouldn't you read distances between clusters in a t-SNE plot? - How does UMAP build its neighbor weights, compared with t-SNE?

Overview: Asks how t-SNE turns pairwise distances in the original space into neighbor probabilities. Tests the Gaussian kernel formula, how perplexity sets each point's bandwidth, why the conditionals are symmetrized, and how the step is approximated for large datasets.

General logo
General
Nov 25, 2026
hardMachine Learning EngineerOtherMachine Learning
0
0

How does t-SNE convert high-dimensional distances into conditional probabilities?

What a Strong Answer Covers Guidance

  • The kernel formula for the conditional probability, its normalization, and the value for a point paired with itself
  • How each point's bandwidth is set and why a per-point width is needed
  • How the conditionals become symmetric joint probabilities, and why that matters for outliers
  • The approximation used to make this step scale to large datasets

Follow-up Questions Guidance

  • Which distribution does t-SNE use in the low-dimensional space, and why does it differ from the high-dimensional one?
  • How does changing the perplexity change the embedding?
  • Why shouldn't you read distances between clusters in a t-SNE plot?
  • How does UMAP build its neighbor weights, compared with t-SNE?