Rethinking Reconstruction-based Graph-Level Anomaly Detection: Limitations and a Simple Remedy

Sunwoo Kim, Soo Yong Lee, Fanchen Bu, Shinhwan Kang, Kyungho Kim, Jaemin Yoo, Kijung Shin

Introduction

Graph-level Anomaly Detection (GLAD) is a critical task in domains ranging from bioinformatics (identifying toxic molecules) to social network analysis. The prevailing paradigm for GLAD involves Graph Autoencoders (Graph-AEs), which are trained to reconstruct "normal" graphs. The underlying assumption is that anomalous graphs, being out-of-distribution, will exhibit significantly higher reconstruction errors. However, this work identifies a fundamental flaw in this assumption: the "reconstruction flip."

The Reconstruction Flip Phenomenon

The authors demonstrate that anomalous graphs can sometimes yield lower reconstruction errors than the normal graphs used during training. This occurs when an anomaly possesses a primary structural pattern that is "cleaner" or more aligned with the model's learned "prototype" than the noisy training data. In such cases, the model reconstructs the anomaly more efficiently than the normal samples, causing traditional detectors to fail.

The reconstruction flip phenomenon: an unseen anomalous graph yields a lower reconstruction error (0.676) than the normal training graphs (0.706-0.710).

Furthermore, relying solely on the mean reconstruction error is insufficient. Two structurally distinct graphs may result in identical average errors, making them indistinguishable to standard methods that ignore the variance of the error distribution.

MUSE: Multifaceted Summarization of Reconstruction Errors

To address these limitations, the authors propose MUSE. Instead of reducing the reconstruction error to a single scalar mean, MUSE captures the "shape" of the error distribution to better distinguish structural characteristics.

  1. Training: A standard Graph-AE (e.g., using a GIN encoder) is trained on normal graphs to reconstruct both structure (adjacency matrix) and node features.
  2. Error Representation: The model generates a distribution of errors across all nodes and node pairs.
  3. Multifaceted Summaries: MUSE extracts statistical features—specifically the mean and standard deviation—from these distributions, creating a compact feature vector (e.g., a 4D vector).
  4. Detection: These multifaceted features are processed by a simple one-class classifier (an MLP autoencoder) to identify anomalies.

Experimental Results

MUSE was evaluated across 10 major benchmarks, including bioinformatics (DD, Protein) and chemical compounds (NCI1, AIDS). It achieved the best overall average ranking among 14 competing methods. Notably, on the NCI1 dataset, MUSE provided a 16.2% AUROC improvement over the leading specialized GLAD method.

The method also demonstrated high robustness to "training set contamination" and scalability. By employing edge sampling (MUSE-Sample), the computational complexity was reduced from $O(n^2)$ to $O(n)$, enabling the analysis of large-scale graphs like MalNetTiny without significant performance degradation.

Conclusion

By rethinking how reconstruction errors are interpreted, MUSE overcomes the "reconstruction flip" and provides a simple, effective, and scalable solution for graph-level anomaly detection. It highlights that the distribution of errors, rather than just the average, contains vital information for distinguishing anomalies from normal structural variations.

Summary updated

BibTeX
@inproceedings{kim2024rethinking,
  author = {Sunwoo Kim and Soo Yong Lee and Fanchen Bu and Shinhwan Kang and Kyungho Kim and Jaemin Yoo and Kijung Shin},
  title = {{Rethinking Reconstruction-based Graph-Level Anomaly Detection: Limitations and a Simple Remedy}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=e2INndPINB},
}
Figure