TL;DR
Manifold learning algorithms usually require manually tuning a global neighborhood size ($k$), which frequently fails when data is non-uniformly sampled or possesses complex, varying geometry. This paper introduces IAN (Iterated Adaptive Neighborhoods), an algorithm that automatically infers data-driven, locally adaptive neighborhoods by iteratively balancing discrete graph geometry with continuous kernel scales. By eliminating the need for a pre-specified $k$, IAN prevents common topological errors like "short-circuiting" across holes or collapsing narrow structures.
What Problem Does This Paper Address?
Many fundamental tasks in data science—from clustering to non-linear dimensionality reduction (e.g., t-SNE, UMAP, Isomap)—rely on constructing a neighborhood graph to capture the underlying topology of a data manifold. Typically, practitioners use $k$-nearest neighbors ($k$-NN) or fixed $\epsilon$-balls to define these local relationships.
However, choosing a single global parameter ($k$ or $\epsilon$) is a dangerous guessing game. If the neighborhood is too small, the graph fragments into artificial clusters or introduces false holes. If it is too large, the graph "short-circuits," linking distant regions across empty space and destroying the true geometry of the manifold (a phenomenon known as "folding"). This problem is severely amplified in real-world datasets where sampling is non-uniform, boundaries exist, or the manifold's intrinsic dimensionality changes from one region to another.
The authors address this gap by proposing a method to infer optimal, locally adaptive neighborhood sizes directly from the data without requiring prior knowledge of the manifold's dimension, curvature, or sampling density.
Methods
The proposed algorithm, IAN (Iterated Adaptive Neighborhoods), views discrete and continuous representations of data geometry as two sides of the same coin, iteratively alternating between them to prune incorrect connections:
- Initialization: It starts with a Gabriel graph, a scale-invariant discrete graph where an edge exists between two points if the ball defining their diameter contains no other data points. This provides a conservative starting point that can jump across sampling gaps but might mistakenly cross manifold boundaries or bottlenecks.
- Multiscale Optimization: IAN maps this discrete graph to a continuous weighted graph using a multiscale Gaussian kernel. It solves a convex linear program (LP) relaxation to find the smallest individual scales ($\sigma_i$) for each point that guarantee a "covering" of all discrete edges.
- Statistical Pruning: To detect bad connections, IAN computes a normalized volume ratio statistic ($\delta'_i$) for each node. This statistic measures the consistency between the node's discrete degree and its continuous volume under the Gaussian kernel. If a node's volume ratio is an extreme outlier, it indicates that its neighborhood radius has expanded too far to cover an invalid neighbor (e.g., crossing a hole or a medial axis).
- Iteration: The algorithm prunes the edge to the farthest neighbor for these outlier nodes and re-runs the optimization. This loop repeats until the discrete and continuous volume perspectives agree and no outliers remain.
Datasets
The authors evaluate IAN on several challenging synthetic datasets designed to isolate specific geometric and topological anomalies:
- Varying Density & High Curvature: A horseshoe-shaped dataset and a three-cluster Gaussian dataset with highly non-uniform density.
- Swiss Cheese: A plane with actual holes to test if the algorithm can distinguish sparse sampling from true topological holes.
- The Stingray: A manifold that transitions in intrinsic dimension from a 2D body to a 1D tail.
- Archimedean Spiral & Bent Plane: Standard non-linear manifolds used to evaluate embedding unrolling and geodesic tracking.
- 5D Cylinder ($\mathbb{R}^1 \times S^4$): A higher-dimensional manifold sampled uniformly in a 6D ambient space.
- Tiara & Spinning Top: Manifolds with smoothly varying intrinsic dimensions (e.g., reducing from 3D to 1D).
Key Insights and Ideas
- The Orthoplex Connection: The authors observe that in a Gabriel graph under random uniform sampling, the expected number of neighbors scales as $2^d$, where $d$ is the intrinsic dimension. This regular structure mimics a $d$-dimensional orthoplex (cross-polytope), providing a mathematical foundation for estimating local dimensionality directly from node degrees.
- Volume Consistency as a Filter: Instead of just pruning long edges based on distance, IAN uses volume ratios. A large scale is perfectly fine if the local density is low, but if a scale covers too many points relative to its discrete neighborhood structure, it flags a geometric violation.
- Deterministic vs. Stochastic: Unlike t-SNE or UMAP, which rely on stochastic gradient descent and are highly sensitive to initialization and hyperparameters, IAN’s core scale optimization is a convex linear program, making its neighborhood inference entirely deterministic.
Key Results
- Dimensionality Reduction: When integrated into popular embedding algorithms (Diffusion Maps, Isomap, t-SNE, UMAP), replacing standard $k$-NN with IAN consistently yielded superior results. For instance, on the "stingray" dataset, standard methods either collapsed the 1D tail or fragmented the 2D body depending on $k$. IAN successfully preserved both structures simultaneously.
- Geodesic Estimation: Using the heat method for geodesic computation, IAN provided near-perfect true distance approximations on curved manifolds (like the bent plane), whereas naive $k$-NN graphs introduced severe distortions.
- Intrinsic Dimension Estimation: IAN was paired with a new Neighborhood Correlation Dimension (NCD) algorithm. It correctly mapped the transitioning dimensions of complex shapes (like the stingray's 2D-to-1D shift), outperforming standard maximum likelihood estimators (MLE) which over-smoothed or misestimated the boundaries.
Limitations and Future Work
- Computational Cost: Solving a global linear program can become computationally expensive for very large datasets with high dimensionality. Although the authors propose a faster "greedy splitting" alternative in the appendix, scaling the full LP optimization remains a challenge.
- Theoretical Proofs: While the empirical results strongly demonstrate that IAN approximates continuous operators (like the Laplace-Beltrami operator) exceptionally well, several asymptotic theoretical bounds implied by the multiscale kernel interactions still need formal mathematical proofs.
- Unexplored Applications: The authors note that applying IAN to downstream tasks like clustering and alternative embedding frameworks (such as Locally Linear Embedding) remains an open area for future exploration.
Summary updated