Manuscript Offprint
arXiv:2610.41819ElTab: Elastically Looped Tabular Transformers
Abstract
Tabular transformer models such as TabPFN achieve strong predictive performance but incur substantial inference costs, making them difficult to deploy in resource-constrained settings. While looped transformers reduce parameter count through weight sharing, they can lose significant predictive power when stopped early. To address this challenge, we introduce the Elastically Looped Tabular Transformer (ElTab), a single model trained to operate across different computational budgets through supervision at randomly sampled early exits. Across 30 OpenML classification datasets, a single ElTab model matches six depth-specific looped models while cutting training cost by more than half, and matches a 12-layer TabPFN-style baseline with 25% fewer inference FLOPs. These results show that elastic-depth training yields a single model that adapts to the deployment budget at hand, offering a favorable trade-off among predictive performance, storage, and computational cost.
1 INTRODUCTION
Tabular foundation models such as TabPFN (Hollmann et al., 2025) have emerged as general-purpose models for tabular prediction, achieving strong predictive performance across diverse datasets. They predict on a new dataset in a single forward pass, conditioning a pretrained Transformer on the dataset's labeled examples instead of fitting dataset-specific parameters. However, this in-context prediction is expensive, as its cost grows with both backbone depth and attention that is quadratic in the number of context rows. Since depth is fixed
at training time, a resource-constrained deployment cannot trade accuracy for compute at inference; its only option is to train a smaller model.
Looped Transformers (Giannou et al., 2023) reduce the parameter count while preserving effective depth by repeatedly applying a shared stack of blocks. In tabular models, a single looped block has recently been shown to match a six-layer nanoTabPFN (Balef et al., 2026). However, weight sharing alone does not make a model computationally adaptive. While a looped model can be stopped early, its intermediate representations are never trained to support predictions. In our experiments (Figure 3), stopping a fixed-depth looped model after three of its six loops costs 7.3 AUC-ROC points on average across 30 OpenML datasets.
To address this problem, we introduce ElTab, an Elastically Looped Tabular Transformer, whose recurrence depth can be adjusted to the computational budget available at inference time. At each training step, ElTab supervises both the full-depth output and one randomly sampled shallower exit, and distills the full-depth prediction into that exit. Thus, ElTab learns to predict after any loop, saving compute proportional to the context size for each skipped loop. To summarize, we make the following contributions:
- We introduce ElTab, an elastically looped tabular foundation model that supports 6 inference budgets without retraining.
- We propose an elastic-depth training objective that combines early-exit supervision with self-distillation.
- We evaluate ElTab on 30 OpenML classification benchmarks across 6 inference budget, showing that it matches an ensemble of 6 depth-specific looped models while reducing the training cost by 57%. It matches the predictive performance of a
(a) A single ElTab model matches the oracle at every budget

(b) ElTab needs 58% less training energy (kWh)
● ElTab (one model) ● Fixed-depth: random training depth ● Fixed-depth: oracle training depth
Figure 1: ElTab matches six budget-specific models, cutting training energy consumption by more than half. (a) Per-dataset AUC-ROC on 30 OpenML datasets at each inference budget. Fixed-depth looped models are budget-specific, because their depth is set at training time, before the inference budget is known. This depth can be chosen at random (gray) or, as an idealized upper bound, by an oracle that knows the budget in advance (orange). A single ElTab model (blue), trained without knowing the budget, matches the oracle at every budget. (b) Estimated GPU energy for full training on one NVIDIA A100. Covering all six budgets with budget-specific models requires training six models (gray segments), which consume 60.6 kWh in total. A single ElTab model covers the same budgets with 25.7 kWh.
12-layer TabPFN-style baseline while using 25% fewer inference FLOPs.
- We perform a centered kernel alignment study showing that elastic training makes latent representations similar across depths, demonstrating its robustness to truncation.
Tabular foundation models. Tabular foundation models are pretrained neural networks that solve new tabular prediction tasks without task-specific training. They predict on a new dataset by conditioning the network on the dataset's labeled examples alongside the test queries, producing predictions in a single forward pass. The first such model, TabPFN (Hollmann et al., 2022, 2025), is pretrained on millions of synthetic datasets sampled from a prior (Müller et al., 2021), yielding strong predictive performance across diverse tabular benchmarks. Its architecture is based on the Transformer (Vaswani et al., 2017), with attention across rows that makes predictions invariant to row order. However, inference cost grows quadratically with the number of rows and linearly with the num-
ber of layers. Successive TabPFN versions have grown deeper (Grinsztajn et al., 2025), raising inference cost and limiting their use in compute-constrained settings. One line of work lowers inference cost by replacing some or all Transformer layers with state-space models (Koch et al., 2025; Komisarczyk et al., 2026b), trading some of attention's expressiveness for efficiency. This trade-off is fixed by the architecture at training time. We instead repeatedly apply a few shared layers and train them elastically, allowing the trade-off between accuracy and compute to be chosen at inference time.
Looped Transformers. Looped Transformers address the tension between the need for computational depth and parameter efficiency by applying the same layers repeatedly (Giannou et al., 2023). Instead of learning a deep stack of distinct layers, they learn a shallow stack and feed its output back as input over several iterations, refining the representation at no additional parameter cost. Applying a single block recurrently can match the performance of a deeper stack of distinct blocks (Dehghani et al., 2018). Small looped models also match or exceed much larger models on reasoning benchmarks such as ARC-AGI (Jolicoeur-Martineau, 2025; Komisarczyk et al., 2026a). For tabular data, a single looped nanoTabPFN block has recently been shown to match a six-layer nanoTabPFN (Balef et al., 2026). However, looping alone

