# US 2025/0378100 A1 · Large language model encoding of graph neural network edge textual information

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0378100 A1
- Document ID: US20250378100A1
- Status: Published application
- Kind: A1
- Application number: 18/738,631
- Filed: 2024-06-10
- Published: 2025-12-11
- Earliest claimed: 2024-06-10
- Assignees: Paypal, Inc.
- Applicants: Paypal, Inc.
- Inventors: Ori Mendelson
- Web page: https://patentgrep.com/patent/US20250378100A1

## CPC

- G06F 16/34: Browsing; Visualisation therefor (browsing or visualisation for clustering or classification G06F16/358)
- G06F 40/20: Natural language analysis (semantic analysis of natural language G06F40/30)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method includes accessing a large language model (LLM) configured to encode textual information to generate encoded textual information, receiving a data set having a plurality of entities and a plurality of relationships among the entities, each relationship associated with respective textual information, determining a graph representative of the data set, the graph comprising a plurality of nodes and a plurality of edges connecting the nodes, each node representative of a respective entity of the plurality of entities and each edge representative of the relationship between the entities connected by the edge, wherein the determining includes, for each edge, applying the LLM to the associated textual information to generate encoded edge textual information and adding the encoded edge textual information to the edge in the graph, whereby an enhanced graph is generated, and training a graph neural network model (GNN) based on the enhanced graph.

## Claims

### Claim 1

A computer-implemented method comprising:
accessing a large language model (LLM) configured to encode textual information to generate encoded textual information, the encoded textual information comprising a vector representation of the textual information;
receiving a data set comprising a plurality of entities and a plurality of relationships among the entities, each relationship associated with respective textual information;
determining a graph representative of the data set, the graph comprising a plurality of nodes and a plurality of edges connecting the nodes, each node representative of a respective entity of the plurality of entities and each edge representative of the relationship between the entities connected by the edge, wherein the determining comprises:
for each edge, applying the LLM to the textual information associated with the relationship represented by the edge to generate encoded edge textual information comprising a vector representation of the textual information associated with the relationship and adding the encoded edge textual information to the edge in the graph, whereby an enhanced graph is generated; and
training a graph neural network model (GNN) based on the enhanced graph.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein receiving the LLM comprises training the LLM on a corpus of information specific to a domain represented by the graph.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein applying the LLM to the textual information associated with the relationship represented by the edge comprises providing, as input to the LLM:
the textual information associated with the relationship represented by the edge; and
the textual information associated with one or more additional edges that connect the same nodes as the edge.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein applying the LLM to the textual information associated with the relationship represented by the edge comprises providing, as input to the LLM:
numerical information associated with the relationship represented by the edge.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein applying the LLM to the textual information of an edge comprises providing, as input to the LLM:
attributes of the nodes connected by the edge.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising applying the trained GNN to generate a prediction regarding at least one of the entities.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein one or more of:
one or more entities are end users, and edges representative of relationships between end users comprise textual information comprise user-to-user notes; or
one or more entities are end users and one or more entities are enterprise users, and edges representative of a relationships between an end user and an enterprise user comprise descriptions of resources conveyed from the enterprise user to the end user.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein training the GNN comprises training the GNN to make a respective predictive classification for each node.

### Claim 9 (depends on 8)

The computer-implemented method of claim 8, wherein the graph is a first graph, the method further comprising:
determining a second graph representative of the data set, the second graph comprising the plurality of nodes and the plurality of edges connecting the nodes, wherein determining the second graph comprises:
for each edge of the second graph, applying the LLM to the textual information associated with the relationship represented by the edge, and to the predictive classifications of the GNN for the nodes connected by the edge, to generate second encoded edge textual information, whereby a second enhanced graph is generated; and
further training the GNN based on the second enhanced graph.

### Claim 10

