TL;DR
CoFEH is a novel AutoML framework that breaks the traditional "greedy myopia" of optimizing feature engineering (FE) and hyperparameter optimization (HPO) in isolation. By dynamically interleaving LLM-driven, free-form FE pipelines with Bayesian HPO through a mutual conditioning mechanism, CoFEH achieves state-of-the-art performance across diverse tabular datasets with exceptional cost-efficiency.
What Problem Does This Paper Address?
In machine learning, data representation (Feature Engineering) and model capacity (Hyperparameter Optimization) are deeply codependent. A brilliant feature might perform poorly under default model settings, only to shine once hyperparameters are properly tuned.
Traditional AutoML systems suffer from "greedy myopia": they either force FE and HPO into rigid, semantics-agnostic search spaces, or they optimize them sequentially—running FE first under a fixed model, freezing the features, and then tuning hyperparameters. While recent methods leverage Large Language Models (LLMs) to bring domain knowledge and flexible code generation to FE, they still focus on isolated subtasks (like generating a single new feature) rather than building complete, free-form pipelines, and they fail to capture the critical interactions between FE and HPO.
Methods
CoFEH introduces a collaborative framework that adaptively alternates between LLM-driven FE and Bayesian HPO, allowing them to make mutually informed decisions:
- LLM-driven Tree-of-Thought FE: Instead of restricting pipelines to fixed sequences, CoFEH uses Monte Carlo Tree Search (MCTS) to explore a tree of dataset states. The LLM acts as an expert agent guided by steerable reasoning directives (Initialization, Exploration, Exploitation) and a Global Memory to construct human-expert-like pipelines spanning preprocessing, transformation, generation, and selection.
- Mutual Conditioning Mechanism: To bridge the gap between the discrete tree space of the LLM and the continuous hyperparameter space of Bayesian Optimization (BO), CoFEH extracts statistical meta-features to vectorize dataset states. This allows the BO surrogate model to perceive the impact of FE transformations. Conversely, the MCTS uses HPO performance updates to prioritize the most promising feature branches.
- Dynamic Optimizer Selector: Modeled as a Multi-Armed Bandit problem using a Predictor Upper Confidence Bound (PUCB) policy, this module dynamically decides whether to allocate the next budget step to FE or HPO based on task-specific utility, ensuring optimal resource allocation.
Datasets
The authors evaluated CoFEH on a comprehensive benchmark consisting of 28 public datasets:
- 19 classification datasets curated by Grinsztajn et al., specifically selected to benchmark tabular data challenges.
- 9 regression datasets sourced from OpenML and Kaggle (e.g., airfoil_self_noise, housing, diamonds).
Key Insights and Ideas
- The Capability-Integration Paradox: LLMs excel at creative, semantic feature exploration but lag behind traditional Bayesian Optimization in continuous hyperparameter spaces. CoFEH resolves this by letting each optimizer do what it does best, linking them via a shared context.
- Semantic Pruning vs. Feature Explosion: Traditional automated FE often leads to a combinatorial explosion of redundant features (e.g., expanding a dataset to over 100 dimensions). CoFEH leverages the LLM's semantic reasoning to keep the feature space compact (typically under 20 dimensions), drastically reducing downstream evaluation costs.
- Task-Adaptive Budgeting: The dynamic selector successfully identifies whether a dataset is "feature-sensitive" or "HPO-sensitive." For instance, on the diamonds dataset, it allocates 70% of the budget to FE, whereas on the jannis dataset, it skews the budget toward HPO (63%), matching the true marginal utility of each process.
Key Results
- State-of-the-Art Performance: In standalone FE, CoFEH achieved a dominant Average Rank of 1.84, outperforming top LLM baselines like LFG (3.11). In the joint FE+HPO setting, CoFEH secured an Average Rank of 1.75, achieving a 7.03% relative error reduction over its standalone baseline.
- High Cost-Efficiency: By utilizing
gemini-2.0-flashas its default backbone, CoFEH achieved its top-tier performance at an average API cost of just $0.07 per task. - Time Savings: Thanks to its compact feature generation, CoFEH runs significantly faster than traditional search-heavy methods; traditional baselines like OpenFE and Mindware required 3.35× and 1.85× the runtime of CoFEH, respectively.
- Model-Agnostic Generalization: CoFEH maintained its top ranking when tested across diverse downstream architectures, including XGBoost, Deep Learning (MLPs), and full CASH (Combined Algorithm Selection and HPO) scenarios.
Limitations and Future Work
- Meta-Feature Dependency: The framework's ability to bridge the LLM and BO modules relies heavily on the quality of the dataset meta-features. Integrating more advanced dataset characterization techniques could further elevate the performance ceiling.
- Modality Expansion: While currently optimized for tabular data, the authors note that CoFEH's architecture is highly extensible and can be adapted to image and text data via simple prompt modifications in the future.
Summary updated