Research
From Zero to Hero: Advancing Zero-Shot Foundation Models for Tabular Outlier Detection
Overview Research area: Machine learning — specifically tabular outlier detection (OD) using foundation models, prior-fitted networks, and in-context learning. Technical level: Intermediate to Advance
- arXiv
- 2602.03018
- Published
- 2026-02-03
- Authors
- Xueying Ding, Haomin Wen, Simon Klüttermann, Leman Akoglu
AI summary
Overview
Research area: Machine learning — specifically tabular outlier detection (OD) using foundation models, prior-fitted networks, and in-context learning.
Technical level: Intermediate to Advanced. It assumes familiarity with outlier detection, Transformer architectures, in-context learning, and Bayesian prior-predictive ideas, though the core ideas are explained in accessible terms.
Scope: The paper introduces OutFormer, a zero-shot foundation model for tabular outlier detection that is pretrained only on synthetic data and labels new datasets in a single forward pass, evaluated on ADBench plus two newly released large-scale benchmarks.
What This Paper Is About
Outlier detection is hard to deploy in practice because labeled outliers are scarce, which makes choosing an algorithm and tuning its hyperparameters nearly impossible to do well. Foundation models sidestep this by learning from many synthetic labeled tasks and then solving a new task through in-context learning — no training, no tuning. The paper builds on FoMo-0D (Shen et al., 2025), the first such foundation model for OD, and improves it with a richer set of synthetic data priors and an adaptive training curriculum.
Key Contributions
- A new foundation model for tabular OD (OutFormer). Given unlabeled in-context samples, OutFormer assigns labels to test points via a forward pass only, eliminating both model training and bespoke unsupervised model selection (method choice and hyperparameters) when no labeled outliers exist.
- A mixture of synthetic priors for tabular data. The authors construct novel families of prior distributions for inliers and outliers spanning Gaussian Mixture Models (GMMs), Structural Causal Models (SCMs), and Copulas, yielding diverse outlier archetypes.
- A self-evolving curriculum (SEC) for mixed-prior training. After finding that naïve mixed-prior training — even though it subsumes the GMM prior — underperforms GMM-only training, the authors adopt a multi-armed bandit curriculum in which heterogeneous data categories (by generating prior and dimensionality) are separate arms, requiring no manual specification of dataset order.
- State-of-the-art results with low latency, plus two new benchmarks. OutFormer is evaluated against shallow, deep, and foundation-model baselines on ADBench and two new large-scale OD benchmarks released with the paper (OddBench with 690 datasets and OvRBench with 756 datasets, 1446 combined), totaling over 1,500 datasets across all three real-world benchmarks.
Main Findings
- ADBench leadership: OutFormer achieves the best average rank (4.02 ± 2.6, versus 4.74 ± 3.1 for TabPFN-OD and 6.00 ± 3.4 for FoMo-0D), the highest ELO (1235), the highest Winrate (0.71), and the highest rAUC (0.956 ± 0.06) on ADBench. It also attains the lowest Champion delta (C_Δ) at 0.32. It beats all baselines including FoMo-0D and the previously reported SOTA DTE-NP.
- Merged 1500+ dataset results: Across all three real-world benchmarks, OutFormer reaches state-of-the-art performance with average rank 5.06 ± 3.3, ELO 1209, Winrate 0.60, rAUC 0.903 ± 0.12, and C_Δ 0.32. Under AUROC it ties with DTE-NP (p = 0.63), kNN (p = 0.09), and TabPFN-OD (p = 0.21); under AUPRC the paper reports OutFormer significantly outperforming all baselines (p ≤ 0.00).
- Mixed priors are complementary and nontrivial: A model trained on a single prior generalizes far better within that prior than across priors — for example, training on GMM yields 0.941 AUROC on GMM test data but 0.862 on Copula-Depend., 0.902 on Copula-Prob., 0.979 on SCM-Struct., and 0.965 on SCM-Measure. Established baselines do not trivially solve these distributions: kNN (averaged over k ∈ {5, 10, 20, 50}) scores 0.849/0.890/0.980/0.965/0.864 and Isolation Forest with default hyperparameters scores 0.677/0.776/0.964/0.947/0.742 on the same five test priors.
- Naïve mixed-prior training hurts: Training on mixed priors without SEC drops GMM test performance from 0.941 (GMM-only) to 0.873, and drops ADBench from 0.920 to 0.898. Adding SEC lifts GMM to 0.930, mixed-prior test performance to 0.968, and ADBench to 0.926 — all above the GMM-only baseline.
- The curriculum matters: SEC (average rank 2.30, ELO 1115, rAUC 0.967 on ADBench, and 0.967 AUROC on SynBench) outperforms SPL (2.72, 1094, 0.963, 0.963), Manual1 (3.49, 996, 0.942, 0.941), Manual2 (3.37, 1026, 0.945, 0.945), Naïve (3.53, 1062, 0.943, 0.930), and AC (5.44, 705, 0.737, 0.912).
- Component ablation: OutFormer (3.55 average rank, ELO 1122, Winrate 0.59, rAUC 0.935, C_Δ 0.23) surpasses all FoMo-0D variants: FoMo-0D (L4, GMM) at 5.01/946/0.40/0.876/0.35, FoMo-0D (L4, Mix.) at 5.38/746/0.35/0.864/0.37, and FoMo-0D (L4, Mix. w. SEC) at 4.78/1034/0.43/0.891/0.33. Removing ensembling (4.19/1065/0.50/0.917/0.29) or SEC (3.65/954/0.56/0.922/0.24) both degrade performance.
- Speed: OutFormer maintains speedy inference by bypassing any model training or selection, maintaining competitive total time (train and inference) quantiles (q10, q90) across all 1500+ datasets.
Methodology in Plain English
The researchers pretrain a Transformer-based Prior-Fitted Network on many synthetic outlier-detection tasks and then freeze it. At test time, a new dataset's training data (all clean inliers) is fed in as context, and the model directly outputs outlier probabilities for the test points. This makes inference zero-shot: a single forward pass with no gradient updates.
To generate realistic synthetic training data, the authors build three families of distributions for "normal" points — Gaussian Mixture Models, Structural Causal Models (which encode causal relationships between variables), and Copulas (which separate each feature's marginal distribution from the dependence between features) — and then inject five kinds of outliers: contextual subspace outliers (inflated variance along some dimensions), measurement outliers (exogenous noise propagating through causal structure), structural outliers (broken or reversed causal edges), probabilistic outliers (copula coordinates pushed to the boundaries), and dependence outliers (copula coordinates inverted or permuted).
Because naïvely mixing all these priors made the model worse than training on GMMs alone, the authors treat each (prior, dimensionality bin) pair as an arm in a non-stationary multi-armed bandit. Arms are sampled with probability proportional to temperature-scaled weights, and each category's reward is set to the variance of its point-wise centered cross-entropy losses — the formula r(c) = (1/n_c) r_i² = (1/n_c)(l_i − mean({l_1, …, l_{n_c}}))². This prioritizes datasets with highly dispersed and confident per-point losses while downweighting datasets that are too easy, too hard, or dominated by data uncertainty. Gradients are backpropagated only through points meeting a time-varying loss threshold set by a pace scheduler. At inference, scores are ensembled over 50 randomly subsampled context points and dimensions, which handles datasets larger than the model's context while also helping on smaller ones.
The model itself is a 10-layer Transformer with 512 hidden dimensions, 8 attention heads, and a linear input embedding layer — 45.1M parameters in total. It is trained on 4 NVIDIA RTX A6000 GPUs for 1,500 batches of 1K synthetic datasets each. Each dataset has up to 5K inliers as context and 10K query points with an equal number of inliers and outliers, with up to 100 dimensions. Evaluation uses five relative metrics (average rank, ELO, Winrate, rescaled AUROC, and Champion delta) plus pairwise permutation tests, since averaging raw performance across hundreds of varying datasets is not meaningful.
Why This Matters
Impact on research. The paper shows that a foundation model pretrained purely on synthetic data can reach state-of-the-art tabular outlier detection without any real outlier labels, and that careful data-prior design and training curricula are both necessary — naïve scaling of the prior mixture actively degrades performance. It also contributes a large-scale empirical testbed.
Real-world applications (domains named in the paper and its benchmark metadata):
- Finance, where the paper's benchmark metadata flags semantic anomalies such as "fraud."
- Security, where unusual activity needs to be flagged without historical labels.
- Medicine, where patient records or measurements deviate from normal patterns.
- Industrial and operational monitoring, where Tablib metadata labels anomalies as "failure" and "defect."
Industry relevance. Practitioners deploying outlier detection currently must choose among many algorithms and tune hyperparameters without any labeled outliers to guide them. A zero-shot model that requires no training or model selection turns deployment into a plug-and-play forward pass, and the paper reports this comes with competitive latency. The authors open-source the checkpoints, the synthetic prior generators, the two new benchmarks (1446 datasets), and individual dataset performances.
Future Directions
- Extending and diversifying the prior mixture. The paper notes that individual priors generalize well within their own family but transfer imperfectly across families; finding additional complementary priors that close these gaps is a natural extension.
- Handling data uncertainty. The reward function deliberately downweights datasets whose points sit near 0.5 class probability, because that reflects inherent ambiguity rather than model uncertainty — an open question is how to treat such tasks, which cannot be resolved by more training data.
- Scaling with context limits. Ensembling over 50 subsampled contexts and dimensions is used to cope with large n and large d; more principled ways of handling datasets that exceed the model's context size remain open.
- Broadening the benchmark comparison. Results on the merged 1500+ dataset AUROC evaluation tie with several baselines rather than strictly winning, so understanding where OutFormer loses (the reported Win/Lose/Tie figures on ADBench are 0.71/0.26/0.19 in Winrate/Lose/Tie terms for the primary ADBench table) is a further avenue.
Target Audience
Researchers and practitioners in machine learning, data mining, and applied anomaly/outlier detection who are interested in foundation models for tabular data, in-context learning, or synthetic pretraining. It is most useful to readers who already understand the basics of outlier detection and Transformer-based models, and to engineers looking for deployment-ready OD tooling that avoids model selection — though the contribution sections and main results tables are readable by a broader technical audience.
Authors’ abstract
Outlier detection (OD) is widely used in practice; but its effective deployment on new tasks is hindered by lack of labeled outliers, which makes algorithm and hyperparameter selection notoriously hard. Foundation models (FMs) have transformed ML, and OD is no exception: Shen et. al. (2025) introduced FoMo-0D, the first FM for OD, achieving remarkable performance against numerous baselines. This work introduces OUTFORMER, which advances FoMo-0D with (1) a mixture of synthetic priors and (2) self-evolving curriculum training. OUTFORMER is pretrained solely on synthetic labeled datasets and infers test labels of a new task by using its training data as in-context input. Inference is fast and zero-shot, requiring merely forward pass and no labeled outliers. Thanks to in-context learning, it requires zero additional work-no OD model training or bespoke model selection-enabling truly plug-and-play deployment. OUTFORMER achieves state-of-the-art performance on the prominent AdBench, as well as two new large-scale OD benchmarks that we introduce, comprising over 1,500 datasets, while maintaining speedy inference.