Introduction
Feature selection is a fundamental challenge in machine learning, aimed at identifying the most informative subset of features to improve model performance, reduce memory usage, and enhance interpretability. Traditional approaches generally fall into two categories: filter methods, which are computationally efficient but often overlook complex feature interactions, and wrapper methods, which are highly accurate but suffer from combinatorial explosion in high-dimensional spaces.
This paper introduces FSNS (Feature Selection via Neuro-Symbolic embedding), a novel framework that re-conceptualizes feature selection as a sequence generation task. By leveraging the power of Transformer architectures and continuous embedding spaces, FSNS identifies feature subsets that are both predictive and succinct.
The FSNS Framework
The FSNS architecture bridges the gap between discrete symbolic feature IDs and continuous optimization. It operates through four primary stages:
- Reinforcement Learning (RL) Data Collector: To avoid the need for manual labeling, RL agents explore the feature space to generate "triplets" consisting of a feature subset sequence, its predictive performance, and a redundancy score.
- Data Augmentation: Since feature subsets are inherently order-agnostic, the framework shuffles collected sequences to create a robust and diverse training set.
- Encoder-Decoder-Evaluator Model:
- Encoder: A Variational Transformer maps discrete feature sequences into a smooth, continuous embedding space.
- Evaluators: Neural networks predict performance and redundancy directly from these embeddings.
- Decoder: An autoregressive decoder reconstructs discrete feature IDs from the optimized embedding vectors.
- Multi-Gradient Search: Instead of searching the discrete combinatorial space, FSNS performs gradient ascent in the continuous embedding space to maximize performance while minimizing redundancy.
Key Insights: Feature Selection as Language
The core innovation of FSNS is treating feature selection as a language modeling problem. By viewing feature IDs as symbolic tokens, the model can capture complex dependencies similar to how Large Language Models (LLMs) understand text.
Mapping these discrete tokens to a continuous embedding space transforms a "needle-in-a-haystack" search into a smooth optimization problem. This approach allows the model to prioritize "short and sweet" feature sets by explicitly penalizing redundancy during the gradient search phase. For instance, in the UCI Credit dataset, FSNS successfully reduced the feature count from 24 to just 1 while maintaining or improving accuracy.
Experimental Results
The researchers evaluated FSNS across 19 real-world datasets, including high-dimensional sets like Ap_omentum_ovary (over 10,000 features).
- Superior Accuracy: FSNS outperformed 11 baseline algorithms, including LASSO and RFE, with an average performance improvement of 3%.
- Efficiency: Once the embedding space is learned, finding an optimal subset in a 10,000+ feature dataset takes approximately 20 seconds.
- Robustness: The model demonstrated high resistance to noise, consistently identifying relevant features even when "junk" features outnumbered real ones by a factor of nine.
- Model Agnostic: The selected features improved performance across various downstream models (SVM, XGBoost, Random Forest), indicating that the subsets capture intrinsic data value.
Conclusion and Future Directions
FSNS represents a significant step toward more intelligent and efficient feature selection. By combining neuro-symbolic embeddings with autoregressive generation, it overcomes the limitations of traditional iterative methods. Future work includes addressing the computational overhead of the initial RL data collection and exploring the integration of pre-trained LLMs to incorporate semantic understanding of feature names into the selection process.
Summary updated