Chunked TabPFN: Exact Training-Free In-Context Learning for Long-Context Tabular Data

Renat Sergazinov, Shao-An Yin
8/30/2025
cs.LG

Official code: mrsergazinov/chunk_tabpfn (6 stars, Apache-2.0, last commit 2025-09-28).

Abstract

TabPFN v2 achieves better results than tree-based models on several tabular benchmarks, which is notable since tree-based models are usually the strongest choice for tabular data. However, it cannot handle more than 10K context tokens because transformers have quadratic computation and memory costs. Unlike existing approaches that rely on context compression, such as selecting representative samples via K-nearest neighbors (KNN), we introduce a tiled-block strategy to compute attention within the TabPFN framework. This design is compatible with standard GPU setups and, to the best of our knowledge, is the first to enable TabPFN to process long contexts without any pre-processing. We demonstrate the effectiveness of our approach on the standard TabArena benchmark, with code available at https://github.com/mrsergazinov/chunk_tabpfn.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
61C++, TeXSep 16, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{sergazinov2025chunked,
  title  = {Chunked TabPFN: Exact Training-Free In-Context Learning for Long-Context Tabular Data},
  author = {Renat Sergazinov and Shao-An Yin},
  year   = {2025},
  eprint = {2509.00326},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.00326v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.00326.svg)](https://codeofpaper.com/paper/2509.00326)

Discussion