Why In-Context Learning Transformers are Tabular Data Classifiers

Felix den Breejen,Sangmin Bae,Stephen Cha,Se-Young Yun
2024-05-22
Abstract:The recently introduced TabPFN pretrains an In-Context Learning (ICL) transformer on synthetic data to perform tabular data classification. As synthetic data does not share features or labels with real-world data, the underlying mechanism that contributes to the success of this method remains unclear. This study provides an explanation by demonstrating that ICL-transformers acquire the ability to create complex decision boundaries during pretraining. To validate our claim, we develop a novel forest dataset generator which creates datasets that are unrealistic, but have complex decision boundaries. Our experiments confirm the effectiveness of ICL-transformers pretrained on this data. Furthermore, we create TabForestPFN, the ICL-transformer pretrained on both the original TabPFN synthetic dataset generator and our forest dataset generator. By fine-tuning this model, we reach the current state-of-the-art on tabular data classification. Code is available at
Machine Learning
What problem does this paper attempt to address?
This paper discusses why the Transformer based on In-Context Learning (ICL) performs well in tabular data classification tasks. Although TabPFN (a pre-training method) is pre-trained on synthetic data to handle tabular data, the reasons for its success are still unclear. The study found that the ICL-Transformer is able to create complex decision boundaries during pre-training, which is key to its effectiveness. To demonstrate this, the paper proposes a new forest data generator that produces unrealistic datasets with complex decision boundaries and shows the effectiveness of pre-trained ICL-Transformer on this type of data. Through experiments, the researchers found a strong correlation between the complexity of pre-training data and performance, and the larger the model size, the more complex decision boundaries it can create. They also created a model called TabForestPFN, which is pre-trained on the original TabPFN and the forest dataset, and achieved state-of-the-art performance on two benchmark tests. In addition, the transition from zero-shot learning to fine-tuning greatly improved performance, especially when the context size increased. The paper also points out that the advantage of ICL-Transformer in tabular data classification lies in its ability to form complex decision boundaries, which is different from tree-based methods that are not influenced by simplicity bias. The researchers believe that this provides new insights for understanding and improving the performance of ICL-Transformer, and may drive progress in the field of tabular data towards ICL-Transformer from tree-based methods.