Towards Understanding Layer Contributions in Tabular In-Context Learning Models

Amir Rezaei Balef, Mykhailo Koshil, Katharina Eggensperger

TL;DR

Tabular in-context learning (ICL) models like TabPFN and TabICL deliver competitive predictions on table data without retraining, but how their internal layers process information has remained a black box. By perturbing hidden representations through layer skipping, swapping, repeating, and probing, this paper reveals that early layers do the heavy lifting, while deeper layers in TabPFN(v1) and TabICL are largely redundant. However, TabPFN(v2) exhibits much tighter layer coupling, demonstrating that architectural choices substantially alter tabular latent dynamics.

What Problem Does This Paper Address?

While large language models (LLMs) have been extensively probed to understand how hidden states evolve across depth, tabular ICL foundation models operate differently: they lack autoregressive generation, attend across both rows and columns, and often omit positional encodings.

Researchers do not yet understand how tabular ICL models structure their internal latent spaces, whether all layers are necessary, or if layers share a common representational "language" (as observed in the "layers as painters" paradigm in LLMs). Answering these questions is critical for designing lighter, faster tabular foundation models and enabling early-exit inference.

Methods

The authors investigate three prominent tabular ICL models—TabPFN(v1), TabPFN(v2), and TabICL—adapting the "Layers as Painters" framework:

  • Layer Skipping: Dropping individual transformer layers to test necessity and redundancy.
  • Layer Swapping: Exchanging adjacent layers to evaluate whether representations are hierarchical or commutative.
  • Layer Repeating: Re-executing a layer to check if it performs iterative refinement.
  • Classifier Probing: Training classifiers (Logistic Regression, KNN, and fine-tuned MLP decoders) on intermediate embeddings from one layer and testing them across all other layers to measure representational compatibility.
  • Zero-Shot Early Exiting: Routing intermediate layer hidden states directly into the final prediction decoder without retraining the decoder head.

Datasets

Experiments were conducted on 15 binary classification tasks from the TabArena living benchmark (e.g., Bank-Customer-Churn, blood-transfusion-service-center, churn, credit-g, diabetes, NATICUSdroid, and taiwanese-bankruptcy-prediction). Datasets range from 748 to 10,000 samples and 5 to 95 features. Models were evaluated using ROC-AUC (averaged across datasets) and win/tie/lose comparisons using a tie threshold of $2 \times 10^{-4}$.

Key Insights and Ideas

  • Representational compatibility is asymmetric: Probing classifiers trained on early layer $i$ transfer effectively to downstream layer $j > i$, but the reverse fails. Later layers preserve representations from earlier stages while introducing specialized features.
  • Repeating layers is surprisingly harmless: In LLMs, looping an intermediate layer typically triggers catastrophic failure. In tabular ICL models, repeating an individual layer rarely degrades performance and can occasionally boost AUC on specific datasets, suggesting tabular layers learn to adaptively gate their updates.
  • Not all tabular ICL architectures behave alike: TabPFN(v1) and TabICL display substantial late-layer redundancy. In contrast, TabPFN(v2) (which incorporates intra-token and cross-token attention) distributes critical computation across intermediate layers, making its representation far less redundant.
  • Early exiting without tuning is architecture-dependent: TabPFN(v1) and TabICL can exit before reaching the final layers using the pre-existing decoder with minimal performance penalty. TabPFN(v2) experiences sharp degradation unless an individual decoder head is specifically fine-tuned for intermediate layers.

Key Results

  • Layer Skipping: In TabPFN(v1) and TabICL, skipping later layers maintains the full model baseline ROC-AUC (~0.85–0.90), demonstrating that final layers can be pruned with minimal loss. Conversely, skipping intermediate layers in TabPFN(v2) causes severe drops in mean ROC-AUC down toward 0.60–0.70.
  • Layer Swapping: Perturbing the earliest layers degrades performance most severely across all models. Middle-layer swaps significantly damage TabPFN(v2), confirming that although middle layers operate in comparable latent spaces, their operations remain non-commutative.
  • Zero-Shot Early Exit: TabICL and TabPFN(v1) maintain near-peak ROC-AUC when exiting several layers early, whereas TabPFN(v2) collapses to near chance-level performance (~0.5 AUC) on early exits unless equipped with a dedicated fine-tuned decoder.

Limitations and Future Work

  • Single-Layer Interventions: Perturbations were applied to only one layer at a time; cumulative multi-layer pruning or block re-ordering was not explored.
  • Evaluation Scope: Results are averaged across 15 binary classification tasks using a single split fold, single repetition, and fixed model checkpoints. Multi-class classification and regression tasks were not tested.
  • Future Directions: Investigating whether layer dynamics remain consistent across random seeds and dataset distributions, and translating these redundancy findings into practical post-training model compression and dynamic early-exit routing for tabular data.

Summary updated

BibTeX
@inproceedings{balef2025towards,
  author = {Amir Rezaei Balef and Mykhailo Koshil and Katharina Eggensperger},
  title = {{Towards Understanding Layer Contributions in Tabular In-Context Learning Models}},
  booktitle = {AITD @ EurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=v5YM4juVbF},
}
Figure