CaT-GNN: Enhancing Credit Card Fraud Detection via Causal Temporal Graph Neural Networks

Yifan Duan, Guibin Zhang, Shilong Wang, Xiaojiang Peng, Wang Ziqi, Junyuan Mao, Hao Wu, Xinke Jiang, Kun Wang

TL;DR

CaT-GNN (Causal Temporal Graph Neural Network) tackles credit card fraud by distinguishing between truly causal transaction features and deceptive environmental noise. By combining a temporal attention mechanism with a causal mixup intervention strategy, the model successfully bypasses fraudsters' camouflage tactics to achieve state-of-the-art detection accuracy with minimal computational overhead.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) have become the go-to tool for fraud detection because financial transactions naturally form interconnected networks. However, standard GNNs suffer from a critical flaw: they aggregate neighborhood information indiscriminately.

Smart fraudsters exploit this via feature camouflage—deliberately connecting with legitimate users or mimicking normal transaction patterns to blend in. When a standard GNN aggregates these mixed neighborhoods, the fraudulent signals get diluted. Existing models fail to capture the underlying causal relationships driving fraud, leading to poor generalization on unseen data and a lack of interpretability in their predictions.

Figure 2: Motivation. The original prediction incorrectly identifies a fraudster (central node labeled xi) as benign, as does the state-of- the-art GTAN model. Following our causal intervention, the predic- tion is correctly adjusted to identify xi as a fraudster. Green: benign users, red: fraudsters, gray: unlabeled nodes.

Methods

CaT-GNN introduces a two-stage framework—Discovery and Intervention—to implement a "backdoor adjustment" from causal inference theory, effectively neutralizing environmental confounding variables.

  1. Stage 1: Discover (Causal-Inspector): The model leverages a multi-head temporal attention mechanism to compute attention scores between a target node and its neighbors. Instead of introducing new parameters, it repurposes these attention weights to calculate a normalized importance score for each neighbor. The nodes are then split: the lowest-scoring nodes are categorized as environment nodes (potential noise or camouflage), while the rest are designated as causal nodes.
  2. Stage 2: Intervention (Causal-Intervener): Rather than simply discarding the environment nodes (which would destroy useful contextual data), the model performs a causal mixup. It mathematically blends the environmental nodes with the top-performing causal nodes using weights learned through a linear layer. This exposes the network to a wider, robust data distribution during training, breaking the spurious correlations created by fraudsters.
Overview of the CaT-GNN architecture, highlighting the Discovery and Intervention stages.

Datasets

The authors evaluated CaT-GNN on three distinct datasets:

  • S-FFSD: A semi-supervised financial fraud dataset containing real-world credit card transaction records. The first 7 months are used for training, and the remaining months serve as the test set.
  • YelpChi: A public fraud detection benchmark mapping hotel and restaurant reviews to detect opinion spam across three relation types.
  • Amazon: A public dataset mapping product reviews in the musical instruments category to identify fraudulent user behavior.

Key Insights and Ideas

  • Camouflage is a Confounding Problem: The paper elegantly frames fraudster camouflage as a causal confounding issue ($E \rightarrow Y$ and $C \leftarrow X \rightarrow E$). By treating neighborhood features as environmental context rather than absolute truth, the model avoids falling into correlation traps.
  • Don't Delete, Intervene: A common instinct for handling noisy graph data is pruning or filtering. The authors demonstrate that completely deleting environmental nodes (D-CaT) severely degrades performance because valuable structural context is lost. Causal mixup provides a superior alternative by regularizing the environmental representations instead.
  • Zero-Parameter Inspection: The Causal-Inspector identifies causal nodes purely by reusing the attention weights from the temporal GAT block. This design choice provides interpretability and structural filtering without adding parameter bloat.

Key Results

CaT-GNN consistently outperformed state-of-the-art baselines (including PC-GNN, CARE-GNN, and GTAN) across all metrics:

  • AUC Improvements: CaT-GNN achieved the highest Area Under the ROC Curve (AUC) across all datasets: 0.9035 on YelpChi, 0.9706 on Amazon, and 0.8281 on S-FFSD.
  • Macro F1-Score: On the highly complex, real-world S-FFSD dataset, CaT-GNN achieved an F1-macro score of 0.7211, significantly outperforming the next-best baseline (GTAN at 0.6714).
  • Efficiency: Despite the addition of the causal intervention stage, experimental runtimes showed only a marginal increase of 2.2% to 2.8% compared to non-intervention variants, proving the model is viable for large-scale deployment.

Limitations and Future Work

The authors note that while CaT-GNN excels at credit card fraud detection, its current formulation is tailored specifically to transaction graphs. Future work will focus on extending this causal temporal framework to a broader spectrum of financial crimes and anomalous behaviors across diverse financial systems globally.

Summary updated

Abstract

Credit card fraud poses a significant threat to the economy. While Graph Neural Network (GNN)-based fraud detection methods perform well, they often overlook the causal effect of a node's local structure on predictions. This paper introduces a novel method for credit card fraud detection, the \textbf{\underline{Ca}}usal \textbf{\underline{T}}emporal \textbf{\underline{G}}raph \textbf{\underline{N}}eural \textbf{N}etwork (CaT-GNN), which leverages causal invariant learning to reveal inherent correlations within transaction data. By decomposing the problem into discovery and intervention phases, CaT-GNN identifies causal nodes within the transaction graph and applies a causal mixup strategy to enhance the model's robustness and interpretability. CaT-GNN consists of two key components: Causal-Inspector and Causal-Intervener. The Causal-Inspector utilizes attention weights in the temporal attention mechanism to identify causal and environment nodes without introducing additional parameters. Subsequently, the Causal-Intervener performs a causal mixup enhancement on environment nodes based on the set of nodes. Evaluated on three datasets, including a private financial dataset and two public datasets, CaT-GNN demonstrates superior performance over existing state-of-the-art methods. Our findings highlight the potential of integrating causal reasoning with graph neural networks to improve fraud detection capabilities in financial transactions.
BibTeX
@misc{duan2024cat,
  author = {Yifan Duan and Guibin Zhang and Shilong Wang and Xiaojiang Peng and Wang Ziqi and Junyuan Mao and Hao Wu and Xinke Jiang and Kun Wang},
  title = {{CaT-GNN: Enhancing Credit Card Fraud Detection via Causal Temporal Graph Neural Networks}},
  year = {2024},
  eprint = {2402.14708},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.14708},
}
Figure