Tabular data—the rows and columns found in spreadsheets and databases—has long been the "unconquered castle" of deep learning. While neural networks dominate vision and language, Gradient Boosted Decision Trees (GBDTs) like XGBoost remain the industry standard for tables. As Borisov et al. note, classical tree ensembles often outperform sophisticated neural architectures on real-world datasets.
However, a new direction has emerged that adapts the Transformer architecture to tabular data. By treating individual features as tokens, these models use self-attention to capture the complex, non-linear interactions that define tabular relationships.
The Feature Tokenization Strategy
The fundamental challenge in applying deep learning to tables is the heterogeneity of the data. A single row might contain a floating-point temperature, a categorical city name, and a boolean flag. Standard Multi-Layer Perceptrons (MLPs) struggle with this because they treat the input as a flat vector, often failing to distinguish between the structural roles of different columns.
To solve this, Gorishniy et al. proposed the FT-Transformer (Feature Tokenizer + Transformer). The core intuition is to transform every feature—regardless of its original type—into a high-dimensional embedding, or "token."
- Numerical features are scaled and projected into an embedding space.
- Categorical features are passed through lookup tables.
- Contextual information is often added via a specialized
[CLS]token, similar to BERT, which aggregates information from all feature tokens to produce a final prediction, as described by Zhao et al..
This approach, also explored by Li, allows the model to treat a row not as a fixed vector, but as a set of related entities.
Why Self-Attention Works for Tables
In natural language, the order of words matters. In tabular data, the order of columns is usually arbitrary. The self-attention mechanism is naturally suited for this because it is permutation-invariant. As Du et al. argue, self-attention identifies non-linear correlations between arbitrary feature pairs regardless of their spatial order.
Instead of a tree greedily splitting on one feature at a time, the Transformer allows every feature to "look" at every other feature. This creates a dynamic weighting system. For example, in a medical dataset, the importance of a "blood pressure" feature might change depending on the "age" or "weight" features. Li et al. demonstrate that this multi-head self-attention allows models to identify subtle, non-linear dependencies in noisy clinical data that traditional models might miss.
Scaling to Foundation Models
The shift toward Transformer-based tabular modeling has opened the door to "tabular foundation models"—networks pre-trained on vast amounts of data to perform well on new, unseen tasks.
Pfefferle et al. show that simplified tabular transformers can achieve performance comparable to Random Forests with minimal tuning. More ambitiously, Ma et al. introduced TabDPT, which treats entire rows as tokens to scale in-context learning to massive real-world corpora. Their work suggests that tabular models follow predictable scaling laws: as model size and data volume increase, the ability to generalize to new schemas improves consistently.
Other researchers are pushing this further by incorporating external knowledge. Kim et al. developed TARTE, which uses Transformers to link tabular strings and numbers to large-scale knowledge bases like Wikidata. This allows the model to "understand" that a column labeled "City" containing "Paris" refers to a geographic entity, rather than treating it as an opaque category.
Beyond Classification: Imputation and Synthesis
The ability of Transformers to model the global structure of a table makes them highly effective for generative tasks.
- Imputation: When data is missing, Wen et al. show that Transformer-based denoising networks outperform MLPs because they better capture the relational structure between columns to reconstruct missing values.
- Synthesis: For generating privacy-preserving synthetic data, Zhang et al. utilize a Transformer-based Variational Autoencoder (VAE). By capturing complex interdependencies in a latent space, the model generates "fake" data that maintains the statistical integrity of the original table.
By moving away from rigid architectures and toward the flexible, attention-based modeling of feature interactions, this research direction provides a path for deep learning to finally match—and in some cases exceed—the performance of tree-based models on the world's most common data format.
Key Foundational Work
CETransformer: Casual Effect Estimation via Transformer Based Representation Learning (2021) — contributed 2 concept elements to this direction.
Revisiting Deep Learning Models for Tabular Data (2021) — contributed 1 concept elements to this direction.
Deep Neural Networks and Tabular Data: A Survey (2021) — contributed 1 concept elements to this direction.