Abstract
This study unveils the In-Context Evolutionary Search (ICE-SEARCH) method, which is among the first works that melds large language models (LLMs) with evolutionary algorithms for feature selection (FS) tasks and demonstrates its effectiveness in Medical Predictive Analytics (MPA) applications. ICE-SEARCH harnesses the crossover and mutation capabilities inherent in LLMs within an evolutionary framework, significantly improving FS through the model's comprehensive world knowledge and its adaptability to a variety of roles. Our evaluation of this methodology spans three crucial MPA tasks: stroke, cardiovascular disease, and diabetes, where ICE-SEARCH outperforms traditional FS methods in pinpointing essential features for medical applications. ICE-SEARCH achieves State-of-the-Art (SOTA) performance in stroke prediction and diabetes prediction; the Decision-Randomized ICE-SEARCH ranks as SOTA in cardiovascular disease prediction. The study emphasizes the critical role of incorporating domain-specific insights, illustrating ICE-SEARCH's robustness, generalizability, and convergence. This opens avenues for further research into comprehensive and intricate FS landscapes, marking a significant stride in the application of artificial intelligence in medical predictive analytics.
Introduction: The Challenge of Feature Selection
In machine learning, Feature Selection (FS) is the critical process of identifying the most relevant variables while discarding redundant or noisy data. In Medical Predictive Analytics (MPA), this task is vital; selecting the right indicators (e.g., blood pressure vs. patient ID) can be the difference between a life-saving prediction and a failed model. However, FS is a massive combinatorial challenge: a dataset with $n$ features presents $2^n$ possible combinations.
Traditional approaches often rely on Evolutionary Algorithms (EAs), which mimic natural selection by "breeding" and "mutating" feature sets. While effective, standard EAs are essentially "blind"—they perform mutations randomly without understanding the biological or clinical relevance of the features. This lack of domain knowledge often leads to inefficient searches and a high risk of overfitting.
Methodology: ICE-SEARCH
The researchers introduce In-Context Evolutionary Search (ICE-SEARCH) to bridge this gap. Instead of using hard-coded, stochastic rules for crossover and mutation, ICE-SEARCH utilizes the internal "world knowledge" of Large Language Models (LLMs) like Phi-2 or Llama 2 to act as the evolutionary engine.
As illustrated in the framework overview, the process consists of four primary stages:
- Initialization: The initial population of feature sets is generated using a combination of classical FS methods and zero-shot LLM suggestions.
- Evolution via Role-Playing: This is the core innovation. The LLM is prompted to assume various specialized roles—such as a cardiologist, neurologist, or epidemiologist. By role-playing, the model applies specific domain expertise to propose new, biologically plausible feature combinations.
- Filtration: To balance exploration and exploitation, the algorithm retains top-performing sets while keeping a few lower-performing ones to maintain genetic diversity and avoid local optima.
- Final Selection: After several generations (epochs), the best-performing feature set is validated against test data.
The Power of In-Context Learning
The "In-Context" aspect of ICE-SEARCH refers to how the LLM is guided during the evolutionary cycle. Rather than fine-tuning the model, the researchers provide the LLM with examples of "good" and "bad" feature sets from previous iterations. This allows the model to learn on the fly which combinations are yielding higher accuracy.
By prompting the model to "think step-by-step" and providing it with the classification accuracy of previous sets, the LLM performs "knowledge-guided" mutations. For instance, it might recognize that "age" is a non-negotiable predictor for heart disease and ensure it remains in the set, even if a random algorithm might have dropped it.
Experimental Results
The methodology was evaluated on three open-source medical datasets of increasing complexity:
- Stroke Prediction: ICE-SEARCH achieved a validation rank of 1.0 (out of 1,023 possible combinations), outperforming traditional methods like Random Forest.
- Diabetes Health Indicators: On a massive dataset of ~436,000 samples, ICE-SEARCH consistently identified feature sets with higher test accuracies than traditional FS methods across multiple random initializations.
- Cardiovascular Disease: The "Decision-Randomized" variant of ICE-SEARCH achieved State-of-the-Art (SOTA) performance, demonstrating robustness even when training and testing data distributions differed.
One of the most significant findings was the speed of convergence. ICE-SEARCH typically identified optimal feature sets within just 3 to 5 epochs. This efficiency suggests that the LLM's pre-trained knowledge effectively "prunes" the search space, focusing only on the most promising feature combinations.
Conclusion and Future Directions
ICE-SEARCH represents a significant step forward in integrating LLMs into the machine learning pipeline. By replacing random mutation with informed, role-based reasoning, the framework achieves SOTA results in critical medical tasks with high efficiency.
Future work will look to address current limitations, such as the context window constraints of LLMs and the computational costs of frequent model calls. Additionally, the researchers aim to expand this methodology into other complex domains, such as finance and high-dimensional genomic data, where domain-specific intuition is equally vital.
Summary updated