Detecting fraudulent transactions is an essential component to control risk in e-commerce marketplaces. Apart from rule-based and machine learning filters that are already deployed in production, we want to enable efficient real-time inference with graph neural networks (GNNs), which is useful to catch multihop risk propagation in a transaction graph. However, two challenges arise in the implementation of GNNs in production. First, future information in a dynamic graph should not be considered in message passing to predict the past. Second, the latency of graph query and GNN model inference is usually up to hundreds of milliseconds, which is costly for some critical online services. To tackle these challenges, we propose a Batch and Real-time Inception GrapH Topology (BRIGHT) framework to conduct an end-to-end GNN learning that allows efficient online real-time inference. BRIGHT framework consists of a graph transformation module (Two-Stage Directed Graph) and a corresponding GNN architecture (Lambda Neural Network). The Two-Stage Directed Graph guarantees that the information passed through neighbors is only from the historical payment transactions. It consists of two subgraphs representing historical relationships and real-time links, respectively. The Lambda Neural Network decouples inference into two stages: batch inference of entity embeddings and real-time inference of transaction prediction. Our experiments show that BRIGHT outperforms the baseline models by >2\% in average w.r.t.~precision. Furthermore, BRIGHT is computationally efficient for real-time fraud detection. Regarding end-to-end performance (including neighbor query and inference), BRIGHT can reduce the P99 latency by >75\%. For the inference stage, our speedup is on average 7.8$\times$ compared to the traditional GNN.
翻译:检测欺诈性交易是控制电子商务市场风险的一个基本组成部分。 除了已经在生产过程中部署的基于规则的和机器学习过滤器之外, 我们希望能够对图形神经网络(GNN)进行有效实时的实时推断, 这对于在交易图中捕捉多重风险传播非常有用。 但是, 在生产中实施 GNN 时, 出现两个挑战。 首先, 动态图中的未来信息不应在传递信息以预测过去时加以考虑 。 其次, 图形查询和 GNN 模型的延迟值通常高达数百毫秒, 这对于一些关键的在线服务来说代价高昂。 为了应对这些挑战, 我们提议建立一个批量和实时感官神经网络( GNNP) 网络框架, 使 GNNN 能够高效在线实时推断。 BRight 框架包括一个图形转换模块( 2- Stat- directive directive de the delformal developmental deal driforal dirmation) 以及一个相应的 GNNNEAR 结构( Lambfer deal deal diral deal deal deal deal deal deal deal deal deal deal deal deal deal deal deal detraction)。