cs.LGSep 26, 2026

When Less Compute Is More: Adaptive Early Exit Improves Pretrained Outlier Detection

Authors: Tianyang Zhou, Leman Akoglu

Organizations: Carnegie Mellon University

Abstract

Pretrained tabular foundation models process every dataset at a fixed depth, with inference costs growing with dataset size. To address this, we present the first study of depth-adaptive early-exit for pretrained outlier detection models. While early-exit is typically motivated by efficiency, we uncover a surprising benefit: exiting at the optimal intermediate layer can also improve detection performance on diverse real-world benchmarks by 4.7-7.3% on average, consistent across three distinct foundation models. First, we investigate the factors driving these gains, and identify a key mechanism: context pollution, i.e., the presence of outliers among in-context samples. Our analysis reveals that nearby in-context samples exert increasing influence on query predictions at greater depths, consistent with a retrieval-based view of these models. In effect, early-exit alleviates the adverse effects of retrieving accurate-yet-polluted neighbors, with gains of 13-21% when context pollution matches the natural outlier rate. Motivated by these findings, we pretrain a plug-in router to select a dataset-specific exit layer, using query outlier labels as privileged information available only during router training. The router operates post hoc, leaving the base model parameters and prediction head unchanged. Experiments on three large real-world benchmarks show that, on clean context, the router recovers up to 45% of the oracle gain with up to 1.8x speedup across three pretrained backbones, with larger gains as context pollution increases.

Figures & tables

Appendix figures & tables21 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. FoMo X: Modular Explainability Signals for Outlier Detection Foundation Models

    Mar 18, 2026Simon Klüttermann, Tim Katzke, Phuong Huong Nguyen +1Interpretable Anomaly DetectionUnsupervised Anomaly Detection

  2. TabDPT-Turbo: Efficient In-Context Learning for Tabular Prediction

    Aug 2, 2026Rasa Hosseinzadeh, Alex Labach, Zexin Xue +3Tabular Foundation ModelsTabular ICL

  3. Test-Time Compute for Tabular Foundation Models: Mechanisms, Gains, and Limits

    Oct 8, 2026Kanghui Ning, Marin Biloš, James T. Wilson +5Tabular Foundation ModelsInference-Time Scaling