TL;DR
The RAFT (tRaceable Automatic Feature Transformation) framework automates the tedious process of feature engineering using a trio of cascading reinforcement learning agents. By grouping features and using graph-based state representations, it overcomes the "curse of dimensionality" and provides an interpretable, "white-box" path to optimized feature spaces, outperforming existing methods by an average of 24.7% in F1 scores.
What Problem Does This Paper Address?
In machine learning, the quality of your features often matters more than the complexity of your model. However, "feature transformation"—the process of generating new features (like multiplying two variables) and selecting the best ones—is traditionally a manual, time-consuming task.
Existing automated systems face three major hurdles:
- The Curse of Dimensionality: If you have 100 features, the number of possible combinations for new features is astronomical. Standard Reinforcement Learning (RL) models, like Deep Q-Networks (DQN), struggle to explore such a massive "action space."
- Poor State Perception: Most models treat features as independent entities, failing to capture the complex correlations and "situational" relationships between them.
- The Efficiency-Global Trade-off: Models often choose between generating features quickly (but missing global interactions) or searching globally (but becoming computationally paralyzed).
Methods
The authors introduce RAFT, which reimagines feature transformation as a structured, iterative game played by three specialized agents.
1. Feature Space Clustering (FG-Clustering)
To avoid the explosion of choices, RAFT doesn't pick individual features. Instead, it uses a custom clustering algorithm to group similar features. This reduces the decision-making search space significantly. The distance metric used for clustering combines numeric differences with Mutual Information (MI) to ensure features in a group contribute similarly to the target variable.
2. Cascading Actor-Critic Agents
Instead of one agent trying to make a complex decision (Feature A + Feature B), RAFT uses three agents in a "cascade":
- Agent 1: Selects the first feature group.
- Agent O: Selects the mathematical operation (e.g., add, multiply, log).
- Agent 2: Selects the second feature group (if the operation is binary).
By breaking the decision into steps, the model learns more effectively. They use an Actor-Critic approach, which is generally more stable than the Q-learning used in prior work.
3. Advanced State Representation
To help the agents "see" the data clearly, the authors tested three ways to represent the current feature space. The most successful was a Graph Autoencoder (GAE). This treats the feature space as a graph where nodes are features and edges represent correlations, allowing the model to perceive the underlying structure of the data.
Datasets
The researchers evaluated RAFT across 17 public datasets sourced from UCI, LibSVM, Kaggle, and OpenML. These covered a wide range of tasks:
- 6 Classification tasks (e.g., PimaIndian, Amazon Employee).
- 7 Regression tasks (e.g., various OpenML benchmarks).
- 4 Outlier Detection tasks (e.g., Mammography, WBC).
The datasets were categorized by their standard deviation (High, Mid, Low) to test the model's robustness across different data scales.
Key Insights and Ideas
- Grouping is a Game-Changer: By shifting from "feature-to-feature" crossing to "group-to-group" crossing, the model maintains global interaction potential without the computational overhead.
- Relationships Matter More than Values: The Graph Autoencoder (GAE) outperformed simple statistical summaries. This suggests that for feature engineering, how features relate to each other is more informative than the raw distribution of the data itself.
- Traceability is Built-In: Unlike "black-box" methods that project data into a latent space (like PCA), RAFT's features are human-readable. A generated feature might be named
alcohol-residual sugar, allowing data scientists to understand exactly what the AI discovered.
Key Results
- Performance Boost: RAFT achieved a 24.7% average improvement in F1 scores compared to state-of-the-art (SOTA) baselines.
- Superiority over DQN: RAFT significantly outperformed GRFG (a DQN-based method), proving that the cascading actor-critic architecture is better suited for high-dimensional feature engineering.
- Robustness: The model showed particular strength in high-dimensional datasets where traditional automated feature engineering tools often fail or produce redundant results.
Limitations and Future Work
The authors noted that while combining different state representation methods (like statistics + graph embeddings) seems intuitive, it sometimes introduces noise that can lead to suboptimal policies. Directly concatenating representations isn't always the answer.
Future Work might involve:
- Refining how different state representations are fused to minimize noise.
- Expanding the operation set beyond basic arithmetic to include more complex window functions or temporal transformations for time-series data.
- Optimizing the "feature selection" step to more aggressively prune the space as it grows during iterations.
Summary updated