Dimensionality Reduction Meets Network Science: Sensemaking on UMAP's kNN Graph
Summary
A new analysis highlights UMAP's internal k-nearest-neighbor (kNN) graph as a valuable, often discarded, analytical resource for exploring high-dimensional data. This graph, which encodes the data manifold before UMAP's 2D projection introduces distortion, can be leveraged with standard graph algorithms to enhance data sensemaking. Specifically, PageRank identifies representative data points, proving competitive with k-medoids on representativeness and superior on class balance. K-core decomposition reveals dense core regions versus sparse periphery, offering a graduated hierarchy within clusters that HDBSCAN cannot capture. Furthermore, the clustering coefficient detects tight-knit micro-neighborhoods of highly similar data points. Evaluated on MNIST and Fashion MNIST datasets, these graph-based analyses are practical and computationally efficient, each running under 1 second for n=60,000, k=15 on a MacBook Pro M4 Max.
Key takeaway
For Data Scientists and Machine Learning Engineers exploring high-dimensional data, you should integrate UMAP's internal kNN graph into your analysis workflow. This graph, often overlooked, provides a more faithful representation of data manifold connectivity than the 2D projection. By applying standard graph algorithms like PageRank, k-core decomposition, and clustering coefficient, you can gain deeper insights into data representativeness, density hierarchies, and local cohesion, complementing or surpassing traditional methods that rely solely on the distorted 2D layout.
Key insights
UMAP's internal kNN graph offers a more faithful representation of high-dimensional data manifolds than its 2D projection.
Principles
- UMAP's kNN graph preserves high-dimensional manifold connectivity.
- Standard graph algorithms enhance data sensemaking beyond 2D projections.
- PageRank, k-core, and clustering coefficient offer distinct structural insights.
Method
Apply PageRank, k-core decomposition, and clustering coefficient directly to UMAP's pre-projection kNN graph, leveraging its density-adaptive edge weights for enhanced sensemaking.
In practice
- Select representative data points using PageRank scores.
- Identify core vs. periphery within clusters via k-core decomposition.
- Pinpoint cohesive micro-neighborhoods with clustering coefficient.
Topics
- UMAP
- kNN Graph
- Graph Algorithms
- PageRank
- k-core Decomposition
- Clustering Coefficient
Best for: AI Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, Data Scientist
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by cs.AI updates on arXiv.org.