IAN: Iterated Adaptive Neighborhoods for manifold learning and dimensionality estimation

Luciano Dyballa, Steven W. Zucker · DOI

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.

How global scales vs. fixed $k$ neighborhoods fail on a curved manifold compared to adaptive scales.

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:

  1. 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.
  2. 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.
  3. 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).
  4. 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.
IAN successfully pruning invalid edges (red dashed lines) on complex toy datasets to reveal true clusters and structures.

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

Abstract

Invoking the manifold assumption in machine learning requires knowledge of the manifold's geometry and dimension, and theory dictates how many samples are required. However, in applications data are limited, sampling may not be uniform, and manifold properties are unknown and (possibly) non-pure; this implies that neighborhoods must adapt to the local structure. We introduce an algorithm for inferring adaptive neighborhoods for data given by a similarity kernel. Starting with a locally-conservative neighborhood (Gabriel) graph, we sparsify it iteratively according to a weighted counterpart. In each step, a linear program yields minimal neighborhoods globally and a volumetric statistic reveals neighbor outliers likely to violate manifold geometry. We apply our adaptive neighborhoods to non-linear dimensionality reduction, geodesic computation and dimension estimation. A comparison against standard algorithms using, e.g., k-nearest neighbors, demonstrates their usefulness. Code for our algorithm will be available at https://github.com/dyballa/IAN
BibTeX
@article{dyballa2023ian,
  author = {Luciano Dyballa and Steven W. Zucker},
  title = {{IAN: Iterated Adaptive Neighborhoods for manifold learning and dimensionality estimation}},
  journal = {Neural Computation},
  year = {2023},
  doi = {10.1162/neco\_a\_01566},
}
Figure