Figure 2: ElTab architecture. ElTab predicts the labels of query rows from a labeled context using three components. An embedder () turns the table into token representations. A shared stack of Transformer blocks () then refines these representations and can be applied repeatedly, up to times. Finally, a decoder () turns the refined query representations into class probabilities. Because ElTab is trained to predict after every loop, it can stop after any loop , letting the deployment choose how much compute to spend. All loops share the same weights and decoder.
does not let a model adapt to the inference compute budget. Truncating a looped model trained at a fixed depth degrades its accuracy substantially (Section 4). ElTab addresses this limitation by training a looped TabPFN-style model to predict at any loop count.
Elastic inference depth. Deployment settings differ in the compute they can afford, yet training a separate model for each budget multiplies training and storage costs. Early-exit networks address this problem by attaching predictions to intermediate layers, allowing a single model to stop inference before the final layer (Teerapittayanon et al., 2016; Xin et al., 2020; Elhoushi et al., 2024). Their shallower exits improve when trained to match the final prediction (Zhang et al., 2019). The same principle has been applied to looped Transformers for latent reasoning, where conditioning each loop on its position and step size allows truncated models to degrade gracefully (Jeddi et al., 2026). ElTab extends elastic-depth training to tabular in-context learning.
3 ELASTICALLY LOOPED TABULAR TRANSFORMERS
Tabular foundation models such as TabPFN are effective but expensive. Inference compute budgets may change dynamically, precluding its use. Training separate models for each budget is infeasible due to high training and storage costs. We aim to build a single model that can support tabular predictive inference at different inference compute budgets. We formalize this budget-constrained inference as follows,
Given: a labeled context , unlabeled queries , and a compute budget .
To Do: Estimate the predictive probabilities at a cost no greater than .
We address this problem by introducing the ElTab
(Elastically Looped Tabular Transformers) family of models. ElTab models consist of a small stack of template layers, applied repeatedly at inference, and trained to predict after every repetition. The number of repetitions determines the cost and can be selected at deployment to fit the budget.
3.1 The ElTab Family of Models
We formalize the ElTab family of models through three components. The embedder maps the context and the queries to token representations. The template stack refines these representations by applying the same layers repeatedly. Finally, the decoder maps the refined representations to class logits. The template stack is applied at most times, and the deployed model meets a budget by choosing how many times to apply it. We formalize ElTab as follows.
Definition 1 (ElTab architecture). Let denote the embedder, let
be a stack of Transformer blocks, and let denote the decoder. Given a context set and query inputs , the embedder produces the initial representations
Let denote the maximum supported repetition depth. Repeated applications of the stack produce
The parameters are shared across all applications of the stack.
Let denote the query-token representations contained in . The prediction logits at depth are
The same decoder is used at every depth.
Given a computational budget , the inference depth is
assuming that the feasible set is nonempty. Under budget , ElTab applies the stack times and returns .
The modules define the ElTab architecture, is its maximum repetition depth, and is its budget-dependent inference depth.
The model applies blocks while storing the parameters of only . Its inference cost therefore grows approximately linearly with at a fixed parameter count.
3.2 Training
ElTab is pretrained on synthetic classification tasks drawn from a prior , following the training protocol of recent TabPFN-style models (Koch et al., 2025; Komisarczyk et al., 2026b). Each task consists of a labeled context and a set of query examples. At every training step, we sample a shortcut depth uniformly from and perform two separate forward passes through the same shared model: a full-depth pass with applications of the block stack and a shortcut pass with applications. Both predictions are supervised using the query labels. In addition, the shortcut prediction is distilled from the detached full-depth prediction, which serves as a fixed teacher for the distillation term. Sampling a new shortcut depth at each step provides supervision to every depth over the course of training. We formalize this training objective below.
Definition 2 (ElTab objective). Let collect all parameters and denote a task. For a sampled depth , the loss function is defined as
where with temperature , and denotes the stop-gradient operator. During model training, we minimize the expected loss
where is the uniform distribution over .
We use and . These small weights keep the full-depth term dominant. Setting both weights to zero recovers standard fixed-depth training. We optimize with AdamW at a learning rate of , an effective batch size of 64, and gradient-norm clipping at 1.0 for 200 epochs. Algorithm 1 summarizes the procedure.
Algorithm 1 ElTab Training
Require: Task prior ; embedder ; shared stack of blocks; decoder ; maximum loop depth ; weights ; temperature
1: while not converged do
2: Sample
3: Sample
4: full-depth forward pass
5: for do
6:
7: end for
8:
9: separate shortcut forward pass
10: for do
11:
12: end for
13:
14:
15:
16:
17: Update using
18: end while
Because the shortcut depth is sampled uniformly at each training step, every depth below receives supervision over the course of training. The additional shortcut forward pass is used only during training. At inference time, ElTab performs a single forward pass and stops after the selected number of complete applications of the shared block stack. Thus, a single set of learned parameters supports multiple accuracy-compute operating points. Algorithm 2 summarizes the inference procedure. As the inference depth increases, the computational cost grows linearly with the number of loops, whereas the parameter count remains fixed. The following proposition formalizes these properties.

Figure 3: Looped models match TabPFN with less compute at the budget they were trained for; ElTab does so across budgets. Change in mean AUC-ROC on 30 OpenML datasets relative to TabPFN (dotted line; star at its own compute), plotted against inference compute. Gray lines show six fixed-depth looped models, each trained for one budget and evaluated after every loop; rings mark the budget each was trained for. Each fixed-depth model comes close to TabPFN at its own budget, even below TabPFN's compute, but drops sharply when run at any other budget. A single ElTab model (blue) stays close to TabPFN across budgets, matching it to within 0.27 points while using 25% fewer FLOPs.
Algorithm 2 ElTab Inference
Require: Context ; queries ; inference budget ; stack of blocks for do end for return query class logits
Proposition 1 (Inference cost of ElTab). Consider an ElTab model with a layer template stack of blocks and a maximum depth of loops. The model predicts the labels of queries from a context , with rows in total, and stops after loops chosen to fit the inference budget. Denote the cost of this prediction by , the cost of one block on this input by , and the combined cost of the embedder and the decoder by . Then:
-
The cost grows linearly with the number of loops: .
-
If the embedder and decoder costs are negligible, stopping after loops costs a fraction of full depth: .
-
For hidden dimension , the template layer stack has parameters, independent of , , and .
-
With dense attention among the rows and feed-forward width proportional to , each block costs . Hence .
The proof is given in Appendix B.
4 EMPIRICAL EVALUATION
We evaluate the accuracy, efficiency, and internal representations of ElTab through the following questions.

