Introduction
Feature engineering is a cornerstone of effective machine learning, particularly for tabular data where the quality of input variables often dictates model performance. Traditionally, this process involves manual mathematical transformations—such as combining weight and height to create Body Mass Index (BMI)—to uncover predictive signals. However, manual feature engineering is labor-intensive and requires deep domain expertise.
Automated Feature Transformation (AFT) aims to solve this, but existing methods often suffer from "amnesia." They treat transformations as isolated operations, discarding valuable intermediate steps and struggling with the exponential search space of possible combinations. This paper introduces TCTO (Flexible Transformation-Centric Tabular Data Optimization Framework), which models feature engineering as an evolving, traceable graph.
Methodology: The TCTO Framework
TCTO frames feature engineering as a graph-driven path optimization problem solved via Multi-Agent Reinforcement Learning (MARL). Unlike previous methods that discard historical data, TCTO maintains a Transformation Roadmap—a directed graph where nodes represent features and edges represent mathematical operations.
Core Components
- State Representation & Clustering: The framework uses a Relational Graph Convolutional Network (RGCN) to encode the roadmap's structural and mathematical properties. Features are clustered based on statistical traits to ensure that the RL agents explore diverse and informative combinations.
- Collaborative Multi-Agent Architecture: Three specialized RL agents work in a cascade to construct new features:
- Head Cluster Agent: Selects the primary feature group.
- Operation Agent: Chooses the mathematical operator (e.g., +, log, sin).
- Operand Cluster Agent: Selects the secondary feature group for binary operations.
- Dual-Facet Reward System: Agents are optimized using a reward that balances downstream task performance (e.g., accuracy or RAE) with a penalty for feature complexity. This ensures that the generated features are effective yet interpretable and not overly nested.
- Pruning & Backtracking: To manage the search space, TCTO employs node-wise pruning (removing low-information features) and step-wise backtracking (reverting to previous optimal graph states) to maintain stability during exploration.
Experimental Evaluation
The framework was rigorously tested on 25 diverse tabular datasets across classification and regression tasks, including benchmarks like Higgs Boson and Credit Default.
Key Results
- State-of-the-Art Performance: TCTO outperformed 10 leading baselines (such as OpenFE and FETCH) on the majority of datasets. For instance, on the Housing Boston regression task, it achieved a 1-RAE score of 0.495, surpassing all competitors.
- Model Agnostic Robustness: Features generated by TCTO consistently improved performance across various models, including Random Forests, XGBoost, and MLPs, proving they are not overfit to a specific architecture.
- Scalability: The system successfully scaled to high-dimensional datasets (e.g., Newsgroups with 61k features) and large-scale samples (e.g., ALBERT with 425k samples) by utilizing efficient evaluators like LightGBM.
Insights and Future Directions
A critical finding of this research is that mathematical traits are more important than structural position when clustering features for transformation. Ablation studies showed that understanding the statistical distribution of a feature leads to better transformation choices than simply knowing its place in the graph.
While TCTO is highly effective, the primary bottleneck remains the computational cost of reward estimation, which requires training a downstream model at every step. Future work aims to integrate Large Language Models (LLMs) to provide semantic guidance for feature selection and to apply this traceable framework to scientific domains like bioinformatics and drug discovery, where interpretable mathematical relationships are vital for breakthroughs.
Summary updated