How is a similarity graph constructed from unlabelled data in spectral clustering?

Quick Overview

Asks how spectral clustering builds a similarity graph from unlabelled feature vectors. Tests knowledge of Gaussian kernel weights, epsilon-neighbourhood, k-NN and fully connected graphs, choosing the kernel width and k, and keeping the graph sparse and connected.

How is a similarity graph constructed from unlabelled data in spectral clustering?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How is a similarity graph constructed from unlabelled data in spectral clustering? Spectral clustering works on a weighted graph built from the raw feature vectors. Describe how you would build that graph and how you would set its parameters. ```hint Two separate choices Split the problem in two: how to score the similarity of one pair of points, and which pairs get an edge at all. ``` ### What a Strong Answer Covers - The similarity function, usually a Gaussian kernel on distances, and why features must be scaled first. - The main rules for turning similarities into a graph and how they differ, including how to symmetrize a k-NN graph. - How the scale parameters are chosen, including an approach that adapts to clusters of different density. - Practical concerns: connectivity, sparsity, and cost as the number of points grows. ### Follow-up Questions - What happens to the spectrum of the graph Laplacian when the similarity graph is disconnected? - How would you notice that the kernel width is too small or too large? - Why does a mutual k-NN graph help when clusters have different densities? - How would you build the graph for a million points?

Overview: Asks how spectral clustering builds a similarity graph from unlabelled feature vectors. Tests knowledge of Gaussian kernel weights, epsilon-neighbourhood, k-NN and fully connected graphs, choosing the kernel width and k, and keeping the graph sparse and connected.

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

How is a similarity graph constructed from unlabelled data in spectral clustering?

Spectral clustering works on a weighted graph built from the raw feature vectors. Describe how you would build that graph and how you would set its parameters.

What a Strong Answer Covers Guidance

  • The similarity function, usually a Gaussian kernel on distances, and why features must be scaled first.
  • The main rules for turning similarities into a graph and how they differ, including how to symmetrize a k-NN graph.
  • How the scale parameters are chosen, including an approach that adapts to clusters of different density.
  • Practical concerns: connectivity, sparsity, and cost as the number of points grows.

Follow-up Questions Guidance

  • What happens to the spectrum of the graph Laplacian when the similarity graph is disconnected?
  • How would you notice that the kernel width is too small or too large?
  • Why does a mutual k-NN graph help when clusters have different densities?
  • How would you build the graph for a million points?