Abstract
Feature selection in high-dimensional datasets is a critical yet computationally intensive task. Traditional reinforcement learning (RL) approaches often scale linearly with the number of features, becoming impractical for datasets with tens of thousands of variables. This paper introduces HRLFS, a framework that integrates Large Language Models (LLMs) for semantic feature comprehension and hierarchical pruning for efficient subspace exploration. By organizing features into a hierarchy and employing multi-agent RL, HRLFS reduces the average time complexity from $O(N)$ to $O(\log N)$. Experimental results across 21 datasets demonstrate that HRLFS significantly outperforms state-of-the-art methods in both predictive performance and computational efficiency.
The Challenge of High-Dimensional Feature Selection
Feature selection—identifying the most relevant subset of data for a machine learning model—is a classic "needle in a haystack" problem. As datasets grow to include tens of thousands of features (e.g., in genomics or finance), traditional methods struggle with scalability and accuracy.
Existing Reinforcement Learning (RL) approaches treat feature selection as an optimization task but typically follow a "one-agent-per-feature" paradigm. For a dataset with 20,000 features, this requires 20,000 agents, leading to prohibitive computational costs. Furthermore, these agents often ignore the semantic relationships between features, failing to recognize redundancies that are obvious to humans (e.g., "Age" vs. "Date of Birth").
The HRLFS Framework: Comprehend, Divide, and Conquer
The authors propose a three-stage strategy to overcome these limitations:
1. Comprehend: Hybrid State Extraction
To understand a feature's role, HRLFS extracts a "Hybrid Feature State" combining mathematical and semantic information:
- Mathematical Distribution: Gaussian Mixture Models (GMMs) are used to capture complex, non-linear data distributions.
- Semantic Meaning: Feature names and descriptions are processed by a Large Language Model (GPT-4) to generate embeddings. This allows the system to leverage "common sense" domain knowledge to identify redundant or irrelevant features.
2. Divide: Agent Hierarchy Construction
Using the hybrid states, the system performs incremental clustering to build a tree-like hierarchy. Similar features (both statistically and semantically) are grouped together, forming the basis for hierarchical decision-making.
3. Conquer: Hierarchical Reinforcement Learning
Instead of making individual decisions for every feature, HRLFS uses a top-down pruning approach. A high-level agent evaluates a cluster and decides to "Select" or "Drop" the entire group.
- Pruning: If a cluster is dropped, the entire branch is pruned instantly, drastically reducing the search space.
- Refinement: If selected, the decision is passed to sub-agents for finer-grained filtering.
The RL backend utilizes an Actor-Critic architecture, optimizing for a reward function that balances model performance (accuracy/F1) with "quantity suppression" to ensure a compact feature set.
Experimental Evaluation
HRLFS was evaluated on 21 diverse datasets from biology, finance, and image processing, including high-dimensional benchmarks like the "Han" dataset (20,670 features).
Key Results
- Performance: HRLFS consistently outperformed eight state-of-the-art baselines, including LASSONet and other RL-based methods.
- Efficiency: The framework reduced the number of active agents by 70.6% to 82.3% compared to standard RL models.
- Speed: Total execution time was reduced by 35.5% to 55.3%, demonstrating the practical benefits of $O(\log N)$ complexity.
- Scalability: HRLFS successfully handled datasets with over 20,000 features where traditional RL methods often fail.
Conclusion and Future Work
HRLFS represents a significant step forward in feature selection by combining the semantic reasoning of LLMs with the structural efficiency of hierarchical RL. While highly effective for tabular data with descriptive metadata, future work will focus on extending the framework to anonymized datasets and other modalities like time-series or images. Additionally, the authors plan to explore applications in causal inference and anomaly detection.
Summary updated