arXiv:2610.19814cs.LGOct 2026

Manuscript Offprint

arXiv:2610.19814

When Does Depth Help? Understanding Layerwise Inference in Tabular Foundation Models

Wenwen Gong, Haotian Gu, Zhen Yang, Jiaying Ma, Hanqing Zhang, Zhongshen Wang, Jingjun Wang, Shouyi Xu, Wei Wang

ABSTRACT

Transformer-based tabular foundation models (TFMs) achieve state-of-the-art performance on small to medium-sized tabular prediction tasks while processing diverse inputs through a shared stack of layers. Recent layerwise analyses identify strong predictive performance in early TFM representations and substantial overlap in computation across layers. However, early predictive accessibility alone does not establish whether later layers are dispensable for every input, and aggregate accuracy can obscure which inputs benefit from additional computation. We study all 24 in-context-learning layers of TabPFN-3 across 272 classification datasets, combining representation geometry, prediction trajectories, truncation, and structural interventions, while also examining related representation dynamics in four additional TFMs. We uncover a pronounced expansion-compression trajectory, with stronger late dimensional contraction associated with larger increases in class-prototype separation. A targeted analysis of early-stabilizing samples shows that substantial representational changes persist after predicted classes stabilize, while locally ambiguous queries obtain larger accuracy gains from shallow to late layers than well-separated queries. Repeating a single pretrained block or perturbing layer order reduces predictive performance on average, constraining simple post-hoc substitutions in the frozen model. These findings distinguish predictive accessibility, class stability, and the benefits of continuing computation, supporting an input-dependent assessment of depthwise redundancy in TFMs.

1 INTRODUCTION

Tabular foundation models (TFMs) (Hollmann et al., 2023; 2025; Qu et al., 2025; Garg et al., 2025; Zhang et al., 2025b; Ma et al., 2025) use in-context learning to predict on new datasets from labeled support examples, without task-specific parameter updates. A single pretrained model processes tasks with different feature spaces and class structures through the same stack of in-context-learning layers. Understanding how much different inputs benefit from this depth is important for assessing computational redundancy and identifying opportunities to reduce inference cost while preserving prediction quality (Elbayad et al., 2020; Fan et al., 2020).

Recent layerwise analyses identify strong predictive performance in early TFM representations and substantial overlap in computation across layers (Balef et al., 2026). TabSwift (Liu & Ye, 2026) further demonstrates per-query early exiting and observes that deeper exits concentrate in ambiguous regions of representation space. These findings motivate examining what subsequent computation still contributes. Early predictive accessibility does not establish that later layers are dispensable for every input, and aggregate accuracy can obscure which inputs benefit from them.

Our layerwise evaluation of TabPFN-3 makes this distinction concrete. When queries are grouped by local class separation within each dataset, locally ambiguous groups show larger absolute accuracy gains from L9 to L23 on average than well-separated groups (Figure 1 (a)). Meanwhile, a targeted analysis of early-stabilizing samples shows that their representations continue to change substantially after their predicted classes stabilize, including pronounced late dimensional contraction (Figure 1 (b)). These observations highlight the need to distinguish predictive accessibility, class stability, and the accuracy gains from additional computation. They motivate our central question: When does later computation remain predictively useful, and how does its value vary across inputs?

(a) Depth helps selectively

Figure

(b) Post-stabilisation contraction

Figure

Figure 1: Predictive accessibility, class stability, and the value of depth are distinct. (a) L9/L13/L23 accuracy vs. local class separation: ambiguous queries gain more from depth. (b) Effective dimensionality per layer for early-stabilizing queries: representations keep changing after the class stabilises, then contract sharply.

We study all 24 ICL layers of TabPFN-3 using 272 classification datasets from OpenML-CC18 (Bischl et al., 2019) and TALENT (Liu et al., 2025). We complement its native attention-based retrieval decoder (Grinsztajn et al., 2026) with layer-matched classifiers and decoder-independent probes, combining representation geometry, prediction trajectories, truncation, and structural interventions. We also examine related representation dynamics in four additional TFMs (Hollmann et al., 2025; Grinsztajn et al., 2025; Qu et al., 2025; 2026).

We find that TabPFN-3 representations follow a pronounced expansion-compression trajectory: early expansion is followed by a relatively stable middle regime and substantial reorganization near the output. Class-relevant information is readable at shallow depth, while class-prototype separation strengthens mainly at later layers. Across datasets, stronger late dimensional contraction is associated with greater increases in prototype separation. These findings distinguish the early availability of predictive information from the subsequent evolution of representation geometry.

At the task level, datasets with later prediction stabilization tend to incur larger accuracy losses under truncation. The overall depthwise accuracy gain also cannot be attributed entirely to mismatch with the final decoder: across 72 OpenML-CC18 tasks, accuracy increases from 82.2% at L2 to 85.6% at L23 when each layer is evaluated using its own fitted readout. Additional computation therefore retains predictive value beyond what is accessible through shallow representations under these readouts.

Finally, interventions show that the frozen model is sensitive to changes in its learned layer composition. Replacing distinct blocks with repeated applications of a single pretrained block, or perturbing their execution order, alters representation dynamics and reduces predictive performance on average. These results constrain simple post-hoc substitutions within the pretrained computation. Our findings support evaluating depthwise redundancy through input-dependent predictive gains alongside the accompanying representation dynamics, and motivate future work on adaptive-depth TFM inference.

References (93)