Thinking in Depth: Retrospective Inference for Tabular Foundation Models

Hao-Run Cai, Si-Yang Liu, Zi-Jian Cheng, Kun-Yang Yu, Jin-Hao Sheng, Guo Yu, Chonghan Liu, Zhi Zhou, Jun-Peng Jiang, Lan-Zhe Guo, Han-Jia YearXiv 2026

TL;DR

RETRO introduces "retrospective inference" to Tabular Foundation Models (TFMs), allowing later layers to explicitly revisit and reuse information from earlier in the network. By employing Attention Residuals and Gated Attention, RETRO achieves top-tier performance across major benchmarks while remaining on the Pareto frontier of accuracy versus computational cost.

What Problem Does This Paper Address?

Tabular Foundation Models (TFMs) are designed to handle diverse datasets by performing in-context learning, much like Large Language Models. However, when the authors analyzed how these models actually "think" through their layers, they found a significant inefficiency: predictive refinement is highly uneven. In many state-of-the-art models, the early layers do very little of the heavy lifting, with the vast majority of predictive improvement (over 80% in some cases) concentrated in the final few layers.

This suggests that standard transformer stacks might be "forgetting" or overly compressing useful intermediate relationships. The authors argue that tabular inference shouldn't just be a linear sequence of transformations, but a process where the model can look back at earlier assessments to refine its final decision.

A housing example illustrating how humans and RETRO revisit earlier views to reach a decision.

Methods

The authors propose RETRO, a model built on two core architectural innovations designed to facilitate "retrospective inference":

  1. Attention Residuals: Instead of each layer only seeing the output of the layer immediately preceding it, RETRO maintains a "source bank" of representations from various depths. A learned weighting mechanism allows each layer to adaptively choose which historical information to revisit.
  2. Query-Conditioned Gated Attention: Once the model identifies relevant historical information, it needs to integrate it. RETRO uses a gating mechanism that modulates the attention output element-wise. This allows the model to adjust the direction and magnitude of the update specifically for each query, rather than applying a uniform transformation.

The underlying architecture follows a hierarchical encoder-decoder structure, processing columns and rows to create 512-dimensional representations that then pass through a 12-layer in-context learning (ICL) stack.

Datasets

The model was pretrained on synthetic tasks generated from structural causal models. For evaluation, the authors used three mainstream benchmarks that cover a wide variety of real-world scenarios:

  • TabArena: A benchmark comprising 38 classification and 13 regression datasets.
  • TALENT: A large-scale toolbox with 200 classification and 100 regression datasets.
  • RelArena: A recently introduced benchmark focused on relational learning (predicting relationships between entities).

Key Insights and Ideas

  • Distributed Refinement: Unlike standard models where the "aha moment" happens at the very end, RETRO shifts predictive refinement earlier and spreads it more broadly across the network's depth.
  • Multi-View Processing: Analysis of the "sample-state flows" (how individual predictions change layer-by-layer) suggests that different stages of RETRO revise different subsets of queries. This implies the model is performing a form of "multi-view" refinement, looking at the data from different angles at different depths.
  • The Importance of Direction: Through ablation studies, the authors found that the direction of the contextual update (which feature dimensions are modified) is far more critical for accuracy than simply scaling the magnitude of the update.
Comparison of sample-state flows showing that RETRO distributes predictive changes more evenly across depth compared to TabICLv2.

Key Results

RETRO consistently ranks among the top three methods across all evaluated benchmarks:

  • RelArena: Ranked 1st in overall Elo rating.
  • TALENT: Ranked 2nd in overall Elo rating.
  • TabArena: Ranked 3rd in overall Elo rating.

Crucially, RETRO achieves these gains without a massive increase in computational overhead. As shown in the Pareto frontier analysis, it provides a significantly better accuracy-to-latency trade-off than many of its heavier competitors. For instance, it outperforms the backbone model (TabICLv2) with nearly identical inference time.

Figure 1: RETRO lies on the Pareto frontier of three mainstream benchmarks.

Limitations and Future Work

While RETRO shows strong performance, the authors note a few areas for further exploration:

  • Backbone Dependency: The current implementation is built on a specific row-level ICL hierarchy. Exploring how retrospective inference benefits other TFM architectures (like those that exchange information across feature axes) remains an open question.
  • Synthetic Priors: The model's performance is still tied to the quality of the synthetic data used during pretraining. Developing richer, more representative synthetic priors could further boost generalization.
  • Task-Specific Heads: Currently, classification and regression still require separately trained models. Moving toward a more unified output head could simplify deployment.

Summary updated

BibTeX
@misc{cai2026thinking,
  author = {Hao-Run Cai and Si-Yang Liu and Zi-Jian Cheng and Kun-Yang Yu and Jin-Hao Sheng and Guo Yu and Chonghan Liu and Zhi Zhou and Jun-Peng Jiang and Lan-Zhe Guo and Han-Jia Ye},
  title = {{Thinking in Depth: Retrospective Inference for Tabular Foundation Models}},
  year = {2026},
  eprint = {2610.10317},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.10317},
}
Figure