TabTransformer: Tabular Data Modeling Using Contextual Embeddings

Xin Huang, Ashish Khetan, Milan Cvitkovic, Zohar Karnin
12/11/2020
cs.LGcs.AI

Official code: lucidrains/tab-transformer-pytorch (1,090 stars, MIT, last commit 2026-01-08).

Abstract

We propose TabTransformer, a novel deep tabular data modeling architecture for supervised and semi-supervised learning. The TabTransformer is built upon self-attention based Transformers. The Transformer layers transform the embeddings of categorical features into robust contextual embeddings to achieve higher prediction accuracy. Through extensive experiments on fifteen publicly available datasets, we show that the TabTransformer outperforms the state-of-the-art deep learning methods for tabular data by at least 1.0% on mean AUC, and matches the performance of tree-based ensemble models. Furthermore, we demonstrate that the contextual embeddings learned from TabTransformer are highly robust against both missing and noisy data features, and provide better interpretability. Lastly, for the semi-supervised setting we develop an unsupervised pre-training procedure to learn data-driven contextual embeddings, resulting in an average 2.1% AUC lift over the state-of-the-art methods.

View on arXivView PDF

Code Implementations(1)

MIT

Implementation of TabTransformer, attention network for tabular data, in Pytorch

1,090130PythonDec 15, 20209 months agoMIT
artificial-intelligenceattention-mechanismdeep-learningtabular-datatransformer

Cite this paper

@article{huang2020tabtransformer,
  title  = {TabTransformer: Tabular Data Modeling Using Contextual Embeddings},
  author = {Xin Huang and Ashish Khetan and Milan Cvitkovic and Zohar Karnin},
  year   = {2020},
  eprint = {2012.06678},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.06678}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2012.06678.svg)](https://codeofpaper.com/paper/2012.06678)

Discussion