Why is PCA often applied as a preprocessing step before running t-SNE or UMAP?

Quick Overview

Asks why practitioners reduce high-dimensional data with PCA before running t-SNE or UMAP. Tests understanding of nearest-neighbor cost, noise in low-variance directions, distance concentration in high dimensions, and the limits of a linear projection.

Why is PCA often applied as a preprocessing step before running t-SNE or UMAP?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why is PCA often applied as a preprocessing step before running t-SNE or UMAP? Think of a dataset with thousands of features per row, such as gene expression counts or image pixels. ```hint Follow the cost Both methods begin by finding each point's nearest neighbors. How does the cost of that step depend on the number of features? ``` ```hint Where the noise lives Ask what the lowest-variance directions of such a dataset usually contain, and what they add to every pairwise distance. ``` ### What a Strong Answer Covers - Explains the speedup in the nearest-neighbor or pairwise distance step. - Explains how dropping low-variance components denoises distances and the neighbor graph. - Connects the step to distance concentration in high dimensions. - Separates PCA preprocessing from PCA initialization of the layout. - Gives the caveats: a linear projection can drop signal, the number of components has to be chosen, features need sensible scaling, and sparse inputs need a different tool. ### Follow-up Questions - How would you choose the number of principal components to keep? - When could PCA preprocessing hide structure you care about in the embedding? - Why does the initialization of t-SNE or UMAP affect the global layout of the plot? - What would you use instead of PCA for a sparse TF-IDF matrix, and why?

Overview: Asks why practitioners reduce high-dimensional data with PCA before running t-SNE or UMAP. Tests understanding of nearest-neighbor cost, noise in low-variance directions, distance concentration in high dimensions, and the limits of a linear projection.

PracHub logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why is PCA often applied as a preprocessing step before running t-SNE or UMAP? Think of a dataset with thousands of features per row, such as gene expression counts or image pixels.

What a Strong Answer Covers Guidance

  • Explains the speedup in the nearest-neighbor or pairwise distance step.
  • Explains how dropping low-variance components denoises distances and the neighbor graph.
  • Connects the step to distance concentration in high dimensions.
  • Separates PCA preprocessing from PCA initialization of the layout.
  • Gives the caveats: a linear projection can drop signal, the number of components has to be chosen, features need sensible scaling, and sparse inputs need a different tool.

Follow-up Questions Guidance

  • How would you choose the number of principal components to keep?
  • When could PCA preprocessing hide structure you care about in the embedding?
  • Why does the initialization of t-SNE or UMAP affect the global layout of the plot?
  • What would you use instead of PCA for a sparse TF-IDF matrix, and why?