Towards Understanding Layer Contributions in Tabular In-Context Learning Models

Amir Rezaei Balef, Mykhailo Koshil, Katharina Eggensperger

Here is a concise, engaging summary of the paper, tailored for researchers and engineers interested in tabular machine learning and model interpretability.

TL;DR

While Transformer-based Tabular In-Context Learning (ICL) models like TabPFN achieve state-of-the-art performance, their internal layer dynamics have remained a black box. This paper applies the "Layers as Painters" framework to reveal that these models exhibit significant structural redundancy in their later layers. These insights open up clear pathways for model compression and efficient "early-exiting" during inference.

What Problem Does This Paper Address?

In-context learning (ICL) has revolutionized how we interact with Large Language Models (LLMs), and recently, this paradigm has successfully shifted to tabular data via models like TabPFN and TabICL. These models can predict targets for a query dataset given a small support (training) set in a single forward pass, without any weight updates.

However, we know very little about how individual layers in tabular ICL models contribute to the final prediction. We cannot simply copy-paste interpretability insights from LLMs because tabular ICL models operate differently: they aren't autoregressive, they compute attention within tokens, and they typically lack positional encodings. This paper addresses this gap by investigating how data representations evolve across layers and whether these models actually need all of their layers to perform effectively.

Methods

The authors adapt the "Layers as Painters" framework—originally proposed for LLMs—to tabular ICL architectures. The core idea is to treat layers not as a strict hierarchical pipeline (like convolutional networks), but as painters adding successive refinement steps in a shared representational space.

To test this hypothesis, the authors perform four distinct structural interventions on three prominent models (TabPFN(v1), TabPFN(v2), and TabICL):

  1. Skipping Layers: Removing a layer entirely from the forward pass to test its necessity.
  2. Swapping Layers: Changing the order of two adjacent layers to check for representational hierarchy.
  3. Repeating Layers: Feeding a layer's output back into itself to see if it performs iterative refinement.
  4. Probing Classifiers: Training simple linear models (logistic regression), KNNs, or MLP decoders on intermediate layer embeddings to see what information is available at each stage.
Figure 1: Layer reorganization in tabular ICL models following the “Layers as Painters” framework.

Datasets

The models were evaluated on a subset of TabArena, a modern benchmark for tabular data. Specifically, the authors used 15 binary classification tasks (including datasets like Bank-Customer-Churn, Diabetes, and Marketing-Campaign). Performance was measured using the Area Under the ROC Curve (ROC-AUC), averaged across all datasets.

Key Insights and Ideas

  • A One-Way Shared Language: Probing classifiers trained on an early layer $i$ perform remarkably well when evaluated on a later layer $j$. However, the reverse is not true. This implies that later layers preserve the information from earlier layers while adding new, distinct features.
  • Tabular Models Tolerate Repetition Better Than LLMs: In LLMs, repeating a single layer usually tanks performance. Surprisingly, in tabular ICL models, repeating a layer is far less harmful and can occasionally even improve performance on certain tasks. This suggests these layers have learned to modulate their contributions dynamically.
  • Early Layers are the "Cornerstones": Across all models, the earliest layers are the most critical. Disrupting or skipping them causes catastrophic performance drops, whereas later layers are much more forgiving.

Key Results

  • Later Layers are Redundant: For TabPFN(v1) and TabICL, skipping the final few layers results in almost zero loss in ROC-AUC. This confirms that later layers are structurally redundant for many tasks.
  • TabPFN(v2) is an Exception: TabPFN(v2) behaves differently than its predecessor. It shows significantly less redundancy; skipping or swapping its intermediate layers causes a noticeable drop in performance, meaning its layers perform highly specialized, non-interchangeable operations.
  • Feasibility of Early Exiting: Because later layers in TabPFN(v1) and TabICL are redundant, the authors demonstrated that you can "early-exit" (stop inference early and pass the intermediate embedding directly to the decoder) without a massive drop in accuracy. For TabPFN(v2), early exiting is only viable if you fine-tune a separate decoder for each layer.
Probing classifier performance across different training and testing layers.

Limitations and Future Work

While these findings are an exciting first step, the authors note a few limitations:

  • The experiments modify only one layer at a time, leaving the compounding effects of multi-layer pruning unexplored.
  • The evaluation averages results over a single fold and model initialization per dataset.

Future Directions: The authors point out that these insights should directly guide the development of lightweight, compressed tabular ICL models that consume less memory and boast faster inference times, making them highly practical for resource-constrained engineering environments.

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