TabularBERT: Binning-Based Self-Supervised Learning for Tabular Representation

Beomjin Park, Seunghwan An, Sungchul Hong, Hosik ChoiICML 2026

Introduction

In the landscape of machine learning, tabular data remains the "final frontier" for deep learning. While Transformer architectures have revolutionized natural language processing and computer vision, traditional tree-based models like XGBoost and CatBoost continue to dominate tabular benchmarks. The primary reason for this discrepancy lies in the handling of numerical data. Tree-based models naturally partition continuous values into regions, making them robust to outliers and highly effective at capturing localized patterns. Conversely, deep learning models often struggle to tokenize numerical variables effectively. Treating numbers as discrete text tokens strips them of their inherent geometric properties—for instance, a standard language model might not inherently recognize that 99.1 is closer to 99.2 than it is to 10.0.

To address this "numerical vocabulary" problem, researchers introduce TabularBERT, a Transformer-based model that combines binning-based tokenization with a geometry-aware training objective to preserve the ordinal relationships and proximity of numerical values.

The TabularBERT Architecture

TabularBERT adapts the Bidirectional Encoder Representations from Transformers (BERT) architecture specifically for tabular data through several novel mechanisms:

1. Binning-Based Tokenization

Instead of feeding raw numerical values directly into the network, TabularBERT utilizes a quantile transformation to map variables to a uniform distribution. These values are then partitioned into non-overlapping bins, with each bin acting as a distinct "token." This mimics the recursive partitioning of tree-based models, granting TabularBERT similar robustness while maintaining the Transformer's ability to capture complex, cross-feature interactions.

2. Fused-Type Regularization

A high number of bins can cause the model to treat each bin as an isolated entity, degrading performance. To counter this, the authors introduce a fused-type penalty that encourages the embeddings of neighboring bins to remain similar. This regularization smooths the representation landscape, preventing abrupt "jumps" at bin boundaries and ensuring the model understands that adjacent bins are closely related.

3. Variable Embeddings

To distinguish between identical bin numbers from different features (e.g., Bin 5 of "Age" versus Bin 5 of "Income"), TabularBERT combines bin embeddings with learnable, variable-specific embeddings. This is achieved using either direct addition or a projection-based concatenation.

4. Dual-Head Pretraining

The model undergoes Masked Language Modeling (MLM) pretraining using two specialized heads designed to mitigate the information loss typical of discretization:

  • Squared Wasserstein Distance (SWD) Loss: Standard Cross-Entropy loss treats all incorrect predictions equally. SWD loss, however, penalizes the model more heavily if it predicts a bin that is geometrically far from the true bin. This explicitly teaches the model to respect the ordinal nature of the data.
  • MSE Reconstruction: An auxiliary Mean Squared Error (MSE) head reconstructs the original continuous value, acting as a denoiser to recover the fine-grained "within-bin" precision lost during tokenization.

Experimental Evaluation

The researchers evaluated TabularBERT across 12 public tabular datasets that serve as standard benchmarks in the tabular deep learning community. These included binary classification, multiclass classification, and regression tasks (e.g., Adult, Higgs Small, California Housing, and Year datasets).

Key Results

TabularBERT demonstrated highly competitive performance across the board:

  • Superiority over Deep Learning Baselines: The model outperformed popular tabular deep learning architectures like SAINT, FT-Transformer, and T2G-Former on most datasets, with substantial gains noted on the Eye Movements (EY) and Higgs Small (HI) datasets.
  • Competitiveness with Tree-Based Models: TabularBERT went head-to-head with XGBoost, LightGBM, and CatBoost. It remained highly competitive and even outperformed the best tree-based baselines on several datasets (including CH, HI, GE, EY, and JA).
  • Ablation Success: Ablation studies confirmed the necessity of the dual-head pretraining. Removing the SWD loss and the auxiliary reconstruction head led to a measurable drop in classification accuracy and an increase in regression error (RMSE).

Limitations and Future Directions

Despite its strong performance, TabularBERT faces a few practical hurdles. Like all Transformer-based architectures, it is computationally more expensive to train and deploy than lightweight tree models. Furthermore, the two-stage process of pretraining and fine-tuning adds pipeline complexity. The model also exhibits hyperparameter sensitivity; the optimal number of bins and the pretraining schedule can vary significantly depending on the specific characteristics of the dataset.

Looking forward, the authors suggest that developing dataset-adaptive hyperparameter selection—such as automatically determining optimal bin counts—could further boost performance and usability. Additionally, there is significant potential to explore how this binning-based approach might scale to extremely large "foundation models" dedicated entirely to tabular data.

Summary updated

BibTeX
@inproceedings{park2026tabularbert,
  author = {Beomjin Park and Seunghwan An and Sungchul Hong and Hosik Choi},
  title = {{TabularBERT: Binning-Based Self-Supervised Learning for Tabular Representation}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=VZYOqASdBl},
}
Figure