TL;DR
This paper introduces LLM-Select, a novel approach that leverages Large Language Models (LLMs) for feature selection in supervised learning tasks. Remarkably, LLMs can identify predictive features with performance competitive with traditional data-driven methods, even without access to the training data itself. This opens up possibilities for more efficient data collection and model building, especially in domains where data is costly to acquire.
What Problem Does This Paper Address?
In machine learning, feature selection is crucial for building effective and efficient models. Traditionally, this involves complex statistical methods or computationally intensive search strategies that require access to the training data. However, in many real-world scenarios, especially in domains like healthcare and social sciences, acquiring high-quality data is expensive and time-consuming. This paper addresses the challenge of performing effective feature selection without direct access to the downstream training data, by exploring the capabilities of LLMs. The core question is: can LLMs, given only feature names and a task description, identify the most predictive features?
Methods
The authors propose three LLM-based feature selection methods:
- LLM-SCORE: This method involves zero-shot prompting an LLM to assign a numerical importance score (between 0 and 1) to each feature for predicting a target outcome. Features with higher scores are selected.
- LLM-RANK: Here, the LLM is prompted to rank a list of features based on their importance for the prediction task. The top-ranked features are then selected.
- LLM-SEQ: This approach uses an iterative, dialogue-based method where the LLM sequentially selects features that are predicted to maximally improve the performance of a downstream model.
These methods are designed to work with LLMs that have been fine-tuned for instruction following and conversational contexts, but importantly, they are not fine-tuned on the specific downstream datasets. The authors also explore various prompting strategies, including adding dataset-specific context and few-shot examples, to understand their impact on performance.
Datasets
The study evaluates LLM-Select on a variety of real-world datasets, categorized as:
- Small-Scale Datasets: These include 7 binary classification datasets (e.g., Credit-G, Bank, COMPAS Recidivism) and 7 regression datasets (e.g., CA Housing, Diabetes Progression, Wine Quality), typically with 10-70 features after preprocessing.
- Large-Scale Datasets: These include supersets of the Income, Employment, Public Coverage, and Mobility datasets from folktables, and three datasets derived from the MIMIC-IV database (CKD, COPD, HF), each with around 3000 features after preprocessing.
The authors specifically note that some datasets (marked with an asterisk) were published after the pretraining data cutoff dates of the LLMs used, ensuring a more robust evaluation.
Key Insights and Ideas
- LLMs as Feature Selectors: The most striking insight is that LLMs, even without seeing the training data, can effectively identify predictive features. This suggests LLMs encode rich semantic knowledge about real-world relationships that can be leveraged for feature selection.
- Zero-Shot Power: The ability of LLMs to perform feature selection through simple zero-shot prompting (e.g., asking for an importance score for a single feature) is a significant finding, demonstrating their generalization capabilities.
- Semantic Importance: The effectiveness of LLM-based feature selection relies heavily on the semantic richness of feature names and descriptions. Irrelevant or generic feature names significantly degrade performance.
- Data Collection Guidance: The findings suggest LLMs could be used not only for selecting features from existing data but also for guiding decisions on which features to collect in the first place, potentially saving significant costs.
Key Results
- Competitive Performance: LLM-Select methods, particularly with larger LLMs like GPT-4, achieve performance competitive with, and sometimes exceeding, state-of-the-art data-driven feature selection methods (e.g., LASSO, LassoNet) on both small-scale and large-scale datasets.
- Model Scale Matters: The effectiveness of LLM-based feature selection is strongly correlated with LLM scale. Larger models like GPT-4 show more consistent performance across different datasets and prompting strategies compared to smaller models.
- Prompting Strategy Impact: While LLM-SCORE is generally robust to different prompting strategies, adding context or few-shot examples doesn't consistently yield significant improvements over default zero-shot prompting, especially for larger models.
- LLM-RANK and LLM-SEQ Equivalence: For larger LLMs, LLM-SCORE, LLM-RANK, and LLM-SEQ demonstrate similar strong performance, suggesting that different prompting mechanisms can elicit comparable feature selection capabilities.
- Semantic Sensitivity: Replacing meaningful feature names with generic ones (e.g., "feature_1") drastically reduces LLM-Select's performance, highlighting the importance of semantic information.
Limitations and Future Work
- Domain Specificity: The authors acknowledge that LLM-Select might show limited performance in extremely specialized or rare domains.
- Textual Dependency: The method relies on textual descriptions of features, making it less effective for datasets lacking rich annotations.
- Bias Concerns: LLMs can inherit biases from their pretraining data, potentially leading to performance disparities across subpopulations. Mitigating these biases in LLM-based feature selection, especially for closed-source models, is an open challenge.
- Future Directions: The authors suggest exploring extensions of CoT prompting (like Tree-of-Thoughts) for improved reasoning, investigating prompting strategies to align LLM-SCORE with specific notions of importance, and developing methods to incorporate group fairness into LLM-based feature selection.
Summary updated