Adapting Linear-Time Architectures for Tabular In-Context Learning

David Schnurr, Felix Sarnthein, Thomas Hofmann, Imanol SchlagarXiv 2026

TL;DR

Tabular foundation models like TabPFN are powerful but suffer from quadratic scaling, limiting them to small datasets. This paper demonstrates that linear-time architectures (like DeltaNet) can scale to large tables, identifies a critical "state drift" failure mode when generalizing to long sequences, and introduces a write-rate decay and final-state readout to nearly match the performance of expensive softmax attention.

What Problem Does This Paper Address?

Supervised learning on tabular data has traditionally been dominated by gradient-boosted decision trees (GBDTs). Recently, Prior-data Fitted Networks (PFNs) have emerged as a strong alternative, treating supervised learning as an "in-context learning" (ICL) problem where a model predicts labels for new data by looking at a labeled context set.

However, most PFNs rely on softmax self-attention, which has a quadratic computational cost ($O(n^2)$) relative to the number of rows. This makes them prohibitively slow and memory-intensive for large datasets. While linear-time alternatives (like Mamba or Linear Attention) exist, they are typically causal (designed for sequences where order matters) and their ability to handle exchangeable tabular data (where row order is irrelevant) was poorly understood. Furthermore, these models often fail catastrophically when asked to process sequences much longer than those seen during training—a problem known as length generalization failure.

Methods

The authors conducted a controlled study to adapt recurrent sequence mixers to tabular ICL. Their approach involved three main pillars:

  1. Disentangling Training Strategies: They evaluated four ways to structure the input:
  2. Label Embedding: Combined (features and labels in one token) vs. Interleaved (separate tokens).
  3. Target Formulation: Single-target (independent queries) vs. Multi-target (sequential causal visibility).
  4. Recurrence Comparison: They benchmarked several modern linear-time mixers, including Gated Linear Attention (GLA), DeltaNet, and Mamba-2, all matched to a 12.5M parameter scale.
  5. Stabilizing Length Generalization: To fix the failure of models on long sequences, they introduced two key interventions:
  6. Write-Rate Decay: They found that DeltaNet overfits its "write rate" ($\beta_t$) to the short sequences seen during training. They introduced a time-dependent decay schedule to stabilize the recurrent state over long horizons.
  7. Final-State Readout (Delta-FS): Instead of causal prefix access, they allowed every query to read from the final, aggregated state of the entire context set, re-introducing non-causality in a computationally cheap way.
Figure 1: Training strategies given by label embedding and target formulation. Combined-label variants represent features and labels in one token; interleaved variants represent them separately. Single-target variants predict each query independently from the context; multi-target variants process target positions sequentially. Combined-label single-target is the standard (Tab)PFN setup.

Datasets

  • Synthetic Prior: Models were pretrained on synthetic datasets sampled from the TabPFN v1 prior, containing up to 1,000 rows and 20 features.
  • OpenML-CC18*: A curated subset of 30 real-world classification datasets, subsampled to match the pretraining regime.
  • TabArena*: A modern benchmark of 38 classification datasets used to measure real-world performance and length generalization on much larger datasets (up to 150k rows).

Key Insights and Ideas

  • Causal can be better than Non-Causal: Surprisingly, the causal DeltaNet outperformed non-causal linear attention at moderate sequence lengths. The "delta-rule" update (which treats state updates like online optimization) is particularly well-suited for aggregating tabular information.
  • The "Teacher-Forcing" Effect: For causal models, the Interleaved Multi-Target setup is the strongest. It mimics next-token prediction, allowing the model to learn from feature-target pairs of previous queries to improve later predictions.
  • State Drift, Not Capacity: By using a "hidden-state oracle" (optimizing the state directly via gradient descent), the authors proved that the fixed-size hidden state has the capacity to represent large datasets. The failure isn't that the "bucket" is full; it's that the model's update rule causes the state to directionally drift away from a stable configuration in deeper layers as the sequence grows.
  • Efficiency Gains: The memory savings are massive. At a sequence length of 128k, a softmax-transformer KV cache requires 2.34 GB, while the DeltaNet recurrent state requires only 1.17 MB.

Key Results

  • DeltaNet emerged as the superior linear sequence mixer for tabular data, significantly outperforming Mamba-2 and vanilla linear attention.
  • The proposed Delta-FS + Decay model achieved the best results among linear-time variants. On the TabArena benchmark, it substantially closed the gap to the non-causal softmax attention baseline, which remains the "gold standard" but is far slower.
  • On OpenML-CC18*, the best linear models (ROC-AUC ~0.888) were highly competitive with the softmax baseline (0.890) and even outperformed some full-scale baselines like CatBoost (0.883) in this controlled setting.

Limitations and Future Work

  • Performance Gap: While the gap is closing, non-causal softmax attention still holds a slight edge in absolute accuracy and ROC-AUC.
  • Two-Axis Processing: This study focused on row-wise processing. Modern models like TabPFN v2 also attend across features (two-axis attention). Extending these linear-time insights to two-axis models is a logical next step.
  • Oracle Construction: The authors used a hidden-state oracle for diagnosis; a promising future direction is developing architectures that can natively construct this "optimal" state without needing test-time optimization.

Summary updated

BibTeX
@misc{schnurr2026adapting,
  author = {David Schnurr and Felix Sarnthein and Thomas Hofmann and Imanol Schlag},
  title = {{Adapting Linear-Time Architectures for Tabular In-Context Learning}},
  year = {2026},
  eprint = {2609.36337},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.36337},
}
Figure