Abstract
Feature selection has drawn much attention over the last decades in machine learning because it can reduce data dimensionality while maintaining the original physical meaning of features, which enables better interpretability than feature extraction. However, most existing feature selection approaches, especially deep-learning-based, often focus on the features with great importance scores only but neglect those with less importance scores during training as well as the order of important candidate features. This can be risky since some important and relevant features might be unfortunately ignored during training, leading to suboptimal solutions or misleading selections. In our work, we deal with feature selection by exploiting the features with less importance scores and propose a feature selection framework based on a novel complementary feature mask. Our method is generic and can be easily integrated into existing deep-learning-based feature selection approaches to improve their performance as well. Experiments have been conducted on benchmarking datasets and shown that the proposed method can select more representative and informative features than the state of the art.
Introduction
In high-dimensional data analysis, Feature Selection (FS) is a critical technique for identifying the most relevant variables while preserving the original data's physical meaning. Unlike feature extraction methods like PCA, FS maintains interpretability, which is essential in fields like genomics or finance. However, contemporary deep-learning-based FS methods often suffer from a "winner-takes-all" bias. By focusing exclusively on features that provide immediate gains in predictive accuracy, these models risk falling into local minima or ignoring redundant but potentially superior feature subsets.
The Limitations of Standard Feature Selection
Standard deep-learning FS architectures typically utilize a single "feature mask"—a set of learnable weights that gate the input features. During training, the model optimizes these weights to minimize task loss.
As shown in Figure 1, the input $X$ is multiplied by a mask $m$ before entering the neural network $g_{\Theta_n}$. This approach has two primary drawbacks:
- Local Minima: Models may over-rely on a subset of "sufficiently good" features discovered early in training, neglecting more informative features.
- Misinterpretation of Performance: A feature set that yields poor accuracy isn't necessarily uninformative; it might simply be misaligned. Truly unimportant features should lead to maximum predictive uncertainty, not just low accuracy.
The Complementary Feature Mask (CFM) Framework
To address these issues, we propose the Complementary Feature Mask (CFM) framework. This approach introduces a dual-path architecture that forces the model to learn from the features it rejects as much as the ones it selects.
As illustrated in Figure 2, the framework consists of two parallel paths:
- The Main Path: Uses the standard feature mask $m$ to maximize predictive accuracy for the target task.
- The Complementary Path: Uses a flipped mask $\tilde{m}$. If the main mask assigns a high importance to a feature, the complementary mask assigns it a low importance.
The core innovation lies in the loss function for the complementary path ($L_c$). Instead of simply trying to get the wrong answer, the complementary path is trained to target a random class label. This forces the model to ensure that the features excluded from the main path are truly uninformative, leading to maximum predictive uncertainty (confusion).
Technically, the masks are generated such that if $m = \text{softmax}(z)$, then $\tilde{m} = \text{softmax}(-z)$. This ensures they remain in the same numerical range while representing opposite rankings of feature importance.
Experimental Validation
We benchmarked the CFM framework against the state-of-the-art Feature Mask (FM) approach across six diverse datasets, including image (MNIST, Fashion-MNIST), speech (Isolet), and text/bio (PCMAC, Madelon, Gisette).
Key Findings:
- Superior Performance: CFM outperformed the baseline in 109 out of 126 experimental scenarios, demonstrating significant robustness across different classifiers and subset sizes.
- Stability: The dual-path regularization provided more consistent feature selections across different random initializations compared to standard methods.
- Redundancy Filtering: By requiring the rejected features to be uninformative, the model naturally avoids selecting redundant features (e.g., adjacent pixels in an image), as those redundant features would be needed to "confuse" the complementary path if they were not selected for the main path.
- Efficiency in Small Subsets: The method proved exceptionally effective when selecting very small feature subsets (e.g., 1% of total features), where the risk of missing critical information is highest.
Conclusion
By flipping the script and training on the "losers," the Complementary Feature Mask framework provides a more deliberate and stable approach to deep feature selection. By ensuring that rejected features lead to genuine uncertainty, the model is forced to be more rigorous in its selection of the primary feature subset. This generic framework can be integrated into existing deep-learning FS pipelines to enhance performance and interpretability in high-dimensional data tasks.
Summary updated