[Paper Review] TabICL: A Tabular Foundation Model for In-Context Learning on Large Data
TabICL introduces a scalable tabular foundation model that performs in-context learning for classification on large tabular datasets (up to 500K samples, 500 features) with a two-stage embedding architecture and a final ICL transformer, achieving competitive accuracy and significantly faster inference than prior TABPFN-based methods.
The long-standing dominance of gradient-boosted decision trees on tabular data is currently challenged by tabular foundation models using In-Context Learning (ICL): setting the training data as context for the test data and predicting in a single forward pass without parameter updates. While TabPFNv2 foundation model excels on tables with up to 10K samples, its alternating column- and row-wise attentions make handling large training sets computationally prohibitive. So, can ICL be effectively scaled and deliver a benefit for larger tables? We introduce TabICL, a tabular foundation model for classification, pretrained on synthetic datasets with up to 60K samples and capable of handling 500K samples on affordable resources. This is enabled by a novel two-stage architecture: a column-then-row attention mechanism to build fixed-dimensional embeddings of rows, followed by a transformer for efficient ICL. Across 200 classification datasets from the TALENT benchmark, TabICL is on par with TabPFNv2 while being systematically faster (up to 10 times), and significantly outperforms all other approaches. On 53 datasets with over 10K samples, TabICL surpasses both TabPFNv2 and CatBoost, demonstrating the potential of ICL for large data. Pretraining code, inference code, and pre-trained models are available at https://github.com/soda-inria/tabicl.
Motivation & Objective
- Motivate scalable in-context learning (ICL) for large-tabular datasets beyond 10K samples.
- Develop a two-stage architecture to convert variable-sized tables into fixed-dimensional embeddings suitable for ICL.
- Enable end-to-end single-pass predictions without parameter updates and without heavy hyperparameter tuning.
- Improve transferability across tables through distribution-aware feature embeddings and set-based, permutation-invariant processing.
Proposed method
- Propose a column-then-row attention embedding to produce fixed-size row embeddings from arbitrary-sized tables.
- Use a shared Set Transformer for distribution-aware column-wise feature embeddings to capture column statistics.
- Apply a context-aware row-wise interaction transformer with rotary position encoding to mitigate representation collapse and encode inter-feature relations.
- Perform dataset-wise ICL with a 12-layer transformer to predict test-set labels in a single forward pass, using training labels only in the ICL stage.
- Pretrain on synthetically generated tabular data using enhanced SCMs including tree-based generation and diverse activation functions with curriculum learning.
- Employ hierarchical classification to handle problems with >10 classes and memory-efficient inference with FlashAttention and offloading.
Experimental results
Research questions
- RQ1Can ICL be effectively scaled to large tabular datasets (up to hundreds of thousands of samples) without hyperparameter tuning?
- RQ2Does a two-stage column-then-row embedding enable efficient, accurate in-context learning on large tables?
- RQ3Do distribution-aware feature embeddings and RoPE-based rowwise interactions mitigate representation collapse and improve cross-table transferability?
- RQ4How does TabICL perform relative to TabPFNv2 and CatBoost on large (>10K samples) tabular datasets?
- RQ5Can TabICL handle many-class problems via hierarchical classification and remain memory-efficient at scale?
Key findings
- TabICL matches TabPFNv2 on 200 TALENT datasets and outperforms all other approaches, with faster inference.
- On 56 datasets with over 10K samples, TabICL surpasses TabPFNv2 and CatBoost.
- TabICL is consistently faster than TabPFNv2 (up to 10x faster on large datasets, 1.5x on small datasets).
- TabICL enables ICL for large data by maintaining strong performance as dataset size grows, unlike TabPFNv2 which struggles beyond ~30K samples due to memory usage.
- Across 200 datasets, TabICL provides state-of-the-art accuracy while avoiding hyperparameter tuning and enabling single-pass predictions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.