Graph Neural Networks (GNNs) have become a cornerstone of modern fraud detection due to their ability to model complex relationships between entities like bank accounts, transactions, and user profiles. However, in high-stakes financial environments, a simple binary classification is rarely enough. Investigators require clear, actionable explanations to justify interventions and minimize the impact of false positives.
Presented at KDD '24, SEFraud addresses this "black box" problem. Developed by researchers from Huawei, Peking University, and ICBC, SEFraud is a self-explainable framework designed to provide both high-accuracy predictions and near-instantaneous explanations for its decisions.
The Challenge: Efficiency and Transparency
Existing GNN-based fraud detection systems face two primary hurdles in industrial deployment:
- The Black Box Problem: Standard GNNs aggregate information from multi-hop neighbors, making it difficult to trace which specific feature or connection led to a classification.
- The Efficiency Gap: Traditional explanation methods, such as GNNExplainer, are "post-hoc." They operate after the model has made a prediction, often requiring a separate, complex optimization process for every single instance. This can take seconds per node—far too slow for real-time banking systems processing thousands of transactions per second.
The SEFraud Framework
SEFraud moves the explanation mechanism from an external tool to a core component of the model architecture. By integrating mask learning directly into the training process, the model learns to identify the most discriminative "signals" while filtering out noise.
1. Heterogeneous Backbone
The model utilizes a customized Heterogeneous Graph Transformer (HGT) to process diverse data types. In a banking context, this includes various transaction types, ownership relations, and user profile attributes, allowing the model to capture the nuances of different entity interactions.
2. Interpretative Mask Learning
The core innovation lies in two dedicated sub-networks:
- FNet (Feature Mask): Learns to assign weights to individual node attributes, identifying which specific data points (e.g., account balance or loan status) are suspicious.
- ENet (Edge Mask): Learns to weight graph edges, highlighting the specific connections (e.g., a transfer to a known high-risk account) that triggered the alert.
3. Contrastive Triplet Loss
To ensure these masks are meaningful, SEFraud employs a novel contrastive triplet loss. This loss function forces the model to produce a correct prediction when using the "important" masked data, but a significantly different (incorrect) result if those masks are inverted. This ensures the masks capture the most relevant information for the final decision.
Experimental Evaluation and Impact
The researchers evaluated SEFraud on two fronts: detection performance on real-world datasets (Yelp, Amazon, and a large-scale ICBC financial dataset) and explanation quality on synthetic benchmarks (BA-Shapes, Tree-Cycles, etc.).
Key Results
- Superior Accuracy: SEFraud outperformed the previous state-of-the-art (xFraud) by 8.6% in AUC and 8.5% in Recall on the Yelp dataset.
- Unprecedented Speed: By generating explanations in a single forward pass, SEFraud is up to 1278x faster than GNNExplainer and roughly 10x faster than PGExplainer.
- Industrial Impact: In ICBC’s production environment, the model maintained a 97% AUC and a 0.98 recall rate, with an average inference time of just 0.4ms per node.
Conclusion
SEFraud demonstrates that explainability does not have to come at the cost of performance. By treating explanation as a form of regularization, the model avoids overfitting on noise and achieves better generalization. While future work may focus on identifying entire fraudulent subgraphs or motifs, SEFraud currently provides a robust blueprint for deploying trustworthy, real-time AI in high-stakes industrial applications.
Summary updated