TL;DR
FETCH (Feature Set Data-Driven Search) is a novel reinforcement learning framework that treats tabular datasets as "states" to automate feature engineering. Unlike previous "blind" methods, FETCH sees the data, allowing it to learn generalizable patterns and enabling the first successful pre-training paradigm for automated feature engineering across diverse datasets.
What Problem Does This Paper Address?
Feature engineering (FE)—the process of creating, selecting, and transforming variables to improve model performance—is often the "secret sauce" in successful machine learning projects. Traditionally, this required human experts to scrutinize data distributions and correlations.
While Automated Feature Engineering (AutoFE) exists, most current state-of-the-art methods (like NFS or DIFER) borrow heavily from Neural Architecture Search (NAS). These methods are "data-unobserved": the policy network deciding which features to create only looks at the number of features or a history of past actions, never the actual data values.
This blind approach leads to two major issues:
- High Computational Cost: The model has to start from scratch for every new dataset.
- Lack of Transferability: Because the model doesn't "see" the data, it can't learn that a specific transformation (like calculating BMI from height and weight) might be universally useful across different but related datasets.
Methods
The authors introduce FETCH, which reframes AutoFE as a data-driven Markov Decision Process (MDP).
- Data-Driven State: Instead of an abstract representation, the "state" fed into the policy network is the processed tabular dataset itself.
- Permutation-Invariant Architecture: Tabular data is essentially a "set" of columns; the order of columns shouldn't matter. To handle this, FETCH uses a Transformer-inspired architecture. It employs Multi-Head Self-Attention to capture relationships between features but—crucially—removes the positional encodings used in natural language processing to ensure the model is invariant to column order.
- The Policy Network: A Fully Connected Network (FCN) maps variable-length feature vectors to a fixed size, the attention layers encode relationships, and an action decoder outputs probabilities for FE actions (e.g.,
log,sqrt,add,delete). - Reinforcement Learning (PPO): The model is trained using Proximal Policy Optimization. The reward function is based on the cross-validation performance of a downstream model (like Random Forest or XGBoost), with a clever "stability" term that punishes actions leading to inconsistent performance across data folds.
Datasets
The researchers evaluated FETCH on a robust benchmark of 27 datasets (16 classification and 11 regression) sourced from OpenML, the UCI repository, and Kaggle. These cover diverse domains like healthcare (Heart Disease), finance (Credit Default), and physical sciences (Airfoil). For the transferability experiments, they specifically used subsets of these datasets (Pre-Oml and Pre-Uci) for pre-training before testing on five completely unseen "target" datasets.
Key Insights and Ideas
- The "Aha!" Moment: Pre-training for Tables. By making the policy network data-aware, the authors realized they could pre-train it on a "pool" of datasets. The model learns a form of "tabular common sense"—recognizing patterns in data distributions that suggest specific transformations are likely to succeed.
- Efficiency through Observation: Because FETCH "sees" the data, it is significantly more sample-efficient. It reaches convergence in about 15,000 evaluations, whereas previous SOTA methods like NFS required up to 160,000—an 11x improvement.
- Handling Variable Shapes: The use of self-attention allows the model to handle datasets with different numbers of columns and rows seamlessly, a prerequisite for any universal AutoFE tool.
Key Results
- Superior Performance: FETCH outperformed existing AutoFE methods (NFS, DIFER, DFS) on 25 out of 27 datasets. On average, it performed 3.24% better than DIFER and 3.16% better than NFS.
- Transferability Works: In pre-training tests, the "Pre-Mix" model (trained on a variety of datasets) consistently found better feature sets faster than a model starting from scratch. For example, on the
Openml_637dataset, the pre-trained model achieved a 5.51% higher improvement than the non-pre-trained baseline. - Model Agnostic: While FETCH uses a Random Forest for its internal reward calculation, the features it generates significantly boost the performance of other models like Logistic Regression, LightGBM, and Catboost.
Limitations and Future Work
While FETCH is a major step forward, the authors note a few areas for growth:
- Scaling: While they demonstrated scalability on datasets up to 1 million rows, the computational overhead of the policy network itself could be optimized for even larger "big data" scenarios.
- Multimodal Data: The current framework is strictly for tabular data. The authors suggest that future versions could integrate encoders for images or text, allowing FETCH to perform feature engineering on multimodal datasets (e.g., a real estate listing with both a table of specs and a descriptive text).
- Search Space: The current action space is limited to standard mathematical and selection operators. Expanding this to more complex, domain-specific transformations could further improve results.
Summary updated