What is the difference between supervised and unsupervised dimensionality reduction?

Quick Overview

Compare supervised and unsupervised dimensionality reduction, with methods such as PCA, t-SNE, UMAP, LDA and PLS. It tests whether you know what each family preserves, when unsupervised reduction discards predictive signal, and how to avoid label leakage with supervised methods.

What is the difference between supervised and unsupervised dimensionality reduction?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is the difference between supervised and unsupervised dimensionality reduction? Give examples of each, say what each one tries to preserve, and explain when you would choose one over the other. ```hint Ask what each method is allowed to see Compare a method that only sees the feature matrix with one that also sees the labels, and think about a direction in the data that has little variance but separates the classes. ``` ### What a Strong Answer Covers - The defining difference: whether the target labels are used to choose the low-dimensional representation. - Examples of each family and the quantity each method preserves or optimizes. - A failure case for unsupervised reduction when the goal is prediction. - The overfitting and leakage risk of supervised reduction and how to avoid it. - A rule for choosing between them based on the goal and on how many labels are available. ### Follow-up Questions - When can running PCA before a classifier hurt accuracy, and how would you detect it? - Why does LDA produce at most $C - 1$ components for $C$ classes? - How would you reduce dimensionality when only a small fraction of the data is labelled? - Why is a t-SNE embedding a poor choice of input features for a downstream model?

Overview: Compare supervised and unsupervised dimensionality reduction, with methods such as PCA, t-SNE, UMAP, LDA and PLS. It tests whether you know what each family preserves, when unsupervised reduction discards predictive signal, and how to avoid label leakage with supervised methods.

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

What is the difference between supervised and unsupervised dimensionality reduction?

Give examples of each, say what each one tries to preserve, and explain when you would choose one over the other.

What a Strong Answer Covers Guidance

  • The defining difference: whether the target labels are used to choose the low-dimensional representation.
  • Examples of each family and the quantity each method preserves or optimizes.
  • A failure case for unsupervised reduction when the goal is prediction.
  • The overfitting and leakage risk of supervised reduction and how to avoid it.
  • A rule for choosing between them based on the goal and on how many labels are available.

Follow-up Questions Guidance

  • When can running PCA before a classifier hurt accuracy, and how would you detect it?
  • Why does LDA produce at most C−1C - 1 components for CC classes?
  • How would you reduce dimensionality when only a small fraction of the data is labelled?
  • Why is a t-SNE embedding a poor choice of input features for a downstream model?