From Zero to Hero: Advancing Zero-Shot Foundation Models for Tabular Outlier Detection

Xueying Ding, Haomin Wen, Simon Klüttermann, Leman Akoglu

Introduction

Outlier detection (OD) is a cornerstone of modern data science, underpinning critical applications ranging from financial fraud detection to medical diagnosis. Despite its ubiquity, deploying effective OD models in the real world is hindered by a fundamental "chicken-and-egg" problem: selecting the best algorithm and tuning its hyperparameters typically requires labeled examples of outliers. However, in practice, outliers are inherently rare, unlabeled, and constantly evolving.

This lack of ground truth creates a severe bottleneck known as unsupervised model selection. Practitioners are frequently forced to rely on "safe" default algorithms, such as Isolation Forests, even when these methods are suboptimal for the specific nuances of their data. While large language models (LLMs) have revolutionized text processing through zero-shot capabilities, tabular data has largely lagged behind. Enter OUTFORMER, a novel foundation model (FM) designed to act as an "algorithm-in-a-box," delivering high-quality outlier scores through a single forward pass without the need for task-specific training or hyperparameter tuning.

The OUTFORMER Architecture and Core Innovations

OUTFORMER builds upon the Prior-Fitted Network (PFN) framework, utilizing a 10-layer Transformer architecture with 45.1 million parameters optimized for in-context learning. By shifting the heavy lifting of model selection entirely to the pre-training phase, OUTFORMER enables truly plug-and-play deployment.

The model's success is driven by three core methodological innovations:

1. Mixed Synthetic Priors

Training foundation models on real-world tabular data is challenging because such data is scarce, heavily biased, and often lacks reliable outlier labels. Instead, OUTFORMER is pretrained entirely on a diverse library of synthetic data "priors." These include Gaussian Mixture Models (GMMs), Structural Causal Models (SCMs), and Copulas. By exposing the model to these mathematical constructs, OUTFORMER learns fundamental outlier "archetypes"—such as structural shifts in causal relationships or extreme values within complex distributions—allowing it to generalize to unseen real-world data.

2. Self-Evolving Curriculum (SEC)

A surprising insight from the development of OUTFORMER is that simply increasing the diversity of synthetic training data can actually degrade performance compared to training on simpler priors (like GMMs alone). Complex, difficult tasks can overwhelm the model's gradients.

To solve this, the authors implemented a Self-Evolving Curriculum using a multi-armed bandit framework to dynamically select training tasks. The bandit's reward function is based on the variance (dispersion) of point-wise losses. This mechanism effectively filters out "noisy" tasks where the model is merely guessing, as well as "solved" tasks where it has already achieved perfection. By prioritizing datasets with high loss dispersion, the curriculum ensures the model focuses on tasks that are "just right," keeping it in a state of continuous, productive learning.

3. In-Context Inference

At test time, OUTFORMER is completely frozen. It accepts a new, unlabeled dataset as its "context" and predicts outlier scores for test points in a single forward pass. To accommodate datasets that exceed its context window, the model employs ensembling techniques such as feature bagging and subsampling, ensuring scalability without sacrificing zero-shot convenience.

Massive-Scale Evaluation

To rigorously test OUTFORMER's generalization capabilities, the researchers evaluated it across an unprecedented scale of over 1,500 datasets:

  • ADBench: The standard OD benchmark comprising 57 datasets.
  • OddBench (New): 690 real-world datasets curated from "Tablib," specifically filtered for semantic anomalies (e.g., data explicitly labeled with keywords like "fraud" or "failure").
  • OvRBench (New): 756 datasets repurposed from traditional classification tasks using a "one-vs-rest" methodology.
  • SynBench: 800 synthetic datasets utilized to verify in-distribution performance.

Key Results

OUTFORMER's performance across these benchmarks establishes a new standard for tabular outlier detection:

  • State-of-the-Art Accuracy: OUTFORMER achieved the top rank on the prominent ADBench, outperforming 30 competing methods, including deep learning models and the previous pioneering foundation model, FOMO-0D.
  • Unmatched AUPRC: When evaluated using the Area Under the Precision-Recall Curve (AUPRC)—a metric highly relevant for heavily imbalanced outlier tasks—OUTFORMER significantly outperformed all baselines.
  • Consistency at Scale: Across the massive 1,500+ dataset testbed, the model maintained a top-tier average rank, demonstrating remarkable robustness across vastly different data domains.
  • Inference Speed: Despite being a deep Transformer, OUTFORMER's inference is exceptionally fast. Because it bypasses the traditional training and hyperparameter tuning phases entirely, its total time-to-solution is significantly shorter than many deep OD baselines and even optimized shallow models.

Limitations and Future Directions

While OUTFORMER represents a massive leap forward, the authors note a few areas for future improvement:

  • Context Window Constraints: Like all Transformer-based models, OUTFORMER has a finite context size (currently limited to 5,000 points and 100 dimensions). While ensembling mitigates this, developing native support for larger scales remains a priority.
  • Categorical Data Handling: The model currently generalizes well to categorical data by treating one-hot encodings as numerical values. However, integrating dedicated categorical priors could further enhance performance.
  • Attention Complexity: OUTFORMER currently utilizes 1D (sample-to-sample) attention. Transitioning to 2D attention (both sample-to-sample and feature-to-feature) could allow the model to capture even more complex inter-feature dependencies, mirroring the evolutionary steps seen in models like TabPFN.

Conclusion

OUTFORMER successfully demonstrates that zero-shot foundation models are the future of tabular outlier detection. By combining mixed synthetic priors with a self-evolving curriculum, it eliminates the need for unsupervised model selection, offering practitioners a fast, highly accurate, and truly plug-and-play solution for identifying anomalies in the wild.

Summary updated

BibTeX
@inproceedings{ding2026from,
  author = {Xueying Ding and Haomin Wen and Simon Klüttermann and Leman Akoglu},
  title = {{From Zero to Hero: Advancing Zero-Shot Foundation Models for Tabular Outlier Detection}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=wjpdXrHxUi},
}
Figure