NEW
A clustering technique using eigenvectors of a similarity graph’s Laplacian to embed data before partitioning.
DESCRIPTION
Spectral clustering constructs a graph of data relationships, computes eigenvectors of its Laplacian, and embeds points into a low-dimensional space. Clusters are then found using k-means or similar methods on the spectral embedding. It excels with non-convex shapes and manifold structures where distance-based methods fail. Key design choices include affinity construction, normalization, and the number of components. Normalized cuts and ratio cuts are related formulations. It is widely used in image segmentation and graph partitioning.
ALTERNATIVE DEFINITIONS
Wikipedia
Spectral clustering is a technique that uses the spectrum (eigenvalues) of the similarity matrix of the data to perform dimensionality reduction before clustering in fewer dimensions.
Centers on spectral dimensionality reduction preceding clustering.
scikit-learn
Spectral clustering uses the graph Laplacian’s eigenvectors to perform a low-dimensional embedding of the affinity matrix before clustering.
Explicitly states the role of the graph Laplacian eigenvectors.
RELATED TERMS
Similarity Matrix Affinity Matrix Graph Laplacian Eigenvectors Normalized Cuts Graph Clustering Feature Reduction Kernel Methods
COMPETING TERMS
K-Means Agglomerative Clustering
RELATIONS
- Broader: Clustering
KNOWLEDGE AREAS
TARGET AUDIENCE
Data Scientist AI Engineer MLOps Engineer
EXTERNAL SOURCES
- Wikipedia - Spectral clustering
- scikit-learn - User guide and API for spectral
- Stanford - Lecture notes on spectral clustering
TOP QUESTIONS
When is Spectral Clustering preferable to K-Means?
When clusters are non-convex or connected by manifold structures; spectral clustering captures graph-based relationships.
Category: Opinion
How do I choose the affinity function for Spectral Clustering?
Use RBF for continuous spaces, k-nearest neighbor graphs for sparse manifolds, and normalize for stability.
Category: Best practices
What are common mistakes with Spectral Clustering?
Building a dense, poorly scaled affinity matrix and choosing too few eigenvectors can obscure structure.
Category: Mistakes
How does Spectral Clustering scale to large datasets?
Approximate neighbors, sparse matrices, and Nyström methods help manage eigen-decomposition costs.
Category: Requirements
What is the role of the graph Laplacian?
Its eigenvectors reveal structure in the similarity graph used for embedding prior to clustering.
Category: Concepts
Can Spectral Clustering handle noisy data?
It can, but affinity construction and normalization must be robust; outlier handling helps.
Category: Risk
How many clusters should be used in Spectral Clustering?
Use eigengap heuristics, model selection, or downstream performance to choose K.
Category: Best practices
What are practical applications of Spectral Clustering?
Image segmentation, community detection, and partitioning of similarity graphs are common use cases.
Category: Example
Where to learn Spectral Clustering?
Start with scikit-learn’s guide, then consult lecture notes and tutorials on graph Laplacians.
Category: Getting Started