Recurrent In-Context Learning for Tabular Foundation Models

Tejas Vaidhya, Gaurav Sahu, Irina RisharXiv 2026

TL;DR

Tab-Loop proves that tabular foundation models don't need a unique set of parameters for every layer—they just need depth. By "looping" a small set of shared transformer blocks, the researchers achieved state-of-the-art performance with 62% fewer parameters, while enabling a "depth dial" that can be tuned at inference time for better accuracy.

What Problem Does This Paper Address?

Foundation models for tabular data (like TabPFN and TabICL) are gaining traction because they can predict labels for new datasets in a single forward pass without any fine-tuning. However, these models typically follow the standard Transformer design: to get more "depth" (computational steps), you must add more layers, each with its own unique parameters.

This creates two problems:

  1. Memory Bloat: As models get deeper to handle complex data, their parameter count—and thus their memory footprint—skyrockets.
  2. Fixed Compute: Once a model is trained with $N$ layers, you are stuck using exactly $N$ layers for every prediction, regardless of whether the table is simple or complex.

The authors ask a fundamental question: Does the in-context learning (ICL) stage of these models actually need distinct parameters for every step, or does it just need more iterations of the same refinement process?

Methods

The authors introduce Tab-Loop, a recurrent version of the TabICLv2 architecture.

Instead of using 12 unique, "untied" transformer blocks, Tab-Loop uses only 4 tied blocks that are applied $k$ times in a loop. To make this work, they employ two clever tricks:

  • Input Re-injection: They re-add the original encoded features ($X_0$) before every block application. This prevents the original data signal from "washing out" as it passes through many iterations.
  • Stochastic Depth Training: During training, they randomly sample the number of loops ($k$). In Stage 1, they sample $k \in \{2, 3, 4\}$. In Stage 2, they use a Poisson distribution to train on much deeper loops (up to 32), using a "latent-consistency" loss to keep the hidden states stable.
The Tab-Loop architecture (center) compared to a standard untied baseline (top) and a parameter-matched control (bottom).

Datasets

The models were pretrained entirely on synthetic tables generated by the TabICLv2 prior, which simulates various data structures like causal models and trees.

For evaluation, they used three major benchmarks:

  1. Held-out Prior: 1,024 synthetic tables not seen during training.
  2. TabArena: A suite of 38 real-world classification datasets.
  3. TALENT: A massive benchmark consisting of 200 classification datasets.

Key Insights and Ideas

  • Depth > Parameter Diversity: The most striking finding is that depth is a more valuable resource than parameter count for tabular data. Re-applying the same weights multiple times is just as effective as having unique weights for every layer.
  • Tabular ICL is Iterative: Much like Gradient Boosted Decision Trees (GBDTs) refine predictions step-by-step, tabular transformers seem to perform an iterative refinement of representations. Recurrence is a natural architectural fit for this behavior.
  • The "Inference Dial": Because the weights are shared, the number of loops ($k$) becomes a choice you make at inference time. You can run more loops for a "hard" table to squeeze out extra accuracy without ever retraining the model.
  • Input Injection is Non-Negotiable: Without re-adding the initial features ($X_0$) at each step, the model's performance degrades significantly as depth increases.
Comparison of input injection strategies showing that additive injection is vital for stability in deep loops.

Key Results

At matched training and inference compute (12 total block applications), Tab-Loop matches or slightly exceeds the performance of the much larger baseline:

  • Parameter Efficiency: Tab-Loop uses 10.4M parameters vs. the baseline's 27.6M (a 62% reduction).
  • Accuracy: On the 200 TALENT datasets, Tab-Loop achieved 84.10% mean accuracy vs. 83.92% for the baseline.
  • Elo Score: On TabArena, Tab-Loop reached an Elo of 1409 vs. 1396 for the baseline.
  • The "Control" Failed: A 4-block model that was not looped (same parameters as Tab-Loop but 1/3 the depth) performed significantly worse (83.46% accuracy, 1343 Elo), even when given 32% more training data to compensate.
Figure 1: Depth without parameters. End-of-training results for three models trained with the same recipe for the same compute (18.2 EFLOP): the untied 12-block baseline (27.6M parameters), a 4-block untied control (10.4M), and Tab-Loop (4 tied blocks, 10.4M) read at k loops, i.e. 4k block applications. Left: Elo on full TabArena (38 classification datasets, 594 splits) with 95% bootstrap intervals. Right: mean test accuracy on TALENT (200 classification datasets). At k = 3, which matches the baseline’s 12 block applications, Tab-Loop matches the baseline with 62% fewer parameters. The control, with the same parameters but one third of the depth, trails both.

Furthermore, the authors showed that increasing the number of loops at inference time (e.g., from $k=3$ to $k=4$) consistently improves results within the range the model was trained for.

Performance rises as the number of loops increases at inference time.

Limitations and Future Work

  • Adaptive Depth: Currently, the number of loops is set globally for all tables. A more efficient approach would be "adaptive computation," where the model decides to stop looping once it reaches a confident prediction for a specific table.
  • Scaling Limits: While performance holds up slightly beyond the trained range, it eventually plateaus. Training on even deeper loops is computationally expensive.
  • Stage 3 Training: The authors did not complete "Stage 3" training (very large tables) for Tab-Loop due to compute constraints, leaving a comparison at the absolute limit of current tabular models for future study.

Summary updated

BibTeX
@misc{vaidhya2026recurrent,
  author = {Tejas Vaidhya and Gaurav Sahu and Irina Rish},
  title = {{Recurrent In-Context Learning for Tabular Foundation Models}},
  year = {2026},
  eprint = {2610.14998},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.14998},
}
Figure