NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Data Augmentation for Supervised Graph Outlier Detection via Latent Diffusion Models

Kay Liu, Hengrui Zhang, Ziqing Hu, Fangxin Wang, Philip S. Yu

TL;DR

This paper introduces GODM, a novel data augmentation technique for supervised graph outlier detection that tackles the critical issue of class imbalance. By leveraging latent diffusion models, GODM synthesizes realistic outlier data to improve the performance of outlier detection algorithms, offering a significant advancement in this challenging domain.

What Problem Does This Paper Address?

Supervised graph outlier detection aims to identify anomalous nodes or patterns within graph-structured data. A major hurdle in this field is class imbalance, where the number of normal instances (inliers) vastly outnumbers the anomalous ones (outliers). This imbalance can lead to biased training and suboptimal performance in outlier detection models, as they tend to favor the majority class. Traditional methods like upsampling or downsampling have limitations, such as overfitting or data loss. While generative models, particularly diffusion models, have shown great success in image synthesis, their application to graph outlier detection, especially for imbalanced datasets, remains underexplored. The authors aim to bridge this gap by proposing a method that effectively generates synthetic outlier data to balance the training distribution.

Methods

The core of the proposed method, GODM (Graph Outlier detection via latent Diffusion Models), involves a two-stage process:

  1. Variational Autoencoder (VAE) and Graph Generator: To handle the inherent heterogeneity of graph data (node features, edges, temporal information, edge types), a GNN-based Variational Encoder maps this information into a unified latent space. A Graph Generator then reconstructs graph data from this latent representation. This stage is trained to reconstruct the original graph's features, structure, edge types, and timestamps.
  2. Latent Diffusion Model: Instead of performing diffusion directly in the complex graph space, GODM applies it in the learned latent space. This significantly improves efficiency and scalability. The diffusion model is trained to denoise latent representations, conditioned on class labels, to generate synthetic outlier embeddings.

Key innovations include:

  • Latent Space Diffusion: Applying diffusion models in a learned latent space for efficiency and scalability.
  • Heterogeneous Graph Handling: Using a GNN-based Variational Encoder to unify diverse graph information.
  • Conditional Generation: Explicitly conditioning the generation process on outlier labels.
  • Scalability Techniques: Employing negative sampling and graph clustering to handle large graphs efficiently.

Datasets

The authors evaluate GODM on five datasets:

  • Weibo: A homogeneous static graph of users and hashtags.
  • Tolokers: A homogeneous static graph from a crowdsourcing platform.
  • Questions: A homogeneous static graph from a question-answering platform.
  • Elliptic: A homogeneous static graph representing Bitcoin transactions.
  • DGraph: A heterogeneous temporal graph representing financial transactions.

These datasets vary in scale and complexity, with DGraph being a large-scale heterogeneous temporal graph.

Key Insights and Ideas

  • Latent Diffusion is Key for Graphs: Applying diffusion models in a latent space, rather than directly on the graph structure, is crucial for handling the complexity and scalability challenges of graph data.
  • Heterogeneity is a Major Hurdle: Graph data is inherently diverse. Effectively encoding and generating this diverse information (features, edges, types, time) is essential for realistic synthetic data.
  • Synthetic Outliers are Powerful: Generating realistic synthetic outliers can significantly boost the performance of graph outlier detection models, especially in highly imbalanced scenarios.
  • Modularity Matters: GODM is designed to be model-agnostic, meaning it can be integrated with various downstream graph outlier detectors, offering flexibility to researchers.

Key Results

  • Performance Improvement: GODM consistently improves the performance of various graph outlier detection algorithms across multiple datasets, achieving state-of-the-art results on several benchmarks. For instance, on the Weibo dataset, GODM achieved an AUC of 99.57, and on Elliptic, it enhanced Recall by over 20% compared to the next best method.
  • Generation Quality: Qualitative analysis (Figure 3) shows that GODM-generated node features and edge types closely resemble real data distributions, outperforming GOVAE, which tends to produce simpler, Gaussian-like distributions.
  • Efficiency: Techniques like graph clustering and negative sampling significantly reduce training time and memory consumption, making GODM scalable to large graphs. For example, graph clustering reduced GPU memory usage by over 30x on DGraph.

Limitations and Future Work

Limitations: * The paper notes that for DCI and GAS, GODM showed a minor decrease in performance, which might be attributed to suboptimal hyperparameter settings for those specific algorithms or datasets.

Future Work: * Diffusion in Graph Space: Exploring direct diffusion in graph space for potentially better capture of complex structures, especially for heterogeneous graphs. * Integrated Training: Developing a unified training framework that integrates supervision signals from both the generation and downstream outlier detection tasks (e.g., using self-training). * Enhanced Generative Models: Investigating more expressive denoising functions (e.g., transformers) or alternative generative models (e.g., energy-based models, normalizing flows) to further improve generation capabilities.

Summary updated

BibTeX
@inproceedings{liu2024data,
  author = {Kay Liu and Hengrui Zhang and Ziqing Hu and Fangxin Wang and Philip S. Yu},
  title = {{Data Augmentation for Supervised Graph Outlier Detection via Latent Diffusion Models}},
  booktitle = {LoG},
  year = {2024},
  url = {https://openreview.net/forum?id=i6lhW7s5hg},
}
Figure