FirePFN: Fast In-Context Representation Encoding For Scaling Tabular PFNs

Felix Koch, Sasa Mladenovic, Marius Lindauer, Benjamin Tischler, Marcel WeverarXiv 2026

TL;DR

Tabular foundation models (TFMs) have dethroned boosted trees like XGBoost on tabular data, but they hit a wall on large datasets because their transformer attention scales quadratically with the number of rows. FIREPFN breaks this bottleneck: it is the first open-source TFM that scales linearly with training data size while remaining competitive with top attention-based models. It lands on the speed-to-performance Pareto front across four major benchmarks and can process over 10 million training rows in under a minute.

What Problem Does This Paper Address?

For years, gradient-boosted decision trees were the undisputed kings of tabular data. Recently, tabular foundation models—pretrained on massive amounts of synthetic tables to make predictions in a single forward pass without task-specific training—have taken the lead in predictive accuracy.

However, that accuracy comes with a steep computational price. State-of-the-art TFMs use transformer self-attention across table rows, which incurs $O(c^2)$ complexity in the number of training (context) rows $c$. As tables grow to hundreds of thousands or millions of rows, inference slows to a crawl or runs out of memory. Previous attempts to swap out quadratic attention for linear-attention or recurrent state-space models (like Mamba) fixed the speed problem, but suffered a major drop in predictive accuracy. FIREPFN asks: can we get linear-time scaling without sacrificing the predictive power of attention-based TFMs?

Methods

FIREPFN’s core trick is decoupling context processing from query prediction. Instead of running quadratic self-attention over all rows—or running a linear backbone over both training and test rows, which the authors found hurts accuracy—FIREPFN processes the table in three stages:

Architectural overview of FIREPFN
  1. Table Embedding: A frozen, pretrained encoder (adopted from Kumo-Tabular) maps every row, regardless of how many features it has, into a 1024-dimensional vector in linear time. Label embeddings are added only to the context (training) rows.
  2. Context Representation Encoding: A 6-block hybrid backbone processes only the labeled context rows. Rather than relying on a single type of linear mixer, it interleaves three complementary linear-complexity blocks in the order [S, S, L, S, G, L]:
  3. S (Bi-Mamba 3): Bidirectional state-space scans to capture long-range sequence dependencies.
  4. L (Linear Attention): Non-causal linear attention to model direct pairwise interactions between rows.
  5. G (DeltaNet): Bidirectional Gated DeltaNet to selectively overwrite stored associations.
  6. Cross-Attention ICL: Each query (test) row reads from the summarized context representation through a single, lightweight cross-attention layer, followed by an MLP decoder that outputs class probabilities. Because queries only attend to the context and never to each other, every query's prediction is strictly independent of the rest of the test set.

Pretraining: FIREPFN is trained exclusively on ~53.1M synthetic tables using a "context-size bucket" schedule. Every optimizer step mixes 8 buckets of tables with geometrically decreasing context sizes (from 32,768 down to 256 rows) and geometrically increasing counts, ensuring the model learns to handle large contexts without forgetting how to perform on small ones.

Datasets

  • Training: Exclusively synthetic tables generated from TabICLv2's graph-based structural causal model (SCM) prior.
  • Evaluation: Four established real-world and domain-specific tabular benchmarks—TabArena, TALENT, BeyondArena, and RamanBench—alongside synthetic binary classification tables (20 features, 1,000 test rows) used to stress-test scaling up to hundreds of millions of rows. No new benchmarks are introduced.

Key Insights and Ideas

  • Context-only linear encoding matters: Earlier linear-scaling TFMs fed both training and test rows through their recurrent/linear backbones, which degraded accuracy. Isolating the linear backbone to only the context rows and using a single cross-attention layer for queries bridges the accuracy gap.
  • Hybrid mixers beat pure architectures: Neither pure recurrent state-space blocks nor pure linear-attention blocks were expressive enough on their own. Interleaving Mamba-3, linear attention, and DeltaNet gives the model both memory and direct pairwise comparison.
  • Approximate vs. strict structural properties: Because recurrent scans (Mamba-3 and DeltaNet) process rows in an order, FIREPFN is only approximately invariant to shuffling training rows (which can be mitigated by ensembling shifted row orders), while query independence holds strictly.

Key Results

  • Pareto-Optimal Speed and Accuracy: Across TabArena, TALENT, BeyondArena, and RamanBench, FIREPFN sits on the Pareto-optimality front, achieving the lowest median end-to-end runtime per 1K training rows while remaining competitive with transformer-based TFMs like TabICLv2.
Figure 3. Pareto front for the end-to-end time (log-scaled) and improvability of tree-based models and fast foundation models on the TabArena (Erickson et al., 2025) benchmark. The end-to-end time denotes the fitting and inference time of the models. The improvability is defined by avg( err−best
  • Massive Speedups at Scale: On synthetic tables with 2M context rows, FIREPFN is up to 180× faster than competing TFMs. On BeyondArena's largest tables, it is 16.8× faster than TabICLv2.
  • Scaling to Hundreds of Millions of Rows: While competing TFMs hit timeouts or out-of-memory errors between 1M and 10M rows, FIREPFN processes over 10M training rows in under a minute and scales up to 450M context rows on a single GPU within a 2-hour timeout (using streaming, encoder recomputation, and host offloading at extreme scales).
Figure 1. Speedup of FIREPFN over other TFMs on synthetic binary classification tables with 20 features and 1,000 test rows with a 2h timeout for a single forward pass. Markers at the end of a line denote the manner in which a baseline fails.

Limitations and Future Work

  • Accuracy Gap: While competitive, FIREPFN does not yet match the peak predictive accuracy of the strongest (and slower) models like Kumo-Tabular and TabPFN-3.5.
  • Classification Only: The model currently only supports classification (using hierarchical class-tree decomposition when there are more than 10 classes); extending it to regression is left for future work.
  • Memory & Encoder Bottlenecks: Beyond 10M rows, memory requirements become steep—especially with high feature counts—and the frozen table encoder becomes the main runtime bottleneck. Designing lighter row and column embeddings is a key next step.

Summary updated

BibTeX
@misc{koch2026firepfn,
  author = {Felix Koch and Sasa Mladenovic and Marius Lindauer and Benjamin Tischler and Marcel Wever},
  title = {{FirePFN: Fast In-Context Representation Encoding For Scaling Tabular PFNs}},
  year = {2026},
  eprint = {2612.05628},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.05628},
}
Figure