How does spectral clustering approximate the NP-hard normalized cut problem?

Quick Overview

Explain how spectral clustering turns the NP-hard normalized cut problem into an eigenvector computation. Tests the trace formulation with the graph Laplacian, the continuous relaxation and Rayleigh-Ritz, the rounding step back to clusters, and what guarantees the approximation does and does not give.

How does spectral clustering approximate the NP-hard normalized cut problem?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

How does spectral clustering approximate the NP-hard normalized cut problem? Assume a weighted similarity graph with weight matrix $W$, degree matrix $D$ and Laplacian $L = D - W$, and a target of $k$ clusters. ```hint Find the hard constraint Write the normalized cut objective with one scaled indicator vector per cluster and the Laplacian. Identify which constraint on those vectors makes the problem combinatorial. ``` ```hint After dropping it Without that constraint you are minimizing a trace under an orthogonality condition. Think about which classical result solves that exactly, and what extra step turns its answer back into a partition. ``` ### What a Strong Answer Covers - The normalized cut objective and why it balances cut weight against cluster volume - How normalized cut becomes a trace of the Laplacian over scaled indicator vectors, with its constraint - The relaxation, the change of variables to the normalized Laplacian, and why eigenvectors solve the relaxed problem exactly - How the continuous solution is rounded back to discrete clusters - What the relaxation does and does not guarantee about the final partition ### Follow-up Questions - Why does relaxing ratio cut lead to the unnormalized Laplacian while normalized cut leads to the normalized one? - The smallest eigenvector of the generalized problem is constant. Do you keep it in the embedding? - How would you choose $k$ from the spectrum? - How does the way you build the similarity graph affect the result?

Overview: Explain how spectral clustering turns the NP-hard normalized cut problem into an eigenvector computation. Tests the trace formulation with the graph Laplacian, the continuous relaxation and Rayleigh-Ritz, the rounding step back to clusters, and what guarantees the approximation does and does not give.

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

How does spectral clustering approximate the NP-hard normalized cut problem?

Assume a weighted similarity graph with weight matrix WW, degree matrix DD and Laplacian L=D−WL = D - W, and a target of kk clusters.

What a Strong Answer Covers Guidance

  • The normalized cut objective and why it balances cut weight against cluster volume
  • How normalized cut becomes a trace of the Laplacian over scaled indicator vectors, with its constraint
  • The relaxation, the change of variables to the normalized Laplacian, and why eigenvectors solve the relaxed problem exactly
  • How the continuous solution is rounded back to discrete clusters
  • What the relaxation does and does not guarantee about the final partition

Follow-up Questions Guidance

  • Why does relaxing ratio cut lead to the unnormalized Laplacian while normalized cut leads to the normalized one?
  • The smallest eigenvector of the generalized problem is constant. Do you keep it in the embedding?
  • How would you choose kk from the spectrum?
  • How does the way you build the similarity graph affect the result?