Abstract
Automated Feature Engineering (AFE) is a critical step in machine learning pipelines, yet traditional methods often struggle with either the "feature explosion" of brute-force combinations or the prohibitive costs of row-level Foundation Model (FM) interactions. We introduce SMARTFEAT, a framework that interacts with FMs at the feature level to generate executable Python functions. By leveraging open-world knowledge to design features once and execute them locally, SMARTFEAT achieves significant performance gains across diverse datasets while remaining efficient enough for large-scale applications.
Introduction
Traditional AFE tools typically rely on exhaustive mathematical combinations, leading to a surplus of irrelevant features that require intensive filtering. While recent research has explored using Foundation Models (LLMs) for data tasks, these methods usually rely on row-level interactions—feeding every row of a dataset into the model. For datasets with millions of rows, this is prohibitively expensive and slow. SMARTFEAT addresses this "efficiency vs. intelligence" trade-off by shifting the FM interaction to the metadata level, using the model's reasoning to design features that are then executed locally.
Methodology
SMARTFEAT introduces a two-stage pipeline that interacts with FMs at the metadata level rather than the data level:
- Operator Selector: This component uses GPT-4 to analyze the dataset's "data agenda" (column names and descriptions). Instead of trying every possible math operation, it uses FM reasoning to suggest meaningful transformations. For example, it might recognize that an "Age" column in an insurance dataset should be "bucketized" at the age of 21. It supports four operator types: Unary, Binary, High-order (e.g., Group-By transforms), and Extractors.
- Function Generator: Once an operator is selected, SMARTFEAT uses a faster, cheaper model (GPT-3.5-turbo) to write the actual Python/Pandas code to implement that feature. By generating a function instead of a value, the system only calls the expensive FM a few times to "design" the feature, while the actual computation happens locally on the user's machine.
Experimental Setup
The authors evaluated SMARTFEAT on eight supervised binary classification datasets sourced from Kaggle, covering diverse domains including Health (Diabetes, Heart), Finance (Bank), Society (Adult, Housing), Education (Lawschool), Disease (West Nile Virus), and Sports (Tennis). These datasets vary in size and feature types, providing a robust test for the FM's ability to handle different contexts.
Results and Analysis
SMARTFEAT demonstrated significant improvements in both predictive performance and computational efficiency.
- Performance Boost: SMARTFEAT improved the average AUC across almost all datasets. The most significant jump was observed on the Adult dataset, where it achieved a 13.3% improvement over the initial features.
- Efficiency: While other FM-based tools like CAAFE timed out on large datasets (such as Bank and Adult) during evaluation, SMARTFEAT finished all tasks in under 10 minutes.
- Feature Quality: In the Tennis dataset, 90% of the top-10 most important features identified by the ML model were those generated by SMARTFEAT, proving the high quality of its context-aware operators.
Conclusion
SMARTFEAT leverages the "open-world knowledge" of Foundation Models to avoid the creation of nonsensical features and identify predictive transformations that traditional tools miss. While the system is currently dependent on descriptive metadata and focused on single-table datasets, it represents a major step forward in making LLM-based feature engineering viable for big data. Future work will explore handling complex relational joins across multiple tables and improving automated error correction for generated code.
Summary updated