Skip to main content
QUICK REVIEW

[Paper Review] Fascinating Supervisory Signals and Where to Find Them: Deep Anomaly Detection with Scale Learning

Hongzuo Xu, Yijie Wang|arXiv (Cornell University)|May 25, 2023
Anomaly Detection Techniques and ApplicationsComputer Science6 citations
TL;DR

This paper proposes SLAD, a novel self-supervised anomaly detection method for tabular data that introduces 'scale'—the relationship between sub-vector dimensionality and representation size—as a data-driven supervisory signal. By training a model to learn the ranking of representations across varied subspaces via distribution alignment, SLAD captures high-level data regularities, achieving state-of-the-art performance on diverse tabular benchmarks, with significant AUC-ROC improvements over existing generative and contrastive methods.

ABSTRACT

Due to the unsupervised nature of anomaly detection, the key to fueling deep models is finding supervisory signals. Different from current reconstruction-guided generative models and transformation-based contrastive models, we devise novel data-driven supervision for tabular data by introducing a characteristic -- scale -- as data labels. By representing varied sub-vectors of data instances, we define scale as the relationship between the dimensionality of original sub-vectors and that of representations. Scales serve as labels attached to transformed representations, thus offering ample labeled data for neural network training. This paper further proposes a scale learning-based anomaly detection method. Supervised by the learning objective of scale distribution alignment, our approach learns the ranking of representations converted from varied subspaces of each data instance. Through this proxy task, our approach models inherent regularities and patterns within data, which well describes data "normality". Abnormal degrees of testing instances are obtained by measuring whether they fit these learned patterns. Extensive experiments show that our approach leads to significant improvement over state-of-the-art generative/contrastive anomaly detection methods.

Motivation & Objective

  • To address the challenge of designing effective supervisory signals for deep anomaly detection in tabular data, where traditional reconstruction or contrastive methods are less applicable.
  • To develop a new form of data-driven supervision that captures high-level structural patterns rather than low-level reconstruction errors.
  • To enable self-supervised learning in tabular data by introducing 'scale' as a learnable, intrinsic characteristic of data representations.
  • To improve anomaly detection performance by modeling data normality through relative ranking of representations across subspaces.

Proposed method

  • Introduces the concept of 'scale' in tabular data as the mathematical relationship between the dimensionality of a sub-vector and its representation size.
  • Creates supervisory signals by transforming random sub-vectors of each data instance into representations and labeling them with their corresponding scale values.
  • Defines scale learning as a distribution alignment task, where the model learns to rank representations according to their scale, focusing on relative ordering rather than absolute values.
  • Uses a distributional divergence-based loss function to optimize the alignment between predicted and true scale distributions across sub-vectors of each instance.
  • Employs a learnable transformation function (e.g., random affine or MLP) to generate diverse representations from sub-vectors, with feature weights to emphasize informative features.
  • Applies scale learning as a proxy task to learn data regularities, which are then used to infer anomaly scores during inference by measuring deviation from learned patterns.
Figure 1: A toy example of scales in tabular data. For a tabular data instance described by four features, sub-vectors with varied feature subspaces are randomly sampled from the original space and then transformed into $h$ -dimensional representations. Scale is computed as the mathematical relation
Figure 1: A toy example of scales in tabular data. For a tabular data instance described by four features, sub-vectors with varied feature subspaces are randomly sampled from the original space and then transformed into $h$ -dimensional representations. Scale is computed as the mathematical relation

Experimental results

Research questions

  • RQ1Can scale—defined as the relationship between sub-vector dimensionality and representation size—serve as a viable supervisory signal for self-supervised anomaly detection in tabular data?
  • RQ2How does scale learning, framed as a distribution alignment task, improve the modeling of data regularities compared to point-wise reconstruction or classification-based methods?
  • RQ3Does the proposed method outperform state-of-the-art generative and contrastive anomaly detection models on diverse tabular benchmarks?
  • RQ4How robust is the method to noisy or irrelevant sub-vectors during representation learning?

Key findings

  • SLAD achieves state-of-the-art performance on 10 diverse tabular datasets, significantly outperforming existing generative and contrastive methods.
  • On the Thyroid dataset, SLAD achieves an AUC-ROC of 0.995, with a 4.7% improvement over the ablation without feature weights.
  • The use of mean-squared error loss (w/ L_mse) yields better performance than cross-entropy (w/ L_ce), suggesting that quantitative scale labels are more effective than qualitative classification.
  • The distribution alignment-based scale learning approach outperforms canonical proxy tasks like classification and contrastive learning, with a 54.1% improvement on Waveform and 90.9% on Thrombin compared to cross-entropy ablation.
  • SLAD with random affine transformation (w/ T_Zero) performs better than MLP-based transformation on most datasets, indicating the effectiveness of simple, data-augmenting transformations.
  • On ultra-high-dimensional data like Thrombin, w/ T_Zero fails due to computational constraints, while SLAD maintains strong performance through low-dimensional feature weighting.
Figure 2: Overall framework of SLAD. For an original data instance $\mathbf{x}$ , SLAD first generates a group of $c$ sub-vectors $\{\mathbf{x}_{(\mathcal{S}_{i})}\}_{i=1}^{c}$ via random sampling, where $\mathbf{x}_{(\mathcal{S}_{i})}$ is the sub-vector of $\mathbf{x}$ on the subspace $\mathcal{S}_
Figure 2: Overall framework of SLAD. For an original data instance $\mathbf{x}$ , SLAD first generates a group of $c$ sub-vectors $\{\mathbf{x}_{(\mathcal{S}_{i})}\}_{i=1}^{c}$ via random sampling, where $\mathbf{x}_{(\mathcal{S}_{i})}$ is the sub-vector of $\mathbf{x}$ on the subspace $\mathcal{S}_

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.