Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Large Language Models for Automated Data Science: Introducing CAAFE for Context-Aware Automated Feature Engineering

About

As the field of automated machine learning (AutoML) advances, it becomes increasingly important to incorporate domain knowledge into these systems. We present an approach for doing so by harnessing the power of large language models (LLMs). Specifically, we introduce Context-Aware Automated Feature Engineering (CAAFE), a feature engineering method for tabular datasets that utilizes an LLM to iteratively generate additional semantically meaningful features for tabular datasets based on the description of the dataset. The method produces both Python code for creating new features and explanations for the utility of the generated features. Despite being methodologically simple, CAAFE improves performance on 11 out of 14 datasets -- boosting mean ROC AUC performance from 0.798 to 0.822 across all dataset - similar to the improvement achieved by using a random forest instead of logistic regression on our datasets. Furthermore, CAAFE is interpretable by providing a textual explanation for each generated feature. CAAFE paves the way for more extensive semi-automation in data science tasks and emphasizes the significance of context-aware solutions that can extend the scope of AutoML systems to semantic AutoML. We release our $\href{https://github.com/automl/CAAFE}{code}$, a simple $\href{https://colab.research.google.com/drive/1mCA8xOAJZ4MaB_alZvyARTMjhl6RZf0a}{demo}$ and a $\href{https://pypi.org/project/caafe/}{python\ package}$.

Noah Hollmann, Samuel M\"uller, Frank Hutter• 2023

Related benchmarks

TaskDatasetResultRank
RegressionHousing
RMSE0.224
26
ClassificationSVMGuide3 LibSVM (5-fold cross-val)
Macro F181.74
17
ClassificationPimaIndian Kaggle (5-fold cross-validation)
Macro F1 Score79.86
17
ClassificationIonosphere UCIrvine (5-fold cross-validation)
Macro F1 Score92.84
17
ClassificationAmazon Employee Kaggle (5-fold cross-validation)
Macro F191.41
17
ClassificationMessidor Feature UCIrvine (5-fold cross-validation)
Macro F10.661
17
ClassificationGerman Credit UCIrvine (5-fold cross-val)
Macro F10.5992
17
Classificationbreast-w
ROC-AUC0.99
13
Classificationwater (val)
AUROC59.8
12
Classificationcustomer (val)
AUROC0.853
12
Showing 10 of 58 rows

Other info

Follow for update