Abstract
Data driven graph constructions are often used in various applications, including several machine learning tasks, where the goal is to make predictions and discover patterns. However, learning an optimal graph from data is still a challenging task. Weighted $K$-nearest neighbor and $\epsilon$-neighborhood methods are among the most common graph construction methods, due to their computational simplicity but the choice of parameters such as $K$ and $\epsilon$ associated with these methods is often ad hoc and lacks a clear interpretation. We formulate graph construction as the problem of finding a sparse signal approximation in kernel space, identifying key similarities between methods in signal approximation and existing graph learning methods. We propose non-negative kernel regression (NNK), an improved approach for graph construction with interesting geometric and theoretical properties. We show experimentally the efficiency of NNK graphs, its robustness to choice of sparsity $K$ and better performance over state of the art graph methods in semi supervised learning tasks on real world data.
Introduction
In machine learning and signal processing, defining a "local neighborhood" for a data point is a fundamental step for tasks ranging from manifold learning to semi-supervised classification. Traditional methods like $k$-nearest neighbors (kNN) and $\epsilon$-neighborhoods rely strictly on distance metrics. However, these methods often fail to account for the relative positions of neighbors, leading to "geometrically redundant" points. For instance, if two points are clustered together near a query point, kNN will include both, even if one provides no additional information about the local data manifold. This paper addresses these limitations by reframing neighborhood selection as a sparse signal approximation problem.
Methodology: Non-Negative Kernel Regression (NNK)
The proposed Non-Negative Kernel Regression (NNK) approach moves beyond simple distance thresholding. Instead, it treats a query point $x_q$ as a signal to be reconstructed by a sparse combination of its neighbors.
Sparse Approximation and Geometric Filtering
NNK solves an optimization problem to find weights $\theta$ that minimize the reconstruction error of the query in a kernel space, subject to a non-negativity constraint ($\theta \ge 0$). This constraint is crucial; it naturally sets the weights of redundant neighbors to zero. Geometrically, if a point $i$ is a neighbor of query $q$, any point $j$ that is further away along a similar direction is considered redundant and is pruned. This process ensures that the selected neighbors form a convex polytope around the query point, effectively capturing the intrinsic local geometry.
The Kernel Ratio Interval (KRI) Theorem
A key theoretical contribution is the Kernel Ratio Interval (KRI) theorem. It provides a mathematical condition for neighborhood inclusion: a point is only considered a neighbor if it is not "hidden" behind another closer neighbor. This allows the algorithm to adaptively choose the number of neighbors based on local density and structure, rather than forcing a fixed $k$.
Experimental Results
The authors evaluated NNK across diverse benchmarks, including 70 classification datasets from OpenML and various image datasets (MNIST, USPS, AR face).
- Classification Performance: On OpenML datasets, NNK achieved an average error of 16.26%, significantly lower than standard kNN (18.06%) and adaptive $k^*NN$ (20.71%).
- Graph Sparsity and Manifold Learning: In tests on synthetic manifolds like the "Swiss Roll," NNK correctly identified the intrinsic dimensionality (roughly 3 neighbors per point), whereas kNN produced cluttered graphs that obscured the underlying structure.
- Robustness: NNK demonstrated high stability regarding hyperparameters. While kNN performance often degrades if the kernel bandwidth ($\sigma$) is poorly tuned, NNK's geometric pruning compensates for oversmoothed kernels, maintaining consistent performance.
Conclusion
NNK provides a robust, geometrically motivated framework for graph construction. By interpreting neighborhood selection as a basis pursuit problem, it filters out redundancy and adapts to local data geometry. While NNK shows slight sensitivity to purely non-informative noise where kNN's redundancy acts as a filter, its superior performance in structured data tasks makes it a powerful alternative for modern machine learning pipelines. Future work includes exploring multi-scale representations and refined symmetrization rules for the resulting directed graphs.
Summary updated