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

This paper introduces Real-TabPFN, a tabular foundation model that significantly improves performance on small datasets by continuing the pre-training of the existing TabPFN model on a curated set of real-world tabular data. This "bridging" approach between synthetic and real data pre-training leads to substantial accuracy gains and establishes Real-TabPFN as a stronger off-the-shelf baseline for tabular classification tasks.

What Problem Does This Paper Address?

Traditional tree-based models have long dominated tabular data tasks. While recent advancements like TabPFN have shown that deep learning models can achieve strong performance on small tabular datasets through extensive pre-training on synthetic data, there's still room for improvement. The challenge is that even these powerful synthetic pre-trained models don't universally outperform well-tuned tree ensembles or achieve the absolute best performance across all datasets. The authors aim to bridge the gap between purely synthetic pre-training and purely real-world data approaches, seeking to leverage the strengths of both to create a more robust and performant tabular foundation model.

Methods

The core innovation lies in a two-stage pre-training approach.

  1. Stage 1: Starts with the existing TabPFN model, which has already been pre-trained on a massive dataset of synthetic tabular data. This serves as a strong foundation.
  2. Stage 2: This is the novel part. The model undergoes continued pre-training on a carefully curated collection of real-world tabular datasets. This is distinct from "mixed training" where synthetic and real data are interleaved. The authors opted for a staged approach for simplicity and to build directly on the established synthetic pre-training.

Key methodological details include:

  • Architecture: Retains the original TabPFN architecture.
  • Training: Uses a reduced learning rate (3x10⁻⁷) with AdamW optimizer, linear warm-up, and cosine annealing.
  • Regularization: Introduces an L2-Starting-Point (L2-SP) regularizer to mitigate catastrophic forgetting by penalizing large deviations from the initial pre-trained weights.
  • Data Handling: Processes datasets with up to 400,000 cells, sampling uniformly if larger. For each batch, data is split into 60% context (training) and 40% query (testing).

Datasets

  • Continued Pre-training Data: A curated set of 71 high-quality datasets from OpenML and Kaggle. The authors emphasize careful curation to avoid data contamination. They also experimented with broader corpora like CommonCrawl and GitTables, but found them less effective due to smaller dataset sizes and potential noise.
  • Evaluation Data: The paper uses the same 29 datasets from the OpenML AutoML Benchmark as used by the original TabPFNv2 paper. These datasets are characterized by having fewer than 10,000 samples and 500 features, making them suitable for evaluating performance on small tabular data.

Key Insights and Ideas

  • Bridging the Gap: The most significant insight is that continuing pre-training on a curated set of real-world data, after initial synthetic pre-training, provides a substantial performance boost. This suggests that real-world data offers complementary supervisory signals that synthetic data alone might miss.
  • Curated Data is Key: Not all real-world data is equally beneficial. Broader, potentially noisier corpora like CommonCrawl and GitTables showed diminished performance compared to the carefully selected OpenML and Kaggle datasets. This highlights the importance of data quality and relevance for effective continued pre-training.
  • Heterogeneity is Beneficial: Combining datasets from different sources (OpenML and Kaggle) yielded the best results, indicating that a diverse set of real-world problems provides richer learning opportunities.
  • Context Size Matters: The performance gains from continued pre-training increase with the size of the context window used during this phase, up to the GPU memory limits.

Key Results

  • Substantial Performance Gains: Real-TabPFN significantly outperforms the default TabPFNv2 on the 29 OpenML AutoML Benchmark datasets.
  • Improved ROC-AUC: The mean normalized ROC-AUC improved from 0.954 (TabPFNv2) to 0.976 (Real-TabPFN).
  • State-of-the-Art Baseline: Real-TabPFN outperforms all other evaluated baselines, including tuned versions of XGBoost, LightGBM, and CatBoost, on average.
  • Context Size Impact: Increasing the context size during continued pre-training leads to larger improvements in normalized ROC AUC.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges the scarcity of high-quality, curated real-world tabular datasets, which is a bottleneck for this approach.
  • The continued pre-training was performed on a single GPU, limiting the scale of experiments and potentially the optimal training duration.
  • The authors intentionally excluded broader corpora like CommonCrawl and GitTables due to contamination concerns and smaller dataset sizes, suggesting that more sophisticated filtering might unlock their potential.
  • Future Work:
    • The authors plan to open-source Real-TabPFN and its weights, making it accessible to the research community.
  • They suggest that exploring more temporal or statistical richness in the continued pre-training data could lead to even larger improvements.
  • Investigating more advanced methods for handling data contamination from broader corpora could be a fruitful direction.

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