t-distributed Stochastic Neighbor Embedding
Master conditional probabilities and neighbor distributions
Understand symmetric SNE and t-distribution innovation
Learn perplexity selection and optimization strategies
Apply t-SNE effectively while avoiding common pitfalls
The Challenge: High-dimensional neighborhoods cannot fit in low-dimensional space. Points that are far apart in high dimensions become artificially close in 2D/3D embeddings.
t-SNE's Solution: Focus on preserving local neighborhoods only. Use probability distributions to handle uncertainty in neighbor relationships.
Asymmetric probabilities
Difficult optimization
Simplified gradients
Better convergence
Heavy-tailed distribution
Solves crowding problem
Use different probability distributions in high and low dimensions to solve the crowding problem while preserving local structure.
Gaussian Distribution
$$p_{j|i} = \frac{\exp(-||x_i - x_j||^2 / 2\sigma_i^2)}{\sum_{k \neq i} \exp(-||x_i - x_k||^2 / 2\sigma_i^2)}$$
Conditional probabilities
Student-t Distribution
$$q_{ij} = \frac{(1 + ||y_i - y_j||^2)^{-1}}{\sum_{k \neq l} (1 + ||y_k - y_l||^2)^{-1}}$$
Heavy-tailed distribution
$$\text{Perp}(P_i) = 2^{H(P_i)}$$
$$H(P_i) = -\sum_j p_{j|i} \log_2 p_{j|i}$$
Effective number of neighbors
$$\frac{\delta C}{\delta y_i} = 4 \sum_j (p_{ij} - q_{ij})(y_i - y_j)(1 + ||y_i - y_j||^2)^{-1}$$
Computational Reality: Standard t-SNE has O(n²) complexity in both time and memory, making it impractical for large datasets without approximations.
t-SNE's Legacy: Revolutionized data visualization by solving the crowding problem through probabilistic neighborhood preservation and heavy-tailed distributions.