Manuscript Offprint

arXiv:2610.10317

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 Ye

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

ABSTRACT

Tabular foundation models (TFMs) are pretrained across diverse tabular tasks and make predictions on a new table at inference time using its labeled examples as context. Most recent TFMs perform such in-context prediction with stacked Transformer layers, repeatedly transforming how examples are represented and compared. By tracing individual queries through several strong TFMs, we find that predictive refinement is highly uneven across depth and is often concentrated in later layers. This uneven refinement motivates us to reconsider how intermediate representations are constructed and reused throughout the network. We introduce RETRO, a tabular foundation model based on retrospective inference, where later stages can explicitly revisit and recombine intermediate information produced earlier in the network. RETRO organizes this process around two complementary operations: which intermediate information to revisit, and how the resulting contextual update should be shaped for each query. Attention Residuals address the former by adaptively reweighting contributions from different depths, while query-conditioned Gated Attention addresses the latter by modulating the attention output element-wise across representation dimensions. Our analysis shows that RETRO shifts predictive refinement earlier and more broadly across depth, with different stages revising different subsets of queries in a pattern suggestive of multi-view refinement. Across TabArena, TALENT, and RelArena, RETRO ranks among the top three and lies on the Pareto frontier. These results indicate that directly reusing intermediate representations provides a practical way to better exploit depth in TFMs.

1 INTRODUCTION

Tabular foundation models (TFMs) are reshaping tabular learning from training a separate predictor for each dataset toward reusing a pretrained prediction procedure across heterogeneous tables. By pretraining over diverse tasks, TFMs can adapt to a new table at inference time using its labeled examples as context, without requiring a task-specific model to be learned from scratch (Hollmann et al., 2023; 2025; Qu et al., 2025). Recent models have demonstrated increasingly strong performance across a broad range of tabular tasks (Qu et al., 2026; Grinsztajn et al., 2026; Eo et al., 2026), establishing TFMs as a promising general-purpose paradigm for tabular prediction.

In most recent in-context TFMs, labeled support examples and unlabeled queries pass through a stack of Transformer layers before producing the final prediction. Several works have examined what happens along this layered computation. Ye et al. (2025a) show that representations formed

TabArena

Figure

TALENT

RelArena

Total time per 1K samples (s)

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

Which houses sell above $500k?

House IDFloor AreaBedsCommunity IncomeDistance to CBDYear
A180m24$75k12km2008
B80m22$120k1km2015
C115m23$95k8km2000
D185m24$40k30km2026
E85m22$45k2km1985
F65m21$35k28km1995

$500k

≤$500k

Humans with Tables: Chain of Thought.

(1) Size?

IDm2m^2Beds
A1804
B802
C1153
D1854
E852
F651

(2) Location?

IDIncomeCBD
A7512
B1201
C958
D4030
E452
F3528

(3) Condition?

IDYearIncome
A200875
B2015120
C200095
D202640
E198545
F199535

(4) Revisit

IDEarlier Views
ASize + Condition
BLocation + Income
CSize + Location
DAge + Location
ELocation + Age
FSize + Age

TFMs with Tables: Retrospective Chain of Representation.

(L1) Neighborhood 1

Figure

(L2) Neighborhood 2

(L3) Neighborhood 3

(Final Layer) Revisit

Figure 2: A housing example of complementary neighborhood views and retrospective integration. Top: a person considers size, location, and condition, then revisits these assessments to reach a decision. Bottom: the TFM schematic places the same homes in different neighborhoods across representations and integrates earlier information in the final representation. This illustrates a possible organization of tabular inference.

within a TFM contain task-conditioned predictive structure and can support downstream prediction, while Balef et al. (2026) reveal substantial redundancy and non-uniform contributions across layers through probing and layer interventions. These studies begin to characterize how predictions emerge through the internal computation of TFMs rather than only at their final output.

We take a complementary, sample-level view by tracing how individual queries change as they pass through several strong TFMs. We find that predictive refinement is highly uneven across depth and, in some models, is strongly concentrated in later layers. Different queries are also revised at different stages, revealing a much less uniform process than final aggregate performance alone would suggest. These observations suggest that the issue may not simply be what each layer computes, but also how information produced along the way remains available to later prediction. This motivates a different organization of intermediate computation, in which earlier representations can be reconsidered rather than influencing subsequent stages only through the latest accumulated state.

We call this organization retrospective inference. Instead of viewing prediction as a sequence in which each representation simply gives way to the next, retrospective inference keeps intermediate information available as the prediction evolves. The goal is to let later computation selectively draw on representations formed at different stages, so that useful information can be retained and recombined as different queries are progressively refined.

This perspective leads to two coupled design requirements. First, when several intermediate representations remain available, the model must determine which of them are relevant to the current sample. Second, after contextual information is computed from these representations, the model must determine how that update should modify the current query representation. Accordingly, we design RETRO with a retrospective aggregation path that adaptively reweights contributions from different depths, and a query-conditioned gating mechanism that modulates newly computed contextual information across representation dimensions. We instantiate the former with Attention Residuals (Kimi Team, 2026) and the latter with Gated Attention (Qiu et al., 2025). Together, they allow the model to adapt both the historical information it reuses and the way new contextual information is incorporated for each query.

Our analysis shows that RETRO shifts predictive refinement earlier and distributes it more broadly across depth, with different stages revising different subsets of queries in a pattern suggestive of multi-view refinement. Across TabArena (Erickson et al., 2025), TALENT (Ye et al., 2024), and RelArena (Hayler et al., 2026), RETRO ranks in the top three among the evaluated methods, while lying on the estimated performance–cost Pareto frontier of each benchmark. These results highlight the value of treating intermediate representations as reusable resources for subsequent inference. Our contributions are threefold:

  • We characterize sample-level predictive dynamics in strong TFMs, complementing prior representation- and layer-level analyses, and show that refinement is highly uneven across depth and often concentrated in later stages.

