Abstract
Spectral analysis of neighborhood graphs is one of the most widely used techniques for exploratory data analysis, with applications ranging from machine learning to social sciences. In such applications, it is typical to first encode relationships between the data samples using an appropriate similarity function. Popular neighborhood construction techniques such as k-nearest neighbor (k-NN) graphs are known to be very sensitive to the choice of parameters, and more importantly susceptible to noise and varying densities. In this paper, we propose the use of quantile analysis to obtain local scale estimates for neighborhood graph construction. To this end, we build an auto-encoding neural network approach for inferring conditional quantiles of a similarity function, which are subsequently used to obtain robust estimates of the local scales. In addition to being highly resilient to noise or outlying data, the proposed approach does not require extensive parameter tuning unlike several existing methods. Using applications in spectral clustering and single-example label propagation, we show that the proposed neighborhood graphs outperform existing locally scaled graph construction approaches.
Introduction
Many fundamental machine learning algorithms—including spectral clustering, manifold learning, and dimensionality reduction—rely on neighborhood graphs to represent the underlying structure of data. Traditionally, these graphs are constructed using $k$-nearest neighbors (k-NN) or $\epsilon$-neighborhoods. However, these standard approaches are notoriously "brittle." They exhibit high sensitivity to the choice of hyperparameters ($k$ or $\epsilon$) and often fail when data contains varying densities or significant noise. While local scaling techniques have been developed to adjust graphs based on local density, they frequently rely on manual heuristics that lack generalizability across diverse datasets.
Methodology
The proposed framework shifts the focus from simple mean-based similarity to Quantile Analysis, leveraging the robustness of quantiles to outliers and noise.
Quantile Huber Loss
The authors adapt quantile regression to graph construction. Standard quantile loss (the "pinball loss") is non-differentiable at the origin, which can complicate optimization in neural networks. To address this, the paper utilizes a "Huberized" version of the loss function. This modification provides a smooth, differentiable surface that is easier to optimize while maintaining the robust properties of quantile estimation.
Auto-Encoding for Quantiles
The core of the approach is an auto-encoding neural network that learns to reconstruct a similarity matrix at specific conditional quantiles ($\tau$). By training the network across different $\tau$ values, the system identifies which edges are "persistent" (remaining strong at high quantiles) and which are "transient" (noise that decays rapidly).
Stochastic Graph and Local Scaling
Instead of a deterministic graph, the framework generates a stochastic graph where edge probabilities are proportional to their persistence across quantiles. By drawing multiple realizations from this stochastic graph, the model calculates a robust local scale ($\sigma$) for each point—defined as the median distance to its neighbors across realizations. This $\sigma$ is then used to construct the final, robust affinity matrix.
Experimental Evaluation
The authors evaluated the approach on synthetic benchmarks (e.g., Two Spirals, Pinwheel) and a wide array of real-world datasets from the UCI repository.
Spectral Clustering and Noise Resilience
In spectral clustering tasks, the proposed method consistently outperformed standard local scaling and consensus clustering. For instance, on the "Breast Cancer" dataset, it achieved a Normalized Mutual Information (NMI) score of 0.85, significantly higher than the baseline's 0.79.
As shown in the spiral dataset visualization, the method effectively filters out noise edges that bridge gaps between clusters at lower quantiles, leading to a much cleaner separation compared to traditional local scaling. Furthermore, the method proved highly resilient to Gaussian noise; even with 100% sample corruption, the quantile-based approach maintained high performance while traditional methods degraded.
Label Propagation
In "single-example" label propagation scenarios (where only one labeled example per class is provided), the method showed improvements of up to 18% in accuracy over traditional path-based and locally scaled similarities. This highlights the method's ability to capture the true manifold structure even with minimal supervision.
Key Insights and Conclusion
The primary insight of this work is that the rate of edge decay across quantile thresholds reveals the true underlying data structure. Structural edges persist, while noise edges drop off quickly. By moving beyond mean-based optimization (which is essentially an $L_2$ approach) to quantile-based estimation, the model gains significant robustness to outliers.
While the method introduces some computational overhead due to training auto-encoders, it offers a more stable, nearly parameter-free alternative to k-NN. Future work may focus on optimizing the inference for billion-node graphs and extending the greedy walk logic to more complex multi-class label propagation scenarios.
Summary updated