Manuscript Offprint

arXiv:2610.27107

RGH-GNN : Risk-Gated Heterogeneous Graph Neural Network for Financial Fraud Detection

Mythreyee Hari, Subin Sahayam, Vegesna S M Srinivasavarma

Abstract

Credit card fraud is a significant problem for financial institutions, resulting in substantial monetary loss each year. Fraud patterns and methods are continuously evolving, with fraudulent transactions often disguised to resemble legitimate activity. Real world transaction data for fraud detection is severely affected by class imbalance making it harder to detect these transactions. Fraudulent transactions are rarely isolated. Accounts, devices, and other common attributes are often shared across fraudulent activity, revealing relational patterns that individual transaction features alone cannot capture. Graph-based approaches model these relationships explicitly. However, standard graph neural networks aggregate neighbourhood information uniformly, which can dilute the already scarce signal carried by fraudulent transactions and limit detection of camouflaged fraud. This work presents RGH-GNN, a heterogeneous graph neural network that addresses this limitation by incorporating transaction-level risk scores, generated by a supervised LightGBM classifier as edge weights. It is used to guide message passing through a learnable risk-gated aggregation mechanism. It ensures that high-risk transactions contribute more strongly to learned representations rather than being diluted by uniform neighbourhood aggregation. RGH-GNN is evaluated on the IEEE-CIS fraud detection dataset against standard graph neural network models that are trained on the same het-

*Corresponding author

Email address: mythreyeeh2023@gmail.com (Mythreyee Hari) erogeneous graph. RGH-GNN outperforms all baselines across every evaluation metric, with an AUC-ROC score of 0.914. This demonstrates that incorporating engineered risk signals into graph-based message passing substantially improves fraud detection performance.

Keywords: Financial fraud detection, heterogeneous graph neural networks, Risk guided message parsing, Camouflaged fraud, Class imbalance

1. Introduction

Financial transactions form the backbone of modern digital economies, enabling the legal exchange of assets between individuals and enterprises. It has led to a rapid growth in online financial platforms which has been accompanied by an increase in financial fraud. It can be defined as the unlawful acquisition or manipulation of assets. Among various forms of fraud, credit card fraud constitutes a significant portion, with millions of cards compromised annually and substantial financial losses incurred worldwide [1].

A key characteristic of financial fraud is that it rarely occurs as an isolated event. Fraudulent activities are often carried out in coordinated patterns across multiple transactions, involving shared accounts, devices, or identities, and often occur during unusual temporal windows [2]. This interconnected nature makes fraud inherently relational. Suspicious behaviour is revealed as a collection of transactions and their interactions rather than just individual transactional features.

Traditional fraud detection systems rely on manual audits, rule-based mechanisms, and statistical techniques [3]. These are effective against specific static fraud patterns but limited due to their inability to adapt to other evolving fraud strategies. More recently, machine learning models that are trained on tabular transaction data have improved detection performance by learning patterns from historical data [4]. These models treat each transaction independently, relying solely on the features in a single row. However, they fail to capture the underlying relationships between different transactions and entities within the dataset.

These models also suffer from other key challenges including class imbalance, camouflage, and the heterogeneous nature of financial systems. The occurrence of fraud in financial datasets is scarce, which results in severe class imbalance. This makes it difficult for machine learning models to learn accurate representations of fraud and flag it reliably. Techniques to address this imbalance must be incorporated during preprocessing and training. The camouflage problem is a challenge where fraudsters deliberately share attributes, such as IP addresses, devices, or merchants, with legitimate transactions in order to blend their behavior with normal ones [5]. Such transactions are difficult to flag when inspected independently, since they appear normal in isolation. Financial systems also contain multiple entities like accounts, transactions, cards, IP addresses, and merchants etc. Each of these entities contribute distinct information relevant to fraud detection. The attributes shared within entity types, and the connections formed across different entity types, need to be accurately represented with their independent feature sets. Capturing this structure requires modeling financial systems as a heterogeneous network rather than a tabular structure in order to effectively detect fraud.

To address these limitations, graph-based solutions model financial systems as networks. Transactions, accounts, and other financial entities are represented as nodes connected through meaningful relationships [5, 6]. It allows the incorporation of relational context, letting the model detect patterns such as shared credentials or coordinated activity.

Existing graph neural networks that rely on uniform aggregation of neighbouring nodes face a critical challenge. Aggregation strategies that provide equal weightage to both normal and fraudulent nodes can dilute important fraud signals. This problem is particularly severe in highly imbalanced datasets where fraudulent transactions are rare [5]. More recently, ensemble methods have demonstrated better overall performance by combining multiple perspectives such as tabular and relational views of data [7]. Nevertheless, effectively integrating these views while preserving high-risk signals remains an open chal-lenge.

Motivated by these limitations, this work proposes Risk-Gated Heterogeneous Graph Neural Network (RGH-GNN), a risk-aware graph-based framework for fraud detection that integrates domain-driven feature engineering, tabular risk modeling, and adaptive graph learning. We use a gradient boosting model, which excels on tabular transaction features, to generate transaction-level risk scores. These scores are used during graph message passing to guide the aggregation of neighboring nodes based on their risk to flag the most suspicious transactions. The proposed framework is evaluated on the IEEE-CIS fraud detection dataset [8], a widely used benchmark for credit card fraud detection. It contains real-world transaction records with associated identity and card information. The experiments evaluated RGH-GNN's performance across multiple metrics and revealed that it provides a reliable framework for generating and utilizing risk scores in such a way that they could provide meaningful signals for fraud, which most baselines struggled with.

The main contributions of the work are as follows:

• Domain-driven feature engineering: Feature engineering strategies that have been identified in literature are engineered on the dataset. Temporal patterns, transaction dynamics, and behavioral signals that are relevant for fraud detection are introduced for both transaction and account node features.

• Heterogeneous graph construction: The engineered features are used to construct nodes of the graph that represent different entities and their relevant attributes. Relationships between transactions and accounts, as well as other entities of the graph are represented by edges.

• Integration of tabular risk modeling: A gradient boosting model (LightGBM) is used to generate informative risk scores to guide graph learning. This risk score is added to the account-transaction edges constructed in the graph.

• Risk-aware graph neural network (RGH-GNN): A novel learnable gating strategy uses the risk scores engineered on the graph to decide the confidence with which neighbours of the target node are selected during message passing. It is used to handle class imbalance and reduces signal dilution.

• Evaluation : RGH-GNN, which utilizes the novel gating strategy for a risk-aware perspective of the graph, is tested across multiple metrics. It outperforms all the baselines with an AUC-ROC score of 0.914, demonstrating the model's ability to flag fraud reliably across multiple thresholds.

The rest of the paper is structured as follows: Section 2 discusses related works and their limitations that serve as the motivation for this research. Section 3 describes the methodology and components of the RGH-GNN architecture. Section 4 describes the training process, metrics, ablation, baseline comparison and performance of RGH-GNN against other algorithms. Section 5 discusses the strengths and limitations of the proposed architecture. Section 6 concludes the work and suggests future directions to extend this research.

References (30)