Deep Orthogonal Hypersphere Compression for Anomaly Detection

Yunhe Zhang, Yan Sun, Jinyu Cai, Jicong Fan

TL;DR

This paper introduces two novel deep learning methods, DOHSC and DO2HSC, for anomaly detection. They improve upon existing hypersphere-based methods by using orthogonal projection to create more compact and accurate decision boundaries, particularly in high-dimensional data. These methods are also extended to graph-level anomaly detection, achieving state-of-the-art results across various datasets.

What Problem Does This Paper Address?

Anomaly detection is crucial for identifying unusual patterns in data, with applications ranging from fraud detection to medical diagnosis. Many effective anomaly detection methods assume that normal data forms a hypersphere-shaped decision boundary. However, in high-dimensional spaces, this assumption faces challenges:

  • Inconsistent Boundaries: Standard optimization methods can result in hyperellipsoidal or irregular boundaries, deviating from the assumed hypersphere and reducing accuracy.
  • "Soap-Bubble" Phenomenon: In high dimensions, normal data points tend to be far from the center of the hypersphere, leaving the central region unsupported and potentially misclassifying anomalies as normal.
  • Incompactness: High dimensionality and limited training data lead to sparse distributions within the hypersphere, increasing the risk of false negatives.

These limitations hinder the effectiveness of traditional hypersphere-based anomaly detection, especially in complex, high-dimensional scenarios like graph data.

Methods

The paper proposes two main methods:

  • Deep Orthogonal Hypersphere Contraction (DOHSC):
    • Orthogonal Projection Layer: A novel layer is introduced that projects the learned latent representations onto an orthogonal basis. This ensures that the features have consistent variances and are uncorrelated, leading to a more spherical decision boundary that aligns better with the hypersphere assumption.
  • Hypersphere Contraction: The optimization objective is modified to encourage the learned representations to be closer to the hypersphere center, effectively "contracting" the decision region.
  • Deep Orthogonal Bi-Hypersphere Compression (DO2HSC):
    • Bi-Hypersphere Compression: This method addresses the "soap-bubble" phenomenon and incompactness by defining the decision region as an interval between two co-centered hyperspheres (a hyperspherical shell). This creates a more compact and robust decision area.
  • Novel Anomaly Score: A new scoring function is introduced that leverages the bi-hypersphere structure to better distinguish anomalies.

Both methods utilize an auto-encoder for representation learning and an orthogonal projection layer. The techniques are also extended to graph-level anomaly detection by integrating them with graph representation learning methods like Graph Isomorphism Networks (GIN) and maximizing mutual information between local and global graph features.

Datasets

The methods were evaluated on a variety of datasets:

  • Image Data: Fashion-MNIST, CIFAR-10.
  • Tabular Data: Thyroid, Arrhythmia.
  • Graph Data: COLLAB, COX2, ER_MD, MUTAG, DD, IMDB-Binary.

The paper also mentions using simulated data (high-dimensional Gaussian distributions) to demonstrate theoretical concepts.

Key Insights and Ideas

  • Orthogonal Projection is Key: The orthogonal projection layer is crucial for achieving a more spherical decision boundary and overcoming issues related to feature variance and correlation, which standard optimization alone cannot fix.
  • Bi-Hypersphere for High Dimensions: The "soap-bubble" phenomenon in high-dimensional spaces necessitates a more sophisticated boundary than a single hypersphere. A bi-hypersphere (shell) effectively addresses this by creating a compact region that better captures the distribution of normal data.
  • Graph Anomaly Detection Benefits: Extending these hypersphere compression techniques to graph-level anomaly detection, combined with mutual information maximization, significantly improves performance on complex graph structures.
  • End-to-End Learning: The proposed methods offer an end-to-end approach, integrating representation learning and anomaly detection, which is more effective than traditional two-stage methods.

Key Results

  • Image Data: DOHSC and DO2HSC outperformed state-of-the-art methods on CIFAR-10, with DO2HSC showing superior performance.
  • Tabular Data: The proposed methods achieved significantly better F1-scores compared to baselines on Thyroid and Arrhythmia datasets.
  • Graph Data: DOHSC and DO2HSC achieved state-of-the-art AUC scores across all tested graph datasets, with DO2HSC consistently outperforming DOHSC. For example, on ER_MD Class 1, DO2HSC showed a large improvement (over 20%) compared to DOHSC.
  • Robustness: The models demonstrated good robustness to parameter variations and noise.

Limitations and Future Work

  • Multi-Class Normal Data: The current work focuses on one-class anomaly detection. The authors acknowledge that extending the methods to handle multiple classes of normal data is a potential future direction.
  • Computational Cost: While the methods are scalable, graph-level extensions can be computationally intensive, especially with large graphs.
  • Hyperparameter Tuning: While the models show robustness, optimal performance may still require careful tuning of hyperparameters like the percentile settings for DO2HSC.

Summary updated

BibTeX
@inproceedings{zhang2024deep,
  author = {Yunhe Zhang and Yan Sun and Jinyu Cai and Jicong Fan},
  title = {{Deep Orthogonal Hypersphere Compression for Anomaly Detection}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=PnXBG6XxKL},
}
Figure