How is the eigengap heuristic used to determine the number of clusters in spectral clustering?

Quick Overview

Asks how the eigengap heuristic picks the number of clusters from the eigenvalues of the graph Laplacian in spectral clustering. Tests understanding of Laplacian spectra, perturbation arguments, the practical computation and the cases where the heuristic gives no clear answer.

How is the eigengap heuristic used to determine the number of clusters in spectral clustering?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How is the eigengap heuristic used to determine the number of clusters in spectral clustering? ```hint Ideal case first Start from a similarity graph made of k completely disconnected groups and ask what the spectrum of its Laplacian looks like. ``` ```hint Then perturb it Add a few weak edges between the groups and think about which eigenvalues move, and by how much compared with the rest. ``` ### What a Strong Answer Covers - The Laplacian spectrum of a graph with k connected components, and what weak inter-cluster edges do to it - The selection rule and how to compute it from sorted eigenvalues, including the indexing - Why a large gap also signals a stable spectral embedding - Failure cases such as noisy or overlapping clusters, outliers and sensitivity to graph construction - How to check the chosen k against other evidence ### Follow-up Questions - Why can isolated points or tiny components fool the eigengap heuristic, and how would you guard against it? - How does the choice between the unnormalized and normalized Laplacian affect the eigenvalues you compare? - If the eigenvalue plot shows no clear gap, how would you choose k?

Overview: Asks how the eigengap heuristic picks the number of clusters from the eigenvalues of the graph Laplacian in spectral clustering. Tests understanding of Laplacian spectra, perturbation arguments, the practical computation and the cases where the heuristic gives no clear answer.

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

How is the eigengap heuristic used to determine the number of clusters in spectral clustering?

What a Strong Answer Covers Guidance

  • The Laplacian spectrum of a graph with k connected components, and what weak inter-cluster edges do to it
  • The selection rule and how to compute it from sorted eigenvalues, including the indexing
  • Why a large gap also signals a stable spectral embedding
  • Failure cases such as noisy or overlapping clusters, outliers and sensitivity to graph construction
  • How to check the chosen k against other evidence

Follow-up Questions Guidance

  • Why can isolated points or tiny components fool the eigengap heuristic, and how would you guard against it?
  • How does the choice between the unnormalized and normalized Laplacian affect the eigenvalues you compare?
  • If the eigenvalue plot shows no clear gap, how would you choose k?