Tabular Foundation Models for Weighted Regression and Classification
Authors: Junwen Xia, Yan He, Dehan Kong, Zhenhua Lin
Organizations: School of Statistics, Renmin University of China, Beijing, China · School of Statistics, East China Normal University, Shanghai, China · Department of Statistical Sciences, University of Toronto, Toronto, Ontario, Canada · Department of Statistics and Data Science, National University of Singapore, Singapore
Weighted regression and classification have applications ranging from missing-data analysis and causal inference to insurance pricing and particle physics. Existing weighted methods must be fitted and tuned on each dataset, which is costly for flexible nonlinear learners. Tabular foundation models avoid this cost. A Transformer is pretrained once on many simulated datasets and then predicts on a new dataset by in-context learning, using its observations as context without further fitting. Recent models such as TabPFN-3.5 surpass tuned conventional methods, but they cannot use sample weights. We develop a general pipeline that adapts such models to weighted prediction through weighted attention, a normalized weighted loss, and pretraining on synthetic weighted prediction tasks from missing-data problems. Applied to TabPFN-3.5, it yields WeightedPFN, which performs strongly on real datasets, both in missing-data problems and in out-of-distribution causal tasks, while running about as fast as linear baselines. We also establish a statistical theory showing that a suitably pretrained weighted Transformer attains the nonparametric minimax rate for weighted regression on new datasets without further fitting.
Figures & tables
Figure 1: Weighted pretraining pipeline. WeightedPFN is fine-tuned on synthetic missing-data tasks with weighted attention and the normalized weighted loss. MatMul denotes matrix multiplication. The operation exp(⋅/dk) divides its input by dk and applies the exponential function elementwise. The operation ×Wti multiplies each input entry by its corresponding weight Wti .
Figure 2: Mean RMSE rank and runtime (log scale) on 110 TALENT regression datasets. Lower values are better.
Figure 3: Mean accuracy rank and runtime (log scale) on 156 TALENT classification datasets. Lower values are better.
TALENT regression
Scaled RMSE (mean ± SD)
Method
X+Y
Y-only
X-only
MCAR
WeightedPFN
0.547±0.310
0.554±0.316
0.474±0.298
0.458±0.295
TabPFN-3.5
0.583±0.378
0.585±0.367
0.467±0.294
0.448±0.289
Ridge
0.728±0.249
0.767±0.319
0.704±0.247
0.692±0.243
SVR
0.652±0.274
0.667±0.300
0.584±0.283
0.562±0.280
Table 1: TALENT performance (mean ± SD across datasets). Lower scaled RMSE and higher accuracy are better. Bold indicates the best mean in each column.
Figure 4: Mean policy-value rank and runtime (log scale) on 148 regression tasks. Lower values are better.
Figure 5: Mean policy-value rank and runtime (log scale) on 163 classification tasks each for DR and RWL and 84 for OWL. Lower values are better.
Causal regression
Scaled policy value (mean ± SD)
Method
Ordinary IPW
Ordinary overlap
Residualized IPW
Residualized overlap
WeightedPFN
1.296±2.398
1.298±2.403
1.310±2.420
1.311±2.421
TabPFN-3.5
1.280±2.401
1.280±2.401
1.301±2.424
1.301±2.424
Ridge
1.279±2.407
1.278±2.408
1.302±2.421
1.307±2.419
SVR
1.283±2.399
1.280±2.403
1.303±2.412
1.305±2.413
Table 2: Treatment selection performance (mean ± SD across tasks). Higher scaled policy values are better. Bold indicates the best mean in each column.
TabPFN-3.5
WeightedPFN
Weights off
Weights on
Weights off
Weights on
Regression
Setting
Scaled RMSE
Scaled RMSE
Scaled RMSE
Scaled RMSE
X+Y
0.583±0.378
0.580±0.358
0.591±0.390
0.547±0.310
Y-only
0.585±0.367
0.587±0.357
0.583±0.356
0.554±0.316
X-only
0.467±0.294
0.470±0.296
0.473±0.297
0.474±0.298
Table 3: TALENT ablation: scaled RMSE and accuracy (%), reported as mean ± SD across datasets. Bold indicates the best mean in each setting.
TabPFN-3.5
WeightedPFN
Weights off
Weights on
Weights off
Weights on
Setting
Scaled value
Scaled value
Scaled value
Scaled value
Regression
Ordinary / IPW
1.280±2.401
1.280±2.401
1.287±2.402
1.296±2.398
Ordinary / overlap
1.280±2.401
1.278±2.401
1.287±2.402
1.298±2.403
Residualized / IPW
1.301±2.424
1.305±2.416
1.308±2.418
1.310±2.420
Table 4: Causal ablation: scaled policy value (mean ± SD across tasks). Bold indicates the highest mean in each setting.
We introduce Mitra-v2, a tabular foundation model that delivers state-of-the-art performance on real-world classification and regression problems, from credit-risk scoring and clinical prediction to equipment-failure detection and house-price estimation. Mitra-v2 is trained only on synthetic data, with a pretraining distribution that is much larger and more diverse than Mitra-v1's. Built on a small 2D Transformer backbone, Mitra-v2 supports longer contexts and larger feature spaces. Improved optimization lets it learn from this larger task distribution. We evaluate Mitra-v2 on the TabArena and TALENT benchmarks, comprising more than 300 real-world datasets under two evaluation protocols. On the full TabArena benchmark, Mitra-v2 delivers state-of-the-art performance at the level of the industry-scale TabFM and EXAONE Tabular models, while surpassing TabPFN-3 by a wide margin in both classification and regression. Mitra-v2 matches the 1.6B-parameter TabFM with only 5% of its size (77M parameters), delivering frontier performance at a fraction of the cost. On TALENT, Mitra-v2 remains among the leading models, clearly outperforming TabPFN-3 and TabICLv2. It also ranks first on classification tasks with more than ten classes, even though it was pretrained only on tasks with at most ten classes. These results make Mitra-v2 one of the strongest and most broadly applicable open tabular foundation models released to date. We release the model weights, the inference and fine-tuning code, and our evaluation results under the Apache-2.0 license.
Tabular foundation models (TFMs) have recently emerged as a promising paradigm for machine learning on tabular data, offering the ability to generalize across datasets without task-specific training. Since many machine learning datasets can be represented as tables, this raises the question: does TFM capability extend beyond tasks traditionally regarded as tabular? We address this question by using TabPFN v3 on three non-tabular classification problems: handwritten digit recognition on MNIST, language identification of French and German words, and image classification on Tiny ImageNet. In each case, the original data are represented as rows of a table and classification is formulated as prediction of a missing label. We evaluate performance as a function of the number of context samples provided to the pretrained model, with no additional training or fine-tuning. Despite having no explicit access to the spatial or sequential structure characterizing the data, TabPFN v3 in some cases achieves accuracies comparable with that of models or methods geared specifically toward the corresponding tasks.
Goran Nakerst, John Brennan, Wouter Beugeling +1
Institut für Theoretische Physik, Technische Universität Dresden, 01062 Dresden, Germany · Department of Physics, Maynooth University, Ireland · Physikalisches Institut (EP3) and Institute for Topological Insulators, Universität Würzburg, Am Hubland, 97074 Würzburg, Germany
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).
Qiong Zhang, Yan Shuo Tan, Qinglong Tian +1
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