Beyond Individual Input for Deep Anomaly Detection on Tabular Data
Hugo Thimonier, Fabrice Popineau, Arpad Rimmel, Bich-Liên Doan
TL;DR
This work addresses tabular anomaly detection by introducing a reconstruction-based method that uses Non-Parametric Transformers (NPTs) to jointly model feature-feature and sample-sample dependencies. By processing masked feature reconstructions with a non-parametric inference pipeline that leverages the entire training set, the approach derives an anomaly score that reflects both inter-feature and inter-sample relations. The model achieves state-of-the-art results across 31 tabular datasets and is supported by ablation studies showing that combining both dependency types is crucial for performance; robustness to small training contamination is also demonstrated. While the method incurs higher computational costs due to its non-parametric nature, it offers a principled framework for exploiting rich dependency structures in tabular anomaly detection with strong empirical gains.
Abstract
Anomaly detection is vital in many domains, such as finance, healthcare, and cybersecurity. In this paper, we propose a novel deep anomaly detection method for tabular data that leverages Non-Parametric Transformers (NPTs), a model initially proposed for supervised tasks, to capture both feature-feature and sample-sample dependencies. In a reconstruction-based framework, we train an NPT to reconstruct masked features of normal samples. In a non-parametric fashion, we leverage the whole training set during inference and use the model's ability to reconstruct the masked features to generate an anomaly score. To the best of our knowledge, this is the first work to successfully combine feature-feature and sample-sample dependencies for anomaly detection on tabular datasets. Through extensive experiments on 31 benchmark tabular datasets, we demonstrate that our method achieves state-of-the-art performance, outperforming existing methods by 2.4% and 1.2% in terms of F1-score and AUROC, respectively. Our ablation study further proves that modeling both types of dependencies is crucial for anomaly detection on tabular data.
