Method and system for relation learning by multi-hop attention graph neural network

US12299566B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12299566-B2
Application numberUS-202117327867-A
CountryUS
Kind codeB2
Filing dateMay 24, 2021
Priority dateSep 23, 2020
Publication dateMay 13, 2025
Grant dateMay 13, 2025

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

System and method for completing knowledge graph. The system includes a computing device, the computing device has a processer and a storage device storing computer executable code. The computer executable code is configured to: provide an incomplete knowledge graph comprising a plurality of nodes and a plurality of edges, each of the edges connecting two of the plurality of nodes; calculate an attention matrix of the incomplete knowledge graph based on one-hop attention between any two of the plurality of the nodes that are connected by one of the plurality of the edges; calculate multi-head diffusion attention for any two of the plurality of nodes from the attention matrix; obtain updated embedding of the incomplete knowledge graph using the multi-head diffusion attention; and update the incomplete knowledge graph to obtain updated knowledge graph based on the updated embedding.

First claim

Opening claim text (preview).

What is claimed is: 1. A system comprising a computing device, the computing device comprising a processor and a storage device storing computer executable code, wherein the computer executable code, when executed at the processor, is configured to: provide an incomplete knowledge graph comprising a plurality of nodes and a plurality of edges, each of the edges connecting two of the plurality of nodes; calculate an attention matrix of the incomplete knowledge graph based on one-hop attention between any two of the plurality of the nodes that are connected by one of the plurality of the edges; calculate multi-head diffusion attention for any two of the plurality of nodes from the attention matrix; obtain an updated embedding of the incomplete knowledge graph using the multi-head diffusion attention, and train a neural network model based on the updated embedding and labels of the incomplete knowledge graph, to obtain a trained neural network model; and update the incomplete knowledge graph to obtain updated knowledge graph by using the trained neural network model, wherein the computer executable code is configured to calculate the attention matrix by: calculating an attention score s i,k,j (l) for an edge (v i , r k , v j ) by s i,k,j (l) =LeakyReLU (v α (l) tan h(W h (l) h i (l) ∥W t (l) h j (l) ∥W r (l) r k )) (equation (1), wherein v i and v j are nodes i and j, r k is a type of the edge between the nodes i and j, W h (l) ∈ d (l) ×d (l) , W t (l) ∈ d (l) ×d (l) , W r (l) ∈ d (l) ×d r and v α (l) ∈ 1×3d (l) are trainable weights shared by an l-th layer of the multi-head attention, h i (l) ∈ d (l) represents embedding of the node i at the l-th layer, h j (l) ∈ d (l) represents embedding of the node j at the l-th layer, r k is trainable relation embedding of a k-th relation type, and ∥ denotes concatenation of embedding vectors; obtaining attention score matrix S (l) by: S i , j ( l ) = { s i , k , j ( l ) , if ⁢ ⁢ ( v i , r k , v j ) ⁢ ⁢ appears ⁢ ⁢ in ⁢ ⁢ 𝒢 - ∞ , otherwise , ( equation ⁢ ⁢ ( 2 ) ) wherein G is the knowledge graph; and calculating the attention matrix A (l) by: A (l) =softmax(S (l) ). 2. The system of claim 1 , wherein the computer executable code is configured to calculate the multi-head diffusion attention by: calculating multi-hop attention matrix A by: A=Σ hop=0 ∞ θ hop A hop (equation (3)), wherein hop is a positive integer in a range of 2-20, and θ hop is an attention decay factor; and calculating the multi-head diffusion attention by: AttDiffusion (G, H (l) , Θ)=AH (l) (equation (4)), wherein Θ represents parameters for equation (1), and H (l) is input entity embedding of the l-th layer. 3. The system of claim 2 , wherein the AH (l) is approximated by: letting Z (0) =H (l) , Z (k+1) =(1−α)AZ (k) +αZ (0) (equation (5)), wherein 0≤k≤K, and θ hop =α(1−α) hop ; and defining the AH (l) as Z (K) . 4. The system of claim 3 , wherein the hop or K is a positive integer in a range of 2-12, and l is a positive integer in a range of 2-24. 5. The system of claim 4 , wherein the computer executable code is configured to obtain the updated embedding of the incomplete knowledge graph by: performing sequentially a first layer normalization and addition, a feed forward, and a second layer normalization and addition on the multi-head diffusion attention. 6. The system of claim 5 , wherein the feed forward is performed using a two-layer multilayer perceptron (MLP) network. 7. The system of claim 1 , wherein the computer executable code is further configured to, after obtaining the updated embedding: calculate a loss function based on the updated embeddin

Assignees

Inventors

Classifications

  • Supervised learning · CPC title

  • Feedforward networks · CPC title

  • Knowledge-based neural networks; Logical representations of neural networks · CPC title

  • Interfaces, programming languages or software development kits, e.g. for simulating neural networks · CPC title

  • G06N3/08Primary

    Learning methods · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12299566B2 cover?
System and method for completing knowledge graph. The system includes a computing device, the computing device has a processer and a storage device storing computer executable code. The computer executable code is configured to: provide an incomplete knowledge graph comprising a plurality of nodes and a plurality of edges, each of the edges connecting two of the plurality of nodes; calculate an…
Who is the assignee on this patent?
Beijing Wodong Tianjun Information Technology Co Ltd, Jd Com American Tech Corp, Univ Leland Stanford Junior
What technology area does this patent fall under?
Primary CPC classification G06N3/08. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue May 13 2025 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 7 related publications on this page (citations in our corpus or others sharing the same primary CPC).