BRIGHT - Graph Neural Networks in Real-time Fraud Detection

Mingxuan Lu, Zhichao Han, Susie Xi Rao, Zitao Zhang, Yang Zhao, Yinan Shan, Ramesh Raghunathan, Ce Zhang, Jiawei Jiang

Abstract

Real-time fraud detection in e-commerce requires balancing complex relational analysis with sub-100ms latency requirements. While Graph Neural Networks (GNNs) excel at identifying multi-hop "fraud rings," their computational intensity and susceptibility to temporal data leakage have limited their production use. This paper presents BRIGHT (Batch and Real-time Inception GrapH Topology), a novel framework that decouples heavy graph computations from the critical path using a Lambda-inspired architecture. By separating offline entity risk assessment from lightweight online inference, BRIGHT achieves a 71-76% reduction in P99 latency while outperforming industry-standard gradient boosting models on real-world datasets.

Introduction

In the high-stakes environment of e-commerce, fraud detection is a race against time. Traditional machine learning models, specifically Gradient Boosted Decision Trees (GBDTs), are the industry standard due to their speed and efficiency with tabular data. However, GBDTs often fail to detect sophisticated fraud rings—coordinated groups of bad actors sharing devices, IP addresses, or payment tokens across multiple transactions.

Graph Neural Networks (GNNs) offer a solution by modeling these relational dependencies. Despite their promise, GNNs face two primary hurdles in production:

  1. Inference Latency: Querying multi-hop neighbors and executing deep neural layers typically exceeds the strict latency budgets of checkout systems.
  2. Future Information Leakage: Dynamic graphs often inadvertently use future transaction data to predict past events during training, leading to models that perform well in the lab but fail in live environments.

The BRIGHT Framework

To address these challenges, the BRIGHT framework introduces two core innovations: the Two-Stage Directed (TD) Graph and the Lambda Neural Network (LNN).

Two-Stage Directed (TD) Graph

Standard undirected graphs allow information to flow freely between nodes, which causes data leakage in temporal sequences. BRIGHT transforms transaction data into a directed structure that separates nodes into Reference Transactions (historical data) and Target Transactions (the current event). By enforcing directed edges that flow exclusively from historical entities to the current target, the framework physically prevents information from "flowing backward" in time, ensuring the integrity of the training process.

Lambda Neural Network (LNN)

Inspired by the "Lambda Architecture" used in big data processing, the LNN splits GNN operations into two distinct paths:

  • Batch Net: A deep, multi-layer GNN that runs periodically (e.g., daily) on historical data. It computes high-dimensional risk embeddings for entities such as Device IDs, IP addresses, and shipping addresses. These embeddings are then cached in a high-speed Key-Value database (e.g., Redis).
  • RT Net (Real-Time Net): A lightweight, single-layer GNN that executes during the live transaction. Instead of calculating the entire graph state, it simply fetches the pre-computed entity embeddings from the database, concatenates them with the current transaction's features, and generates a risk score.

To further optimize performance, BRIGHT utilizes a pre-trained LightGBM model as a feature encoder. This turns raw tabular attributes into dense vectors before they are processed by the GNN, combining the tabular strengths of GBDTs with the relational strengths of GNNs.

Experimental Evaluation

The researchers evaluated BRIGHT using a massive, real-world dataset from eBay’s marketplace, consisting of 7 million labeled transactions and over 66 million nodes. The dataset included diverse entities such as shipping addresses, phone numbers, and payment tokens, with a fraud ratio of approximately 2.5%.

Performance and Latency Results

BRIGHT demonstrated significant improvements over both traditional GNNs and GBDT baselines:

  • Accuracy: BRIGHT-LNN achieved an Average Precision (AP) of 0.4420, a significant improvement over the state-of-the-art LightGBM baseline (0.4201).
  • Latency: The P99 latency was reduced from 251.35ms (standard GNN) to 72.57ms on CUDA—a 71% improvement. On CPU-based systems, the savings exceeded 76%.
  • Scalability: While traditional GNN latency balloons to over 1.3 seconds when extending to 6-hop neighbors, BRIGHT maintained a sub-60ms latency, proving its viability for complex relational structures.

Conclusion and Future Work

BRIGHT demonstrates that the "Aha!" moment for real-time GNNs lies in decoupling. By treating entity risk as a slowly-changing state managed by the Batch Net and the transaction as a fast event managed by the RT Net, developers can harness the power of relational modeling without sacrificing performance.

One current limitation is "embedding staleness," as entity risks are refreshed on a daily batch cycle. Future iterations of BRIGHT may incorporate streaming updates to the Batch Net to further reduce the window of vulnerability against rapidly evolving fraud tactics. Nevertheless, BRIGHT provides a scalable, production-ready blueprint for the next generation of relational fraud detection.

Summary updated

BibTeX
@inproceedings{lu2022bright,
  author = {Mingxuan Lu and Zhichao Han and Susie Xi Rao and Zitao Zhang and Yang Zhao and Yinan Shan and Ramesh Raghunathan and Ce Zhang and Jiawei Jiang},
  title = {{BRIGHT - Graph Neural Networks in Real-time Fraud Detection}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2022},
  url = {https://openreview.net/forum?id=sJBkHKYnCDp},
}
Figure