Abstract
Tabular anomaly detection faces significant hurdles due to feature heterogeneity and the lack of spatial structure. We present PTAD (Prototype-oriented Tabular Anomaly Detection), a novel framework that combines learnable masking strategies with global prototype learning through Optimal Transport. By disentangling normal patterns from noise and capturing global feature correlations, PTAD achieves state-of-the-art performance across 20 diverse benchmarks, offering a more robust and efficient alternative to traditional reconstruction-based models.
Introduction
Tabular data is ubiquitous in databases but remains challenging for deep learning models. Unlike images or text, tabular features are often highly entangled and lack inherent spatial relationships. Most current anomaly detection (AD) methods utilize a reconstruction-based approach, training models to rebuild normal data under the assumption that they will fail to reconstruct anomalies. However, these models often suffer from representation entanglement—where normal and anomalous features mix in the latent space—and a lack of global context, failing to learn the shared patterns that define "normality" across an entire dataset.
Methodology: The PTAD Framework
PTAD addresses these issues using a Non-Parametric Transformer (NPT) backbone and introduces three key innovations designed to isolate normal data patterns.
Dual-Space Masking
PTAD employs a sophisticated masking strategy at two distinct levels:
- Data-Space Masking: A learnable "soft mask" filters raw input to eliminate redundant or noisy information.
- Projection-Space (P-space) Masking: The model projects data into a latent space and compares it against learnable orthogonal basis vectors (prototypes of normal features). If a feature deviates significantly from these bases, it is masked, forcing the model to reconstruct it using only the established "normal" context.
Prototype Learning and Optimal Transport
The model learns "Nominal Association Prototypes" to capture typical correlations between different features. Rather than using simple distance metrics, PTAD utilizes Optimal Transport (OT) to align the distribution of data samples with these prototypes. The calculated "transport cost" provides a highly sensitive indicator of abnormality, serving as a more reliable anomaly score than raw reconstruction error.
Experimental Results
PTAD was evaluated on 20 diverse tabular benchmarks spanning medical, financial, and cybersecurity domains, including datasets from the OOD library and ADBench.
As shown in the comparative analysis, PTAD outperformed existing state-of-the-art methods like MCM and NPT-AD on the majority of benchmarks. Significant performance gains were noted in specific datasets, such as an 8.12% improvement in AUC-PR for Optdigits. Beyond accuracy, PTAD demonstrated remarkable efficiency; its inference time on the Campaign dataset was recorded at 22.58ms, a massive reduction compared to the 30,904ms required by NPT-AD.
Conclusion
By integrating data-adaptive masking with global prototype alignment, PTAD effectively overcomes the limitations of traditional reconstruction-based anomaly detection. The use of orthogonal basis vectors and Optimal Transport allows for better feature disentanglement and a more precise definition of normal data boundaries. Future work will look toward extending this prototype-oriented approach to time-series and multi-modal anomaly detection tasks.
Summary updated