Benchmarking Attention for Tabular Foundation Models

Maximilian Schambach, Clemens Biehl, Sam Thelin
9/25/2026
cs.LG
benchmark-datasettransformer-attention

Official code: SAP-samples/tabular-attention-benchmark (5 stars, Python, Apache-2.0, last commit 2026-10-09).

Abstract

Tabular in-context learners such as TabPFN, Mitra, or ConTextTab rely on alternating row and column attention over 2D sequences of latent embeddings. These attention patterns differ markedly from the one-dimensional case in language models: row attention involves longer sequences while column attention operates on much shorter ones, and the strided memory layout of tabular data makes producing contiguous tensors costly.

Show full abstract

Moreover, the hidden dimensions used in current models are small compared to recent language models. Yet efficient attention has been studied mostly for one-dimensional sequences, leaving the two-dimensional tabular setting unexplored. To this end, we create a reproducible benchmarking setup and study the unique characteristics of tabular attention across several backends -- Torch SDPA (efficient and cuDNN), FlashAttention-2/3/4, and the inference-only backends vLLM and SageAttention -- measuring forward and backward throughput across realistic tabular shapes on three GPU generations (A100, H100, B200). We find that the optimal backend choice differs between column and row attention and varies across hardware as well as model specifics: While the FlashAttention implementations tailored for each GPU generation perform overall best, they are at times outperformed by CuDNN in the case of column attention at longer sequences with cross-over points depending on the head dimension. Among inference-only backends, SageAttention performs well for row attention and large sequences beyond 16\,k rows. Our reproducible benchmark lays the foundation for future improvements to table-native attention. The self-contained benchmarking and evaluation code is openly available at: https://github.com/SAP-samples/tabular-attention-benchmark

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Benchmarking attention for tabular data.

50Python, MakefileJun 17, 20261 months agoApache-2.0

Similar Papers

Cite this paper

@article{schambach2026benchmarking,
  title  = {Benchmarking Attention for Tabular Foundation Models},
  author = {Maximilian Schambach and Clemens Biehl and Sam Thelin},
  year   = {2026},
  eprint = {2609.31306},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.31306v3}
}

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/2609.31306.svg)](https://codeofpaper.com/paper/2609.31306)

Discussion