Towards Self-Interpretable Graph-Level Anomaly Detection

Yixin Liu, Kaize Ding, Qinghua Lu, Fuyi Li, Leo Yu Zhang, Shirui Pan

Introduction

Graph-Level Anomaly Detection (GLAD) is a critical task in modern data science, with applications ranging from identifying toxic molecules in drug discovery to detecting fraudulent financial networks and spotting pathogenic structures in brain connectivity maps. While deep learning models have achieved significant success in assigning anomaly scores to graphs, they often operate as "black boxes." In high-stakes domains, knowing that a graph is an outlier is insufficient; practitioners need to understand why a graph was flagged.

This paper introduces SIGNET (Self-Interpretable Graph aNomaly dETection), a framework presented at NeurIPS 2023. SIGNET is the first self-interpretable model for GLAD that jointly learns to score anomalies and extract "graph rationales"—the specific subgraphs responsible for the classification—without requiring any labeled training data.

The Interpretability Gap in GLAD

Existing approaches to graph interpretability typically rely on "post-hoc" explainers. These tools attempt to explain a pre-trained model's decisions after the fact. However, post-hoc methods often suffer from two major drawbacks: they can provide biased results that do not accurately reflect the model's internal logic, and they are frequently sub-optimal because the explanation mechanism was not part of the original learning process.

Furthermore, because anomalies are by definition rare and often unlabeled, training a model to explain itself in a purely unsupervised manner presents a significant technical hurdle. There are no ground-truth "explanation labels" to guide the model during training.

Methodology: The SIGNET Framework

To address these challenges, the authors propose the Multi-view Subgraph Information Bottleneck (MSIB) framework. SIGNET operates on the principle of finding a "bottleneck subgraph" that contains the most essential information for distinguishing a graph from the norm.

Dual Hypergraph Transformation (DHT)

Traditional graph contrastive learning often relies on random data augmentation, such as dropping edges or shuffling features. In the context of anomaly detection, these random changes can be unstable and may accidentally make a normal graph appear anomalous.

SIGNET introduces the Dual Hypergraph Transformation (DHT) to create a stable second "view" of the graph. In this dual view, the original edges are transformed into nodes, and the original nodes become hyperedges. This deterministic transformation forces the model to learn patterns from both node-centric and edge-centric perspectives simultaneously, preserving the structural essence of the graph while providing a distinct viewpoint for comparison.

Bottleneck Subgraph Extraction and Mutual Information

A single neural extractor is used to identify a "rationale"—a subset of nodes and edges—from both the original graph and its dual hypergraph. The model is then trained to maximize the mutual information (using an Info-NCE loss) between the bottleneck subgraphs of these two views.

By "squeezing" the graph through this bottleneck, the model is forced to discard superfluous noise and retain only the most discriminative substructures. This process ensures that the extracted rationale is the most informative part of the graph regarding its identity relative to the rest of the dataset.

Self-Interpretable Inference

During the testing phase, SIGNET performs two simultaneous functions:

  1. Scoring: The model measures the "agreement" between the two views. Anomalous graphs, which deviate from the learned structural patterns, result in lower mutual information and, consequently, a higher anomaly score.
  2. Explaining: The extracted bottleneck subgraph is used directly as the explanation. Because this rationale was used to calculate the anomaly score, the explanation is inherently faithful to the model's logic.

Experimental Evaluation

The authors evaluated SIGNET across 16 diverse datasets to test both its explanatory accuracy and its detection power:

  • Explainable GLAD Datasets: This included three synthetic benchmarks (BM-MT, BM-MN, BM-MS) where specific motifs (e.g., "house" vs. "cycle" shapes) define anomalies, and three real-world datasets (MNIST-0, MNIST-1, and MUTAG) with known ground-truth explanations.
  • TU Datasets: Ten standard benchmarks (including PROTEINS, ENZYMES, and REDDIT-BINARY) were used to evaluate raw detection performance.

Key Results

  • State-of-the-Art Explanations: SIGNET significantly outperformed existing baselines in explanation accuracy, achieving an average improvement of 27.89% in node-level AUC and 8.99% in edge-level AUC.
  • Robust Detection: Despite the added constraint of self-interpretation, SIGNET remained a top-tier detector. It outperformed or matched state-of-the-art black-box models on 10 out of 16 datasets, ranking first in average performance across all benchmarks.
  • Qualitative Success: Visualizations demonstrated that SIGNET effectively ignores "base" structures (like standard tree or ladder formations) and focuses specifically on the anomalous motifs that define the outlier status.

Conclusion and Future Work

SIGNET represents a significant step forward in making graph-level anomaly detection more transparent and reliable. By leveraging the Dual Hypergraph Transformation and the Information Bottleneck principle, it provides a unified framework for detection and explanation in an unsupervised setting.

Currently, SIGNET is designed for purely unsupervised scenarios. Future research directions include extending the MSIB framework to semi-supervised settings—where a small amount of labeled data might be available—and optimizing the hypergraph transformations for extremely large-scale graph datasets.

Summary updated

BibTeX
@inproceedings{liu2023towards,
  author = {Yixin Liu and Kaize Ding and Qinghua Lu and Fuyi Li and Leo Yu Zhang and Shirui Pan},
  title = {{Towards Self-Interpretable Graph-Level Anomaly Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=SAzaC8f3cM},
}
Figure