SwitchTab: Switched Autoencoders Are Effective Tabular Learners

Jing Wu, Suiyao Chen, Qi Zhao, Renat Sergazinov, Chen Li, Shengjie Liu, Chongchao Zhao, Tianpei Xie, Hanqing Guo, Cheng Ji, Daniel Cociorva, Hakan Brunzell

Abstract

Self-supervised learning (SSL) has transformed vision and language processing, yet tabular data remains difficult due to its lack of spatial or semantic structure. We introduce SwitchTab, a novel SSL framework designed specifically for tabular data. SwitchTab decouples latent representations into "mutual" (shared) and "salient" (unique) features. By "switching" mutual features between pairs of samples during training, the model is forced to learn highly representative embeddings. Our results demonstrate that SwitchTab consistently outperforms state-of-the-art deep learning models and provides significant performance boosts to traditional classifiers like XGBoost.

Introduction

Tabular data is ubiquitous but presents unique challenges for deep learning. Unlike images or text, tabular features often lack inherent structure and are frequently redundant or weakly correlated. Consequently, traditional Gradient Boosted Decision Trees (GBDTs) often outperform deep learning models. The primary hurdle is the model's inability to distinguish between generic information and the distinctive features necessary for accurate prediction.

Methodology: Feature Decoupling and Switching

SwitchTab addresses these challenges through an asymmetric encoder-decoder architecture focused on feature decoupling. The process involves three key stages:

  1. Feature Corruption: Input data is randomly masked or replaced to encourage the learning of robust patterns.
  2. Feature Decoupling: The encoder produces a latent vector that is split into Mutual Features ($m$), representing shared information across samples, and Salient Features ($s$), representing unique characteristics defining decision boundaries.
  3. The Switching Mechanism: This core innovation requires the decoder to reconstruct an original sample (e.g., $x_1$) using its own salient features ($s_1$) paired with the mutual features of a different sample ($m_2$).
The SwitchTab architecture illustrating the flow from data encoding to feature decoupling and the subsequent reconstruction through feature switching.

This mechanism incentivizes the model to ensure that mutual features are truly interchangeable and generic, while salient features capture the essential, distinctive signal of the individual data point.

Experimental Evaluation

The framework was evaluated across 18 diverse datasets, ranging from standard benchmarks like California Housing and Higgs to a tabularized version of MNIST. These datasets cover binary and multi-class classification as well as regression, with sizes varying from a few hundred to over a million samples.

Results and Key Insights

SwitchTab demonstrates superior performance compared to existing tabular deep learning models such as TabNet, FT-Transformer, and ResNet.

Comparative performance of SwitchTab against various deep learning and GBDT baselines across multiple benchmark datasets.

Key findings include:

  • State-of-the-Art Performance: SwitchTab consistently leads in classification benchmarks, often outperforming both neural and tree-based models.
  • Boosting Traditional Models: The salient embeddings ($s$) can be used as "plug-and-play" features. Concatenating these with raw data for XGBoost or CatBoost resulted in absolute gains of 0.5% to 3.5% in AUC/Accuracy.
  • Latent Space Clarity: Visualization confirms that while mutual features overlap across classes, salient features cluster distinctly, proving effective isolation of predictive signals.
  • Ablation Success: Removing the switching mechanism significantly degrades performance, highlighting its necessity for effective representation learning.

Conclusion and Future Work

While SwitchTab is a powerful learner for tabular data, some limitations remain. Traditional GBDTs still hold a slight edge in certain pure regression tasks. Additionally, the model exhibits some sensitivity to corruption ratios in high-dimensional datasets. Future work will focus on optimizing computational overhead and refining performance for regression-heavy domains.

Summary updated

BibTeX
@inproceedings{wu2024switchtab,
  author = {Jing Wu and Suiyao Chen and Qi Zhao and Renat Sergazinov and Chen Li and Shengjie Liu and Chongchao Zhao and Tianpei Xie and Hanqing Guo and Cheng Ji and Daniel Cociorva and Hakan Brunzell},
  title = {{SwitchTab: Switched Autoencoders Are Effective Tabular Learners}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i14.29523},
}
Figure