IP Library › Granted Patent US 12,235,930
Granted Patent B2
US 12,235,930 · App. 17/574,428 · Granted Feb 25, 2025

Graph neural network training methods and systems

Inventors: Houyi Li (Hangzhou, CN); Changhua He (Hangzhou, CN)
Assignee: Alipay (Hangzhou) Information Technology Co., Ltd.
G06F18/2148G06F9/5094G06N3/04
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,235,930
App. No.
17/574,428
Filed
Jan 12, 2022
Granted
Feb 25, 2025
Kind
B2
Art Unit
2664
USPC
706/15
Abstract

Methods, systems, and apparatus for training a graph neural network. An example method includes obtaining a complete graph; dividing the complete graph into a plurality of subgraphs; obtaining a training graph to participate in graph neural network training based on selecting at least one subgraph from the plurality of subgraphs; obtaining, based on the training graph, a node feature vector of each node in the training graph; obtaining a node fusion vector of each current node in the training graph; determining a loss function based on node labels and the node fusion vectors in the training graph; and iteratively training the graph neural network to update parameter values of the graph neural network based on optimizing the loss function.

Claims (53)

1. A computer-implemented method for training a graph neural network, wherein the method comprises:

obtaining a graph that comprises a plurality of nodes and edges between the plurality of nodes that represent relationships between the plurality of nodes;

dividing the graph into a plurality of subgraphs by using a community discovery algorithm, wherein dividing the graph comprises grouping nodes that are more related to each other into a same subgraph;

obtaining at least one subgraph from the plurality of subgraphs;

obtaining, for each node in the at least one subgraph, a node feature vector;

obtaining, for each node in the at least one subgraph, a node fusion vector based on performing propagation and aggregation using the node feature vector for each node in the at least one subgraph and edges connected to each node in the at least one subgraph; and

training the graph neural network by using the at least one subgraph and based on optimizing a loss function that is computed based on the node fusion vector for each node in the at least one subgraph.

2. The computer-implemented method according to claim 1 , wherein the community discovery algorithm is one of a label propagation algorithm, a Girvan-Newman algorithm, or a hop attention & node preference algorithm.

3. The computer-implemented method according to claim 1 , wherein the plurality of nodes corresponds to respective samples and the edges between the plurality of nodes correspond to relationships between the respective samples.

4. The computer-implemented method according to claim 3 , wherein the relationships between the respective samples measure a frequency of interactions between the respective samples.

5. The computer-implemented method according to claim 1 , wherein obtaining the graph comprises:

obtaining sample data; and

generating the graph based on the sample data.

6. The computer-implemented method according to claim 1 , wherein obtaining the graph comprises:

obtaining the graph from a database, including from a database on a terminal device, or from a data source.

7. The computer-implemented method according to claim 1 , wherein obtaining the at least one subgraph from the plurality of subgraphs comprises:

obtaining two or more subgraphs from the plurality of subgraphs; and

determining a union set of the two or more subgraphs.

8. A computer-implemented system, comprising:

one or more computers; and

one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations for training a graph neural network, wherein the operations comprise:

obtaining a graph that comprises a plurality of nodes and edges between the plurality of nodes that represent relationships between the plurality of nodes;

dividing the graph into a plurality of subgraphs by using a community discovery algorithm, wherein dividing the graph comprises grouping nodes that are more related to each other into a same subgraph;

obtaining at least one subgraph from the plurality of subgraphs;

obtaining, for each node in the at least one subgraph, a node feature vector;

obtaining, for each node in the at least one subgraph, a node fusion vector based on performing propagation and aggregation using the node feature vector for each node in the at least one subgraph and edges connected to each node in the at least one subgraph; and

training the graph neural network by using the at least one subgraph and based on optimizing a loss function that is computed based on the node fusion vector for each node in the at least one subgraph.

9. The computer-implemented system according to claim 8 , wherein the community discovery algorithm is one of a label propagation algorithm, a Girvan-Newman algorithm, or a hop attention & node preference algorithm.

10. The computer-implemented system according to claim 8 , wherein the plurality of nodes corresponds to respective samples and the edges between the plurality of nodes correspond to relationships between the respective samples.

11. The computer-implemented system according to claim 10 , wherein the relationships between the respective samples measure a frequency of interactions between the respective samples.

12. The computer-implemented system according to claim 8 , wherein obtaining the graph comprises:

obtaining sample data; and

generating the graph based on the sample data.

13. The computer-implemented system according to claim 8 , wherein obtaining the graph comprises:

obtaining the graph from a database, including from a database on a terminal device, or from a data source.

14. The computer-implemented system according to claim 8 , wherein obtaining the at least one subgraph from the plurality of subgraphs comprises:

obtaining two or more subgraphs from the plurality of subgraphs; and

determining a union set of the two or more subgraphs.

15. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations for training a graph neural network, wherein the operations comprise:

obtaining a graph that comprises a plurality of nodes and edges between the plurality of nodes that represent relationships between the plurality of nodes;

dividing the graph into a plurality of subgraphs by using a community discovery algorithm, wherein dividing the graph comprises grouping nodes that are more related to each other into a same subgraph;

obtaining at least one subgraph from the plurality of subgraphs;

obtaining, for each node in the at least one subgraph, a node feature vector;

obtaining, for each node in the at least one subgraph, a node fusion vector based on performing propagation and aggregation using the node feature vector for each node in the at least one subgraph and edges connected to each node in the at least one subgraph; and

training the graph neural network by using the at least one subgraph and based on optimizing a loss function that is computed based on the node fusion vector for each node in the at least one subgraph.

16. The non-transitory, computer-readable medium according to claim 15 , wherein the community discovery algorithm is one of a label propagation algorithm, a Girvan-Newman algorithm, or a hop attention & node preference algorithm.

17. The non-transitory, computer-readable medium according to claim 15 , wherein the plurality of nodes corresponds to respective samples and the edges between the plurality of nodes correspond to relationships between the respective samples.

18. The non-transitory, computer-readable medium according to claim 17 , wherein the relationships between the respective samples measure a frequency of interactions between the respective samples.

19. The non-transitory, computer-readable medium according to claim 15 , wherein obtaining the graph comprises:

obtaining sample data; and

generating the graph based on the sample data.

20. The non-transitory, computer-readable medium according to claim 15 , wherein obtaining the graph comprises:

obtaining the graph from a database, including from a database on a terminal device, or from a data source.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 3, 2022
From: LI, HOUYI; HE, CHANGHUA
To: ALIPAY (HANGZHOU) INFORMATION TECHNOLOGY CO., LTD.
Reel/Frame 059160/0412 →
Priority Claims (1)
CN 202010864281.0 · Aug 25, 2020 · national
Continuity (2)
Continuation 17362963 · Jun 29, 2021
Related Publication 20220138502A1 · May 5, 2022
References Cited (7)
US 20190378049A1 · Widmann · 2019 [cited by examiner]
US 20210019630A1 · Yao · 2021 [cited by examiner]
US 20210034737A1 · Khan · 2021 [cited by examiner]
US 20210049458A1 · Chang · 2021 [cited by examiner]
CN 111382278B · 2023 [cited by examiner]
Crosby et al., “BlockChain Technology: Beyond Bitcoin,” Sutardja Center for Entrepreneurship & Technology Technical Report, Oct. 16, 2015, 35 pages. [cited by applicant]
Nakamoto, “Bitcoin: A Peer-to-Peer Electronic Cash System,” www.bitcoin.org, 2005, 9 pages. [cited by applicant]