t-SNE maps points to by minimising , where in the original space and in the embedding. (a) What happens to the embedding if is very large, or very small? (b) How is chosen in practice?
Unsupervised learning, Dimensionality reduction
Level L4 Advanced. Length Medium. Nature Th+Mat Both.
What's being asked
Whether you can reason from the kernel formula to the two extreme cases, and know how perplexity and a per-point binary search set .
Key idea
is the probability that point picks as its neighbour, and (Kullback–Leibler divergence) measures how badly the 2-D probabilities match it. sets how many neighbours count. As , : every point is an equal neighbour, so there is no local structure to preserve. As , all the probability goes to the single nearest neighbour. In practice each point gets its own , found by binary search so that the perplexity equals a chosen value, typically 5–50.
Steps
- Write the normalised form, , and say that controls how fast similarity falls off with distance.
- (a) Large : every exponent tends to 0, so every term tends to 1 and for all . The target says nothing about who is near whom, so the embedding becomes a shapeless ball and the clusters are lost.
- (a) Small : the nearest neighbour's term is exponentially larger than the rest, so becomes one-hot (all mass on one point). Only nearest-neighbour pairs are kept, giving many tiny broken-up clusters that are very sensitive to noise. In sparse regions the numbers can also underflow to 0 on a computer.
- Explain why one global also fails: data density varies, and a that suits a dense cluster is too small for a sparse one. So each point gets its own .
- (b) Choose through perplexity. Define the entropy and the perplexity , which reads as the effective number of neighbours. The user fixes a target perplexity. grows as grows, so a binary search on (or on ) finds the value that hits the target.
- Link the two parts: perplexity runs from 1 (the limit) to (the limit), so the two extremes in (a) are the two ends of the perplexity scale.
Common mistakes
- Saying is learned by gradient descent along with the . It is fixed before the optimisation starts.
- Mixing up the kernels. The Gaussian width is in the 50-D space; the Student-t kernel in 2-D has no width parameter.
- Calling perplexity the number of clusters. It is roughly the number of neighbours each point considers.
How long your answer should be
About half a page; 4–5 minutes.
Last checked on 4 December 2026.
Read this
Previous in Unsupervised learning: Why can exact divisive (top-down) clustering not simply try every possible split of a cluster, and how does DIANA's splinter-group heuristic get around this? How many splits exist for and points, and what does one DIANA split give on the 1-D points (absolute difference as dissimilarity)?
Next in Unsupervised learning: How is k-means a limiting case of EM for a Gaussian mixture model, and what assumptions about the clusters does this reveal?