Abstract
Tabular learning transforms raw features into optimized spaces for downstream tasks, but its effectiveness deteriorates under distribution shifts between training and testing data. We formalize this challenge as the Distribution Shift Tabular Learning (DSTL) problem and propose a novel Shift-Aware Feature Transformation (SAFT) framework to address it. SAFT reframes tabular learning from a discrete search task into a continuous representation-generation paradigm, enabling differentiable optimization over transformed feature sets. SAFT integrates three mechanisms to ensure robustness: (i) shift-resistant representation via embedding decorrelation and sample reweighting, (ii) flatness-aware generation through suboptimal embedding averaging, and (iii) normalization-based alignment between training and test distributions. Extensive experiments show that SAFT consistently outperforms prior tabular learning methods in terms of robustness, effectiveness, and generalization ability under diverse real-world distribution shifts.
The Challenge: Distribution Shift in Tabular Data
In the domain of tabular data—the structured information found in spreadsheets and databases—feature engineering is a critical step. It involves transforming raw variables into more informative features (e.g., combining $f_1$ and $f_2$ into $f_1 + f_2$) to improve model performance. However, traditional automated feature engineering tools often rely on discrete search methods that are computationally expensive and produce "brittle" features. These features frequently fail when the data distribution shifts between training and testing environments, a phenomenon known as Distribution Shift Tabular Learning (DSTL).
As illustrated above, a transformation that successfully separates classes in the training set may become entirely ineffective when applied to test data with different statistical properties. SAFT aims to bridge this gap by making the feature transformation process inherently "shift-aware."
The SAFT Framework: From Search to Learning
SAFT departs from the traditional "trial-and-error" search approach, instead adopting a continuous Representation-Generation paradigm. This allows the framework to use gradient-based optimization to navigate the space of possible feature transformations.
Architecture Overview
The framework is built upon an Encoder-Evaluator-Decoder structure:
- Encoder: A Graph Neural Network (GNN) models features as nodes in a graph, capturing complex, non-linear inter-feature dependencies.
- Evaluator: A feedforward network predicts the performance of specific feature combinations.
- Decoder: An LSTM translates continuous embeddings back into human-readable feature formulas using postfix notation.
Robustness Mechanisms
To ensure resilience against distribution shifts, SAFT integrates three key technical innovations:
- Shift-Resistant Embedding Space: The framework uses bilevel training to learn sample weights that decorrelate embeddings, focusing the model on stable, invariant signals rather than noise specific to the training set.
- Flatness-Aware Generation: Borrowing from deep learning theory, SAFT employs Flatness-Aware Gradient Ascent. Instead of searching for a single performance peak, it seeks "flat" regions in the embedding space. Flat optima are known to generalize better because they are less sensitive to minor shifts in data distribution.
- Normalization Alignment: Integrated z-score normalization and denormalization steps align the training and test distributions, ensuring the learned transformations remain applicable across different data regimes.
Experimental Evaluation
The researchers evaluated SAFT against 10 competitive baselines across 16 diverse datasets from the UCI Machine Learning Repository and OpenML. To rigorously test for distribution shifts, datasets were split along specific features, and shifts were verified using the Kolmogorov–Smirnov test.
Key Findings
- Superior Performance: SAFT consistently outperformed state-of-the-art methods, including LLM-based frameworks like ELLM-FT.
- Enhanced Robustness: Across various data splits, SAFT exhibited significantly lower performance variance compared to traditional search-based methods, confirming its resilience to distribution shifts.
- Efficiency: While the initial Reinforcement Learning (RL) based data collection phase introduces offline overhead, the subsequent inference and feature generation are highly efficient.
Conclusion
SAFT represents a significant step forward in automated feature engineering by reframing the problem as a continuous, differentiable learning task. By prioritizing "flat" optima and shift-resistant representations, it provides a robust solution for real-world tabular data where distribution shifts are common. Future work may involve integrating SAFT with large-scale pre-trained models to further expand the knowledge base of effective feature transformations.
Summary updated