Introduction
Digital payment platforms face a critical challenge in assessing credit risk—the probability that a user will default on a payment. While graph-based neural networks have become a standard tool for detecting fraudulent patterns like "cash-out" behavior, they often struggle with the heterogeneous nature of financial data. Specifically, existing models frequently fail to distinguish between the varying temporal stabilities of different interaction types and often overlook the rich semantic context of transaction timestamps.
Motivation: The Stability of Social Relations
A key observation driving this research is the fundamental difference between user-merchant transactions and user-user fund transfers. User-merchant interactions are highly dynamic; a consumer's choice of shops and services changes rapidly based on immediate needs. In contrast, user-to-user transfers—often representing stable social ties like family or close friends—exhibit significant temporal consistency.
As shown in the figure above, the similarity of a user's "neighbor set" in a fund-transfer graph remains remarkably high (above 0.93) even after 90 days. Conversely, the similarity in the user-merchant graph drops precipitously to below 0.47. Treating these stable social relations as dynamic interactions introduces unnecessary noise into the model.
The DGNN-SR Framework
To address these issues, we propose the Dynamic Graph Neural Network with Static Relations (DGNN-SR). This framework explicitly models the dual nature of financial interactions through a two-pronged architecture.
Hybrid Architecture
The model splits the input hybrid transaction graph into two distinct branches:
- Dynamic Branch: Processes user-merchant interactions using a dynamic GNN backbone. It captures the fast-evolving patterns of commercial behavior.
- Static Branch: Processes user-user fund transfers. By treating these as a static graph, the model leverages the inherent stability of social circles to provide a robust baseline for user representation.
Multi-view Time Encoder (MTE)
A core innovation of DGNN-SR is the Multi-view Time Encoder. Traditional models typically only consider "relative time" (the interval between events). MTE expands this by encoding:
- Relative Time: Captures the duration since the last interaction.
- Absolute Time: Captures periodic patterns, such as the specific hour of the day.
- Semantic Time: Incorporates external context, specifically whether a transaction occurs on a weekend or a public holiday. This is crucial because spending behavior at 2:00 AM on a workday often carries a different risk profile than the same behavior on a holiday.
Adaptive Re-weighting
Rather than simply concatenating features from both branches, DGNN-SR employs an adaptive re-weighting mechanism. This self-gating unit allows the model to dynamically prioritize either social stability or commercial dynamics for each individual user, recognizing that the primary signal for credit risk varies across the population.
Experimental Evaluation
The framework was rigorously tested on two massive real-world datasets, D1 and D2, provided by Tencent Mobile Payment. These datasets comprise millions of nodes and tens of millions of edges, representing a significant scale for graph learning.
Key Results
DGNN-SR consistently outperformed state-of-the-art baselines, including TGAT, GraphMixer, and DyGFormer.
- Performance Gains: The model achieved an improvement in AUC ranging from 0.85% to 2.5%.
- High-Risk Identification: In the context of credit risk, identifying the most suspicious users is paramount. DGNN-SR showed marked improvements in Recall@10% and TP@10%, demonstrating its superior ability to pinpoint actual defaulters within the top decile of risk scores.
- Backbone Agnostic: The improvements were consistent regardless of the underlying GNN backbone used, suggesting that the hybrid architecture and temporal encoding are the primary drivers of success.
Conclusion
By distinguishing between stable social relations and dynamic commercial transactions, and by enriching temporal data with semantic context, DGNN-SR provides a more nuanced and accurate assessment of credit risk. Future work will explore the potential of "slow-evolving" dynamic graphs for social relations and seek to optimize computational efficiency for real-time deployment at even larger scales.
Summary updated