Tabular Foundation Models for Weighted Regression and Classification
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
Abstract
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
| TALENT regression | ||||
|---|---|---|---|---|
| Scaled RMSE (mean SD) | ||||
| Method | X+Y | Y-only | X-only | MCAR |
| WeightedPFN | ||||
| TabPFN-3.5 | ||||
| Ridge | ||||
| SVR | ||||
| Causal regression | ||||
|---|---|---|---|---|
| Scaled policy value (mean SD) | ||||
| Method | Ordinary IPW | Ordinary overlap | Residualized IPW | Residualized overlap |
| WeightedPFN | ||||
| TabPFN-3.5 | ||||
| Ridge | ||||
| SVR | ||||
| TabPFN-3.5 | WeightedPFN | |||
| Weights off | Weights on | Weights off | Weights on | |
| Regression | ||||
| Setting | Scaled RMSE | Scaled RMSE | Scaled RMSE | Scaled RMSE |
| X+Y | ||||
| Y-only | ||||
| X-only | ||||
| TabPFN-3.5 | WeightedPFN | |||
| Weights off | Weights on | Weights off | Weights on | |
| Setting | Scaled value | Scaled value | Scaled value | Scaled value |
| Regression | ||||
| Ordinary / IPW | ||||
| Ordinary / overlap | ||||
| Residualized / IPW | ||||
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