🤖 AI Summary
To address the insufficient classification robustness of tabular data under out-of-distribution (OOD) and few-shot settings, this paper proposes TabForest and TabForestPFN. First, we design TabForest—a synthetic forest data generator explicitly targeting decision boundary complexity—to pretrain in-context learning (ICL) transformers. Building upon this, we introduce TabForestPFN, which synergistically integrates zero-shot generalization with supervised fine-tuning. Crucially, this work is the first to demonstrate that ICL-transformers, when fine-tuned, can effectively model complex nonlinear decision boundaries—previously thought infeasible for such architectures. Experiments across multiple real-world tabular benchmarks show that TabForestPFN achieves significantly superior fine-tuned performance over TabPFN while preserving strong zero-shot capabilities. Moreover, it substantially improves classification robustness under both OOD and few-shot conditions.
📝 Abstract
The recently introduced TabPFN pretrains an In-Context Learning (ICL) transformer on synthetic data to perform tabular data classification. In this work, we extend TabPFN to the fine-tuning setting, resulting in a significant performance boost. We also discover that fine-tuning enables ICL-transformers to create complex decision boundaries, a property regular neural networks do not have. Based on this observation, we propose to pretrain ICL-transformers on a new forest dataset generator which creates datasets that are unrealistic, but have complex decision boundaries. TabForest, the ICL-transformer pretrained on this dataset generator, shows better fine-tuning performance when pretrained on more complex datasets. Additionally, TabForest outperforms TabPFN on some real-world datasets when fine-tuning, despite having lower zero-shot performance due to the unrealistic nature of the pretraining datasets. By combining both dataset generators, we create TabForestPFN, an ICL-transformer that achieves excellent fine-tuning performance and good zero-shot performance.