Supervised Feature Selection via Ensemble Gradient Information from Sparse Neural Networks

Kaiting Liu, Zahra Atashgahi, Ghada Sokar, Mykola Pechenizkiy, Decebal Constantin MocanuAISTATS 2024

Abstract

Feature selection algorithms aim to select a subset of informative features from a dataset to reduce the data dimensionality, consequently saving resource consumption and improving the model’s performance and interpretability. In recent years, feature selection based on neural networks has become a new trend, demonstrating superiority over traditional feature selection methods. However, most existing methods use dense neural networks to detect informative features, which requires significant computational and memory overhead. In this paper, taking inspiration from the successful application of local sensitivity analysis on neural networks, we propose a novel resource-efficient supervised feature selection algorithm based on sparse multi-layer MLP called “GradEnFS". By utilizing the gradient information of various sparse models from different training iterations, our method successfully detects the informative feature subset. We performed extensive experiments on nine classification datasets spanning various domains to evaluate the effectiveness of our method. The results demonstrate that our proposed approach outperforms the state-of-the-art methods in terms of selecting informative features while saving resource consumption substantially. Moreover, we show that using a sparse neural network for feature selection not only alleviates resource consumption but also has a significant advantage over other methods when performing feature selection on noisy datasets.

Introduction

In the era of "Big Data," high-dimensional datasets—where the number of features can dwarf the number of samples—often lead to the "curse of dimensionality." This phenomenon causes models to overfit and consume massive amounts of memory and compute. Feature selection is the standard remedy: identifying the "signal" features and discarding the "noise." While neural networks (NNs) are adept at capturing complex, non-linear relationships, most NN-based selection methods require training massive, dense networks. This creates a paradox where resource-heavy models are used to find ways to save resources. GradEnFS addresses this by providing a supervised method that is both highly accurate and extremely resource-efficient, reducing computational costs by up to 99%.

Methods

GradEnFS (Gradient Ensemble Feature Selection) leverages sparse neural networks to identify informative features through three core pillars:

  1. Dynamic Sparse Training (DST): Instead of pruning a dense network, GradEnFS starts with a sparse Multi-Layer Perceptron (MLP). It utilizes the "Sparse Evolutionary Training" (SET) algorithm, which periodically drops weak connections and regrows new ones randomly, allowing the network to explore different topologies during training.
  2. Local Sensitivity Analysis: Feature importance is determined by the gradients of the loss function with respect to the input features. Features that cause large changes in loss when slightly modified are considered sensitive and likely important.
  3. Implicit Ensembling: Rather than relying on a single final model, GradEnFS accumulates gradient information across multiple training iterations. This creates an "ensemble effect," where the importance of a feature is validated across many different sparse configurations of the network.
The GradEnFS workflow involving iterative training and topology updates.

Results

The researchers evaluated GradEnFS on nine diverse classification datasets spanning text (BASEHOCK, PCMAC), biological (Prostate_GE, TOX_171), image (COIL20, USPS, MNIST), speech (Isolet), and noisy artificial (Madelon) domains.

  • Superior Accuracy: GradEnFS achieved the highest classification accuracy on 6 out of 9 datasets compared to seven other state-of-the-art methods, including LassoNet and STG.
  • Massive Resource Savings: Compared to the dense STG method, GradEnFS reduced parameters and Floating-Point Operations (FLOPs) by 96% to 99%. For example, on the BASEHOCK dataset, FLOPs dropped from 41.18 million to just 0.60 million.
  • Robustness to Noise: In synthetic tests with high noise levels, GradEnFS maintained a significantly higher "hit rate" for informative features. The inherent sparsity acts as a form of regularization, preventing the model from "latching onto" noisy features.
Accuracy performance of GradEnFS compared to STG and QS across multiple datasets.

Discussion and Conclusion

A striking finding of this research is that sparse networks are not just faster; they are often better at feature selection in noisy environments. By averaging gradients over time, the model captures a more stable and robust representation of feature importance than a single snapshot of a dense model.

While the paper proves that a network with only ~1-2% density can identify important features effectively, current hardware bottlenecks remain; standard GPUs are optimized for dense matrix multiplication. Future work will focus on specialized sparse-aware software kernels and refining performance for biological datasets with extremely small sample sizes, where gradient-based measures require more data to mitigate bias.

Summary updated

BibTeX
@inproceedings{liu2024supervised,
  author = {Kaiting Liu and Zahra Atashgahi and Ghada Sokar and Mykola Pechenizkiy and Decebal Constantin Mocanu},
  title = {{Supervised Feature Selection via Ensemble Gradient Information from Sparse Neural Networks}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
  url = {https://openreview.net/forum?id=PIyrnBKvBX},
}
Figure