Journal Article
Large Language Models

Accurate predictions on small data with a tabular foundation model

Noah Hollmann(University of Freiburg), Samuel Müller(University of Freiburg), Lennart Purucker(University of Freiburg), Arjun Krishnakumar(University of Freiburg), Max Körfer(University of Freiburg), Shi Bin Hoo(University of Freiburg), Robin Tibor Schirrmeister(University of Freiburg), Frank Hutter(University of Freiburg)
January 8, 2025Nature1,178 citations

1.2k

Citations

147

Influential Citations

Nature

Venue

2025

Year

Abstract

Abstract Tabular data, spreadsheets organized in rows and columns, are ubiquitous across scientific fields, from biomedicine to particle physics to economics and climate science 1,2 . The fundamental prediction task of filling in missing values of a label column based on the rest of the columns is essential for various applications as diverse as biomedical risk models, drug discovery and materials science. Although deep learning has revolutionized learning from raw data and led to numerous high-profile success stories 3–5 , gradient-boosted decision trees 6–9 have dominated tabular data for the past 20 years. Here we present the Tabular Prior-data Fitted Network (TabPFN), a tabular foundation model that outperforms all previous methods on datasets with up to 10,000 samples by a wide margin, using substantially less training time. In 2.8 s, TabPFN outperforms an ensemble of the strongest baselines tuned for 4 h in a classification setting. As a generative transformer-based foundation model, this model also allows fine-tuning, data generation, density estimation and learning reusable embeddings. TabPFN is a learning algorithm that is itself learned across millions of synthetic datasets, demonstrating the power of this approach for algorithm development. By improving modelling abilities across diverse fields, TabPFN has the potential to accelerate scientific discovery and enhance important decision-making in various domains.

Analysis

Why This Paper Matters

Tabular data remains the backbone of scientific and industrial decision-making, yet deep learning has struggled to displace gradient-boosted decision trees (GBDTs) for two decades. This paper introduces TabPFN, a tabular foundation model that not only matches but significantly outperforms GBDTs on small datasets (up to 10,000 samples). The breakthrough lies in its speed: 2.8 seconds of inference versus 4 hours of hyperparameter tuning for the best ensemble baselines. This efficiency could democratize high-quality predictions for researchers and practitioners who lack massive compute resources.

The paper is particularly significant because it demonstrates that a transformer-based model, pretrained on millions of synthetic datasets, can learn a general-purpose algorithm for tabular prediction. This shifts the paradigm from hand-engineered algorithms (like XGBoost) to learned algorithms, potentially unlocking new capabilities in few-shot learning, data generation, and density estimation for tabular data.

Technical Contributions

  • TabPFN Architecture: A transformer that processes rows of a tabular dataset as tokens, enabling in-context learning without per-dataset fine-tuning.
  • Synthetic Pretraining: Trained on millions of synthetic datasets generated from a prior distribution over data-generating processes, allowing the model to learn a universal prediction algorithm.
  • Generative Capabilities: Beyond classification, TabPFN supports data generation, density estimation, and learning reusable embeddings, making it a versatile foundation model.
  • Efficiency: Achieves state-of-the-art results with minimal compute, requiring only a single forward pass for inference on new datasets.

Results

TabPFN outperforms all previous methods on datasets with up to 10,000 samples by a wide margin. In a classification setting, it achieves superior accuracy in 2.8 seconds, compared to an ensemble of the strongest baselines (including XGBoost, LightGBM, and CatBoost) tuned for 4 hours. The model also demonstrates strong performance on regression tasks and supports fine-tuning for further improvements. With 1,178 citations, the work has already had substantial impact in the machine learning community.

Significance

TabPFN represents a paradigm shift for tabular data, showing that foundation models can excel in domains traditionally dominated by tree-based methods. Its ability to generalize from synthetic data to real-world tasks opens new avenues for algorithm development through meta-learning. The model's generative capabilities also enable applications in data augmentation, uncertainty estimation, and privacy-preserving data sharing. For AI practitioners, TabPFN offers a drop-in replacement for GBDTs on small datasets, reducing the need for extensive feature engineering and hyperparameter tuning. This work could accelerate progress in fields like biomedicine, where small datasets are common, and inspire further research into learned algorithms for structured data.