Real-TabPFN: Improving Tabular Foundation Models via Continued Pre-training With Real-World Data

Anurag Garg, Muhammad Ali, Noah Hollmann, Lennart Purucker, Samuel Müller, Frank Hutter

TL;DR

Real-TabPFN bridges the "synthetic-to-real" gap in tabular foundation models by introducing a targeted continued pre-training phase on real-world data. By fine-tuning the synthetically trained TabPFNv2 model on a curated set of large OpenML and Kaggle datasets, the authors achieve a significant boost in downstream classification accuracy, outperforming both the default model and heavily tuned tree ensembles right out of the box.

What Problem Does This Paper Address?

Tabular data remains a stronghold for traditional tree-based machine learning algorithms like XGBoost and CatBoost, which historically outperform deep neural networks on these tasks. Recently, Prior-Data Fitted Networks (PFNs) like TabPFNv2 challenged this dominance by training transformers on millions of synthetic tables, enabling impressive zero-shot (in-context) classification on small datasets.

However, a gap remains between purely synthetic mathematical priors and the messy, complex structures found in real-world data. Improving TabPFNv2 is notoriously difficult because it has already exhaustively learned from over 100 million synthetic tables. This paper addresses this bottleneck, exploring whether continuing to pre-train a synthetic foundation model on real-world data can enhance its performance without sacrificing its cross-domain adaptability.

Methods

The authors adopt a clean, two-stage training strategy:

  1. Stage 1 (Base Prior): Start with the original TabPFNv2 checkpoint, which provides a robust, synthetically trained foundation.
  2. Stage 2 (Continued Pre-training): Train the model exclusively on real-world tables.

To ensure stable training and prevent the model from breaking, they introduce two key techniques:

  • L2-Starting-Point (L2-SP) Regularization: This penalty term prevents the model's weights from drifting too far from the initial synthetic checkpoint, effectively mitigating catastrophic forgetting.
  • Batch Size of 1: By processing exactly one dataset per training step, the architecture naturally handles varying feature dimensions and shapes without requiring artificial padding or truncation.

During this second stage, each dataset's rows are split into 60% context (training data) and 40% query (evaluation data) to mimic TabPFN's in-context learning mechanism.

Datasets

  • Pre-training Data: The authors manually curated 71 high-quality real-world datasets from OpenML and Kaggle. To strictly avoid data contamination, they only selected datasets with more than 10,000 samples (since the evaluation sets are all smaller) and implemented a multi-tiered filtering process using row/column hashing and metadata inspection. For comparison, they also tested broader, uncurated corpora like CommonCrawl (~97,000 tables) and GitTables (658 tables).
  • Evaluation Data: The final model was evaluated using 29 small datasets (up to 10,000 samples and 500 features) from the standard OpenML AutoML Benchmark.
Figure 2. Distribution of dataset sizes (number of rows and fea- tures) from various sources. The prevalence of smaller datasets in broad corpora like CommonCrawl and GitTable contrasts with the larger datasets from OpenML and Kaggle.

Key Insights and Ideas

  • Data Quality and Size Over Raw Volume: Massive web-scraped corpora like CommonCrawl actually degraded performance (-0.003 ROC-AUC). Web-scraped tables are often too small or noisy to be useful. In contrast, curated datasets with larger row counts and richer feature sets (OpenML & Kaggle) provided the meaningful statistical signals required to improve the model.
  • Context Size Scales Performance: The benefits of real-world pre-training scale directly with the context size. Increasing the number of samples the model looks at during pre-training from 2,048 up to 20,000 consistently yielded higher downstream accuracy.
Figure 4. Increase in normalized ROC AUC as the continued-pre- training context grows. The gains are shown relative to the base TabPFNv2 model performance which was synthetically pre-trained with 2,048 context size.
  • Complementary Supervision: Training on OpenML alone (+0.019) or Kaggle alone (+0.015) gave solid boosts, but combining them yielded the highest gain (+0.022), proving that diverse real-world data sources provide complementary benefits.

Key Results

  • Head-to-Head Superiority: Real-TabPFN significantly outperformed the default TabPFNv2 model across the evaluation suite, winning on the vast majority of the 29 benchmark datasets (Wilcoxon signed-rank test $p = 0.0045$).
Figure 1. Per Dataset Normalized ROC Comparison of TabPFN (default) and Real-TabPFN (ours) on the 29 datasets from the OpenML AutoML Benchmark Datasets. Wilcoxon p refers to the two-sided Wilcoxon signed-rank test p value.
  • Beating Tuned Baselines Zero-Shot: Real-TabPFN improved the mean normalized ROC-AUC from 0.954 to 0.976. Remarkably, Real-TabPFN achieves this out-of-the-box without any hyperparameter tuning, yet it outperforms strong baselines like XGBoost, CatBoost, and LightGBM even when those baselines are given a 4-hour tuning budget.
Figure 3. Mean Normalized ROC AUC Comparsion of Real- TabPFN with all the default and the tuned versions of the baselines on the AutoMLBenchmark. Scores were normalized per dataset, with 1.0 representing the best and 0.0 the worst performance with respect to all baselines.

Limitations and Future Work

  • Hardware and Memory Caps: Due to GPU memory limits (the study was conducted on a single Nvidia RTX 2080 Ti), the training context had to be capped at 20,000 rows and 400,000 total cells per dataset. Scaling to larger hardware could unlock further performance gains.
  • Task Scope: The current iteration of Real-TabPFN is strictly focused on tabular classification. Extending this continued pre-training methodology to regression tasks remains an open and promising direction for future research.

Summary updated

BibTeX
@inproceedings{garg2025real,
  author = {Anurag Garg and Muhammad Ali and Noah Hollmann and Lennart Purucker and Samuel Müller and Frank Hutter},
  title = {{Real-TabPFN: Improving Tabular Foundation Models via Continued Pre-training With Real-World Data}},
  booktitle = {FMSD @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=BtEiqKsIMw},
}
Figure