Figure 4: A single EITab model outperforms every fixed-depth model across budgets on nearly all datasets. AUC-ROC on each of 30 OpenML datasets, averaged over all six inference budgets, for EITab and for fixed-depth looped models trained for one to six loops (top: one to three loops; bottom: four to six loops). Averaging over budgets reflects deploying one model at every budget, including those it was not trained for. Datasets are sorted by EITab's gain over the mean of the six fixed-depth models. EITab matches or outperforms all six fixed-depth models on 28 of 30 datasets. Its gains are largest where the fixed-depth models depend most on their training depth, such as mfeat-fourier and MiceProtein.
(Q1) Can looped models match the predictive performance of a standard TabPFN-style model at lower inference compute?
(Q2) Can a single EITab model match six independently trained fixed-depth looped models across inference budgets?
(Q3) How does elastic training change the similarity of hidden representations across loop depths?
4.1 Models
To answer these questions, we compare EITab with two kinds of baselines. EITab loops a stack of three blocks up to six times and is trained with the elastic objective. The first baseline is a standard 12-block TabPFN-style model, as in (Koch et al., 2025), which we refer to as TabPFN. The second is a set of depth-specific looped models (Looped3×1 to Looped3×6), each looping the same three-block stack a fixed number of times and trained only at that depth. All models use TabPFN-style blocks with identical dimensions (Koch et al., 2025).
Table 1: Training computation and checkpoint storage for the fixed-depth looped models and ElTab. FLOPs include profiler-supported operations in the forward pass, loss computation, and backward pass. Total FLOPs are computed over 200 epochs with 4,672 microbatches per epoch. For ElTab, the reported computation is the expectation over uniformly sampled shortcut depths , together with the full-depth trajectory.
| Model | FLOPs per batch () | Total FLOPs () | Ckpt. size (MB) |
|---|---|---|---|
| Looped3x1 | 0.415 | 0.3874 | 27 MB |
| Looped3x2 | 0.801 | 0.7487 | 27 MB |
| Looped3x3 | 1.188 | 1.110 | 27 MB |
| Looped3x4 | 1.575 | 1.471 | 27 MB |
| Looped3x5 | 1.961 | 1.833 | 27 MB |
| Looped3x6 | 2.348 | 2.194 | 27 MB |
| Looped total | 8.288 | 7.744 | 162 MB |
| ElTab | 3.536 | 3.304 | 27 MB |
4.2 Datasets
We compare these models on the 30 binary and multi-class classification datasets from OpenML-CC18 (Bischl et al., 2017) that contain at most 2,000 observations, 100 features, and 10 classes, following (Koch et al., 2025). Each dataset is split into a context and a query set. We report AUC-ROC on the query set, computed for multiclass datasets.
4.3 Metrics
We assessed each model based on predictive quality and inference efficiency. Predictive quality was quantified using the area under the receiver operating characteristic curve (AUC-ROC). On each dataset, results were averaged over five reproducible 50/50 train–test partitions, with every partition stratified to preserve all observed classes in both subsets. We present the mean AUC-ROC in the main text and report its standard deviation across splits in the appendix.
We quantify the energy savings of the elastic model relative to a fixed-depth baseline as
where and denote the energy consumed by the fixed-depth and elastic models, respectively, under the same evaluation conditions. Positive values indicate that the elastic model consumes less energy than the fixed-depth baseline, while negative values indicate
higher energy consumption. We compute the energy savings separately for each dataset and experimental run and report the mean across datasets.
(Answer, Q1: Looped vs. TabPFN) To evaluate whether looped models can match TabPFN while spending less compute at inference, we compare TabPFN with the six fixed-depth looped models and ElTab on all 30 datasets. Because each loop applies three blocks and TabPFN applies twelve, four loops match TabPFN's compute, and fewer loops use less. Figure 3 shows how AUC-ROC changes with inference compute for each model. Each fixed-depth model comes close to TabPFN at the budget it was trained for, even below TabPFN's compute. For example, the model trained for three loops matches TabPFN to within 0.13 points while using 25% fewer FLOPs. However, each fixed-depth model drops sharply when run at other budgets, by up to 58.6 points. In contrast, ElTab stays close to TabPFN across budgets, matching it to within 0.27 points at the same 25% saving. Therefore, looped models can match the predictive performance of TabPFN at lower inference compute.
(Answer, Q2: Elastic vs. budget-specific) To evaluate whether one elastic model can match a set of budget-specific models, we compare ElTab with the six fixed-depth looped models, Looped3×1 to Looped3×6. Since each fixed-depth model commits to a depth at training time, we consider two ways of choosing that depth: (1) at random, and (2) an idealized method with an oracle that knows the inference budget in advance. Figure 1(a) shows the per-dataset AUC-ROC of ElTab and both choices at each budget. ElTab tracks the oracle at every budget, matching it to within 0.12 points on average and 0.45 points at most. In contrast, a randomly chosen depth falls well below both, because a fixed-depth model drops sharply when run at budgets for which it was not trained (Figure 3). Figure 4 confirms this pattern on individual datasets. ElTab matches or outperforms all six fixed-depth models on 28 of 30 datasets, on average across the six budgets. However, without an oracle, matching ElTab's accuracy at every budget would require training all six fixed-depth models. ElTab instead uses 57% fewer training FLOPs and 58% less GPU energy (Table 1, Figure 1(b)), and needs one stored model instead of six. Therefore, a single ElTab model can match six fixed-depth looped models across inference budgets, without knowing the budget at training time.
(Answer, Q3: Representations) To evaluate how elastic training changes hidden representations, we compare ElTab with the fixed-depth Looped3×6 model, which shares its architecture and maximum depth. For each model, we measure the similarity of hidden representations after each pair of loops

