Spectral Clustering Exploration
Working with two other classmates, we conducted an in-depth analysis and exploration of spectral clustering, an unsupervised learning technique.
Click here for our paper.
Click here for our code.
We were interested in spectral clustering because of its theoretical depth and its impressive performance. In our analysis, we:
- Explored the theoretical basis for the algorithm
- Read several research papers exploring the technique
- Created an implementation
- Experimented with our implementation on several unique datasets, comparing results with other clustering algorithms
- Made our own novel modification to the algorithm to improve the running time (since running time is the biggest drawback to spectral clustering)
Spectral clustering is a fascinating approach to clustering wherin we interpret the dataset as a graph. This allows us to apply the relatively new field of spectral graph theory: using a graph’s spectral decomposition to approximately solve a graph partitioning problem (NP-complete).
Our implementation of spectral clustering is based on Andrew Ng et al.’s cornerstone paper on the technique. Our code is here in github. We also created a short jupyter notebook explaining it in detail.
For the extension, I created a version of the algorithm that randomly sampled a subset of the examples to run spectral clustering on. I then clustered those, and used K-Nearest Neighbors to classify the remaining examples into one of the clusters found by spectral clustering. This resulted in a massive speed boost, since spectral clustering time complexity is approximately O(n^3) where n is the number of examples. See the paper for details and empirical results.
This was a very fun and challenging project, requiring us to explore linear algebra and graph theory in-depth on our own, as well as collect empirical results on unusual datasets ranging from toy datasets to image segmentation to clustering letters as vowels or consonants.
Previous: CS MS Degree: University of Colorado at Boulder
•
Next: Unsupervised Learning and Student Math Misconceptions
Comments and feedback appreciated! For now, please use email or social media.