TL;DR
Automated Feature Engineering (AFE) can dramatically boost machine learning performance on tabular data, but it is notoriously slow, spending up to 90% of its time evaluating candidate features. This paper introduces E-AFE, a reinforcement learning framework that uses MinHash compression and a pre-trained binary classifier to filter out poor features early. The result is a 2x computational speedup and a 2.9% average performance boost over state-of-the-art methods.
What Problem Does This Paper Address?
For tabular datasets, feature engineering—the process of transforming raw data into informative features via mathematical operations—is critical. While Automated Feature Engineering (AFE) algorithms have emerged to replace labor-intensive manual feature creation, they hit a massive bottleneck: evaluation.
Testing every newly generated feature on a complex downstream model (like a Random Forest) over an entire dataset is computationally crushing. The authors point out that in state-of-the-art methods like Neural Feature Search (NFS), feature generation takes a mere 0.1% of the total runtime, while feature evaluation consumes over 90%. As datasets grow in size and complexity, this low-efficiency issue makes large-scale deployment impractical.
Methods
The authors frame AFE as an off-policy multi-agent reinforcement learning (RL) problem. Each raw feature in the dataset is assigned its own Recurrent Neural Network (RNN) agent, which learns to select optimal transformation operators (e.g., logarithm, square root, addition, multiplication).
To solve the evaluation bottleneck, E-AFE introduces two core components:
- Feature Pre-Evaluation (FPE) Model:
- Sample Compressor: Uses MinHash hashing techniques to compress datasets of arbitrary row sizes into a fixed, smaller dimension $d$ while preserving the underlying sample similarities.
- Feature Pre-selector: A binary classifier pre-trained on hundreds of public datasets. It quickly predicts whether a newly generated feature is "valid" (likely to improve performance) or "invalid" before any expensive downstream modeling happens.
- Two-Stage Policy Training Strategy:
- Stage 1 (Quick Initialization): The RL agents are trained using only the FPE model's fast predictions as proxy rewards, completely bypassing the downstream task and saving promising actions to a replay buffer.
- Stage 2 (Formal Training): The agents transition to training on the real downstream task, but they only evaluate the high-quality candidate features filtered from Stage 1, preventing the model from learning from scratch.
The overall transition from traditional AFE to this RL-based framework is illustrated below:
The specific mechanics of how an individual RNN agent samples actions and receives rewards are shown here:
Datasets
- Pre-training: The FPE model was pre-trained using 239 public datasets from OpenML (consisting of 141 classification and 98 regression datasets) to build a generalized understanding of feature validity.
- Evaluation: The complete E-AFE framework was evaluated across 36 target datasets (26 classification, 10 regression), including popular benchmarks like Higgs Boson, PimaIndian, and German Credit.
Key Insights and Ideas
- The Diminishing Returns of Sample Size: The authors empirically demonstrated that evaluating features on 100% of a dataset versus a smaller fraction yields nearly identical feature quality but causes an exponential surge in computation time.
- Transferable Feature Wisdom: Feature utility isn't entirely dataset-dependent. By training a classifier on hundreds of historical datasets, the framework learns a general intuition of what a "good" feature looks like based purely on its compressed hash signature.
- Intelligent Pruning: Instead of evaluating every mathematical combination, treating feature selection as a strict gatekeeper early in the pipeline drastically slashes the search space without sacrificing downstream accuracy.
Key Results
- 2x Speedup: E-AFE consistently cuts feature evaluation time in half compared to Neural Feature Search (NFS), running twice as fast during the same training epochs.
- 2.9% Performance Gain: Beyond speed, E-AFE achieved a 2.9% higher average performance score across all 36 test datasets, proving that filtering out noisy features actually helps the downstream model find better optima.
- Massive Space Reduction: E-AFE evaluates less than 50% of the total generated features compared to baseline methods, confirming that the FPE model successfully filters out redundant data.
Limitations and Future Work
While E-AFE shows impressive efficiency gains, the authors note a few boundaries:
- Pre-training Dependence: The FPE model relies heavily on the diversity of the 239 OpenML datasets. If a target dataset has a completely unprecedented structure, the pre-selector's accuracy might degrade.
- Combinatorial Limits: To keep the exploration space manageable, the maximum order of feature transformations was capped at 5. Exploring higher-order feature interactions efficiently remains an open challenge.
- Downstream Generalization: While tested against multiple models (like SVM and MLP), the primary RL reward mechanism is optimized around Random Forests. Future work could adapt the framework to dynamically adjust based on different downstream architectures.
Summary updated