A computing system comprising:
a processor; and
a non-transitory, computer-readable medium storing instructions that, when executed by the processor, cause the computing system to perform operations comprising:
accessing a large language model (LLM) configured to encode textual information to generate encoded textual information, the encoded textual information comprising a vector representation of the textual information;
generating a graph comprising a plurality of nodes and a plurality of edges connecting the nodes, each node representative of a respective entity and each edge representative of a computing action involving the entities connected by the edge, each computing action associated with respective textual information, wherein the generating comprises applying the LLM to the textual information associated with each edge to generate encoded edge textual information, the encoded edge textual information comprising a vector representation of the textual information, and adding the encoded edge textual information to the graph;
training a graph neural network model (GNN) based on the graph; and
outputting a prediction about one of the entities according to the trained GNN.

### Claim 11 (depends on 10)

The computing system of claim 10, wherein the prediction comprises a probability of a fraudulent transaction by the one of the entities.

### Claim 12 (depends on 10)

The computing system of claim 10, wherein applying the LLM to the textual information associated with each edge comprises, for each edge, providing, as input to the LLM, two or more of:
the textual information associated with one or more additional edges that connect the same nodes as the edge;
numerical information associated with the computing action represented by the edge; or
attributes of the nodes connected by the edge.

### Claim 13 (depends on 12)

The computing system of claim 12, wherein applying the LLM to the textual information associated with each edge comprises, for each edge, providing, as input to the LLM:
the textual information associated with one or more additional edges that connect the same nodes as the edge;
numerical information associated with the computing action represented by the edge; and
attributes of the nodes connected by the edge.

### Claim 14 (depends on 10)

The computing system of claim 10, wherein generating the graph further comprises applying the LLM to the textual information associated with each node to generate encoded node textual information and adding the encoded node textual information to the graph.

### Claim 15 (depends on 10)

The computing system of claim 10, further comprising training the LLM using a training data set comprising computing actions involving a subset of the entities represented in the graph.

### Claim 16 (depends on 10)

The computing system of claim 10, wherein the operations further comprise repeatedly:
for each edge, applying the LLM to the textual information associated with the computing action represented by the edge, and to respective predictive classifications of the trained GNN for the nodes connected by the edge, to generate second encoded edge textual information and adding the second encoded edge textual information to the edge in the graph, whereby a further enhanced graph is generated;
further training the GNN based on the further enhanced graph; and
re-training the LLM according to predictions made by the further trained GNN.

### Claim 17

A computer-implemented method comprising:
accessing a large language model (LLM) configured to encode textual information to generate encoded textual information, the encoded textual information comprising a vector representation of the textual information;
accessing a graph comprising a plurality of nodes and a plurality of edges connecting the nodes, each node representative of a respective entity and each edge representative of a relationship between the entities connected by the edge, each edge associated with respective textual information;
applying the LLM to the textual information associated with each edge to generate encoded edge textual information, the encoded edge textual information comprising a vector representation of the textual information associated with the edge, and adding the encoded edge textual information to the graph to yield an enhanced graph;
training a graph neural network model (GNN) based on the enhanced graph;
training the LLM according to node predictions made by the trained GNN;
re-applying the trained LLM to the textual information associated with each edge to generate further encoded edge textual information to yield a further enhanced graph; and
further training the GNN based on the further enhanced graph.

### Claim 18 (depends on 17)

The computer-implemented method of claim 17, further comprising:
repeating the training the LLM, re-applying the trained LLM, and further training the GNN; and
deploying the trained GNN after the repeating.

### Claim 19 (depends on 17)

The computer-implemented method of claim 17, further comprising:
receiving a request from a user represented in the graph to perform a computing action;
determining a fraud risk of the computing action according to the trained GNN; and
generating a response to the user according to the fraud risk.

### Claim 20 (depends on 17)

The computer-implemented method of claim 17, wherein applying the LLM to the textual information of an edge comprises providing, as input to the LLM:
attributes of the nodes connected by the edge.
