Consistent Nonparametric Different-Feature Selection via the Sparsest $k$-Subgraph Problem

Satoshi Hara, Takayuki Katsuki, Hiroki Yanagisawa, Masakazu Imaizumi, Takafumi Ono, Ryo Okamoto, Shigeki TakeuchiarXiv 2017 · DOI

Abstract

Two-sample feature selection is the problem of finding features that describe a difference between two probability distributions, which is a ubiquitous problem in both scientific and engineering studies. However, existing methods have limited applicability because of their restrictive assumptions on data distributions or computational difficulty. In this paper, we resolve these difficulties by formulating the problem as a sparsest $k$-subgraph problem. The proposed method is nonparametric and does not assume any specific parametric models on the data distributions. We show that the proposed method is computationally efficient and does not require any extra computation for model selection. Moreover, we prove that the proposed method provides a consistent estimator of features under mild conditions. Our experimental results show that the proposed method outperforms the current method with regard to both accuracy and computation time.

Introduction

In fields ranging from genomics to anomaly detection, researchers frequently encounter the "two-sample feature selection" problem: identifying which specific variables (features) drive the difference between two groups of data, such as healthy versus diseased patients or normal versus anomalous system states.

Historically, researchers have relied on two main approaches, both of which possess significant drawbacks. Gaussian-based methods assume data follows a normal distribution; while computationally simple, they often fail to detect subtle changes in complex, multi-modal, or non-Gaussian data. Conversely, nonparametric methods like SPARDA offer flexibility by making no assumptions about distribution shapes. However, these methods are often computationally intensive—requiring complex optimization like Semidefinite Programming—and are prone to getting stuck in local optima, making them impractical for high-dimensional datasets.

This paper introduces a novel nonparametric framework that bridges this gap. By framing feature selection as a Sparsest $k$-Subgraph Problem, the authors provide a method that is flexible, mathematically consistent, and significantly faster than existing state-of-the-art solutions.

Methodology

The proposed method identifies "different-features" through a three-step pipeline designed for both statistical rigor and computational speed.

1. Constructing the KS-Matrix

The foundation of the method is a $D \times D$ matrix (where $D$ is the number of features) that quantifies the difference between the two distributions. To measure these differences without parametric assumptions, the authors utilize the Kolmogorov-Smirnov (KS) statistic. While the standard KS test is limited to 1D data, the authors developed a Modified 2D KS Statistic. This involves projecting 2D feature pairs onto a 1D line at various random angles, computing the 1D KS statistic for each projection, and averaging the results. This approach captures pairwise dependencies that univariate tests might miss.

2. Graph Formulation

The resulting matrix is treated as an adjacency matrix for a graph where nodes represent features. In this context, features that do not change between the two datasets will have very low difference scores. Consequently, identifying the set of "different" features is equivalent to finding a subgraph where the connections are "sparsest"—meaning the sum of the edge weights (the difference scores) is minimized.

3. Greedy Optimization

While the Sparsest $k$-Subgraph problem is generally NP-hard, the authors demonstrate that a Greedy Scoring Method provides a high-quality approximation. This algorithm runs in $O(D^2)$ time, a significant improvement over the $O(D^3)$ or higher complexity required by previous nonparametric solvers. This efficiency allows the method to scale to datasets that were previously computationally prohibitive.

Key Insights and Theoretical Advantages

  • Pairwise Sufficiency: The research demonstrates that modeling the entire high-dimensional joint distribution is often unnecessary. Analyzing marginals (single features) and pairwise interactions is sufficient to capture complex distributional shifts.
  • Elimination of Model Selection: Unlike many machine learning techniques (e.g., Lasso), the greedy scoring approach does not require tuning complex regularization parameters like $\lambda$. This removes the need for expensive cross-validation, further reducing the total computational burden.
  • Theoretical Consistency: The authors provide a formal proof that their estimator is "consistent." As the number of samples ($N$) and random projections ($L$) increase, the probability of selecting incorrect features converges exponentially toward zero.
  • Robustness to Local Optima: By utilizing a greedy approach on a well-defined graph problem rather than gradient-descent-based optimization, the method avoids the local optima traps that often plague methods like SPARDA.

Experimental Results

The method was rigorously evaluated against synthetic data, standard UCI Machine Learning Repository datasets, and a real-world quantum system anomaly detection task.

  • Accuracy: On non-Gaussian synthetic data, the proposed method achieved an Average AUROC of 1.0, perfectly identifying different-features while Gaussian-based competitors plateaued at significantly lower accuracy levels.
  • Computational Speed: In tests using UCI datasets (such as CASP and MiniBooNE), the proposed method was 3 to 100 times faster than SPARDA. For datasets with $10^3$ samples, the method provided solutions in seconds, whereas previous nonparametric methods took minutes or hours.
  • Quantum Anomaly Detection: In a physical experiment involving 4x4 Hermitian matrices representing quantum states, the method successfully identified decoherence errors in specific matrix entries even at low noise levels, outperforming all baseline methods.

Conclusion and Future Work

This paper presents a robust, nonparametric solution to the two-sample feature selection problem. By leveraging the Sparsest $k$-Subgraph formulation and a greedy optimization strategy, the authors provide a tool that is both theoretically sound and practically efficient.

Future research directions include improving scalability for "ultra-high" dimensional data (hundreds of thousands of features) and developing more automated ways to determine the parameter $k$ (the number of different features), which currently relies on heuristic thresholds or visual inspection. Despite these areas for growth, the current method represents a significant leap forward in reliable, distribution-free feature selection.

Summary updated

BibTeX
@misc{hara2017consistent,
  author = {Satoshi Hara and Takayuki Katsuki and Hiroki Yanagisawa and Masakazu Imaizumi and Takafumi Ono and Ryo Okamoto and Shigeki Takeuchi},
  title = {{Consistent Nonparametric Different-Feature Selection via the Sparsest $k$-Subgraph Problem}},
  year = {2017},
  eprint = {1707.09688},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1707.09688},
}
Figure