What is the computational bottleneck of Kernel PCA at inference time?

Quick Overview

Asks what limits the speed and memory of Kernel PCA when projecting new points after training. Tests whether you can write the projection formula, reason about how its cost scales with the training set, and compare it with linear PCA.

What is the computational bottleneck of Kernel PCA at inference time?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What is the computational bottleneck of Kernel PCA at inference time? Describe how the cost of projecting a new point scales and how it compares with projecting a point in linear PCA. ```hint Write out the projection Write the formula for the coordinate of a new point on one kernel principal component. Which quantities appear in it, and how many of them are there? ``` ```hint What survives training Ask what you have to keep after training to evaluate that formula, and compare it with what linear PCA keeps. ``` ### What a Strong Answer Covers - The projection formula for a new point and why it needs a kernel evaluation against every training sample. - The per-point time and memory cost in terms of the training size, input dimension and number of components, compared with linear PCA's projection matrix. - Extra inference work such as centering the new kernel row with training statistics. - How the training cost differs from the inference cost. - Approximations that cut the inference cost and what they give up. ### Follow-up Questions - How does the Nyström approximation work, and how would you choose the number of landmarks? - Why does the new kernel row need centering, and how can you do it without recomputing the training Gram matrix? - Kernel PCA has no explicit inverse map. How would you reconstruct an input-space point from its projection? - When would you choose an autoencoder over kernel PCA for nonlinear dimensionality reduction?

Overview: Asks what limits the speed and memory of Kernel PCA when projecting new points after training. Tests whether you can write the projection formula, reason about how its cost scales with the training set, and compare it with linear PCA.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

What is the computational bottleneck of Kernel PCA at inference time? Describe how the cost of projecting a new point scales and how it compares with projecting a point in linear PCA.

What a Strong Answer Covers Guidance

  • The projection formula for a new point and why it needs a kernel evaluation against every training sample.
  • The per-point time and memory cost in terms of the training size, input dimension and number of components, compared with linear PCA's projection matrix.
  • Extra inference work such as centering the new kernel row with training statistics.
  • How the training cost differs from the inference cost.
  • Approximations that cut the inference cost and what they give up.

Follow-up Questions Guidance

  • How does the Nyström approximation work, and how would you choose the number of landmarks?
  • Why does the new kernel row need centering, and how can you do it without recomputing the training Gram matrix?
  • Kernel PCA has no explicit inverse map. How would you reconstruct an input-space point from its projection?
  • When would you choose an autoencoder over kernel PCA for nonlinear dimensionality reduction?