TL;DR
While tabular foundation models like TabPFN and TabICL excel at end-to-end prediction, this paper explores extracting their internal representations to serve as general-purpose, task-agnostic row embeddings. Surprisingly, a simple statistical feature-engineering baseline (TableVectorizer) matches or beats these deep models across several downstream tasks while running up to four orders of magnitude faster.
What Problem Does This Paper Address?
In computer vision and NLP, foundation models produce versatile, task-agnostic vector embeddings that power vector search, clustering, entity resolution, and zero-shot transfer. In tabular machine learning, however, recent foundation models focus almost exclusively on direct, end-to-end prediction via in-context learning.
These models bundle representation learning and inference into a single monolithic forward pass, making their representations difficult to reuse across different downstream applications (e.g., swapping from regression to anomaly detection). The authors investigate whether modern tabular foundation models can produce useful, general-purpose row embeddings—and whether they actually provide any benefit over classical, lightweight feature encoding.
Methods
The authors compare three distinct row-embedding strategies across downstream tasks:
TableVectorizer(fromskrub): An unsupervised, statistical baseline that inspects individual columns and applies standard heuristics (e.g., one-hot encoding for low-cardinality categories, datetime decomposition, and dimensionality-reduced string hashing). It produces variable-dimension embeddings (4 to 166 dimensions in this study).- TabICL: A foundation model that encodes tabular data in two stages. First, a Set Transformer generates distribution-aware column representations; next, a transformer with rotary positional embeddings models inter-feature interactions row-by-row. Embeddings are extracted from the learned
[CLS]token output (fixed dimension: 512). - TabPFN: Pre-trained on millions of synthetic datasets. Because it is designed for direct supervised inference, the authors generate task-agnostic row embeddings via iterative feature masking: each column is treated as a target and predicted from the remaining features, after which the intermediate feature representations are component-wise averaged (fixed dimension: 192).
Once extracted, embeddings are fed into downstream evaluators without retraining the embedding backbones:
- Outlier Detection: Evaluated via Local Outlier Factor (LOF), Isolation Forest (IF), and DeepSVDD (both default and dynamically sized architectures).
- Supervised Learning: Evaluated via K-Nearest Neighbors (KNN) and Multi-Layer Perceptrons (MLP) tuned via Optuna.
Datasets
The authors evaluated all methods on two curated benchmark suites (filtered to datasets with $\le$10,000 samples and $\le$200 features):
- ADBench: 27 real-world tabular datasets used for unsupervised anomaly detection.
- TabArena Lite: Evaluated across classification and regression tasks on curated OpenML datasets (comprising 19 binary classification, 6 multiclass classification, and 7 regression datasets).
Key Insights and Ideas
- Foundation models are not automatic winners for tabular embeddings: For anomaly detection, the non-learned
TableVectorizeroutperformed both TabICL and TabPFN across every tested detector. - TabPFN's masking workaround is prohibitively expensive: Because TabPFN requires iterative masking across every column to simulate self-supervised representations, generating row embeddings took up to 294 seconds per dataset—compared to ~0.01 seconds for
TableVectorizer. - TabICL strikes the best balance among deep models: TabICL natively constructs task-agnostic representations in its first stage, making it reasonably fast (~0.06–0.11s) and the top performer on supervised classification/regression tasks.
- Dimensionality trade-off:
TableVectorizeradapts to the number of input features, yielding compact embeddings ($\le$166 dimensions). However, this dataset-dependent dimensionality prevents it from being used in joint embedding spaces (e.g., cross-table search in data lakes), where fixed-width vectors like TabICL’s (512) or TabPFN’s (192) are required.
Key Results
- Outlier Detection (AUC):
TableVectorizerled overall across algorithms. For Isolation Forest,TableVectorizerachieved 0.764 AUC vs. 0.740 for TabICL and 0.693 for TabPFN. In Local Outlier Factor (LOF),TableVectorizerachieved 0.717 vs. 0.678 (TabICL) and 0.675 (TabPFN). - Binary Classification (AUC): TabICL scored highest using an MLP classifier (0.830), closely matched by
TableVectorizer(0.827), while TabPFN trailed (0.786). - Multiclass Classification (AUC): TabICL achieved 0.927 with MLP, followed by
TableVectorizer(0.905) and TabPFN (0.889). - Regression (MAPE, lower is better): TabICL achieved the best error (0.151 with MLP), narrowly beating
TableVectorizer(0.162), whereas TabPFN lagged (0.347). - Computational Runtime:
TableVectorizerwas consistently the fastest (0.004s–0.014s per dataset), TabICL took 0.063s–0.115s, and TabPFN required 24s–294s.
Limitations and Future Work
- Variable Dimensions:
TableVectorizercannot align disparate tables into a unified representation space due to its variable output width. - Dataset Scale: The supervised benchmarks were drawn from the small TabArena Lite split (only 6 multiclass and 7 regression datasets met the size constraints).
- Lack of Semantic Awareness: None of the tested models fully exploit column names or natural language context; the authors highlight integrating text metadata (as in ConTextTab or TabSTAR) as a priority.
- In-Context Learning Nuances: For in-context foundation models, appending new rows poses unsolved questions: Does one re-embed the whole table or a representative subsample? How does distribution shift affect embedding stability?
Summary updated