Figure 5: Elastic training keeps early-exit representations close to the final one. Similarity of the hidden representations of ElTab after loops and , as compared to an equivalent fixed-depth Looped3×6 model. Similarity is measured as centered kernel alignment (CKA), which ranges from 0 (unrelated) to 1 (identical up to rotation and scaling). Positive values (green) mean that ElTab's representations at the two loops are more similar than those of Looped3×6. All off-diagonal entries are positive, and the largest differences occur between the earliest loops and the final loop, showing that elastic training aligns representations most where early exits need it most.
using centered kernel alignment (CKA) (Kornblith et al., 2019). In both models, representations at nearby loops are more similar than those at distant loops, consistent with gradual refinement across loops. Figure 5 shows how this similarity differs between the two models. Every off-diagonal entry is positive, and the difference is largest between the earliest loops and the final loop. These earliest loops are also where a truncated fixed-depth model loses the most accuracy. Elastic training therefore aligns representations most at the exits that need it most, consistent with ElTab's small accuracy loss when stopped early.
5 CONCLUSIONS AND FUTURE WORK
In this work, we addressed the challenge of deploying tabular foundation models in settings where available compute is limited and variable. We introduced ElTab, a looped model trained to predict after every loop, allowing inference depth to be chosen based on the budget available at deployment, without requiring any retraining. One ElTab model matches TabPFN with 25% less inference compute, and matches a separately trained model at every budget for less than half
the training cost. Thus, ElTab's elastic training enables a single model to adapt to the compute budget available at deployment.
There are several directions for future work. ElTab's elastic training can be extended to adaptive computation by learning a stopping rule from its per-loop predictions, spending more compute on difficult queries and less on easy ones (Bae et al., 2025). It can also be extended beyond loop counts to computational paths, by sampling which blocks are applied, skipped, or repeated during training (Jeddi et al., 2026). Finally, because the elastic objective adds no parameters, it can be extended to larger tabular foundation models by applying it to their looped backbones. Together with these directions, elastically trained looped models offer a favorable trade-off between predictive performance and inference cost for tabular foundation models deployed under limited and variable compute.
AI use statement
In this work, we used generative AI tools to assist in developing the software implementation of the presented method, to create and edit the code that renders the presented figures, and to provide writing assistance to improve the clarity of the presentation. We have not used generative AI tools to generate, clean, or reformat any data sets; develop theoretical models or the method's conceptual frameworks; formulate, prove, or write down mathematical claims; propose or refine any hypotheses; assist with translation; or interpret scientific results. All AI-assisted work was carefully reviewed and verified by the authors for correctness, including checking all generated or edited code to ensure it correctly corresponds to the method presented in the paper. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.
Acknowledgements
We gratefully acknowledge support from the BMFTR project XEI (grant number 16IS24079B), the Cluster of Excellence "Reasonable AI" funded by the German Research Foundation (DFG) under Germany's Excellence Strategy (EXC-3057), the DY-NAMIC center funded by the LOEWE program of the Hessian Ministry of Science and Arts (grant number LOEWE1/16/519/03/09.001(0009)/98), German Federal Ministry for Economic Affairs and Energy (BMWE) through EU-SAI (grant number 13IPC040G), and the US Army Research Office (award W911NF2010224).
References
Bae, S., Kim, Y., Bayat, R., Kim, S., Ha, J., Schuster, T., Fisch, A., Harutyunyan, H., Ji, Z., Courville, A. C., and Yun, S. (2025). Mixture-of-recursions: Learning dynamic recursive depths for adaptive token-level computation.
Balef, A. R., Koshil, M., and Eggensperger, K. (2026). Is one layer enough? understanding inference dynamics in tabular foundation models. arXiv preprint arXiv:2605.06510.
Bischl, B., Casalicchio, G., Feurer, M., Gijsbers, P., Hutter, F., Lang, M., Mantovani, R. G., van Rijn, J. N., and Vanschoren, J. (2017). Openml benchmarking suites. arXiv preprint arXiv:1708.03731.
Dehghani, M., Gouws, S., Vinyals, O., Uszkoreit, J., and Kaiser, L. (2018). Universal transformers. arXiv preprint arXiv:1807.03819.
Elhoushi, M., Shrivastava, A., Liskovich, D., Hosmer, B., Wasti, B., Lai, L., Mahmoud, A., Acun, B., Agarwal, S., Roman, A., et al. (2024). Layerskip: Enabling early exit inference and self-speculative decoding. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 12622–12642.
Giannou, A., Rajput, S., Sohn, J.-y., Lee, K., Lee, J. D., and Papailiopoulos, D. (2023). Looped transformers as programmable computers. In International Conference on Machine Learning, pages 11398–11442. PMLR.
Grinsztajn, L., Flöge, K., Key, O., Birkel, F., Jund, P., Roof, B., Jäger, B., Safaric, D., Alessi, S., Hayler, A., et al. (2025). Tabpfn-2.5: Advancing the state of the art in tabular foundation models. arXiv preprint arXiv:2511.08667.
Hollmann, N., Müller, S., Eggensperger, K., and Hutter, F. (2022). Tabpfn: A transformer that solves small tabular classification problems in a second. arXiv preprint arXiv:2207.01848.
Hollmann, N., Müller, S., Purucker, L., Krishnakumar, A., Körfer, M., Hoo, S. B., Schirrmeister, R. T., and Hutter, F. (2025). Accurate predictions on small data with a tabular foundation model. Nature, 637(8045):319–326.
Jeddi, A., Ciccone, M., and Taati, B. (2026). Loopformer: Elastic-depth looped transformers for latent reasoning via shortcut modulation. arXiv preprint arXiv:2602.11451.
Jolicoeur-Martineau, A. (2025). Less is more: Recursive reasoning with tiny networks. arXiv preprint arXiv:2510.04871.
Koch, F., Wever, M., Raisch, F., and Tischler, B. (2025). State-space models for tabular prior-data fitted networks. arXiv preprint arXiv:2510.14573.
Komisarczyk, M., Mathur, S., Kraus, M., Natarajan, S., and Kersting, K. (2026a). Recursive inference machines for neural reasoning. arXiv preprint arXiv:2603.05234.
Komisarczyk, M., Mathur, S., Kraus, M., Natarajan, S., and Kersting, K. (2026b). Tydra: An efficient hybrid model for tabular data. arXiv preprint arXiv:2608.21199.
Kornblith, S., Norouzi, M., Lee, H., and Hinton, G. (2019). Similarity of neural network representations revisited. In International conference on machine learning, pages 3519–3529. PMIR.
Müller, S., Hollmann, N., Arango, S. P., Grabocka, J., and Hutter, F. (2021). Transformers can do bayesian inference. arXiv preprint arXiv:2112.10510.
Teerapittayanon, S., McDaniel, B., and Kung, H.-T. (2016). Branchynet: Fast inference via early exiting from deep neural networks. In 2016 23rd international conference on pattern recognition (ICPR), pages 2464–2469. IEEE.
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., and Polosukhin, I. (2017). Attention is all you need. Advances in neural information processing systems, 30.
Xin, J., Tang, R., Lee, J., Yu, Y., and Lin, J. (2020). Deebert: Dynamic early exiting for accelerating bert inference. In Proceedings of the 58th annual meeting of the association for computational linguistics, pages 2246–2251.
Zhang, L., Song, J., Gao, A., Chen, J., Bao, C., and Ma, K. (2019). Be your own teacher: Improve the performance of convolutional neural networks via self distillation. In 2019 IEEE/CVF International Conference on Computer Vision (ICCV), pages 3712–3721. IEEE.
Supplementary Materials
A EXPERIMENTAL SETUP
A.1 Implementation
Our code is available at https://anonymous.4open.science/r/ElTab--4684.
A.2 Hardware and Environment
All models were trained and evaluated on a single A100 GPU with 80GB memory, ensuring a consistent compute environment across runs. Datasets for each training run were independently sampled from the same prior, so results remain comparable across models in terms of data distribution.
B PROOFS
Proposition (Inference cost of ElTab). Consider an ElTab model with a layer template stack of blocks and a maximum depth of loops. The model predicts the labels of queries from a context , with rows in total, and stops after loops chosen to fit the inference budget. Denote the cost of this prediction by , the cost of one block on this input by , and the combined cost of the embedder and the decoder by . Then:
-
The cost grows linearly with the number of loops: .
-
If the embedder and decoder costs are negligible, stopping after loops costs a fraction of full depth: .
-
For hidden dimension , the template layer stack has parameters, independent of , , and .
-
With dense attention among the rows and feed-forward width proportional to , each block costs . Hence .
Proof. 1. We use induction on . Denote by the cost of prediction with blocks. For , the cost is that of an -looped model with a single block, namely . Now assume the claim holds for and add a -th block after the first blocks. In each of the loops, this block adds a cost of . Hence
- From Equation 8 we obtain
Since is negligible,
- Each transformer-based block has parameters, and the weights are shared across loops, so the loop count (and ) does not affect the parameter count. Therefore blocks yield parameters, independent of , , and .
Table 2: Characteristics of the 30 OpenML classification datasets, filtered for TabPFN limitations.
| Name | # Feat. | # Cat. | # Inst. | # Class. | # NaNs | Min. Class Size | OpenML ID |
|---|---|---|---|---|---|---|---|
| balance-scale | 5 | 1 | 625 | 3 | 0 | 49 | 11 |
| mfeat-fourier | 77 | 1 | 2000 | 10 | 0 | 200 | 14 |
| breast-w | 10 | 1 | 699 | 2 | 16 | 241 | 15 |
| mfeat-karhunen | 65 | 1 | 2000 | 10 | 0 | 200 | 16 |
| mfeat-morphological | 7 | 1 | 2000 | 10 | 0 | 200 | 18 |
| mfeat-zernike | 48 | 1 | 2000 | 10 | 0 | 200 | 22 |
| cmc | 10 | 8 | 1473 | 3 | 0 | 333 | 23 |
| credit-approval | 16 | 10 | 690 | 2 | 67 | 307 | 29 |
| credit-g | 21 | 14 | 1000 | 2 | 0 | 300 | 31 |
| diabetes | 9 | 1 | 768 | 2 | 0 | 268 | 37 |
| tic-tac-toe | 10 | 10 | 958 | 2 | 0 | 332 | 50 |
| vehicle | 19 | 1 | 846 | 4 | 0 | 199 | 54 |
| eucalyptus | 20 | 6 | 736 | 5 | 448 | 105 | 188 |
| analcatdata_authorship | 71 | 1 | 841 | 4 | 0 | 55 | 458 |
| analcatdata_dmft | 5 | 5 | 797 | 6 | 0 | 123 | 469 |
| pc4 | 38 | 1 | 1458 | 2 | 0 | 178 | 1049 |
| pc3 | 38 | 1 | 1563 | 2 | 0 | 160 | 1050 |
| kc2 | 22 | 1 | 522 | 2 | 0 | 107 | 1063 |
| pc1 | 22 | 1 | 1109 | 2 | 0 | 77 | 1068 |
| banknote-authentication | 5 | 1 | 1372 | 2 | 0 | 610 | 1462 |
| blood-transfusion-service-center | 5 | 1 | 748 | 2 | 0 | 178 | 1464 |
| ilpd | 11 | 2 | 583 | 2 | 0 | 167 | 1480 |
| qsar-biodeg | 42 | 1 | 1055 | 2 | 0 | 356 | 1494 |
| wdbc | 31 | 1 | 569 | 2 | 0 | 212 | 1510 |
| cylinder-bands | 40 | 22 | 540 | 2 | 999 | 228 | 6332 |
| dresses-sales | 13 | 12 | 500 | 2 | 835 | 210 | 23381 |
| MiceProtein | 82 | 5 | 1080 | 8 | 1396 | 105 | 40966 |
| car | 7 | 7 | 1728 | 4 | 0 | 65 | 40975 |
| steel-plates-fault | 28 | 1 | 1941 | 7 | 0 | 55 | 40982 |
| climate-model-simulation-crashes | 21 | 1 | 540 | 2 | 0 | 46 | 40994 |
- Dense attention among rows costs , and the projections and feed-forward layers cost , so . Assuming is dominated by , Equation 8 gives .
B.1 Datasets
For evaluation of our models, we considered the 30 datasets from the OpenML-CC18 benchmark suite Bischl et al. (2017) with at most 2,000 samples, 100 features, and 10 classes, following Hollmann et al. (2022) and Koch et al. (2025). Table 2 presents these datasets along with their characteristics.
B.2 Results Evaluation
Table B.2 presents the detailed AUC-ROC results for different depths of ElTab and TabPFN across all datasets. Table B.2 presents the detailed AUC-ROC results for all looped models and TabPFN across all datasets.
Table 3: Hyperparameters and architectural details of TabPFN, ElTab 3×6, and Looped 3×6.
| Hyperparameter | TabPFN | ElTab 3×6 | Looped 3×6 |
|---|---|---|---|
| Learning Rate | |||
| Dropout | 0.0 | 0.0 | 0.0 |
| Effective Batch Size | 64 | 64 | 64 |
| Microbatch Size | 8 | 8 | 8 |
| Microbatches per Epoch | 4672 | 4672 | 4672 |
| Optimizer Updates per Epoch | 584 | 584 | 584 |
| Aggregate k Gradients | 8 | 8 | 8 |
| Training Epochs | 200 | 200 | 200 |
| Embedding Size | 512 | 512 | 512 |
| FFN/Decoder Hidden Size | 1024 | 1024 | 1024 |
| Physical Transformer Layers | 12 | 3 | 3 |
| Core Repetitions | — | 6 | 6 |
| Maximum Effective Layer Applications | 12 | 18 | 18 |
| Number of Attention Heads | 4 | 4 | 4 |
| Recompute Attention | Attention only | Attention only | Attention only |
| Use AMP | False | False | False |
| Optimizer | AdamW | AdamW | AdamW |
| Parameter Count | 25.82M | 6.90M | 6.90M |
| One full 18-layer pass | |||
| Training Passes per Microbatch | One 12-layer pass | + one sampled shortcut pass | One 18-layer pass |
| Shortcut Depth Sampling | — | — | |
| Shortcut Effective Depths | — | — | |
| Full-Depth CE Weight | 1.0 | 1.0 | 1.0 |
| Shortcut CE Weight | — | 0.1 | — |
| Consistency/KL Weight | — | 0.1 | — |
| Distillation Temperature | — | 2.0 | — |
Mieszko Komisarczyk, Saurabh Mathur, Maurice Kraus, Sriraam Natarajan, Kristian Kersting Table 4: AUCROC on the 30 OpenML classification datasets for ElTab evaluated at inference depths 1–6, compared with TabPFN. Values are means over 5 splits with 95% Student-t confidence intervals. The best AUCROC (higher is better) in each row is bold. DID ElTab d=1 ElTab d=2 ElTab d=3 ElTab d=4 ElTab d=5 ElTab d=6 TabPFN 11 0.9781 ± 0.0078 0.9916 ± 0.0050 0.9946 ± 0.0048 0.9960 ± 0.0037 0.9965 ± 0.0031 0.9967 ± 0.0029 0.9974 ± 0.0021 14 0.9588 ± 0.0034 0.9703 ± 0.0037 0.9726 ± 0.0045 0.9730 ± 0.0040 0.9731 ± 0.0046 0.9731 ± 0.0044 0.9735 ± 0.0041 15 0.9923 ± 0.0010 0.9940 ± 0.0012 0.9944 ± 0.0010 0.9945 ± 0.0009 0.9946 ± 0.0008 0.9947 ± 0.0008 0.9942 ± 0.0009 16 0.9902 ± 0.0055 0.9962 ± 0.0020 0.9968 ± 0.0017 0.9970 ± 0.0015 0.9969 ± 0.0017 0.9967 ± 0.0017 0.9964 ± 0.0019 18 0.9531 ± 0.0061 0.9626 ± 0.0030 0.9631 ± 0.0036 0.9633 ± 0.0031 0.9634 ± 0.0028 0.9635 ± 0.0022 0.9629 ± 0.0033 22 0.9736 ± 0.0059 0.9805 ± 0.0026 0.9810 ± 0.0019 0.9818 ± 0.0018 0.9823 ± 0.0020 0.9823 ± 0.0023 0.9826 ± 0.0021 23 0.6968 ± 0.0123 0.7050 ± 0.0145 0.7038 ± 0.0156 0.7082 ± 0.0153 0.7093 ± 0.0147 0.7092 ± 0.0158 0.7114 ± 0.0145 29 0.9339 ± 0.0124 0.9352 ± 0.0109 0.9347 ± 0.0113 0.9350 ± 0.0120 0.9352 ± 0.0121 0.9349 ± 0.0119 0.9354 ± 0.0122 31 0.7894 ± 0.0086 0.7858 ± 0.0078 0.7881 ± 0.0057 0.7884 ± 0.0077 0.7881 ± 0.0089 0.7869 ± 0.0090 0.7896 ± 0.0074 37 0.8371 ± 0.0161 0.8334 ± 0.0188 0.8397 ± 0.0164 0.8413 ± 0.0166 0.8414 ± 0.0173 0.8415 ± 0.0173 0.8413 ± 0.0164 50 0.8385 ± 0.0146 0.8691 ± 0.0228 0.9320 ± 0.0215 0.9536 ± 0.0149 0.9804 ± 0.0089 0.9881 ± 0.0089 0.9751 ± 0.0094 54 0.9261 ± 0.0080 0.9420 ± 0.0070 0.9533 ± 0.0044 0.9574 ± 0.0036 0.9596 ± 0.0033 0.9605 ± 0.0034 0.9572 ± 0.0038 188 0.8971 ± 0.0088 0.9116 ± 0.0079 0.9146 ± 0.0107 0.9151 ± 0.0111 0.9157 ± 0.0108 0.9157 ± 0.0101 0.9148 ± 0.0111 458 0.9999 ± 0.0001 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 469 0.5837 ± 0.0084 0.5846 ± 0.0088 0.5834 ± 0.0164 0.5755 ± 0.0159 0.5742 ± 0.0161 0.5780 ± 0.0134 0.5755 ± 0.0109 1049 0.8926 ± 0.0107 0.9282 ± 0.0173 0.9293 ± 0.0143 0.9312 ± 0.0145 0.9321 ± 0.0152 0.9326 ± 0.0147 0.9331 ± 0.0183 1050 0.8263 ± 0.0347 0.8311 ± 0.0342 0.8306 ± 0.0342 0.8301 ± 0.0350 0.8306 ± 0.0348 0.8311 ± 0.0361 0.8238 ± 0.0278 1063 0.8243 ± 0.0426 0.8339 ± 0.0404 0.8353 ± 0.0415 0.8338 ± 0.0422 0.8347 ± 0.0432 0.8347 ± 0.0438 0.8340 ± 0.0420 1068 0.8246 ± 0.0377 0.8601 ± 0.0594 0.8755 ± 0.0533 0.8790 ± 0.0499 0.8758 ± 0.0497 0.8756 ± 0.0504 0.8716 ± 0.0548 1462 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1464 0.7579 ± 0.0156 0.7560 ± 0.0200 0.7557 ± 0.0185 0.7564 ± 0.0182 0.7578 ± 0.0179 0.7585 ± 0.0190 0.7564 ± 0.0217 1480 0.7264 ± 0.0445 0.7347 ± 0.0464 0.7383 ± 0.0417 0.7376 ± 0.0407 0.7392 ± 0.0403 0.7399 ± 0.0398 0.7389 ± 0.0447 1494 0.9237 ± 0.0131 0.9308 ± 0.0135 0.9320 ± 0.0144 0.9326 ± 0.0136 0.9326 ± 0.0139 0.9325 ± 0.0137 0.9339 ± 0.0135 1510 0.9964 ± 0.0044 0.9964 ± 0.0048 0.9964 ± 0.0047 0.9964 ± 0.0047 0.9962 ± 0.0048 0.9963 ± 0.0048 0.9965 ± 0.0040 6332 0.7935 ± 0.0289 0.7832 ± 0.0324 0.7800 ± 0.0337 0.7741 ± 0.0320 0.7743 ± 0.0321 0.7756 ± 0.0321 0.7815 ± 0.0274 23381 0.4930 ± 0.0704 0.5115 ± 0.0802 0.4978 ± 0.0706 0.5145 ± 0.0993 0.5125 ± 0.1030 0.5190 ± 0.1001 0.5092 ± 0.0954 40966 0.9994 ± 0.0004 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 40975 0.9768 ± 0.0122 0.9754 ± 0.0148 0.9740 ± 0.0157 0.9839 ± 0.0106 0.9853 ± 0.0109 0.9855 ± 0.0119 0.9874 ± 0.0081 40982 0.9453 ± 0.0168 0.9483 ± 0.0182 0.9484 ± 0.0174 0.9502 ± 0.0163 0.9503 ± 0.0163 0.9497 ± 0.0167 0.9553 ± 0.0132 40994 0.9168 ± 0.0165 0.9400 ± 0.0128 0.9430 ± 0.0093 0.9430 ± 0.0108 0.9419 ± 0.0083 0.9419 ± 0.0089 0.9411 ± 0.0090 Mean 0.8748 0.8830 0.8863 0.8881 0.8891 0.8898 0.8890 Table 5: AUCROC on the 30 OpenML classification datasets for fixed-depth looped models (3×1 to 3×6) compared with TabPFN. Values are means over 5 splits with 95% Student-t confidence intervals. The best AUCROC (higher is better) in each row is bold. DID Looped 3×1 Looped 3×2 Looped 3×3 Looped 3×4 Looped 3×5 Looped 3×6 TabPFN 11 0.9908 ± 0.0059 0.9940 ± 0.0043 0.9959 ± 0.0036 0.9964 ± 0.0034 0.9971 ± 0.0023 0.9976 ± 0.0027 0.9974 ± 0.0021 14 0.9676 ± 0.0036 0.9726 ± 0.0035 0.9729 ± 0.0045 0.9725 ± 0.0044 0.9730 ± 0.0046 0.9734 ± 0.0045 0.9735 ± 0.0041 15 0.9935 ± 0.0010 0.9945 ± 0.0009 0.9944 ± 0.0005 0.9942 ± 0.0008 0.9945 ± 0.0008 0.9945 ± 0.0008 0.9942 ± 0.0009 16 0.9943 ± 0.0030 0.9958 ± 0.0021 0.9961 ± 0.0019 0.9967 ± 0.0017 0.9967 ± 0.0017 0.9969 ± 0.0018 0.9964 ± 0.0019 18 0.9591 ± 0.0034 0.9634 ± 0.0034 0.9634 ± 0.0033 0.9630 ± 0.0025 0.9626 ± 0.0035 0.9634 ± 0.0026 0.9629 ± 0.0033 22 0.9759 ± 0.0052 0.9796 ± 0.0036 0.9813 ± 0.0022 0.9819 ± 0.0016 0.9819 ± 0.0013 0.9815 ± 0.0014 0.9826 ± 0.0021 23 0.7057 ± 0.0142 0.7084 ± 0.0147 0.7086 ± 0.0138 0.7100 ± 0.0126 0.7105 ± 0.0138 0.7093 ± 0.0133 0.7114 ± 0.0145 29 0.9339 ± 0.0115 0.9340 ± 0.0119 0.9352 ± 0.0134 0.9342 ± 0.0119 0.9344 ± 0.0123 0.9348 ± 0.0131 0.9354 ± 0.0122 31 0.7879 ± 0.0064 0.7880 ± 0.0074 0.7873 ± 0.0081 0.7863 ± 0.0080 0.7865 ± 0.0083 0.7862 ± 0.0087 0.7896 ± 0.0074 37 0.8311 ± 0.0188 0.8419 ± 0.0129 0.8426 ± 0.0167 0.8411 ± 0.0167 0.8424 ± 0.0157 0.8412 ± 0.0173 0.8413 ± 0.0164 50 0.8733 ± 0.0179 0.9311 ± 0.0139 0.9538 ± 0.0118 0.9727 ± 0.0092 0.9692 ± 0.0144 0.9904 ± 0.0073 0.9751 ± 0.0094 54 0.9395 ± 0.0080 0.9473 ± 0.0068 0.9530 ± 0.0056 0.9592 ± 0.0038 0.9600 ± 0.0037 0.9617 ± 0.0041 0.9572 ± 0.0038 188 0.9051 ± 0.0101 0.9133 ± 0.0092 0.9147 ± 0.0112 0.9136 ± 0.0100 0.9149 ± 0.0108 0.9149 ± 0.0105 0.9148 ± 0.0111 458 1.0000 ± 0.0001 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 469 0.5700 ± 0.0116 0.5722 ± 0.0189 0.5841 ± 0.0167 0.5820 ± 0.0150 0.5760 ± 0.0100 0.5719 ± 0.0130 0.5755 ± 0.0109 1049 0.9222 ± 0.0143 0.9299 ± 0.0139 0.9302 ± 0.0164 0.9310 ± 0.0167 0.9308 ± 0.0172 0.9314 ± 0.0180 0.9331 ± 0.0183 1050 0.8307 ± 0.0268 0.8316 ± 0.0330 0.8295 ± 0.0374 0.8292 ± 0.0348 0.8309 ± 0.0365 0.8320 ± 0.0368 0.8238 ± 0.0278 1063 0.8355 ± 0.0387 0.8308 ± 0.0382 0.8340 ± 0.0419 0.8327 ± 0.0400 0.8343 ± 0.0415 0.8350 ± 0.0416 0.8340 ± 0.0420 1068 0.8587 ± 0.0582 0.8806 ± 0.0560 0.8727 ± 0.0524 0.8734 ± 0.0497 0.8674 ± 0.0482 0.8722 ± 0.0487 0.8716 ± 0.0548 1462 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1464 0.7521 ± 0.0216 0.7558 ± 0.0167 0.7555 ± 0.0188 0.7579 ± 0.0180 0.7581 ± 0.0191 0.7594 ± 0.0192 0.7564 ± 0.0217 1480 0.7355 ± 0.0441 0.7366 ± 0.0364 0.7376 ± 0.0340 0.7382 ± 0.0351 0.7398 ± 0.0358 0.7406 ± 0.0359 0.7389 ± 0.0447 1494 0.9297 ± 0.0134 0.9325 ± 0.0153 0.9321 ± 0.0137 0.9317 ± 0.0134 0.9324 ± 0.0132 0.9325 ± 0.0138 0.9339 ± 0.0135 1510 0.9956 ± 0.0053 0.9963 ± 0.0048 0.9965 ± 0.0048 0.9965 ± 0.0046 0.9964 ± 0.0048 0.9966 ± 0.0046 0.9965 ± 0.0040 6332 0.7753 ± 0.0331 0.7729 ± 0.0280 0.7598 ± 0.0340 0.7609 ± 0.0316 0.7643 ± 0.0272 0.7687 ± 0.0296 0.7815 ± 0.0274 23381 0.4654 ± 0.0985 0.5101 ± 0.0819 0.5266 ± 0.1027 0.5204 ± 0.1110 0.5139 ± 0.0958 0.5207 ± 0.1031 0.5092 ± 0.0954 40966 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 1.0000 ± 0.0000 40975 0.9723 ± 0.0182 0.9768 ± 0.0133 0.9846 ± 0.0110 0.9798 ± 0.0130 0.9849 ± 0.0112 0.9846 ± 0.0106 0.9874 ± 0.0081 40982 0.9430 ± 0.0182 0.9480 ± 0.0177 0.9492 ± 0.0161 0.9504 ± 0.0169 0.9515 ± 0.0165 0.9504 ± 0.0157 0.9553 ± 0.0132 40994 0.9360 ± 0.0158 0.9372 ± 0.0142 0.9398 ± 0.0120 0.9389 ± 0.0097 0.9404 ± 0.0095 0.9393 ± 0.0080 0.9411 ± 0.0090 Mean 0.8793 0.8858 0.8877 0.8882 0.8882 0.8894 0.8890