Abstract: The long-standing dominance of gradient-boosted decision trees for tabular data has recently been challenged by in-context learning tabular foundation models (TFMs). In-context learning methods fit and predict in one forward pass without parameter updates by leveraging the training data as context for predicting on query test points. While recent tabular foundation models achieve state-of-the-art performance, their transformer architecture based on the attention mechanism has quadratic complexity regarding dataset size, which in turn increases the overhead on training and inference time, and limits the capacity of the models to handle large-scale datasets. In this work, we propose TACO, an end-to-end tabular compression model that compresses the training dataset in a latent space. We test our method on the TabArena benchmark, where our proposed method is up to 94x faster in inference time, while consuming up to 97% less memory compared to the state-of-the-art tabular transformer architecture, all while retaining performance without significant degradation. Lastly, our method not only scales better with increased dataset sizes, but it also achieves better performance compared to other baselines.
Introduction
In the domain of tabular data—the backbone of most commercial and scientific databases—Gradient-Boosted Decision Trees (GBDTs) like XGBoost have traditionally been the gold standard. However, the emergence of Tabular Foundation Models (TFMs) has introduced a powerful alternative. These models, such as TabPFN, utilize Transformer architectures to perform "in-context learning," where the model treats the training dataset as a context window to predict labels for new test points in a single forward pass.
Despite their success, TFMs face a critical scaling bottleneck. The self-attention mechanism at the heart of Transformers has a quadratic complexity $O(N^2)$ relative to the number of training instances ($N$). As datasets grow to tens or hundreds of thousands of rows, the memory and computational requirements become prohibitive. Common mitigation strategies, such as random subsampling, often result in a substantial loss of predictive accuracy. This paper introduces TACO (Tabular Compression), an end-to-end framework designed to overcome these limitations by learning to compress massive datasets into a compact set of latent embeddings.
Methods
TACO employs a modular architecture consisting of two jointly trained components: a Compressor and a Predictor.
The Compressor ($g$)
This module ingests the original training set $D^{train}$ and distills it into a much smaller set of $K$ latent rows, where $K$ is significantly smaller than the original number of instances $N$. By using bi-directional transformer blocks, the compressor attends to the entire dataset to produce a high-fidelity, lower-rank representation.
The Predictor ($f$)
The predictor is a standard tabular transformer that operates exclusively on the compressed latent rows provided by the compressor. Because the input sequence length is drastically reduced, the predictor can perform inference at a fraction of the original cost.
Joint Meta-Learning and Scaling
A key innovation of TACO is that the compressor and predictor are trained end-to-end using a "synthetic prior." By training on millions of automatically generated datasets via Structural Causal Models (SCMs), the system learns generalizable patterns of data compression. Furthermore, to handle datasets with millions of rows, the authors implemented a "chunking-and-stitching" strategy, allowing the model to process data in manageable partitions before aggregating them for final prediction.
Key Results
TACO demonstrates that learned latent representations are significantly more informative than raw data samples. Even at extreme compression rates (e.g., 1%), TACO's synthetic summaries allow the predictor to outperform traditional baselines like kNN-sampling.
Efficiency and Scaling
Compared to state-of-the-art architectures like TabPFN v2, TACO achieves up to a 94x speedup in inference time and a 97% reduction in memory usage at a 4% compression rate. As shown in the scaling analysis, TACO maintains efficient "Fit + Predict" times even as the number of features ($M$) and training instances ($N_{train}$) increase, whereas baseline methods like POT quickly become computationally infeasible.
Performance Retention
Evaluation on the TabArena benchmark (36 real-world classification datasets) confirmed that TACO with 4% compression suffers no statistically significant degradation in ROC-AUC compared to uncompressed baselines. The model's flexibility also allows a single trained instance to handle multiple compression rates (1% to 16%) dynamically, enabling users to balance speed and accuracy based on deployment needs.
Conclusion
TACO effectively bridges the gap between the high performance of Tabular Foundation Models and the practical requirements of large-scale data processing. By replacing raw data with learned latent summaries, it removes the quadratic scaling barrier of the attention mechanism. Future work will look to extend this end-to-end compression framework to regression and multi-label tasks, further broadening the applicability of TFMs in real-world environments.
Summary updated