Skip to main content
QUICK REVIEW

[Paper Review] Modelling graph dynamics in fraud detection with "Attention"

Susie Xi Rao, Clémence Lanfranchi|arXiv (Cornell University)|Apr 22, 2022
Advanced Graph Neural NetworksComputer Science5 citations
TL;DR

This paper proposes DyHGN, a dynamic heterogeneous graph neural network that integrates diachronic entity embeddings and heterogeneous graph attention mechanisms to model temporal and structural dynamics in fraud detection. It achieves state-of-the-art performance on real-world eBay datasets, particularly under uneven label distributions across time, and demonstrates the critical role of attention in capturing dynamic, heterogeneous graph patterns with improved explainability via Shapley values.

ABSTRACT

At online retail platforms, detecting fraudulent accounts and transactions is crucial to improve customer experience, minimize loss, and avoid unauthorized transactions. Despite the variety of different models for deep learning on graphs, few approaches have been proposed for dealing with graphs that are both heterogeneous and dynamic. In this paper, we propose DyHGN (Dynamic Heterogeneous Graph Neural Network) and its variants to capture both temporal and heterogeneous information. We first construct dynamic heterogeneous graphs from registration and transaction data from eBay. Then, we build models with diachronic entity embedding and heterogeneous graph transformer. We also use model explainability techniques to understand the behaviors of DyHGN-* models. Our findings reveal that modelling graph dynamics with heterogeneous inputs need to be conducted with "attention" depending on the data structure, distribution, and computation cost.

Motivation & Objective

  • To develop an end-to-end framework that models both structural and temporal dynamics in heterogeneous graphs for fraud detection in e-commerce platforms.
  • To address the challenge of detecting fraudulent accounts and transactions in dynamic, real-world transaction graphs with evolving node and edge relationships.
  • To evaluate the effectiveness of attention mechanisms in modeling dynamic, heterogeneous graph structures under varying data distributions and computational constraints.
  • To enhance model interpretability using Shapley values on graph-derived features for actionable business insights.

Proposed method

  • Construct dynamic heterogeneous graphs from eBay registration and transaction data, incorporating multiple node types (e.g., accounts, IP addresses, phone numbers) and temporal edges.
  • Implement DyHGN with diachronic entity embeddings using LSTM to capture evolving entity representations over time.
  • Integrate heterogeneous graph transformer (HGT) with self-attention to model dynamic relations across different node and edge types.
  • Extend DyHGN with variants: DyHGN-DE (diachronic embedding only) and DyHGN-DE-HGT (diachronic embedding + HGT) for ablation and performance comparison.
  • Use XGBoost with graph-derived features and Shapley values to explain model predictions and assess feature importance.
  • Benchmark DyHGN-* models against GAT and other GNNs on three real-world datasets: MassReg, xFraudTxn, and xFraudAccount.

Experimental results

Research questions

  • RQ1How does modeling dynamic, heterogeneous graph structures with attention improve fraud detection performance compared to static or homogeneous models?
  • RQ2What is the trade-off between model performance and computational cost when using attention-based mechanisms like HGT versus simpler models like GAT in dynamic graph settings?
  • RQ3How do uneven label distributions across time affect the performance of dynamic graph neural networks, and can DyHGN-* models mitigate this issue?
  • RQ4To what extent can attention mechanisms capture long-term dependencies in dynamic graphs with fluctuating risk patterns?
  • RQ5How effective are Shapley values in explaining graph-derived features and model decisions in fraud detection systems?

Key findings

  • DyHGN-* models outperform GAT and other GNNs in datasets with uneven label distributions across time, such as MassReg, where temporal patterns are critical.
  • In datasets with more evenly distributed labels (xFraudTxn, xFraudAccount), GAT significantly outperforms HGT-based models due to lower training cost and comparable performance.
  • The integration of diachronic entity embeddings enables the model to learn long-term dependencies from historical data, especially beneficial when risk patterns evolve over time.
  • Model explainability using Shapley values reveals that graph-derived features, particularly temporal and structural patterns, are key drivers of fraud prediction.
  • The largest DyHGN-* model takes 4–15 minutes per epoch, indicating scalability challenges; future work will focus on mini-batch training and distributed deployment for industrial-scale use.

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.