TabMF: Learning Dataset Representations with Tabular Foundation Models
Organizations: University of Technology Nuremberg (UTN) · Neuralk
Abstract
Representations of supervised datasets support higher-level machine-learning tasks such as dataset retrieval and distribution-shift monitoring. However, existing approaches typically rely either on hand-crafted meta-features or on dataset encoders trained specifically for representation learning. We introduce TabMF, a framework that repurposes pretrained tabular foundation models (TFMs) as encoders of supervised datasets. TabMF equips a predictive TFM with an architecture-aware dataset-level readout and adapts the model end-to-end using contrastive post-training on stochastic views of synthetic supervised datasets. We instantiate TabMF on TabICLv2 and TabPFN-2.5 and evaluate the resulting representations across six tasks on unseen real datasets. Simple frozen TFM readouts yield competitive representations, indicating that predictive pretraining already induces substantial dataset-level structure. The two TabMF encoders obtain the strongest aggregate performance among the evaluated learned and classical dataset representations, with particularly strong results in dataset retrieval, compact benchmark construction, and distribution-shift severity assessment.
Figures & tables
| TabBench | TabRepo | TableShift | |||||
|---|---|---|---|---|---|---|---|
| Encoder | Views | Domain | Epiplexity | Recall@5 | Selection | Severity | Rank |
| TabMF -PFN | 0.9985 | 0.683 | 0.597 | 0.965 | 0.929 | 0.917 | 1.5 |
| TabMF -ICL | 0.9981 | 0.702 | 0.639 | 0.938 | 0.854 | 0.933 | 2.0 |
| TabICL ICL-mean | 0.9775 | 0.670 | 0.742 | 0.889 | 0.575 | 0.850 | 3.5 |
| PyMFE | 0.9812 | 0.661 | 0.106 | 0.931 | 0.709 | 0.733 | 4.0 |
| TabPFN mean-pooling | 0.9414 | 0.650 | 0.741 | 0.821 | 0.850 | 0.583 | 5.0 |
| Backbone | Readout | Initialization | Objective | Recall@5 |
| TabICL | Summary-token | Pretrained | NT-Xent | 0.938 |
| TabICL | Summary-token | Scratch | NT-Xent | 0.797 |
| TabICL | Summary-token | Pretrained | Triplet | 0.924 |
| TabICL | Summary-token | Pretrained | Exp. distance | 0.883 |
| TabPFN | Column-attention | Pretrained | NT-Xent | 0.965 |
| TabPFN | Column-attention | Scratch | NT-Xent | 0.587 |
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
| Backbone | Readout | Loss | Initialization | AUC |
|---|---|---|---|---|
| TabICL | Summary-token | NT-Xent | Pretrained | 0.9999 |
| TabPFN | Column-aware | NT-Xent | Pretrained | 0.9996 |
| TabICL | Row-mean | NT-Xent | Pretrained | 0.9996 |
| TabPFN | Pseudo-test | NT-Xent | Pretrained | 0.9995 |
| TabICL | Row-mean | Triplet | Pretrained | 0.9994 |
| TabPFN | Pseudo-test | Triplet | Pretrained | 0.9994 |
| Population | Datasets | Significant improvements | Largest Holm |
|---|---|---|---|
| TabBench | 191 | 18/18 | |
| Synthetic | 50 | 18/18 |
| Transformation | Definition |
|---|---|
| Keep 20% / 50% of rows | Sample observations without replacement, . Skip when . |
| Bootstrap rows | Sample observations with replacement. |
| Duplicate rows | Retain all observations and append observations sampled with replacement. |
| Keep 25% / 50% / 75% of features | Sample features without replacement, . Skip when . |
| Duplicate features | Append copies of features selected without replacement. |
| Add noisy features | Append numerical features with independent entries. |
| Baseline | TabMF -ICL | TabMF -PFN |
|---|---|---|
| TabICL ICL-mean | ||
| PyMFE |
| Encoder | K-means | Farthest-first |
|---|---|---|
| TabMF -PFN | 0.9292 | 0.8229 |
| TabMF -ICL | 0.8542 | 0.8146 |
| TabPFN mean-pooling | 0.8500 | 0.6730 |
| Random | 0.7766 | 0.7766 |
| Neural Statistician | 0.738 | 0.782 |
| PyMFE | 0.7093 | 0.7812 |
| Variant | Baseline | Holm | |
|---|---|---|---|
| TabMF -ICL | Random | ||
| TabMF -ICL | ICL-mean | ||
| TabMF -ICL | PyMFE | ||
| TabMF -ICL | Dataset2Vec | ||
| TabMF -ICL | Neural Statistician | ||
| TabMF -ICL | Frozen TabPFN |
| Variant | Baseline | Original | Alternative |
|---|---|---|---|
| TabMF -ICL | ICL-mean | ||
| TabMF -ICL | PyMFE | ||
| TabMF -ICL | Dataset2Vec | ||
| TabMF -PFN | ICL-mean | ||
| TabMF -PFN | PyMFE | ||
| TabMF -PFN | Dataset2Vec |
| Selector | TabMF -ICL | TabMF -PFN | ICL-mean | PyMFE | Random | D2V | Frozen PFN | Neural Stat. | |
|---|---|---|---|---|---|---|---|---|---|
| 2 | K-means | 0.8568 | 0.6728 | 0.3507 | 0.6778 | 0.7209 | 0.6947 | 0.8214 | 0.7828 |
| 2 | Farthest-first | 0.7003 | 0.8752 | 0.5941 | 0.6979 | 0.7209 | 0.7100 | 0.6439 | 0.6418 |
| 3 | K-means | 0.8542 | 0.9292 | 0.5750 | 0.7093 | 0.7766 | 0.6515 | 0.8497 | 0.7380 |
| 3 | Farthest-first | 0.8146 | 0.8229 | 0.7108 | 0.7812 | 0.7766 | 0.7261 | 0.6728 | 0.7819 |
| 4 | K-means | 0.8504 | 0.9393 | 0.6743 | 0.8894 | 0.8171 | 0.7282 | 0.8536 | 0.7260 |
| 4 | Farthest-first | 0.8127 | 0.8697 | 0.8148 | 0.8338 | 0.8171 | 0.7805 | 0.7447 | 0.8560 |
| Encoder | AUC | Log-loss | |
|---|---|---|---|
| TabMF -ICL | 0.6997 | 1.7860 | 190 |
| TabMF -PFN | 0.6808 | 1.8100 | 191 |
| PyMFE | 0.6662 | 1.8871 | 191 |
| TabICL row-mean | 0.6637 | 1.8850 | 190 |
| TabPFN mean-pooling | 0.6620 | 1.8535 | 191 |
| TabICL ICL-mean | 0.6441 | 1.8585 | 190 |
| Encoder | Spearman |
|---|---|
| TabICL ICL-mean | 0.764 |
| TabPFN mean-pooling | 0.760 |
| TabMF -ICL | 0.639 |
| TabMF -PFN | 0.621 |
| Dataset2Vec | 0.529 |
| Encoder | Mean | Spearman | |
|---|---|---|---|
| TabPFN mean-pooling | 0.1770 | 0.8292 0.026 | 191 |
| TabMF -PFN | 0.1794 | 0.7633 0.019 | 191 |
| TabICL ICL-mean | 0.2032 | 0.7991 0.021 | 190 |
| TabMF -ICL | 0.2224 | 0.6953 0.012 | 190 |
| Dataset2Vec | 0.2265 | 0.6182 0.026 | 191 |
| Neural Statistician | 0.3297 | 0.2658 0.027 | 191 |
| Excluded base-feature identifiers | ||
|---|---|---|
| nr_class | freq_class | class_ent |
| class_conc | mut_inf | joint_ent |
| eq_num_attr | ns_ratio | can_cor |
| gravity | lh_trace | p_trace |
| roy_root | w_lambda | sd_ratio |
| Encoder | TR | TR | TR | Agg. | Agg. | Agg. |
|---|---|---|---|---|---|---|
| TabMF -PFN | 6 | 1 | 1 | 2.0 | 1.5 | 1.5 |
| TabMF -ICL | 1 | 2 | 4 | 1.5 | 2.0 | 2.0 |
| TabICL ICL-mean | 7 | 7 | 7 | 3.5 | 3.5 | 3.5 |
| PyMFE | 5 | 5 | 2 | 4.0 | 4.0 | 3.5 |
| Frozen TabPFN | 2 | 3 | 3 | 5.0 | 5.0 | 5.0 |
| Dataset2Vec | 4 | 6 | 5 | 5.0 | 5.5 | 5.0 |
| Task | Dataset ID | Gap | ID rows | OOD rows |
|---|---|---|---|---|
| ASSISTments | assistments | 0.3519 | 8192 | 1906 |
| FICO HELOC | heloc | 0.2826 | 278 | 6914 |
| College Scorecard | college_scorecard | 0.1132 | 8192 | 1352 |
| Hypertension | brfss_blood_pressure | 0.0816 | 8192 | 8192 |
| Hospital Readmission | diabetes_readmission | 0.0489 | 4287 | 8192 |
| Diabetes | brfss_diabetes | 0.0450 | 8192 | 8192 |
| Encoder | MAP | Shuffling | Type F1 |
| TabMF -ICL | 0.363 | ||
| TabMF -PFN | 0.289 | ||
| TabICL ICL-mean | — | ||
| HyTrel | 0.681 | ||
| PyMFE | 0.372 | ||
| Encoder | HPO quality | HPO regret@5 | Targets |