McGill University
Anomaly detection on tabular data via in-context Bayesian inference
Abstract
dc:description.abstractAnomaly detection on tabular data is a long-standing field where classical methods such as $k$-nearest neighbors and Isolation Forest remain strong baselines due to their robustness and simplicity. Recently, deep learning approaches for tabular anomaly detection have been explored, but they offer limited and inconsistent improvements over these traditional techniques. At the same time, Prior-Fitted Networks (PFNs), specifically TabPFN, have shown that large transformers trained on synthetic tasks can approximate Bayesian inference and achieve state-of-the-art performance on supervised tabular data using only in-context adaptation.Motivated by these developments, this thesis investigates whether PFN-based in-context Bayesian inference can be extended to tabular anomaly detection. We first introduce ADPFN, a PFN trained on large collections of synthetic one-class anomaly-detection tasks, and demonstrate that it achieves strong performance on ADBench, which contains 52 diverse tabular datasets spanning finance, medicine, cybersecurity, manufacturing, and other domains. Building on this foundation, we further propose ICLAD, a label-aware extension that incorporates mixed-supervision synthetic priors to unify unsupervised, one-class, and semi-supervised tabular anomaly detection within a single model. Through extensive experimentation, we show that PFN-based models offer competitive results over leading classical and deep anomaly detectors, particularly in one-class and semi-supervised regimes, without fine-tuning.Overall, this work positions PFNs as a promising foundation for tabular anomaly detection by reframing the task through in-context Bayesian inference. Under this new perspective, the proposed framework enables a flexible model that unifies inference across supervision regimes and motivates a new direction for more general tabular anomaly detection algorithms.
Degree
thesis:*- Name thesis:degree_name
- Master of Science
- Grantor dc:publisher
- McGill University
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Wei, Jack
- Advisor dc:contributor.advisor
-
- Armanfard, Narges
Subjects
dc:subject × 1Rights
dc:rights- Statement dc:rights
-
- All items in eScholarship@McGill are protected by copyright with all rights reserved unless otherwise indicated.
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- OCLC
- 1600267021
- Identifier URI
- https://hdl.handle.net/20.500.14905/140944