Joint Feature and Differentiable k-NN Graph Learning using Dirichlet Energy

Lei Xu, Lei Chen, Rong Wang, Feiping Nie, Xuelong Li · DOI

Introduction

In high-dimensional data analysis, identifying the most informative features—a process known as feature selection (FS)—is critical for reducing noise and improving model interpretability. While supervised feature selection leverages labels, unsupervised feature selection (UFS) must rely on the intrinsic structure of the data. Traditional UFS methods often fall into two camps: reconstruction-based methods (like autoencoders) and graph-based methods (like Laplacian Score).

However, both approaches face significant hurdles. Reconstruction-based models may inadvertently prioritize noise if it dominates the signal. Graph-based methods, on the other hand, suffer from a "chicken-and-egg" dilemma: constructing an accurate graph requires clean features, but selecting clean features often requires a reliable graph. This paper introduces a novel framework that solves this by jointly learning features and the underlying data graph in an end-to-end differentiable manner.

Methodology

The proposed framework consists of two interdependent modules that optimize a shared objective based on Dirichlet Energy.

1. Unique Feature Selector (UFS)

The goal of the UFS is to select a subset of $m$ features from the original $d$ dimensions. To maintain differentiability, the authors utilize the Gumbel-Softmax trick, which allows for categorical sampling within a neural network. A common pitfall in such architectures is "feature collapse," where the model repeatedly selects the same high-variance feature. To ensure the selection of $m$ unique features, the authors implement a matrix decomposition-based constraint that enforces diversity among the selected dimensions, ensuring the model doesn't simply pick the same "best" feature multiple times.

2. Differentiable Graph Learner (DGL)

Constructing a $k$-nearest neighbor ($k$-NN) graph typically involves sorting and ranking, operations that are inherently non-differentiable. To bridge this gap, the authors reformulate $k$-NN selection as an Optimal Transport (OT) problem. By applying entropy-regularized OT (Sinkhorn iterations), the model can "softly" identify the $k$ nearest neighbors. This allows gradients to flow through the graph construction process, enabling the graph to adapt as the feature selector identifies better data representations.

3. Dirichlet Energy Minimization

The entire system is unified by the minimization of Dirichlet Energy. In graph signal processing, Dirichlet Energy measures the smoothness of a signal (features) relative to a graph. By minimizing this energy, the model encourages the selection of features that adhere to the "homophily principle"—the idea that similar samples should have similar feature values. Simultaneously, the graph is refined to better represent the manifold structure of the selected features.

Experimental Evaluation

The framework was evaluated against classical and deep learning baselines across 12 real-world datasets (spanning text, biological, and image data) and several synthetic benchmarks.

Performance on Noisy Data

The model demonstrated exceptional robustness on the Madelon dataset, a benchmark specifically designed to test feature selection under high-noise conditions. The proposed method achieved a classification accuracy of 90%, significantly outperforming other deep methods like AEFS (87%) and classical methods like Laplacian Score (51%).

Manifold Recovery

On synthetic datasets such as "Circles" and "Moons" (where 18 out of 20 dimensions were pure noise), the Differentiable Graph Learner successfully recovered the underlying geometry. While standard heat-kernel graphs became distorted and chaotic in the presence of noise, the joint learning approach maintained a clear representation of the data's intrinsic manifold.

Discussion and Limitations

The primary contribution of this work is the integration of Optimal Transport into graph learning, providing a differentiable bridge between discrete graph topology and continuous feature optimization. This algorithmic interpretability ensures that the network's internal operations correspond to well-understood mathematical principles rather than black-box heuristics.

However, the current implementation faces scalability challenges. The OT-based $k$-NN selector has a space complexity of $O(n^2k)$, where $n$ is the number of samples. This makes it difficult to apply to very large-scale datasets without significant memory overhead. Future research directions include the use of bipartite graphs and anchor-based methods to enable batch-wise learning and improve computational speed.

Conclusion

By treating feature selection and graph construction as a single, joint optimization problem, this research provides a powerful tool for uncovering structure in high-dimensional, noisy data. The use of Dirichlet Energy as a guiding principle ensures that the resulting features are not only informative but also consistent with the underlying data manifold, achieving top rankings across classification and clustering tasks.

Summary updated

BibTeX
@inproceedings{xu2023joint,
  author = {Lei Xu and Lei Chen and Rong Wang and Feiping Nie and Xuelong Li},
  title = {{Joint Feature and Differentiable k-NN Graph Learning using Dirichlet Energy}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=noMktb4ait},
}
Figure