TabPFN: One Model to Rule Them All?
Organizations: Institute of Statistics & Big Data, Renmin University of China, China · Department of Statistics & Data Science, National University of Singapore, Singapore · Department of Statistics & Actuarial Science, University or Waterloo, Canada
Abstract
Hollmann et al. (Nature 637 (2025) 319-326) recently introduced TabPFN, a transformer-based deep learning model for regression and classification on tabular data, which they claim "outperforms all previous methods on datasets with up to 10,000 samples by a wide margin, using substantially less training time." Furthermore, they have called TabPFN a "foundation model" for tabular data, as it can support "data generation, density estimation, learning reusable embeddings and fine-tuning". In this paper, we provide a tailored explanation of how TabPFN works for a statistics audience, by emphasizing its interpretation as approximate Bayesian inference. We then explore the significance of TabPFN to the field of statistics: We show that an out-of-the-box application of TabPFN can sometimes outperform specialized state-of-the-art methods for semi-supervised parameter estimation, prediction under covariate shift, and heterogeneous treatment effect estimation. As a partial explanation for the predictive effectiveness of TabPFN, we show that it can simultaneously adapt to both nonparametric structure and parametric structure, for instance, sometimes outperforming LASSO even when assumptions are correctly specified. All experiments can be reproduced using the code provided at https://github.com/qinglong-tian/tabpfn_study (https://github.com/qinglong-tian/tabpfn_study).
Figures & tables
| Setting | Parameter of Interest: |
|---|---|
| 1 (linear reg.) | |
| 2 (logistic reg.) | |
| 3 (quantile reg.) |
| ID | Vanilla | TabPFN-I | TabPFN-D | SLZ |
|---|---|---|---|---|
| 189 | 6.3621 | 2.3105 | 1.8860 | 6.5636 |
| 218 | 15.2800 | 4.3926 | 2.5916 | 3.1214 |
| 225 | 7.0790 | 1.5684 | 3.0303 | 7.0924 |
| 572 | 1.4113 | 0.4698 | 0.4589 | 0.9370 |
| 1200 | 1.9185 | 0.8884 | 0.7787 | 1.7529 |
| ID | Vanilla | TabPFN-I | TabPFN-D | TabPFN-I | TabPFN-D | SLZ |
|---|---|---|---|---|---|---|
| mode imputation | mean imputation | |||||
| 251 | 0.0195 | 2.6087 | 0.2679 | 0.0149 | 0.0181 | 0.0200 |
| 807 | 0.0036 | 0.0116 | 0.0065 | 0.0020 | 0.0017 | 0.0037 |
| 816 | 0.0060 | 0.1081 | 0.01550 | 0.0026 | 0.0044 | 0.0060 |
| 1046 | 0.0025 | 0.0030 | 0.0022 | 0.0013 | 0.0011 | 0.0025 |
| 40983 | 5.5566 | 2.3351 | 2.5356 | 1.2346 | 1.9884 | 5.9513 |
| Dataset | Setting | KRR test-label oracle | PL | Naive XGBoost | IW XGBoost | TabPFN |
|---|---|---|---|---|---|---|
| Airfoil | ||||||
| Concrete | ||||||
| TabPFN | LASSO | SCAD | MCP | ||||||||||||||
| SNR | Relevant | Irrelevant | Relevant | Irrelevant | Relevant | Irrelevant | Relevant | Irrelevant | |||||||||
| Bias 2 | Var | Bias 2 | Var | Bias 2 | Var | Bias 2 | Var | Bias 2 | Var | Bias 2 | Var | Bias 2 | Var | Bias 2 | Var | ||
| 1.22 | 1 | 0.0000 | 0.0012 | 0.0000 | 0.0000 | 0.0058 | 0.0016 | 0.0000 | 0.0000 | 0.0000 | 0.0012 | 0.0000 | 0.0000 | 0.0000 | 0.0012 | 0.0000 | 0.0000 |
| 5 | 0.0004 | 0.0081 | 0.0000 | 0.0004 | 0.0172 | 0.0085 | 0.0000 | 0.0006 | 0.0001 | 0.0077 | 0.0000 | 0.0001 | 0.0001 | 0.0077 | 0.0000 | 0.0002 | |
| 10 | 0.0028 | 0.0196 | 0.0000 | 0.0025 | 0.0244 | 0.0174 | 0.0000 | 0.0020 | 0.0002 | 0.0180 | 0.0000 | 0.0007 | 0.0002 | 0.0179 | 0.0000 | 0.0007 | |
| 20 | 0.0175 | 0.0500 | 0.0004 | 0.0099 | 0.0303 | 0.0360 | 0.0001 | 0.0079 | 0.0005 | 0.0400 | 0.0001 | 0.0051 | 0.0005 | 0.0407 | 0.0001 | 0.0049 | |
| Setup | Propensity | Base | Effect |
|---|---|---|---|
| Setup | N | DR | S | T | X | R | Oracle | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TabPFN | AutoML | TabPFN | AutoML | TabPFN | AutoML | TabPFN | AutoML | AutoML | AutoML | |||
| A | 500 | 0.5 | 0.0403 | 0.0906 | 0.0392 | 0.0428 | 0.0695 | 0.2057 | 0.0342 | 0.0773 | 0.0770 | 0.0659 |
| 1 | 0.0486 | 0.1543 | 0.0528 | 0.0650 | 0.1103 | 0.3178 | 0.0502 | 0.1214 | 0.1116 | 0.1069 | ||
| 2 | 0.0611 | 0.2706 | 0.0610 | 0.0825 | 0.1702 | 0.4556 | 0.0692 | 0.1693 | 0.2060 | 0.1964 | ||
| 1000 | 0.5 | 0.0221 | 0.0494 | 0.0264 | 0.0317 | 0.0551 | 0.1477 | 0.0190 | 0.0382 | 0.0406 | 0.0381 | |
| 1 | 0.0366 | 0.0699 | 0.0367 | 0.0421 | 0.0725 | 0.2046 | 0.0317 | 0.0724 | 0.0621 | 0.0604 | ||
| Setup | N | DR | S | T | X | R | Oracle | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TabPFN | AutoML | TabPFN | AutoML | TabPFN | AutoML | TabPFN | AutoML | AutoML | AutoML | |||
| D | 500 | 0.5 | 0.0867 | 0.1196 | 0.1255 | 0.1127 | 0.0629 | 0.1038 | 0.0739 | 0.0928 | 0.1152 | 0.1158 |
| 1 | 0.1162 | 0.1636 | 0.1367 | 0.1355 | 0.0986 | 0.1693 | 0.1066 | 0.1223 | 0.1496 | 0.1440 | ||
| 2 | 0.1366 | 0.2343 | 0.1387 | 0.1407 | 0.1230 | 0.2558 | 0.1306 | 0.1615 | 0.2334 | 0.2322 | ||
| 1000 | 0.5 | 0.0515 | 0.0781 | 0.0715 | 0.0653 | 0.0305 | 0.0616 | 0.0399 | 0.0583 | 0.0738 | 0.0730 | |
| 1 | 0.0803 | 0.1116 | 0.1211 | 0.0972 | 0.0570 | 0.1048 | 0.0706 | 0.0856 | 0.1105 | 0.1110 | ||
| Method | Linear | Quadratic | Step | P Linear | |||||
|---|---|---|---|---|---|---|---|---|---|
| Coverage | Length | Coverage | Length | Coverage | Length | Coverage | Length | ||
| 11 | TabPFN | 0.9350 | 0.4656 | 0.9525 | 0.7365 | 0.9705 | 1.2301 | 0.9930 | 1.8449 |
| GPR | 0.7715 | 0.3182 | 0.7235 | 0.3945 | 0.8005 | 0.5933 | 0.7090 | 0.3787 | |
| 31 | TabPFN | 0.9405 | 0.3924 | 0.9420 | 0.4235 | 0.9365 | 0.5501 | 0.9375 | 0.4788 |
| GPR | 0.8205 | 0.3266 | 0.8590 | 0.3912 | 0.8770 | 0.5190 | 0.9045 | 0.4279 | |
| Method | Linear | Quadratic | Step | P Linear | |||||
|---|---|---|---|---|---|---|---|---|---|
| Coverage | Length | Coverage | Length | Coverage | Length | Coverage | Length | ||
| 11 | TabPFN | 0.9276 | 5.1478 | 0.4287 | 8.4742 | 0.9996 | 3.3699 | 1.0000 | 2.4744 |
| GPR | 0.5599 | 2.3820 | 0.0421 | 0.8183 | 0.9431 | 2.3125 | 0.2983 | 0.4443 | |
| 31 | TabPFN | 0.9827 | 5.9242 | 0.6817 | 11.9492 | 0.9975 | 3.8227 | 0.9993 | 4.9580 |
| GPR | 0.7192 | 1.9608 | 0.0813 | 1.9430 | 0.9980 | 2.4185 | 0.5327 | 0.8643 | |
| Dataset | Method | Coverage95% | Width95% | CRPS | KS-PIT |
|---|---|---|---|---|---|
| kin8nm | TabPFN | 0.968 | 1.618 | 0.207 | 0.030 |
| GPR | 0.943 | 1.439 | 0.208 | 0.032 | |
| house_8L | TabPFN | 0.954 | 1.654 | 0.213 | 0.034 |
| GPR | 0.929 | 2.035 | 0.295 | 0.119 | |
| puma8NH | TabPFN | 0.939 | 1.993 | 0.304 | 0.035 |
| GPR | 0.939 | 2.529 | 0.376 | 0.038 |
Tabular Foundation Models
Tabular foundation models learn reusable representations or in-context prediction skills for structured data such as spreadsheets and databases.
See all 232 papers