• We propose retrospective inference and instantiate it in RETRO through adaptive reuse of intermediate representations and query-conditioned modulation of contextual updates, leading to earlier and more distributed prediction refinement across stages.

• We evaluate RETRO on three benchmarks spanning tabular classification, regression, and relational prediction, obtaining top-three overall Elo rankings among the evaluated methods.

References (71)

  • Rezero is all you need: fast convergence at large depth
  • Is one layer enough? understanding inference dynamics in tabular foundation models
  • A mechanistic study of tabular foundation models
  • Deep neural networks and tabular data: A survey
  • XGBoost: A scalable tree boosting system
  • Why in-context learning transformers are tabular data classifiers (opens arXiv in a new tab)
  • EXAONE Tabular 1.0 : Technical Report
  • TabArena: A living benchmark for machine learning on tabular data
  • Revisiting deep learning models for tabular data
  • Tabm: Advancing tabular deep learning with parameter-efficient ensembling
  • Tabpack: Efficient hyperparameter ensembles for tabular deep learning
  • Why do tree-based models still outperform deep learning on tabular data? In NeurIPS, 2022
  • TabPFN-3: Technical report (opens arXiv in a new tab)
  • Advancing open and reproducible relational learning: Relarena-α, tabpfn-rel and RPI. CoRR, abs/2608.16319, 2026 (opens arXiv in a new tab)
  • Deep residual learning for image recognition
  • TabPFN: A transformer that solves small tabular classification problems in a second
  • Accurate predictions on small data with a tabular foundation model
  • Better by default: Strong pre-tuned mlps and boosted trees on tabular data
  • Densely connected convolutional networks
  • Representation learning for tabular data: A comprehensive survey
  • LightGBM: A highly efficient gradient boosting decision tree
  • Kimi Team. Attention residuals. CoRR, abs/2603.15031, 2026. (opens arXiv in a new tab)
  • Introducing TabFM: A zero-shot foundation model for tabular data
  • TabSwift: An efficient tabular foundation model with row-wise attention
  • Talent: A tabular analytics and learning toolbox
  • Delta attention residuals (opens arXiv in a new tab)
  • When do neural nets outperform boosted trees on tabular data? In NeurIPS, 2023
  • Catboost: Unbiased boosting with categorical features
  • Gated attention for large language models: Non-linearity, sparsity, and attention-sink-free
  • TabICL: A tabular foundation model for in-context learning on large data
  • TabICLv2: A better, faster, scalable, and open tabular foundation model
  • Highway networks (opens arXiv in a new tab)
  • Mitra-v2 Technical Report
  • Position: Why tabular foundation models should be a research priority
  • Xiaomi-TabLDM: A Tabular Foundation Model Technical Report
  • mhc: Manifold-constrained hyper-connections (opens arXiv in a new tab)
  • A closer look at deep learning methods on tabular datasets (opens arXiv in a new tab)
  • A closer look at TabPFN v2: Understanding its strengths and extending its capabilities
  • Revisiting nearest neighbor for tabular data: A deep tabular baseline two decades later
  • Limix: Unleashing structured-data modeling capability for generalist intelligence (opens arXiv in a new tab)
  • Mitra: Mixed synthetic priors for enhancing tabular foundation models
  • Hyper-connections (opens arXiv in a new tab)
  • Appendix B describes the retrospective computation, and Appendix C presents the full-depth cases
  • Models use the same outer query rows, a single preprocessing view, and no ensemble
  • Each held-out support fold is encoded as unlabeled queries conditioned on the remaining support rows
  • We use $C = 1$ and LBFGS with tolerance $10^{-6}$, allowing up to 20,000 iterations when the initial 3,000-iteration limit is insufficient for convergence
  • For query $i$ with true class $y_i^q$, define
  • They are not predictions from the pretrained model’s native head
  • The second refers to any earlier correct state, not only the preceding layer; the third includes the current layer
  • Bold marks the largest value in each column
  • Up to 1,200 query rows are shown
  • Rings mark corrections and crosses mark deteriorations
  • The model settings for each analysis are specified in Appendix A.1
  • We therefore use it to compare layer-wise refinement patterns; the aggregate statistics include all 38 classification datasets, while the visual cases are illustrative
  • The table encoder and pretraining procedure are described in Section 6
  • Initially $P = H_0$ and $M$ is empty
  • Both support and query rows receive updates, but only support rows supply attention keys and values
  • For 12 layers grouped in pairs, it reads seven sources: the initial encoding and six group sums
  • The scorer is initialized to zero and the gain to one, giving uniform source weights initially
  • Consequently, weights vary with the row's source values and the reader's parameters, without inheriting a previous reader's weights
  • The L gate projections add $L(d^2+d)$ parameters
  • We first compare full-depth SDSS17 representations and state flows, then report benchmark-average flows and additional regression and classification cases
  • Unlike the sampled PCA displays, these flows retain every query
  • Mean-gate, direction, and magnitude replacement increase NRMSE by 0.2326, 0.2328, and 0.0011, respectively
  • Top: mean degradation relative to learned gating, with 95% dataset-bootstrap intervals
  • [0.057, 1.031]) and 0.0810 NRMSE ([0.0415, 0.1289])
  • These results evaluate native predictors, not the intermediate readouts in Appendix A or the single-view interventions in Appendix D
  • TALENT includes 200 classification and 100 regression datasets
  • Average Rank is lower-is-better
  • TabArena uses 200 dataset-bootstrap replicates and RelArena 100 task-bootstrap replicates, with 2.5th and 97.5th percentile endpoints
  • TALENT and RelArena retain their benchmark-exported average ranks