EP4720887A1 - Method, system, and computer program product for pretrained dual transformers for bipartite graphs - Google Patents
Method, system, and computer program product for pretrained dual transformers for bipartite graphsInfo
- Publication number
- EP4720887A1 EP4720887A1 EP24816278.6A EP24816278A EP4720887A1 EP 4720887 A1 EP4720887 A1 EP 4720887A1 EP 24816278 A EP24816278 A EP 24816278A EP 4720887 A1 EP4720887 A1 EP 4720887A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- entity
- entities
- embeddings
- transformer encoder
- processor
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
- G06F16/9024—Graphs; Linked lists
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/047—Probabilistic or stochastic networks
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/084—Backpropagation, e.g. using gradient descent
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
- G06N3/088—Non-supervised learning, e.g. competitive learning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N5/00—Computing arrangements using knowledge-based models
- G06N5/02—Knowledge representation; Symbolic representation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N5/00—Computing arrangements using knowledge-based models
- G06N5/02—Knowledge representation; Symbolic representation
- G06N5/022—Knowledge engineering; Knowledge acquisition
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N20/00—Machine learning
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Artificial Intelligence (AREA)
- Mathematical Physics (AREA)
- Computational Linguistics (AREA)
- Evolutionary Computation (AREA)
- Biomedical Technology (AREA)
- Molecular Biology (AREA)
- General Health & Medical Sciences (AREA)
- Biophysics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Databases & Information Systems (AREA)
- Probability & Statistics with Applications (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Methods, systems, and computer program products are provided for pretrained dual transformers for bipartite graphs. Graph data of a bipartite graph including first nodes/entities, second nodes/entities, and edges is received. A first entity context of each first entity includes second entities connected thereto by the edge(s). A second entity context of each second entity/node comprises first entities connected thereto the edge(s). First embeddings for each first entity are generated. First encoded representations for each first entity are generated based on the first entity context and a first transformer encoder. Second embeddings for each second entity are generated. Second encoded representations for each second entity are generated based on the second entity context and a second transformer encoder. The first embeddings and the first transformer encoder are adjusted based on a first contrastive loss. The second embeddings and the second transformer encoder are adjusted based on a second contrastive loss.
Description
Attorney Docket No.08223-2401902 (7476WO01) METHOD, SYSTEM, AND COMPUTER PROGRAM PRODUCT FOR PRETRAINED DUAL TRANSFORMERS FOR BIPARTITE GRAPHS CROSS REFERENCE TO RELATED APPLICATION [0001] This application claims priority to United States Provisional Patent Application No. 63/469,128, filed May 26, 2023, the disclosure of which is hereby incorporated by reference in its entirety. BACKGROUND 1. Technical Field [0002] This disclosure relates generally to machine learning for graph data and, in some non-limiting embodiments or aspects, to methods, systems, and computer program products for pretrained dual transformers for bipartite graphs. 2. Technical Considerations [0003] Certain activities of users (e.g., online activities, offline activities, and/or the like) may be represented as data indicating interactions between users and content (e.g., visiting places, purchasing products, reading news articles, viewing multimedia content, rating multimedia content, posting comments about events, and/or the like). Insights about the user, the user’s behavior, the content, or the content’s properties can be learned based on these user-content interactions. Certain machine learning models have been used to attempt to perform a specific task (e.g., generate a specific type of prediction, such as predicting content to recommend to the user). [0004] However, machine learning models trained solely to fit a specific task’s objective may suffer from data sparsity, which may ultimately limit the performance of the machine learning models. Moreover, attempts to apply self-supervised learning to learn contextual knowledge only learn contextual knowledge from a single perspective, since machine learning models for this type of self-supervised learning were developed for images (e.g., computer vision) or text (e.g., natural language processing), in which context is inherent in the image or text, respectively. SUMMARY [0005] Accordingly, provided are improved methods, systems, and computer program products for pretrained dual transformers for bipartite graphs (e.g., that overcome some or all of the deficiencies identified above). [0006] According to non-limiting embodiments or aspects, provided are methods for pretrained dual transformers for bipartite graphs. An example method may include 5UH6809.DOCX Page 1 of 54
Attorney Docket No.08223-2401902 (7476WO01) receiving graph data associated with a bipartite graph, which may include a plurality of first nodes, a plurality of second nodes, and a plurality of edges. Each first node of the plurality of first nodes may be associated with a first entity of a plurality of first entities. Each second node of the plurality of second nodes may be associated with a second entity of a plurality of second entities. Each edge of the plurality of edges may be associated with an interaction between a respective first entity of the plurality of first entities and a respective second entity of the plurality of second entities. A first entity context of each first entity of the plurality of first entities may include all second entities of the plurality of second entities connected thereto by at least one edge of the plurality of edges. A second entity context of each second entity of the plurality of second entities may include all first entities of the plurality of first entities connected thereto by at least one edge of the plurality of edges. A plurality of first embeddings including a respective first embedding associated with each first entity of the plurality of first entities may be generated. A plurality of first encoded representations including a respective first encoded representation associated with each first entity of the plurality of first entities may be generated based on the first entity context of each first entity of the plurality of first entities and a first transformer encoder. A plurality of second embeddings including a respective second embedding associated with each second entity of the plurality of second entities may be generated. A plurality of second encoded representations including a respective second encoded representation associated with each second entity of the plurality of second entities may be generated based on the second entity context of each second entity of the plurality of second entities and a second transformer encoder. The plurality of first embeddings and the first transformer encoder may be adjusted based on a first contrastive loss between the plurality of first embeddings and the plurality of first encoded representations. The plurality of second embeddings and the second transformer encoder may be adjusted based on a second contrastive loss between the plurality of second embeddings and the plurality of second encoded representations. [0007] In some non-limiting embodiments or aspects, generating the plurality of first encoded representations, generating the plurality of second encoded representations, adjusting the plurality of first embeddings and the first transformer encoder, and adjusting the plurality of second embeddings and the second transformer encoder may be iteratively repeated until at least one termination condition is satisfied. 5UH6809.DOCX Page 2 of 54
Attorney Docket No.08223-2401902 (7476WO01) [0008] In some non-limiting embodiments or aspects, a prediction may be generated based on the first embedding of a selected first entity of the plurality of first entities, the first entity context of the selected first entity, the first transformer encoder, and the second transformer encoder. [0009] In some non-limiting embodiments or aspects, the plurality of first embeddings, the first transformer encoder, the plurality of second embeddings, and the second transformer encoder may be adjusted based on a total loss determined based on the prediction. [0010] In some non-limiting embodiments or aspects, generating the prediction and adjusting the plurality of first embeddings, the first transformer encoder, the plurality of second embeddings, and the second transformer encoder may be iteratively repeated until at least one termination condition is satisfied. [0011] In some non-limiting embodiments or aspects, the prediction may include a sequential prediction. [0012] In some non-limiting embodiments or aspects, the plurality of first entities may include a plurality of users, and wherein the plurality of second entities may include a plurality of contents. [0013] In some non-limiting embodiments or aspects, generating the plurality of first embeddings may include randomly initializing the plurality of first embeddings. [0014] In some non-limiting embodiments or aspects, generating the plurality of second embeddings may include randomly initializing the plurality of second embeddings. [0015] According to non-limiting embodiments or aspects, provided are systems for pretrained dual transformers for bipartite graphs. An example system may include at least one processor configured to receive graph data associated with a bipartite graph, which may include a plurality of first nodes, a plurality of second nodes, and a plurality of edges. Each first node of the plurality of first nodes may be associated with a first entity of a plurality of first entities. Each second node of the plurality of second nodes may be associated with a second entity of a plurality of second entities. Each edge of the plurality of edges may be associated with an interaction between a respective first entity of the plurality of first entities and a respective second entity of the plurality of second entities. A first entity context of each first entity of the plurality of first entities may include all second entities of the plurality of second entities connected thereto by at least one edge of the plurality of edges. A second entity context of each second 5UH6809.DOCX Page 3 of 54
Attorney Docket No.08223-2401902 (7476WO01) entity of the plurality of second entities may include all first entities of the plurality of first entities connected thereto by at least one edge of the plurality of edges. A plurality of first embeddings including a respective first embedding associated with each first entity of the plurality of first entities may be generated. A plurality of first encoded representations including a respective first encoded representation associated with each first entity of the plurality of first entities may be generated based on the first entity context of each first entity of the plurality of first entities and a first transformer encoder. A plurality of second embeddings including a respective second embedding associated with each second entity of the plurality of second entities may be generated. A plurality of second encoded representations including a respective second encoded representation associated with each second entity of the plurality of second entities may be generated based on the second entity context of each second entity of the plurality of second entities and a second transformer encoder. The plurality of first embeddings and the first transformer encoder may be adjusted based on a first contrastive loss between the plurality of first embeddings and the plurality of first encoded representations. The plurality of second embeddings and the second transformer encoder may be adjusted based on a second contrastive loss between the plurality of second embeddings and the plurality of second encoded representations. [0016] In some non-limiting embodiments or aspects, the at least one processor may be further configured to iteratively repeat generating the plurality of first encoded representations, generating the plurality of second encoded representations, adjusting the plurality of first embeddings and the first transformer encoder, and adjusting the plurality of second embeddings and the second transformer encoder until at least one termination condition is satisfied. [0017] In some non-limiting embodiments or aspects, the at least one processor may be further configured to generate a prediction based on the first embedding of a selected first entity of the plurality of first entities, the first entity context of the selected first entity, the first transformer encoder, and the second transformer encoder. [0018] In some non-limiting embodiments or aspects, the at least one processor may be further configured to adjust the plurality of first embeddings, the first transformer encoder, the plurality of second embeddings, and the second transformer encoder based on a total loss determined based on the prediction. 5UH6809.DOCX Page 4 of 54
Attorney Docket No.08223-2401902 (7476WO01) [0019] In some non-limiting embodiments or aspects, the at least one processor may be further configured to iteratively repeat generating the prediction and adjusting the plurality of first embeddings, the first transformer encoder, the plurality of second embeddings, and the second transformer encoder until at least one termination condition is satisfied. [0020] In some non-limiting embodiments or aspects, the prediction may include a sequential prediction. [0021] In some non-limiting embodiments or aspects, the plurality of first entities may include a plurality of users. Additionally or alternatively, the plurality of second entities may include a plurality of contents. [0022] In some non-limiting embodiments or aspects, generating the plurality of first embeddings may include randomly initializing the plurality of first embeddings. [0023] In some non-limiting embodiments or aspects, generating the plurality of second embeddings may include randomly initializing the plurality of second embeddings. [0024] According to non-limiting embodiments or aspects, provided are computer program products for pretrained dual transformers for bipartite graphs. An example computer program product may include at least one non-transitory computer-readable medium including program instructions that, when executed by at least one processor, cause the at least one processor to receive graph data associated with a bipartite graph, which may include a plurality of first nodes, a plurality of second nodes, and a plurality of edges. Each first node of the plurality of first nodes may be associated with a first entity of a plurality of first entities. Each second node of the plurality of second nodes may be associated with a second entity of a plurality of second entities. Each edge of the plurality of edges may be associated with an interaction between a respective first entity of the plurality of first entities and a respective second entity of the plurality of second entities. A first entity context of each first entity of the plurality of first entities may include all second entities of the plurality of second entities connected thereto by at least one edge of the plurality of edges. A second entity context of each second entity of the plurality of second entities may include all first entities of the plurality of first entities connected thereto by at least one edge of the plurality of edges. A plurality of first embeddings including a respective first embedding associated with each first entity of the plurality of first entities may be generated. A plurality of first encoded representations including a respective first encoded 5UH6809.DOCX Page 5 of 54
Attorney Docket No.08223-2401902 (7476WO01) representation associated with each first entity of the plurality of first entities may be generated based on the first entity context of each first entity of the plurality of first entities and a first transformer encoder. A plurality of second embeddings including a respective second embedding associated with each second entity of the plurality of second entities may be generated. A plurality of second encoded representations including a respective second encoded representation associated with each second entity of the plurality of second entities may be generated based on the second entity context of each second entity of the plurality of second entities and a second transformer encoder. The plurality of first embeddings and the first transformer encoder may be adjusted based on a first contrastive loss between the plurality of first embeddings and the plurality of first encoded representations. The plurality of second embeddings and the second transformer encoder may be adjusted based on a second contrastive loss between the plurality of second embeddings and the plurality of second encoded representations. [0025] In some non-limiting embodiments or aspects, the instructions, when executed by the at least one processor, may further cause the at least one processor to iteratively repeat generating the plurality of first encoded representations, generating the plurality of second encoded representations, adjusting the plurality of first embeddings and the first transformer encoder, and adjusting the plurality of second embeddings and the second transformer encoder until at least one termination condition is satisfied. [0026] In some non-limiting embodiments or aspects, the instructions, when executed by the at least one processor, may further cause the at least one processor to generate a prediction based on the first embedding of a selected first entity of the plurality of first entities, the first entity context of the selected first entity, the first transformer encoder, and the second transformer encoder. [0027] In some non-limiting embodiments or aspects, the instructions, when executed by the at least one processor, may further cause the at least one processor to adjust the plurality of first embeddings, the first transformer encoder, the plurality of second embeddings, and the second transformer encoder based on a total loss determined based on the prediction. [0028] In some non-limiting embodiments or aspects, the instructions, when executed by the at least one processor, may further cause the at least one processor to iteratively repeat generating the prediction and adjusting the plurality of first 5UH6809.DOCX Page 6 of 54
Attorney Docket No.08223-2401902 (7476WO01) embeddings, the first transformer encoder, the plurality of second embeddings, and the second transformer encoder until at least one termination condition is satisfied. [0029] In some non-limiting embodiments or aspects, the prediction may include a sequential prediction. [0030] In some non-limiting embodiments or aspects, the plurality of first entities may include a plurality of users. Additionally or alternatively, the plurality of second entities may include a plurality of contents. [0031] In some non-limiting embodiments or aspects, generating the plurality of first embeddings may include randomly initializing the plurality of first embeddings. [0032] In some non-limiting embodiments or aspects, generating the plurality of second embeddings may include randomly initializing the plurality of second embeddings. [0033] According to non-limiting embodiments or aspects, provided are systems for pretrained dual transformers for bipartite graphs. An example system may include at least one processor configured to perform any of the methods described herein. [0034] According to non-limiting embodiments or aspects, provided are computer program products for pretrained dual transformers for bipartite graphs. An example computer program product may include at least one non-transitory computer-readable medium including program instructions that, when executed by at least one processor, cause the at least one processor to perform any of the methods described herein. [0035] Further non-limiting embodiments or aspects are set forth in the following numbered clauses: [0036] Clause 1: A computer-implemented method, comprising: receiving, with at least one processor, graph data associated with a bipartite graph comprising a plurality of first nodes, a plurality of second nodes, and a plurality of edges, each first node of the plurality of first nodes associated with a first entity of a plurality of first entities, each second node of the plurality of second nodes associated with a second entity of a plurality of second entities, each edge of the plurality of edges associated with an interaction between a respective first entity of the plurality of first entities and a respective second entity of the plurality of second entities, wherein a first entity context of each first entity of the plurality of first entities comprises all second entities of the plurality of second entities connected thereto by at least one edge of the plurality of edges, and wherein a second entity context of each second entity of the plurality of second entities comprises all first entities of the plurality of first entities connected 5UH6809.DOCX Page 7 of 54
Attorney Docket No.08223-2401902 (7476WO01) thereto by at least one edge of the plurality of edges; generating, with at least one processor, a plurality of first embeddings comprising a respective first embedding associated with each first entity of the plurality of first entities; generating, with at least one processor, a plurality of first encoded representations comprising a respective first encoded representation associated with each first entity of the plurality of first entities based on the first entity context of each first entity of the plurality of first entities and a first transformer encoder; generating, with at least one processor, a plurality of second embeddings comprising a respective second embedding associated with each second entity of the plurality of second entities; generating, with at least one processor, a plurality of second encoded representations comprising a respective second encoded representation associated with each second entity of the plurality of second entities based on the second entity context of each second entity of the plurality of second entities and a second transformer encoder; adjusting, with at least one processor, the plurality of first embeddings and the first transformer encoder based on a first contrastive loss between the plurality of first embeddings and the plurality of first encoded representations; and adjusting, with at least one processor, the plurality of second embeddings and the second transformer encoder based on a second contrastive loss between the plurality of second embeddings and the plurality of second encoded representations. [0037] Clause 2: The method of clause 1, further comprising: iteratively repeating, with at least one processor, generating the plurality of first encoded representations, generating the plurality of second encoded representations, adjusting the plurality of first embeddings and the first transformer encoder, and adjusting the plurality of second embeddings and the second transformer encoder until at least one termination condition is satisfied. [0038] Clause 3: The method of clause 1 or clause 2, further comprising: generating, with at least one processor, a prediction based on the first embedding of a selected first entity of the plurality of first entities, the first entity context of the selected first entity, the first transformer encoder, and the second transformer encoder. [0039] Clause 4: The method of any of clauses 1-3, further comprising: adjusting, with at least one processor, the plurality of first embeddings, the first transformer encoder, the plurality of second embeddings, and the second transformer encoder based on a total loss determined based on the prediction. 5UH6809.DOCX Page 8 of 54
Attorney Docket No.08223-2401902 (7476WO01) [0040] Clause 5: The method of any of clauses 1-4, further comprising: iteratively repeating, with at least one processor, generating the prediction and adjusting the plurality of first embeddings, the first transformer encoder, the plurality of second embeddings, and the second transformer encoder until at least one termination condition is satisfied. [0041] Clause 6: The method of any of clauses 1-5, wherein the prediction comprises a sequential prediction. [0042] Clause 7: The method of any of clauses 1-6, wherein the plurality of first entities comprises a plurality of users, and wherein the plurality of second entities comprises a plurality of contents. [0043] Clause 8: The method of any of clauses 1-7, wherein generating the plurality of first embeddings comprises randomly initializing the plurality of first embeddings. [0044] Clause 9: The method of any of clauses 1-8, wherein generating the plurality of second embeddings comprises randomly initializing the plurality of second embeddings. [0045] Clause 10: A system, comprising: at least one processor configured to: receive graph data associated with a bipartite graph comprising a plurality of first nodes, a plurality of second nodes, and a plurality of edges, each first node of the plurality of first nodes associated with a first entity of a plurality of first entities, each second node of the plurality of second nodes associated with a second entity of a plurality of second entities, each edge of the plurality of edges associated with an interaction between a respective first entity of the plurality of first entities and a respective second entity of the plurality of second entities, wherein a first entity context of each first entity of the plurality of first entities comprises all second entities of the plurality of second entities connected thereto by at least one edge of the plurality of edges, and wherein a second entity context of each second entity of the plurality of second entities comprises all first entities of the plurality of first entities connected thereto by at least one edge of the plurality of edges; generate a plurality of first embeddings comprising a respective first embedding associated with each first entity of the plurality of first entities; generate a plurality of first encoded representations comprising a respective first encoded representation associated with each first entity of the plurality of first entities based on the first entity context of each first entity of the plurality of first entities and a first transformer encoder; generate a plurality of second embeddings comprising a respective second embedding associated with each second 5UH6809.DOCX Page 9 of 54
Attorney Docket No.08223-2401902 (7476WO01) entity of the plurality of second entities; generate a plurality of second encoded representations comprising a respective second encoded representation associated with each second entity of the plurality of second entities based on the second entity context of each second entity of the plurality of second entities and a second transformer encoder; adjust the plurality of first embeddings and the first transformer encoder based on a first contrastive loss between the plurality of first embeddings and the plurality of first encoded representations; and adjust the plurality of second embeddings and the second transformer encoder based on a second contrastive loss between the plurality of second embeddings and the plurality of second encoded representations. [0046] Clause 11: The system of clause 10, wherein the at least one processor is further configured to: iteratively repeat generating the plurality of first encoded representations, generating the plurality of second encoded representations, adjusting the plurality of first embeddings and the first transformer encoder, and adjusting the plurality of second embeddings and the second transformer encoder until at least one termination condition is satisfied. [0047] Clause 12: The system of clause 10 or clause 11, wherein the at least one processor is further configured to: generate a prediction based on the first embedding of a selected first entity of the plurality of first entities, the first entity context of the selected first entity, the first transformer encoder, and the second transformer encoder. [0048] Clause 13: The system of any of clauses 10-12, wherein the at least one processor is further configured to: adjust the plurality of first embeddings, the first transformer encoder, the plurality of second embeddings, and the second transformer encoder based on a total loss determined based on the prediction. [0049] Clause 14: The system of any of clauses 10-13, wherein the at least one processor is further configured to: iteratively repeat generating the prediction and adjusting the plurality of first embeddings, the first transformer encoder, the plurality of second embeddings, and the second transformer encoder until at least one termination condition is satisfied. [0050] Clause 15: The system of any of clauses 10-14, wherein the prediction comprises a sequential prediction. [0051] Clause 16: The system of any of clauses 10-15, wherein the plurality of first entities comprises a plurality of users, and wherein the plurality of second entities comprises a plurality of contents. 5UH6809.DOCX Page 10 of 54
Attorney Docket No.08223-2401902 (7476WO01) [0052] Clause 17: The system of any of clauses 10-16, wherein generating the plurality of first embeddings comprises randomly initializing the plurality of first embeddings. [0053] Clause 18: The system of any of clauses 10-17, wherein generating the plurality of second embeddings comprises randomly initializing the plurality of second embeddings. [0054] Clause 19: A computer program product comprising at least one non- transitory computer-readable medium including program instructions that, when executed by at least one processor, cause the at least one processor to: receive graph data associated with a bipartite graph comprising a plurality of first nodes, a plurality of second nodes, and a plurality of edges, each first node of the plurality of first nodes associated with a first entity of a plurality of first entities, each second node of the plurality of second nodes associated with a second entity of a plurality of second entities, each edge of the plurality of edges associated with an interaction between a respective first entity of the plurality of first entities and a respective second entity of the plurality of second entities, wherein a first entity context of each first entity of the plurality of first entities comprises all second entities of the plurality of second entities connected thereto by at least one edge of the plurality of edges, and wherein a second entity context of each second entity of the plurality of second entities comprises all first entities of the plurality of first entities connected thereto by at least one edge of the plurality of edges; generate a plurality of first embeddings comprising a respective first embedding associated with each first entity of the plurality of first entities; generate a plurality of first encoded representations comprising a respective first encoded representation associated with each first entity of the plurality of first entities based on the first entity context of each first entity of the plurality of first entities and a first transformer encoder; generate a plurality of second embeddings comprising a respective second embedding associated with each second entity of the plurality of second entities; generate a plurality of second encoded representations comprising a respective second encoded representation associated with each second entity of the plurality of second entities based on the second entity context of each second entity of the plurality of second entities and a second transformer encoder; adjust the plurality of first embeddings and the first transformer encoder based on a first contrastive loss between the plurality of first embeddings and the plurality of first encoded representations; and adjust the plurality of second embeddings and the second 5UH6809.DOCX Page 11 of 54
Attorney Docket No.08223-2401902 (7476WO01) transformer encoder based on a second contrastive loss between the plurality of second embeddings and the plurality of second encoded representations. [0055] Clause 20: The computer program product of claim 19, wherein the instructions, when executed by the at least one processor, further cause the at least one processor to: generate a prediction based on the first embedding of a selected first entity of the plurality of first entities, the first entity context of the selected first entity, the first transformer encoder, and the second transformer encoder. [0056] Clause 21: A system comprising: at least one processor configured to perform the method of any of clauses 1-9. [0057] Clause 22: A computer program product comprising at least one non- transitory computer-readable medium including program instructions that, when executed by at least one processor, cause the at least one processor to perform the method of any of clauses 1-9. [0058] These and other features and characteristics of the present disclosure, as well as the methods of operation and functions of the related elements of structures and the combination of parts and economies of manufacture, will become more apparent upon consideration of the following description and the appended claims with reference to the accompanying drawings, all of which form a part of this specification, wherein like reference numerals designate corresponding parts in the various figures. It is to be expressly understood, however, that the drawings are for the purpose of illustration and description only and are not intended as a definition of the limits of the disclosed subject matter. BRIEF DESCRIPTION OF THE DRAWINGS [0059] Additional advantages and details are explained in greater detail below with reference to the non-limiting, exemplary embodiments that are illustrated in the accompanying schematic figures, in which: [0060] FIG. 1 is a schematic diagram of an example system for pretrained dual transformers for bipartite graphs, according to some non-limiting embodiments or aspects; [0061] FIG. 2 is a flow diagram of an example method for pretrained dual transformers for bipartite graphs, according to some non-limiting embodiments or aspects; 5UH6809.DOCX Page 12 of 54
Attorney Docket No.08223-2401902 (7476WO01) [0062] FIG. 3 is a diagram of an example payment processing network in which methods, systems, and/or computer program products, described herein, may be implemented, according to some non-limiting embodiments or aspects; [0063] FIG. 4 is a schematic diagram of example components of one or more devices of FIG. 1 and/or FIG. 3, according to some non-limiting embodiments or aspects; [0064] FIG.5A is a schematic diagram of an example bipartite graph, according to some non-limiting embodiments or aspects; [0065] FIGS.5B and 5C are schematic diagrams of example contexts for entities of a bipartite graph, according to some non-limiting embodiments or aspects; [0066] FIG.6 is a schematic diagram of an example implementation of pretrained dual transformers for bipartite graphs, according to some non-limiting embodiments or aspects; and [0067] FIG.7 is a schematic diagram of an example implementation of pretrained dual transformers for bipartite graphs, according to some non-limiting embodiments or aspects. DETAILED DESCRIPTION [0068] For purposes of the description hereinafter, the terms “end,” “upper,” “lower,” “right,” “left,” “vertical,” “horizontal,” “top,” “bottom,” “lateral,” “longitudinal,” and derivatives thereof shall relate to the embodiments as they are oriented in the drawing figures. However, it is to be understood that the present disclosure may assume various alternative variations and step sequences, except where expressly specified to the contrary. It is also to be understood that the specific devices and processes illustrated in the attached drawings, and described in the following specification, are simply exemplary and non-limiting embodiments or aspects of the disclosed subject matter. Hence, specific dimensions and other physical characteristics related to the embodiments or aspects disclosed herein are not to be considered as limiting. [0069] Some non-limiting embodiments or aspects are described herein in connection with thresholds. As used herein, satisfying a threshold may refer to a value being greater than the threshold, more than the threshold, higher than the threshold, greater than or equal to the threshold, less than the threshold, fewer than the threshold, lower than the threshold, less than or equal to the threshold, equal to the threshold, etc. 5UH6809.DOCX Page 13 of 54
Attorney Docket No.08223-2401902 (7476WO01) [0070] No aspect, component, element, structure, act, step, function, instruction, and/or the like used herein should be construed as critical or essential unless explicitly described as such. Also, as used herein, the articles “a” and “an” are intended to include one or more items and may be used interchangeably with “one or more” and “at least one.” Furthermore, as used herein, the term “set” is intended to include one or more items (e.g., related items, unrelated items, a combination of related and unrelated items, and/or the like) and may be used interchangeably with “one or more” or “at least one.” Where only one item is intended, the term “one” or similar language is used. Also, as used herein, the terms “has,” “have,” “having,” or the like are intended to be open-ended terms. Further, the phrase “based on” is intended to mean “based at least partially on” unless explicitly stated otherwise. In addition, reference to an action being “based on” a condition may refer to the action being “in response to” the condition. For example, the phrases “based on” and “in response to” may, in some non-limiting embodiments or aspects, refer to a condition for automatically triggering an action (e.g., a specific operation of an electronic device, such as a computing device, a processor, and/or the like). [0071] As used herein, the term “acquirer institution” may refer to an entity licensed and/or approved by a transaction service provider to originate transactions (e.g., payment transactions) using a payment device associated with the transaction service provider. The transactions the acquirer institution may originate may include payment transactions (e.g., purchases, original credit transactions (OCTs), account funding transactions (AFTs), and/or the like). In some non-limiting embodiments or aspects, an acquirer institution may be a financial institution, such as a bank. As used herein, the term “acquirer system” may refer to one or more computing devices operated by or on behalf of an acquirer institution, such as a server computer executing one or more software applications. [0072] As used herein, the term “account identifier” may include one or more primary account numbers (PANs), tokens, or other identifiers associated with a customer account. The term “token” may refer to an identifier that is used as a substitute or replacement identifier for an original account identifier, such as a PAN. Account identifiers may be alphanumeric or any combination of characters and/or symbols. Tokens may be associated with a PAN or other original account identifier in one or more data structures (e.g., one or more databases, and/or the like) such that they may be used to conduct a transaction without directly using the original account 5UH6809.DOCX Page 14 of 54
Attorney Docket No.08223-2401902 (7476WO01) identifier. In some examples, an original account identifier, such as a PAN, may be associated with a plurality of tokens for different individuals or purposes. [0073] As used herein, the terms “client” and “client device” may refer to one or more client-side devices or systems (e.g., remote from a transaction service provider) used to initiate or facilitate a transaction (e.g., a payment transaction). As an example, a “client device” may refer to one or more POS devices used by a merchant, one or more acquirer host computers used by an acquirer, one or more mobile devices used by a user, and/or the like. In some non-limiting embodiments or aspects, a client device may be an electronic device configured to communicate with one or more networks and initiate or facilitate transactions. For example, a client device may include one or more computers, portable computers, laptop computers, tablet computers, mobile devices, cellular phones, wearable devices (e.g., watches, glasses, lenses, clothing, and/or the like), PDAs, and/or the like. Moreover, a “client” may also refer to an entity (e.g., a merchant, an acquirer, and/or the like) that owns, utilizes, and/or operates a client device for initiating transactions (e.g., for initiating transactions with a transaction service provider). [0074] As used herein, the term “communication” may refer to the reception, receipt, transmission, transfer, provision, and/or the like of data (e.g., information, signals, messages, instructions, commands, and/or the like). For one unit (e.g., a device, a system, a component of a device or system, combinations thereof, and/or the like) to be in communication with another unit means that the one unit is able to directly or indirectly receive information from and/or transmit information to the other unit. This may refer to a direct or indirect connection (e.g., a direct communication connection, an indirect communication connection, and/or the like) that is wired and/or wireless in nature. Additionally, two units may be in communication with each other even though the information transmitted may be modified, processed, relayed, and/or routed between the first and second unit. For example, a first unit may be in communication with a second unit even though the first unit passively receives information and does not actively transmit information to the second unit. As another example, a first unit may be in communication with a second unit if at least one intermediary unit processes information received from the first unit and communicates the processed information to the second unit. In some non-limiting embodiments or aspects, a message may refer to a network packet (e.g., a data packet and/or the like) 5UH6809.DOCX Page 15 of 54
Attorney Docket No.08223-2401902 (7476WO01) that includes data. It will be appreciated that numerous other arrangements are possible. [0075] As used herein, the term “computing device” may refer to one or more electronic devices configured to process data. A computing device may, in some examples, include the necessary components to receive, process, and output data, such as a processor, a display, a memory, an input device, a network interface, and/or the like. A computing device may be a mobile device. As an example, a mobile device may include a cellular phone (e.g., a smartphone or standard cellular phone), a portable computer, a wearable device (e.g., watches, glasses, lenses, clothing, and/or the like), a personal digital assistant (PDA), and/or other like devices. A computing device may also be a desktop computer or other form of non-mobile computer. [0076] As used herein, the terms “electronic wallet” and “electronic wallet application” refer to one or more electronic devices and/or software applications configured to initiate and/or conduct payment transactions. For example, an electronic wallet may include a mobile device executing an electronic wallet application, and may further include server-side software and/or databases for maintaining and providing transaction data to the mobile device. An “electronic wallet provider” may include an entity that provides and/or maintains an electronic wallet for a customer, such as Google Pay®, Android Pay®, Apple Pay®, Samsung Pay®, and/or other like electronic payment systems. In some non-limiting examples, an issuer bank may be an electronic wallet provider. [0077] As used herein, the term “issuer institution” may refer to one or more entities, such as a bank, that provide accounts to customers for conducting transactions (e.g., payment transactions), such as initiating credit and/or debit payments. For example, an issuer institution may provide an account identifier, such as a PAN, to a customer that uniquely identifies one or more accounts associated with that customer. The account identifier may be embodied on a portable financial device, such as a physical financial instrument, e.g., a payment card, and/or may be electronic and used for electronic payments. The term “issuer system” refers to one or more computer devices operated by or on behalf of an issuer institution, such as a server computer executing one or more software applications. For example, an issuer system may include one or more authorization servers for authorizing a transaction. [0078] As used herein, the term “merchant” may refer to an individual or entity that provides goods and/or services, or access to goods and/or services, to customers 5UH6809.DOCX Page 16 of 54
Attorney Docket No.08223-2401902 (7476WO01) based on a transaction, such as a payment transaction. The term “merchant” or “merchant system” may also refer to one or more computer systems operated by or on behalf of a merchant, such as a server computer executing one or more software applications. [0079] As used herein, a “point-of-sale (POS) device” may refer to one or more devices, which may be used by a merchant to conduct a transaction (e.g., a payment transaction) and/or process a transaction. For example, a POS device may include one or more client devices. Additionally or alternatively, a POS device may include peripheral devices, card readers, scanning devices (e.g., code scanners), Bluetooth® communication receivers, near-field communication (NFC) receivers, radio frequency identification (RFID) receivers, and/or other contactless transceivers or receivers, contact-based receivers, payment terminals, and/or the like. As used herein, a “point- of-sale (POS) system” may refer to one or more client devices and/or peripheral devices used by a merchant to conduct a transaction. For example, a POS system may include one or more POS devices and/or other like devices that may be used to conduct a payment transaction. In some non-limiting embodiments or aspects, a POS system (e.g., a merchant POS system) may include one or more server computers programmed or configured to process online payment transactions through webpages, mobile applications, and/or the like. [0080] As used herein, the term “payment device” may refer to an electronic payment device, a portable financial device, a payment card (e.g., a credit or debit card), a gift card, a smartcard, smart media, a payroll card, a healthcare card, a wristband, a machine-readable medium containing account information, a keychain device or fob, an RFID transponder, a retailer discount or loyalty card, a cellular phone, an electronic wallet mobile application, a personal digital assistant (PDA), a pager, a security card, a computing device, an access card, a wireless terminal, a transponder, and/or the like. In some non-limiting embodiments or aspects, the payment device may include volatile or non-volatile memory to store information (e.g., an account identifier, a name of the account holder, and/or the like). [0081] As used herein, the term “payment gateway” may refer to an entity and/or a payment processing system operated by or on behalf of such an entity (e.g., a merchant service provider, a payment service provider, a payment facilitator, a payment facilitator that contracts with an acquirer, a payment aggregator, and/or the like), which provides payment services (e.g., transaction service provider payment 5UH6809.DOCX Page 17 of 54
Attorney Docket No.08223-2401902 (7476WO01) services, payment processing services, and/or the like) to one or more merchants. The payment services may be associated with the use of portable financial devices managed by a transaction service provider. As used herein, the term “payment gateway system” may refer to one or more computer systems, computer devices, servers, groups of servers, and/or the like, operated by or on behalf of a payment gateway. [0082] As used herein, the term “server” may refer to or include one or more computing devices that are operated by or facilitate communication and processing for multiple parties in a network environment, such as the Internet, although it will be appreciated that communication may be facilitated over one or more public or private network environments and that various other arrangements are possible. Further, multiple computing devices (e.g., servers, point-of-sale (POS) devices, mobile devices, etc.) directly or indirectly communicating in the network environment may constitute a “system.” [0083] As used herein, the term “system” may refer to one or more computing devices or combinations of computing devices (e.g., processors, servers, client devices, software applications, components of such, and/or the like). Reference to “a device,” “a server,” “a processor,” and/or the like, as used herein, may refer to a previously-recited device, server, or processor that is recited as performing a previous step or function, a different device, server, or processor, and/or a combination of devices, servers, and/or processors. For example, as used in the specification and the claims, a first device, a first server, or a first processor that is recited as performing a first step or a first function may refer to the same or different device, server, or processor recited as performing a second step or a second function. [0084] As used herein, the term “transaction service provider” may refer to an entity that receives transaction authorization requests from merchants or other entities and provides guarantees of payment, in some cases through an agreement between the transaction service provider and an issuer institution. For example, a transaction service provider may include a payment network such as Visa® or any other entity that processes transactions. The term “transaction processing system” may refer to one or more computer systems operated by or on behalf of a transaction service provider, such as a transaction processing server executing one or more software applications. A transaction processing server may include one or more processors 5UH6809.DOCX Page 18 of 54
Attorney Docket No.08223-2401902 (7476WO01) and, in some non-limiting embodiments or aspects, may be operated by or on behalf of a transaction service provider. [0085] Non-limiting embodiments or aspects of the disclosed subject matter are directed to methods, systems, and computer program products for machine learning for graph data, including, but not limited to, pretrained dual transformers for bipartite graphs. For example, non-limiting embodiments or aspects of the disclosed subject matter provide receiving graph data associated with a bipartite graph comprising a plurality of first nodes, a plurality of second nodes, and a plurality of edges. Each first node of the plurality of first nodes may be associated with a first entity of a plurality of first entities (e.g., users). Each second node of the plurality of second nodes may be associated with a second entity of a plurality of second entities (e.g., contents). Each edge of the plurality of edges may be associated with an interaction between a respective first entity (e.g., user) and a respective second entity (e.g., content). A first entity context (e.g., user context) of each first entity may include all second entities (e.g., all contents) connected thereto by at least one edge. A second entity context (e.g., content context) of each second entity of the plurality of second entities may include all first entities (e.g., users) connected thereto by at least one edge. A plurality of first embeddings comprising a respective first embedding associated with each first entity of the plurality of first entities may be generated. A plurality of first encoded representations including a respective first encoded representation associated with each first entity of the plurality of first entities may be generated based on the first entity context of each first entity of the plurality of first entities and a first transformer encoder. A plurality of second embeddings including a respective second embedding associated with each second entity of the plurality of second entities may be generated. A plurality of second encoded representations including a respective second encoded representation associated with each second entity of the plurality of second entities may be generated based on the second entity context of each second entity of the plurality of second entities and a second transformer encoder. The plurality of first embeddings and the first transformer encoder may be adjusted (e.g., trained) based on a first contrastive loss between the plurality of first embeddings and the plurality of first encoded representations. The plurality of second embeddings and the second transformer encoder may be adjusted (e.g., trained) based on a second contrastive loss between the plurality of second embeddings and the plurality of second encoded representations. As such, the disclosed subject matter enables 5UH6809.DOCX Page 19 of 54
Attorney Docket No.08223-2401902 (7476WO01) learning contextual knowledge from a dataset (e.g., the graph data associated with the bipartite graph) from two different perspectives (e.g., the user-side and the content- side), which is not possible with a single type of transformer. This dual perspective may be advantageous when the input is associated with a bipartite graph (e.g., in a user-content bipartite graph, the context of a user’s activity is not limited to the user’s personal history, and the contents each have their own context), as opposed to other use cases such as image or text inputs (e.g., in which the context is inherent in the image or text). Additionally, the disclosed subject matter enables pre-training in an unsupervised manner (e.g., based on the contrastive loss between embeddings and encoded representations), which may be advantageous when labeled data is scarce or unavailable. In some non-limiting embodiments or aspects, the disclosed subject matter provides generating a prediction based on the first embedding of a selected first entity of the plurality of first entities (e.g., a selected user), the first entity context of the selected first entity, the first transformer encoder, and the second transformer encoder. Additionally, the plurality of first embeddings, the first transformer encoder, the plurality of second embeddings, and the second transformer encoder may be adjusted based on a total loss determined based on the prediction. As such, the disclosed subject matter enables fine-tuning for a specific downstream task (e.g., a prediction, such as sequential recommendation, fraud detection, and/or the like) after pre-training. [0086] Referring now to FIG. 1, shown is an example system 100 for pretrained dual transformers for bipartite graphs, according to some non-limiting embodiments or aspects. As shown in FIG.1, system 100 may include machine learning model system 102, data storage system 104, user device 106, and/or communication network 112. [0087] Machine learning model system 102 may include one or more devices capable of receiving information from and/or communicating information to data storage system 104 and/or user device 106 (e.g., directly via wired or wireless communication connection, indirectly via communication network 112, and/or the like). For example, machine learning model system 102 may include a computing device, such as a server, a group of servers, a desktop computer, a portable computer, and/or other like devices. In some non-limiting embodiments or aspects, machine learning model system 102 may be in communication with a data storage device (e.g., data storage system 104), which may be local or remote to machine learning model system 102. In some non-limiting embodiments or aspects, machine learning model system 5UH6809.DOCX Page 20 of 54
Attorney Docket No.08223-2401902 (7476WO01) 102 may be capable of receiving information from, storing information in, communicating information to, or searching information stored in the data storage device (e.g., data storage system 104). [0088] Data storage system 104 may include one or more devices capable of receiving information from and/or communicating information to machine learning model system 102 and/or user device 106 (e.g., directly via wired or wireless communication connection, indirectly via communication network 112, and/or the like). For example, data storage system 104 may include a computing device, such as a server, a group of servers, and/or other like devices. In some non-limiting embodiments or aspects, data storage system 104 may include a data storage device. In some non-limiting embodiments or aspects, data storage system 104 may be capable of receiving information from, storing information in, communicating information to, or searching information stored in the data storage device. In some non-limiting embodiments or aspects, data storage system 104 may be part of machine learning model system 102 and/or part of the same system as machine learning model system 102. [0089] User device 106 may include one or more devices capable of receiving information from and/or communicating information to machine learning model system 102 and/or data storage system 104 (e.g., directly via wired or wireless communication connection, indirectly via communication network 112, and/or the like). For example, user device 106 may include a computing device, such as a mobile device, a portable computer, a desktop computer, and/or other like devices. Additionally or alternatively, each user device 106 may include a device capable of receiving information from and/or communicating information to other user devices 106 (e.g., directly via wired or wireless communication connection, indirectly via communication network 112, and/or the like). In some non-limiting embodiments or aspects, user device 106 may be part of machine learning model system 102 and/or part of the same system as machine learning model system 102. [0090] Communication network 112 may include one or more wired and/or wireless networks. For example, communication network 112 may include a cellular network (e.g., a long-term evolution (LTE®) network, a third generation (3G) network, a fourth generation (4G) network, a fifth generation (5G) network, a code division multiple access (CDMA) network, and/or the like), a public land mobile network (PLMN), a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), 5UH6809.DOCX Page 21 of 54
Attorney Docket No.08223-2401902 (7476WO01) a telephone network (e.g., the public switched telephone network (PSTN)), a private network (e.g., a private network associated with a transaction service provider), an ad hoc network, an intranet, the Internet, a fiber optic-based network, a cloud computing network, and/or the like, and/or a combination of these or other types of networks. [0091] The number and arrangement of systems and devices shown in FIG.1 are provided as an example. There may be additional systems and/or devices, fewer systems and/or devices, different systems and/or devices, and/or differently arranged systems and/or devices than those shown in FIG. 1. Furthermore, two or more systems or devices shown in FIG.1 may be implemented within a single system or device, or a single system or device shown in FIG.1 may be implemented as multiple, distributed systems or devices. Additionally or alternatively, a set of systems (e.g., one or more systems) or a set of devices (e.g., one or more devices) of system 100 may perform one or more functions described as being performed by another set of systems or another set of devices of system 100. [0092] Referring now to FIG.2, shown is an example method 200 for pretrained dual transformers for bipartite graphs according to some non-limiting embodiments or aspects. The steps shown in FIG. 2 are for example purposes only. It will be appreciated that additional, fewer, different, and/or a different order of steps may be used in non-limiting embodiments or aspects. In some non-limiting embodiments or aspects, one or more of the steps of method 200 may be performed (e.g., completely, partially, and/or the like) by machine learning model system 102 (e.g., one or more devices of machine learning model system 102). In some non-limiting embodiments or aspects, one or more of the steps of method 200 may be performed (e.g., completely, partially, and/or the like) by another system, another device, another group of systems, or another group of devices, separate from or including machine learning model system 102, such as data storage system 104, user device 106, and/or the like. [0093] As shown in FIG.2, at step 202, method 200 may include receiving graph data. For example, machine learning model system 102 may receive graph data (e.g., from data storage system 104). [0094] In some non-limiting embodiments or aspects, the graph data may be associated with a bipartite graph comprising a plurality of first nodes, a plurality of second nodes, and a plurality of edges. Each first node of the plurality of first nodes may be associated with a first entity of a plurality of first entities. Each second node of the plurality of second nodes may be associated with a second entity of a plurality of 5UH6809.DOCX Page 22 of 54
Attorney Docket No.08223-2401902 (7476WO01) second entities. Each edge of the plurality of edges may be associated with an interaction between a respective first entity of the plurality of first entities and a respective second entity of the plurality of second entities. [0095] In some non-limiting embodiments or aspects, a first entity context of each first entity of the plurality of first entities may include all second entities of the plurality of second entities connected thereto by at least one edge of the plurality of edges. Additionally or alternatively, a second entity context of each second entity of the plurality of second entities may include all first entities of the plurality of first entities connected thereto by at least one edge of the plurality of edges. [0096] As shown in FIG.2, at step 204, method 200 may include generating first embeddings. For example, machine learning model system 102 may generate a plurality of first embeddings comprising a respective first embedding associated with each first entity of the plurality of first entities. [0097] In some non-limiting embodiments or aspects, generating the plurality of first embeddings may include randomly initializing the plurality of first embeddings. [0098] As shown in FIG.2, at step 206, method 200 may include generating first encoded representations based on a first transformer encoder. For example, machine learning model system 102 may generate a plurality of first encoded representations comprising a respective first encoded representation associated with each first entity of the plurality of first entities based on the first entity context of each first entity of the plurality of first entities and a first transformer encoder. [0099] As shown in FIG.2, at step 208, method 200 may include generating second embeddings. For example, machine learning model system 102 may generate a plurality of second embeddings comprising a respective second embedding associated with each second entity of the plurality of second entities. [0100] In some non-limiting embodiments or aspects, generating the plurality of second embeddings may include randomly initializing the plurality of second embeddings. [0101] As shown in FIG.2, at step 210, method 200 may include generating second encoded representations based on a second transformer encoder. For example, machine learning model system 102 may generate a plurality of second encoded representations comprising a respective second encoded representation associated with each second entity of the plurality of second entities based on the second entity 5UH6809.DOCX Page 23 of 54
Attorney Docket No.08223-2401902 (7476WO01) context of each second entity of the plurality of second entities and a second transformer encoder. [0102] As shown in FIG. 2, at step 212, method 200 may include adjusting (e.g., training) the first embeddings and the first transformer encoder based on a first contrastive loss. For example, machine learning model system 102 may adjust (e.g., train) the plurality of first embeddings and the first transformer encoder based on a first contrastive loss between the plurality of first embeddings and the plurality of first encoded representations. [0103] As shown in FIG. 2, at step 214, method 200 may include adjusting (e.g., training) the second embeddings and the second transformer encoder based on second contrastive loss. For example, machine learning model system 102 may adjust (e.g., train) the plurality of second embeddings and the second transformer encoder based on a second contrastive loss between the plurality of second embeddings and the plurality of second encoded representations. [0104] In some non-limiting embodiments or aspects, at least some of the aforementioned steps may be iteratively repeated. For example, machine learning model system 102 may iteratively repeat generating the plurality of first encoded representations (e.g., step 206), generating the plurality of second encoded representations (e.g., step 210), adjusting the plurality of first embeddings and the first transformer encoder (e.g., step 212), and adjusting the plurality of second embeddings and the second transformer encoder (e.g., step 212) until at least one termination condition is satisfied. [0105] In some non-limiting embodiments or aspects, machine learning model system 102 may generate a prediction based on the first embedding of a selected first entity of the plurality of first entities, the first entity context of the selected first entity, the first transformer encoder, the second transformer encoder, any combination thereof, and/or the like. [0106] In some non-limiting embodiments or aspects, machine learning model system 102 may adjust (e.g., train) the plurality of first embeddings, the first transformer encoder, the plurality of second embeddings, and the second transformer encoder based on a total loss determined based on the prediction. [0107] In some non-limiting embodiments or aspects, machine learning model system 102 may iteratively repeat generating the prediction and adjusting the plurality 5UH6809.DOCX Page 24 of 54
Attorney Docket No.08223-2401902 (7476WO01) of first embeddings, the first transformer encoder, the plurality of second embeddings, and the second transformer encoder until at least one termination condition is satisfied. [0108] In some non-limiting embodiments or aspects, the prediction may include a sequential prediction. [0109] In some non-limiting embodiments or aspects, the plurality of first entities may include a plurality of users. Additionally or alternatively, the plurality of second entities may include a plurality of contents. [0110] Referring now to FIG. 3, depicted is a diagram of an example payment processing network 300, according to non-limiting embodiments or aspects. In some non-limiting embodiments or aspects, payment processing network 300 may be used in conjunction with the systems, methods, and/or computer program products described herein, and/or the systems, methods, and/or computer program products described herein may be implemented in payment processing network 300. As shown in FIG. 3, payment processing network 300 may include transaction processing system 301, payment gateway system 302, merchant system 304, issuer system 306, acquirer system 308, and/or consumer device 310. In some non-limiting embodiments or aspects, each of machine learning model system 102, data storage system 104, and/or user device 106 of FIG. 1 may be implemented by (e.g., part of) transaction processing system 301. In some non-limiting embodiments or aspects, at least one of machine learning model system 102, data storage system 104, and/or user device 106 of FIG. 1 may be implemented by (e.g., part of) another system, another device, another group of systems, or another group of devices, separate from or including transaction processing system 301, such as merchant system 304, issuer system 306, acquirer system 308, consumer device 310, and/or the like. For example, user device 106 may be implemented by (e.g., part of) at least one of payment gateway system 302, merchant system 304, issuer system 306, acquirer system 308, and/or consumer device 310. Additionally or alternatively, for example, data storage system 104 may be implemented by (e.g., part of) at least one of payment gateway system 302, merchant system 304, issuer system 306, acquirer system 308, and/or consumer device 310. [0111] Transaction processing system 301 may include one or more devices capable of receiving information from and/or communicating information to payment gateway system 302, merchant system 304, issuer system 306, acquirer system 308, consumer device 310, and/or the like (e.g., directly, indirectly, via a public and/or 5UH6809.DOCX Page 25 of 54
Attorney Docket No.08223-2401902 (7476WO01) private communication network connection, and/or the like). For example, as shown in FIG.3, transaction processing system 301 may be in communication with one or more issuer systems (e.g., issuer system 306), one or more acquirer systems (e.g., acquirer system 308), and/or one or more payment gateway systems (e.g., payment gateway system 302). Although only a single issuer system 306, single acquirer system 308, and single payment gateway system 302 are shown, it will be appreciated that transaction processing system 301 may be in communication with a plurality of issuer systems, a plurality of acquirer systems, and/or a plurality of payment gateways. In some non-limiting embodiments or aspects, transaction processing system 301 may include a computing device, such as a server (e.g., a transaction processing server), a group of servers, and/or other like devices. In some non-limiting embodiments or aspects, transaction processing system 301 may be in communication with a data storage device, which may be local or remote to transaction processing system 301. In some non-limiting embodiments or aspects, transaction processing system 301 may be capable of receiving information from, storing information in, communicating information to, or searching information stored in the data storage device. In some non-limiting embodiments or aspects, transaction processing system 301 may be associated with a transaction service provider, as described herein. In some non- limiting embodiments or aspects, transaction processing system 301 may also operate as an issuer system such that both transaction processing system 301 and issuer system 306 are a single system and/or controlled by a single entity. [0112] Payment gateway system 302 may include one or more devices capable of receiving information from and/or communicating information to transaction processing system 301, merchant system 304, issuer system 306, acquirer system 308, consumer device 310, and/or the like (e.g., directly, indirectly, via a public and/or private communication network connection, and/or the like). For example, as shown in FIG.3, payment gateway system 302 may be in communication with one or more merchant systems (e.g., merchant system 304), one or more acquirer systems (e.g., acquirer system 308), and/or one or more transaction processing systems (e.g., transaction processing system 301). Although only a single merchant system 304, single acquirer system 308, and single transaction processing system 301 are shown, it will be appreciated that payment gateway system 302 may be in communication with a plurality of merchant systems, a plurality of acquirer systems, and/or a plurality of transaction processing systems. In some non-limiting embodiments or aspects, 5UH6809.DOCX Page 26 of 54
Attorney Docket No.08223-2401902 (7476WO01) payment gateway system 302 may include a computing device, such as a server, a group of servers, and/or other like devices. In some non-limiting embodiments or aspects, payment gateway system 302 may be associated with a payment gateway, as described herein. [0113] Merchant system 304 may include one or more devices capable of receiving information from and/or communicating information to transaction processing system 301, payment gateway system 302, issuer system 306, acquirer system 308, consumer device 310, and/or the like (e.g., directly, indirectly, via a public and/or private communication network connection, and/or the like). For example, as shown in FIG.3, merchant system 304 may be in communication with one or more payment gateway systems (e.g., payment gateway system 302), one or more acquirer systems (e.g., acquirer system 308), and/or one or more consumer devices (e.g., consumer device 310). Although only a single payment gateway system 302, single acquirer system 308, and single consumer device 310 are shown, it will be appreciated that merchant system 304 may be in communication with a plurality of payment gateway systems, a plurality of acquirer systems, and/or a plurality of consumer devices. In some non-limiting embodiments or aspects, merchant system 304 may include a computing device, such as a server, a group of servers, a client device, a group of client devices, a POS device, a POS system, computers, computer systems, peripheral devices, and/or other like devices. In some non-limiting embodiments or aspects, merchant system 304 may be associated with a merchant, as described herein. In some non-limiting embodiments or aspects, merchant system 304 may include a device capable of receiving information from and/or communicating information to consumer device 310 via a short range communication connection (e.g., an NFC communication connection, an RFID communication connection, a Bluetooth® communication connection, a Zigbee® communication connection, and/or the like) with consumer device 310 and/or the like. In some non-limiting embodiments or aspects, merchant system 304 may include one or more client devices. For example, merchant system 304 may include a client device that allows a merchant to communicate information to transaction processing system 301 (e.g., via at least one of acquirer system 308 and/or payment gateway system 302). In some non-limiting embodiments or aspects, merchant system 304 (e.g., a client device thereof, a POS device thereof, and/or the like) may also operate as a payment gateway system such 5UH6809.DOCX Page 27 of 54
Attorney Docket No.08223-2401902 (7476WO01) that both merchant system 304 and payment gateway system 302 are a single system and/or controlled by a single entity. [0114] Issuer system 306 may include one or more devices capable of receiving information and/or communicating information to transaction processing system 301, payment gateway system 302, merchant system 304, acquirer system 308, consumer device 310, and/or the like (e.g., directly, indirectly, via a public and/or private communication network connection, and/or the like). For example, as shown in FIG. 3, issuer system 306 may be in communication with one or more transaction processing systems (e.g., transaction processing system 301) and/or one or more consumer devices (e.g., consumer device 310). Although only a single transaction processing system 301 and a single consumer device 310 are shown, it will be appreciated that issuer system 306 may be in communication with a plurality of transaction processing systems and/or a plurality of consumer devices 310. In some non-limiting embodiments or aspects, issuer system 306 may include a computing device, such as a server, a group of servers, and/or other like devices. In some non- limiting embodiments or aspects, issuer system 306 may be associated with an issuer institution, as described herein. For example, issuer system 306 may be associated with an issuer institution that issued a credit account, debit account, credit card, debit card, a payment device, and/or the like to a user associated with consumer device 310. [0115] Acquirer system 308 may include one or more devices capable of receiving information from and/or communicating information to transaction processing system 301, payment gateway system 302, merchant system 304, issuer system 306, consumer device 310, and/or the like (e.g., directly, indirectly, via a public and/or private communication network connection, and/or the like). For example, as shown in FIG.3, acquirer system 308 may be in communication with one or more transaction processing systems (e.g., transaction processing system 301), one or more payment gateway systems (e.g., payment gateway system 302), and/or one or more merchant systems (e.g., merchant system 304). Although only a single transaction processing system 301, a single payment gateway system 302, and a single merchant system 304 are shown, it will be appreciated that acquirer system 308 may be in communication with a plurality of transaction processing systems, a plurality of payment gateway systems, and/or a plurality of merchant systems. In some non- limiting embodiments or aspects, acquirer system 308 may include a computing 5UH6809.DOCX Page 28 of 54
Attorney Docket No.08223-2401902 (7476WO01) device, such as a server, a group of servers, and/or other like devices. In some non- limiting embodiments or aspects, acquirer system 308 may be associated with an acquirer institution, as described herein. [0116] Consumer device 310 may include one or more devices capable of receiving information from and/or communicating information to transaction processing system 301, payment gateway system 302, merchant system 304, issuer system 306, acquirer system 308, and/or the like (e.g., directly, indirectly, via a public and/or private communication network connection, and/or the like). For example, as shown in FIG. 3, consumer device 310 may be in communication with one or more merchant systems (e.g., merchant system 304) and/or one or more issuer systems (e.g., issuer system 306). Although only a single merchant system 304 and a single issuer system 306 are shown, it will be appreciated that consumer device 310 may be in communication with a plurality of merchant systems and/or a plurality of issuer systems. In some non- limiting embodiments or aspects, consumer device 310 may be associated with a user to whom a credit account, debit account, credit card, debit card, a payment device, and/or the like has been issued. In some non-limiting embodiments or aspects, user device 310 may include a computing device, such as a computer, a portable computer, a laptop computer, a tablet computer, a mobile device, a cellular phone, a smartphone, a wearable device (e.g., watches, glasses, lenses, clothing, and/or the like), a PDA, a client device, and/or other like devices. In some non-limiting embodiments or aspects, user device 310 may include a payment device, as described herein. In some non- limiting embodiments or aspects, consumer device 310 may include a device capable of receiving information from and/or communicating information to other customer devices 310 (e.g., directly, indirectly, via a public and/or private communication network connection, a short range communication connection, and/or the like). In some non-limiting embodiments or aspects, consumer device 310 may include a device capable of receiving information from and/or communicating information to merchant system 304 via a short range communication connection (e.g., an NFC communication connection, an RFID communication connection, a Bluetooth® communication connection, a Zigbee® communication connection, and/or the like) with merchant system 304 and/or the like. In some non-limiting embodiments or aspects, consumer device 310 may include a client device. [0117] In some non-limiting embodiments or aspects, transaction processing system 301 may communicate with merchant system 304 directly (e.g., via a public 5UH6809.DOCX Page 29 of 54
Attorney Docket No.08223-2401902 (7476WO01) and/or private communication network connection and/or the like). Additionally or alternatively, transaction processing system 301 may communicate with merchant system 304 through payment gateway 302 and/or acquirer system 308. In some non- limiting embodiments or aspects, an acquirer system 308 associated with merchant system 304 may operate as payment gateway 302 to facilitate the communication of transaction messages (e.g., authorization requests) from merchant system 304 to transaction processing system 301. In some non-limiting embodiments or aspects, merchant system 304 may communicate with payment gateway 302 directly (e.g., via a public and/or private communication network connection and/or the like). For example, a merchant system 304 that includes a physical POS device may communicate with payment gateway 302 through a public or private network to conduct card-present transactions. As another example, a merchant system 304 that includes a server (e.g., a web server) may communicate with payment gateway 302 through a public or private network, such as the Internet, to conduct card-not-present transactions. [0118] For the purpose of illustration, processing a transaction (e.g., a payment transaction) may include generating a transaction message (e.g., authorization request and/or the like) based on an account identifier of a customer (e.g., accountholder associated with customer device 310 and/or the like) and/or transaction data associated with the transaction. For example, merchant system 304 (e.g., a client device of merchant system 304, a POS device of merchant system 304, and/or the like) may initiate the transaction, e.g., by generating an authorization request (e.g., in response to receiving the account identifier from a payment device and/or a portable financial device of the customer and/or the like). Merchant system 304 may communicate the authorization request to payment gateway 302 and/or acquirer system 308. In some non-limiting embodiments or aspects, payment gateway 302 may communicate the authorization request to acquirer system 308 and/or transaction processing system 301. Additionally or alternatively, acquirer system 308 (and/or payment gateway 302) may communicate the authorization request to transaction processing system 301. After receiving the authorization request from merchant system 304 that identifies the account identifier of the customer (e.g., the accountholder associated with consumer device 310 and/or the account identifier), transaction processing system 301 may communicate the authorization request to issuer system 306 (e.g., the issuer system that issued the payment device and/or 5UH6809.DOCX Page 30 of 54
Attorney Docket No.08223-2401902 (7476WO01) account identifier). Issuer system 306 may determine an authorization decision (e.g., approve, deny, and/or the like) based on the authorization request, and/or issuer system 306 may generate an authorization response based on the authorization decision and/or the authorization request. Issuer system 306 may communicate the authorization response to transaction processing system 301. Transaction processing system 301 may communicate the authorization response to acquirer system 308 and/or payment gateway 302. In some non-limiting embodiments or aspects, acquirer system 308 may communicate the authorization response to payment gateway 302 and/or merchant system 304. Additionally or alternatively, payment gateway 302 (and/or acquirer system 308) may communicate the authorization response to merchant system 304. [0119] In some non-limiting embodiments or aspects, transaction processing system 301 and/or issuer system 306 may include at least one machine learning model (e.g., at least one of a fraud detection model, a risk detection model, a transaction authorization model, a credit approval model, a product recommendation model, a classifier model, an anomaly detection model, an authentication model, any combination thereof, and/or the like). For example, the machine learning model(s) may include at least one transformer encoder (e.g., pretrained dual transformers for bipartite graphs and/or the like), as described herein. Transaction processing system 301 and/or issuer system 306 may perform at least one task (e.g., generate a prediction and/or generate an embedding) based on the authorization request and the machine learning model(s). For example, performing the task(s) may include generating at least one prediction associated with fraud detection, risk detection, transaction authorization, credit approval, product recommendation, classification, anomaly detection, authentication, any combination thereof, and/or the like. In some non-limiting embodiments or aspects, transaction processing system 301 may communicate at least one message based on performing the task (e.g., generating the prediction and/or generate an embedding) to issuer system 306 (e.g., along with the authorization request). In some non-limiting embodiments or aspects, issuer system 306 may determine the authorization decision (e.g., approve, deny, and/or the like) based on the authorization request and the performance of the task (e.g., generation of the prediction and/or generation of the embedding). [0120] For the purpose of illustration, clearing and/or settlement of a transaction may include generating a message (e.g., clearing message and/or the like) based on 5UH6809.DOCX Page 31 of 54
Attorney Docket No.08223-2401902 (7476WO01) an account identifier of a customer (e.g., associated with customer device 310 and/or the like) and/or transaction data associated with the transaction. For example, merchant system 304 may generate at least one clearing message (e.g., a plurality of clearing messages, a batch of clearing messages, and/or the like). Merchant system 304 may communicate the clearing message(s) to acquirer system 308 (and/or payment gateway 302, which may communicate the clearing message(s) to acquirer system 308). Acquirer system 308 may communicate the clearing message(s) to transaction processing system 301. Transaction processing system 301 may communicate the clearing message(s) to issuer system 306. Issuer system 306 may generate at least one settlement message based on the clearing message(s). In some non-limiting embodiments or aspects, issuer system 306 may communicate the settlement message(s) and/or funds to transaction processing system 301 (and/or a settlement bank system associated with transaction processing system 301), and transaction processing system 301 (and/or the settlement bank system) may communicate the settlement message(s) and/or funds to acquirer system 308. Additionally or alternatively, issuer system 306 may communicate the settlement message(s) and/or funds to acquirer system 308. In some non-limiting embodiments or aspects, acquirer system 308 may communicate settlement message(s) and/or funds to merchant system 304 (and/or an account associated with merchant system 304). [0121] The systems and/or devices of FIG. 3 may communicate via one or more wired and/or wireless communication networks. For example, the communication network(s) may include a cellular network (e.g., a long-term evolution (LTE®) network, a third generation (3G) network, a fourth generation (4G) network, a fifth generation (5G) network, a code division multiple access (CDMA) network, and/or the like), a public land mobile network (PLMN), a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), a telephone network (e.g., the public switched telephone network (PSTN)), a private network (e.g., a private network associated with a transaction service provider), an ad hoc network, an intranet, the Internet, a fiber optic-based network, a cloud computing network, and/or the like, and/or a combination of these or other types of networks. [0122] The number and arrangement of systems, devices, and/or networks shown in FIG. 3 are provided as an example. There may be additional systems, devices, and/or networks; fewer systems, devices, and/or networks; different systems, devices, 5UH6809.DOCX Page 32 of 54
Attorney Docket No.08223-2401902 (7476WO01) and/or networks; and/or differently arranged systems, devices, and/or networks than those shown in FIG.3. Furthermore, two or more systems or devices shown in FIG.3 may be implemented within a single system or device, or a single system or device shown in FIG. 3 may be implemented as multiple, distributed systems or devices. Additionally or alternatively, a set of systems (e.g., one or more systems) or a set of devices (e.g., one or more devices) of payment processing network 300 may perform one or more functions described as being performed by another set of systems or another set of devices of payment processing network 300. [0123] Referring now to FIG.4, shown is a diagram of example components of a device 400 according to non-limiting embodiments. Device 400 may correspond to at least one of machine learning model system 102, data storage system 104, and/or user device 106 in FIG. 1 and/or at least one of transaction service provider system 302, issuer system 304, customer device 306, merchant system 308, and/or acquirer system 310 in FIG. 3, as an example. In some non-limiting embodiments, such systems or devices may include at least one device 400 and/or at least one component of device 400. The number and arrangement of components shown are provided as an example. In some non-limiting embodiments, device 400 may include additional components, fewer components, different components, or differently arranged components than those shown. Additionally or alternatively, a set of components (e.g., one or more components) of device 400 may perform one or more functions described as being performed by another set of components of device 400. [0124] As shown in FIG.4, device 400 may include a bus 402, a processor 404, memory 406, a storage component 408, an input component 410, an output component 412, and a communication interface 414. Bus 402 may include a component that permits communication among the components of device 400. In some non-limiting embodiments, processor 404 may be implemented in hardware, firmware, or a combination of hardware and software. For example, processor 404 may include a processor (e.g., a central processing unit (CPU), a graphics processing unit (GPU), an accelerated processing unit (APU), etc.), a microprocessor, a digital signal processor (DSP), and/or any processing component (e.g., a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), etc.) that can be programmed to perform a function. Memory 406 may include random access memory (RAM), read only memory (ROM), and/or another type of dynamic or static storage 5UH6809.DOCX Page 33 of 54
Attorney Docket No.08223-2401902 (7476WO01) device (e.g., flash memory, magnetic memory, optical memory, etc.) that stores information and/or instructions for use by processor 404. [0125] With continued reference to FIG. 4, storage component 408 may store information and/or software related to the operation and use of device 400. For example, storage component 408 may include a hard disk (e.g., a magnetic disk, an optical disk, a magneto-optic disk, a solid-state disk, etc.) and/or another type of computer-readable medium. Input component 410 may include a component that permits device 400 to receive information, such as via user input (e.g., a touch screen display, a keyboard, a keypad, a mouse, a button, a switch, a microphone, etc.). Additionally or alternatively, input component 410 may include a sensor for sensing information (e.g., a global positioning system (GPS) component, an accelerometer, a gyroscope, an actuator, etc.). Output component 412 may include a component that provides output information from device 400 (e.g., a display, a speaker, one or more light-emitting diodes (LEDs), etc.). Communication interface 414 may include a transceiver-like component (e.g., a transceiver, a separate receiver and transmitter, etc.) that enables device 400 to communicate with other devices, such as via a wired connection, a wireless connection, or a combination of wired and wireless connections. Communication interface 414 may permit device 400 to receive information from another device and/or provide information to another device. For example, communication interface 414 may include an Ethernet interface, an optical interface, a coaxial interface, an infrared interface, a radio frequency (RF) interface, a universal serial bus (USB) interface, a Wi-Fi® interface, a cellular network interface, and/or the like. [0126] Device 400 may perform one or more processes described herein. Device 400 may perform these processes based on processor 404 executing software instructions stored by a computer-readable medium, such as memory 406 and/or storage component 408. A computer-readable medium may include any non-transitory memory device. A memory device includes memory space located inside of a single physical storage device or memory space spread across multiple physical storage devices. Software instructions may be read into memory 406 and/or storage component 408 from another computer-readable medium or from another device via communication interface 414. When executed, software instructions stored in memory 406 and/or storage component 408 may cause processor 404 to perform one or more processes described herein. Additionally or alternatively, hardwired circuitry may be 5UH6809.DOCX Page 34 of 54
Attorney Docket No.08223-2401902 (7476WO01) used in place of or in combination with software instructions to perform one or more processes described herein. Thus, embodiments described herein are not limited to any specific combination of hardware circuitry and software. The term “configured to,” as used herein, may refer to an arrangement of software, device(s), and/or hardware for performing and/or enabling one or more functions (e.g., actions, processes, steps of a process, and/or the like). For example, “a processor configured to” may refer to a processor that executes software instructions (e.g., program code) that cause the processor to perform one or more functions. [0127] Referring now to FIG. 5A, shown is a schematic diagram of an example bipartite graph 500, according to some non-limiting embodiments or aspects. In some non-limiting embodiments or aspects, graph data associated with bipartite graph 500 may be stored (e.g., by machine learning model system 102, data storage system 104, and/or user device 106). In some non-limiting embodiments or aspects, graph data associated with bipartite graph 500 may be received (e.g., by machine learning model system 102 from data storage system 104 and/or user device 106). As shown in FIG. 5, bipartite graph 500 may include a plurality of first nodes 501 (e.g., ^ first nodes), a plurality of second nodes 502 (e.g., ^ second nodes), and a plurality of edges 503. [0128] In some non-limiting embodiments or aspects, each first node 501 of the plurality of first nodes 501 may be associated with a first entity (e.g., user) of a plurality of first entities (e.g. users ^^, ^^, ^^, … , ^^). Additionally or alternatively, each second node 502 of the plurality of second nodes 502 may be associated with a second entity (e.g., content) of a plurality of second entities (e.g., contents ^^, ^^, ^^, … , ^^). In some non-limiting embodiments or aspects, each edge 503 of the plurality of edges 503 may be associated with an interaction between a respective first entity (e.g., user) and a respective second entity (e.g., content). [0129] In some non-limiting embodiments or aspects, a bipartite graph ^ may be represented as ^ = {^, ^, ℰ}, wherein ^ is the vertex (e.g., node) set of first entities (e.g., users) such that ^^ ∈ ^, ^ is the vertex (e.g., node) set of second entities (e.g., contents) such that
∈ ^, and ℰ is the set such that each edge ^^,^ = (^^ , ^^) represents an interaction between user first entity ^^ and second
[0130] Referring now to FIGS. 5B and 5C, and with continued reference to FIG. 5A, FIGS. 5B and 5C show schematic diagrams of example contexts for entities of bipartite graph 500, according to some non-limiting embodiments or aspects. 5UH6809.DOCX Page 35 of 54
Attorney Docket No.08223-2401902 (7476WO01) [0131] In some non-limiting embodiments or aspects, as shown in FIG.5B, a first entity context of each first entity (e.g. user) of the plurality of first entities (e.g. users ^^, ^^, ^^, … , ^^) may include all second entities (e.g., contents) connected thereto by at least one edge 503 of the plurality of edges 503 of bipartite graph 500. [0132] In some non-limiting embodiments or aspects, a first entity context (e.g., user behavior history ^^ of a user ^^) may be represented as a vector of edges (e.g., ^^ = (^^^, … , ^^^), where ^^, … , ^^ are the corresponding contents that have interactions with user ^^ through edges). In some non-limiting embodiments or aspects, ^^^ may be a multivariate vector, if the edge has attributes. In some non-limiting embodiments or to simplify notation, user behavior history ^^ may be denoted as (^^, … , ^^), e.g., where there are no attributes associated with each edge ^^^. [0133] In some non-limiting embodiments or aspects, as shown in FIG. 5C, a second entity context of each second entity (e.g., content) of the plurality of second entities (e.g., contents ^^, ^^, ^^, … , ^^) may include all first entities (e.g., users) connected thereto by at least one edge 503 of the plurality of edges 503 of bipartite graph 500. [0134] In some non-limiting embodiments or aspects, a second entity context (e.g., content history ^^ of a content ^^) may be represented as a vector of edges (e.g., ^^ = (^^^, … , ^^^), where ^^, … , ^^ are the corresponding users that have interactions
. In some non-limiting embodiments or aspects, to simplify notation, content history ^^ may be denoted as (^^, … , ^^), e.g., if ^^ is univariate. [0135] Referring now to FIG. 6, shown is a schematic diagram of an example implementation 600 of pretrained dual transformers for bipartite graphs, according to some non-limiting embodiments or aspects. The components shown in FIG.6 are for example purposes only. It will be appreciated that additional, fewer, different, and/or a different order of components may be used in non-limiting embodiments or aspects. In some non-limiting embodiments or aspects, implementation 600 may be implemented (e.g., completely, partially, and/or the like) by machine learning model system 102 (e.g., one or more devices of machine learning model system 102). In some non-limiting embodiments or aspects, implementation 600 may be implemented (e.g., completely, partially, and/or the like) by another system, another device, another group of systems, or another group of devices, separate from or including machine 5UH6809.DOCX Page 36 of 54
Attorney Docket No.08223-2401902 (7476WO01) learning model system 102, such as data storage system 104, user device 106, and/or the like. [0136] In some non-limiting embodiments or aspects, first embedding layer 606-1 may generate a plurality of first embeddings 608-1, as described herein. For example, first embeddings 608-1 may include a respective first embedding associated with each first entity (e.g., user) of the plurality of first entities (e.g., users ^^, ^^, ^^, … , ^^ associated with first nodes 501 of bipartite graph 500). [0137] In some non-limiting embodiments or aspects, first transformer encoder 602-1 may generate a plurality of first encoded representations 604-1, as described herein. For example, first encoded representations 604-1 may include a respective first encoded representation associated with each first entity (e.g., user) of the plurality of first entities (e.g., users ^^, ^^, ^^, … , ^^ associated with first nodes 501 of bipartite graph 500), which may be generated based on the first entity context of each first entity (e.g., by inputting the first entity context to first transformer encoder 602-1 to generate the respective first encoded representation). [0138] In some non-limiting embodiments or aspects, second embedding layer 606-2 may generate a plurality of second embeddings 608-2, as described herein. For example, second embeddings 608-2 may include a respective second embedding associated with each second entity (e.g. content) of the plurality of second entities (e.g., contents ^^, ^^, ^^, … , ^^ associated with second nodes 502 of bipartite graph 500). [0139] In some non-limiting embodiments or aspects, second transformer encoder 602-2 may generate a plurality of second encoded representations 604-2, as described herein. For example, second encoded representations 604-2 may include a respective second encoded representation associated with each second entity (e.g., content) of the plurality of second entities (e.g., contents ^^, ^^, ^^, … , ^^ associated with second nodes 502 of bipartite graph 500), which may be generated based on the second entity context of each second entity (e.g., by inputting the second entity context to second transformer encoder 602-2 to generate the respective second encoded representation). [0140] In some non-limiting embodiments or aspects, the embedding of a user ^^ may be denoted as emb(^^). The context of the user ^^ (e.g., in the form of the user 5UH6809.DOCX Page 37 of 54
Attorney Docket No.08223-2401902 (7476WO01) behavior history ^^) may be a heterogeneous representation of the same entity (e.g., user ^^) as the embedding emb(^^). [0141] In some non-limiting embodiments or aspects, the embedding of a content ^^ may be denoted as emb(^^). The context of the content ^^ (e.g., in the form of content history ^^) may be a heterogeneous representation of the same entity (e.g., content ^^) as the embedding emb(^^). [0142] In some non-limiting embodiments or aspects, learning (e.g., pretraining) may match the two representations (e.g., embeddings and contexts), thereby providing a bi-directional mapping between the spaces of users and contents. For example, a goal of pretraining may be to jointly increase (e.g., maximize) the mutual information ^(^^; emb(^^)) and ^(^^; emb( ^^)). For example, an objective of pretraining may be to maximize the following equation: Equation 1
or aspects, the mutual information ^ may be defined based on the following equation: Equation 2
or aspects, given an edge ^^^ from a time-aware bipartite graph, the user behavior history ^^ of the user ^^ and the content history ^^ of the content ^^ before the timestamp of edge ^^^, an objective of pretraining may be to learn how to map ^^ and the embedding of ^^ to proximate regions in a latent space (e.g., first latent space, user latent space, and/or the like) and to map ^^ and the embedding of ^^ to proximate regions in a separate latent space (e.g., second latent space, content latent space, and/or the like). For example, a dual transformer model may include four parts: (1) The user embedding layer ! (e.g., first embedding layer 606-1), (2) the content embedding layer " (e.g., second embedding layer 606- 2), (3) the user history encoder #! (e.g., first transformer encoder 602-1) and (4) the content history encoder #" (e.g., second transformer encoder 602-2). [0145] In some non-limiting embodiments or aspects, the user history encoder #! (e.g., first transformer encoder 602-1) may include a multi-head transformer encoder. 5UH6809.DOCX Page 38 of 54
Attorney Docket No.08223-2401902 (7476WO01) Given a user ^^, the user history encoder #! may receive ^^ ’s behavior history ^^ = ( "(^^), … , "$^^%) as input and output a classification token (e.g., CLS token) as an encoded of ^^. For example, this output may be denoted as #!(^^).
limiting embodiments or aspects, the content history encoder #" (e.g., second transformer encoder 602-2) may include a multi-head transformer encoder. Given a user ^^, the content history encoder #" may receive ^^ ’s history ^^ = ( ! (^^ ), … , ! (^^ )) as input and output a classification token (e.g., CLS token) as representation of ^^. For example, this output may be denoted as #"(^^).
some non-limiting embodiments or aspects, a first contrastive loss (e.g., Contrastive Loss 1) between the plurality of first embeddings 608-1 and the plurality of first encoded representations 604-1 may be determined (e.g., by machine learning model system 102). [0148] In some non-limiting embodiments or aspects, given an edge ^^^, the contrastive loss ℒ! between the user behavior history ^^ (e.g., the encoded representation #!(^^) of the user behavior history ^^) and user embedding !(^^)
may be determined based on the following equation: Equation 3
and exp is the exponential function. [0149] In some non-limiting embodiments or aspects, a second contrastive loss (e.g., Contrastive Loss 2) between the plurality of second embeddings 608-2 and the plurality of second encoded representations 604-2 may be determined (e.g., by machine learning model system 102). In some non-limiting embodiments or aspects, a total loss may be determined based on the first contrastive loss (e.g., Contrastive Loss 1) and the second contrastive loss (e.g., Contrastive Loss 2). [0150] In some non-limiting embodiments or aspects, given an edge ^^^, the contrastive loss ℒ" between the content history ^^ (e.g., the encoded representation #"(^^) of the content history ^^) and the content embedding "$^^% may be determined based on the following equation: 5UH6809.DOCX Page 39 of 54
Attorney Docket No.08223-2401902 (7476WO01) Equation 4 aspects, the plurality of first
602-1 may be adjusted based on at least one of the first contrastive loss, the total loss, or any combination thereof. [0152] In some non-limiting embodiments or aspects, the plurality of second embeddings 608-2 and/or the second transformer encoder 602-2 may be adjusted based on the second contrastive, the total loss, or any combination thereof. [0153] In some non-limiting embodiments or aspects, determining of the contrastive losses and adjusting of the transformer encoders and/or embeddings, as described herein, may be referred to as pretraining (e.g., performing a pretraining task). [0154] In some non-limiting embodiments or aspects, after pretraining, the pretrained dual transformer model (e.g., at least one of first transformer encoder 602- 1 and/or second transformer encoder 602-2) may be used to perform at least one task (e.g., a downstream task). For example, the downstream task(s) may include generating at least one classification, prediction, fraud detection, risk detection, transaction authorization, credit approval, product recommendation, classification, anomaly detection, authentication, any combination thereof, and/or the like. [0155] For the purpose of illustration, the downstream task may include a recommendation. For example, given the user embedding !(^^) and user behavior history ^^ of a user ^^, a recommendation may include predicting the next item ^+,-. with which the user ^^ may interact. In some non-limiting embodiments or aspects, the user
!(^^) may have learned some long-term patterns in the pre- training, e.g., based on the contrastive loss ℒ!. Additionally or alternatively, the recent user behavior history ^^ may capture some short-term but time-aware patterns. As such, by jointly using the user embedding !(^^) and the user behavior history ^^, the different patterns (e.g., long- and short-term patterns) may be combined, and use of computation resources may be reduced (e.g., because there is no need to process the long history sequence of the user ^^). 5UH6809.DOCX Page 40 of 54
Attorney Docket No.08223-2401902 (7476WO01) [0156] In some non-limiting embodiments or aspects, for this illustrative downstream task, the user embedding ! (^^ ) may be encoded by the encoder #", and the resulting output may be concatenated with the recent user behavior history ^^. The result of the concatenation may be further encoded by #! to provide the final representation /^. For example, /^ may be determined based on the following equation: Equation 5
embodiments or aspects, the inner product /^ ⊺ ∙ "(^) may be used to measure how likely a user ^^ would be to interact with item ^. In some non-limiting embodiments or aspects, the pretrained dual transformer model (e.g., the transformer encoders thereof) may be finetuned based on at least one loss (e.g., at least one of the contrastive loss ℒ!, the contrastive loss ℒ", a Bayesian personalized ranking (BPR) loss ℒ234, any combination thereof, and/or the like). For example, a BPR loss ℒ234 may be determined based on the following equation: Equation 6
are the positive and negative samples of the next item, respectively. [0158] In some non-limiting embodiments or aspects, the total loss ℒ:;:<= (e.g., for finetuning) may be determined based on the contrastive loss ℒ!, the contrastive loss ℒ", and the BPR loss ℒ234. For example, the total loss ℒ:;:<= may be determined based on the following equation: Equation 7
illustration, Table 1 shows performance (e.g., based on recall and normalized discounted cumulative gain (NDCG) metrics) of an example pretrained dual transformer (PDT), as described herein, compared to other general (e.g., BPR-MF, NeuMF, NGCF, and LightGCN) and sequential (e.g., GRU4Rec, Caser, SASRec, and SRGNN) recommender models for a recommendation 5UH6809.DOCX Page 41 of 54
Attorney Docket No.08223-2401902 (7476WO01) (downstream) task. As shown in Table 1, PDT outperforms the other recommender models. Table 1 Model Recall @ 10 Recall @ 20 Recall @ 50 NDCG @ NDCG @ NDCG @ 10 20 50 BPR-MF 0.0710 0.1215 0.2324 0.0349 0.0476 0.0695
. , ple implementation 700 of pretrained dual transformers for bipartite graphs, according to some non-limiting embodiments or aspects. The components shown in FIG.7 are for example purposes only. It will be appreciated that additional, fewer, different, and/or a different order of components may be used in non-limiting embodiments or aspects. In some non-limiting embodiments or aspects, implementation 700 may be implemented (e.g., completely, partially, and/or the like) by machine learning model system 102 (e.g., one or more devices of machine learning model system 102). In some non-limiting embodiments or aspects, implementation 700 may be implemented (e.g., completely, partially, and/or the like) by another system, another device, another group of systems, or another group of devices, separate from or including machine learning model system 102, such as data storage system 104, user device 106, and/or the like. In some non-limiting embodiments or aspects, first transformer encoder 702- 1 may be the same as or similar to first transformer encoder 602-1. In some non- limiting embodiments or aspects, second transformer encoder 702-2 may be the same as or similar to second transformer encoder 602-2. In some non-limiting embodiments or aspects, third transformer encoder 702-3 may be the same as or similar to first transformer encoder 602-1 and/or first transformer encoder 702-1. For example, third transformer encoder 702-3 may share parameters with first transformer encoder 702- 1, but third transformer encoder 702-3 may have slight differences from first transformer encoder 702-1, as described herein. In some non-limiting embodiments or aspects, first transformer encoder 702-1, second transformer encoder 702-2, and 5UH6809.DOCX Page 42 of 54
Attorney Docket No.08223-2401902 (7476WO01) third transformer encoder 702-3 may be referred to collectively as “transformer encoders 702” or individually as “transformer encoder 702.” [0161] In some non-limiting embodiments or aspects, each transformer encoder 702 may include a plurality of transformer layers 710 (e.g., N transformer layers). Each transformer layer 710 may include at least one multi-head attention network 712 (or masked multi-head attention network 712a), at least one addition and normalization (Add&Norm) layer (e.g., first Add&Norm layer 714-1 and second Add&Norm layer 714- 2, collectively referred to as “Add&Norm layers 714,” and individually referred to as “Add&Norm layer 714”), and at least one feed forward network 716 (e.g., including at least one neural network layer, such as a fully connected neural network layer and/or the like). For example, each transformer layer 710 may include multi-head attention network 712 (or masked multi-head attention network 712a) that receives the input to that transformer layer 710, first Add&Norm layer 714-1 that receives the output of multi-head attention network 712 (or masked multi-head attention network 712a) and receives the input to that transformer layer 710 (e.g., via a residual connection), feed forward network 716 that receives the output of first Add&Norm layer 714-1, and second Add&Norm layer 714-2 that receives the output of feed forward network 716 and receives the output of first Add&Norm layer 714-1 (e.g., via a residual connection). [0162] In some non-limiting embodiments or aspects, the input to the first transformer layer 710 of each transformer encoder 702 may include the entity context of a respective entity (and/or embeddings of the entities in the entity context of the respective entity). For example, as shown in FIG.7, the input to the first transformer layer 710 of first transformer encoder 702-1 may include the context of a user ^^ (e.g., the history sequence of contents ^^, ^^, ^^, … , ^^ (and/or
thereof) associated with user ^^). For example, as shown in FIG. 7, the input to the first transformer layer 710 of second transformer encoder 702-2 may include the context of a content ^^ (e.g., the history sequence of users ^^, ^^, ^^, … , ^^ (and/or embeddings thereof) associated with content ^^). For example, as shown in FIG.7, the input to the first transformer layer 710 of third transformer encoder 702-3 may include the context of a user ^^ (e.g., the history sequence of contents ^^, ^^, ^^, … , ^^ (and/or embeddings thereof) associated with user ^^). [0163] In some non-limiting embodiments or aspects, the input to each subsequent transformer layer 710 of each transformer encoder 702 (e.g., after the first transformer 5UH6809.DOCX Page 43 of 54
Attorney Docket No.08223-2401902 (7476WO01) layer 710) may include the output of the preceding transformer layer 710. For example, the input to the second transformer layer 710 may include the output of the first transformer layer 710, etc. [0164] In some non-limiting embodiments or aspects, a first contrastive loss (e.g., User Contrastive Loss) between an embedding for a user ^^ and the encoded representation for the user ^^ output from first transformer encoder 702-1 may be determined (e.g., by machine learning model system 102), as described herein. In some non-limiting embodiments or aspects, the User Contrastive Loss (e.g., ℒ!) may be determined based on Equation 3. [0165] In some non-limiting embodiments or aspects, the embedding for a user ^^ and/or first transformer encoder 702-1 may be adjusted (e.g., the parameters thereof may be updated) based on the first contrastive loss (e.g., User Contrastive Loss). For example, machine learning model system 102 may update (e.g., adjust) the parameters of first transformer encoder 702-1 based on back propagation (e.g., of the loss), gradient calculations (e.g., based on the loss), any combination thereof, and/or the like. [0166] In some non-limiting embodiments or aspects, a second contrastive loss (e.g., Content Contrastive Loss) between an embedding for a content ^^ and the encoded representation for the content ^^ may be determined (e.g., by machine learning model system 102), as described herein. In some non-limiting embodiments or aspects, the Content Contrastive Loss (e.g., ℒ") may be determined based on Equation 4. [0167] In some non-limiting embodiments or aspects, the embedding for a content ^^ and/or second transformer encoder 702-2 may be adjusted (e.g., the parameters thereof may be updated) based on the second contrastive loss (e.g., Content Contrastive Loss). For example, machine learning model system 102 may update (e.g., adjust) the parameters of second transformer encoder 702-2 based on back propagation (e.g., of the loss), gradient calculations (e.g., based on the loss), any combination thereof, and/or the like. [0168] In some non-limiting embodiments or aspects, determining of the contrastive losses and adjusting of the transformer encoders 702 and/or embeddings, as described herein, may be referred to as pretraining (e.g., performing a pretraining task). 5UH6809.DOCX Page 44 of 54
Attorney Docket No.08223-2401902 (7476WO01) [0169] In some non-limiting embodiments or aspects, after pretraining, the parameters of first transformer encoder 702-1 may be shared with third transformer encoder 702-3. In some non-limiting embodiments or aspects, third transformer encoder 702-3 may perform at least one task (e.g., a downstream task). For example, the downstream task(s) may include generating at least one classification, prediction, fraud detection, risk detection, transaction authorization, credit approval, product recommendation, classification, anomaly detection, authentication, any combination thereof, and/or the like. [0170] In some non-limiting embodiments or aspects, the output of third transformer encoder 702-3 may be input to a machine learning model (e.g., downstream machine learning model) to perform at least one task (e.g., a downstream task). For example, the downstream machine learning model may include at least one of a classifier, a predictor, a fraud detection model, a risk detection model, a transaction authorization model, a credit approval model, a product recommendation model, a classifier model, an anomaly detection model, an authentication model, any combination thereof, and/or the like. In some non-limiting embodiments or aspects, the downstream machine learning model may include at least one of a neural network, a convolutional neural network, a recurrent neural network, an autoencoder (or portion thereof), a long short-term memory (LSTM), a bidirectional LSTM, an attention network, a transformer, any combination thereof, and/or the like. [0171] In some non-limiting embodiments or aspects, a loss (e.g., Downstream Loss) may be determined (e.g., by machine learning model system 102) based on the output (e.g., prediction and/or the like) of third transformer encoder 702-3 (and/or the output of the downstream machine learning model) and a prediction goal. For example, the prediction goal may include a label, a known value, an actual value, any combination thereof, and/or the like. [0172] In some non-limiting embodiments or aspects, the parameters of third transformer encoder 702-3 may be adjusted (e.g., updated) based on the loss (e.g., Downstream Loss). For example, machine learning model system 102 may update (e.g., adjust) the parameters of third transformer encoder 702-3 (and/or the downstream machine learning model) based on back propagation (e.g., of the loss), gradient calculations (e.g., based on the loss), any combination thereof, and/or the like. 5UH6809.DOCX Page 45 of 54
Attorney Docket No.08223-2401902 (7476WO01) [0173] In some non-limiting embodiments or aspects, the parameters of first transformer encoder 702-1 may be denoted as #!, second transformer encoder 702- 2 may be denoted as #", and third transformer encoder 702-3 may be denoted as #>. For the purpose of illustration, the downstream task may include a recommendation, as described herein. For example, the final representation /^ (e.g., the predicted content) may be determined based on the following equation: Equation 8
some non-limiting embodiments or aspects, the BPR loss ℒ234 may be determined based on Equation (e.g., using the /^ from Equation 8 rather than Equation 5). [0175] In some non-limiting embodiments or aspects, the total loss ℒ:;:<= may be determined based on the following equation: Equation 9 controlling the weights of contrastive losses. In
or aspects, the hyper-parameters ?! and ?" may be determined based on hyper-parameter tuning (e.g., grid search and/or the like). For example, the hyper-parameters could have values such as ?! = 0.01 and ?" = 0.05. [0176] In some non-limiting embodiments or aspects,
of the loss and adjusting of the third transformer encoder 702-3 (and/or the downstream machine learning model), as described herein, may be referred to as finetuning (e.g., finetuning third transformer encoder 702-3 to perform the downstream task). [0177] For the purpose of illustration, Table 2 shows performance (e.g., based on recall and NDCG metrics) of example pretrained dual transformers, as described herein, with feed forward network (hidden) dimension of 128 (PDT-Small) and 512 (PDT-Large) compared to other general (e.g., BPR-MF, NeuMF, NGCF, and LightGCN) and sequential (e.g., GRU4Rec, Caser, SASRec-Small, SASRec-Large, GCSAN, and SRGNN) recommender models for a recommendation (downstream) task. As shown in Table 2, PDT-Small and PDRT-Large outperforms the other recommender models. 5UH6809.DOCX Page 46 of 54
Attorney Docket No.08223-2401902 (7476WO01) Table 2 Model Recall @ 10 Recall @ 20 Recall @ 50 NDCG @ NDCG @ NDCG @ 10 20 50 BPR-MF 0.0710 0.1215 0.2324 0.0349 0.0476 0.0695
of illustration, it is to be understood that such detail is solely for that purpose and that the disclosure is not limited to the disclosed embodiments or aspects, but, on the contrary, is intended to cover modifications and equivalent arrangements that are within the spirit and scope of the appended claims. For example, it is to be understood that the present disclosure contemplates that, to the extent possible, one or more features of any embodiment or aspect can be combined with one or more features of any other embodiment or aspect. 5UH6809.DOCX Page 47 of 54
Claims
Attorney Docket No.08223-2401902 (7476WO01) WHAT IS CLAIMED IS: 1. A computer-implemented method, comprising: receiving, with at least one processor, graph data associated with a bipartite graph comprising a plurality of first nodes, a plurality of second nodes, and a plurality of edges, each first node of the plurality of first nodes associated with a first entity of a plurality of first entities, each second node of the plurality of second nodes associated with a second entity of a plurality of second entities, each edge of the plurality of edges associated with an interaction between a respective first entity of the plurality of first entities and a respective second entity of the plurality of second entities, wherein a first entity context of each first entity of the plurality of first entities comprises all second entities of the plurality of second entities connected thereto by at least one edge of the plurality of edges, and wherein a second entity context of each second entity of the plurality of second entities comprises all first entities of the plurality of first entities connected thereto by at least one edge of the plurality of edges; generating, with at least one processor, a plurality of first embeddings comprising a respective first embedding associated with each first entity of the plurality of first entities; generating, with at least one processor, a plurality of first encoded representations comprising a respective first encoded representation associated with each first entity of the plurality of first entities based on the first entity context of each first entity of the plurality of first entities and a first transformer encoder; generating, with at least one processor, a plurality of second embeddings comprising a respective second embedding associated with each second entity of the plurality of second entities; generating, with at least one processor, a plurality of second encoded representations comprising a respective second encoded representation associated with each second entity of the plurality of second entities based on the second entity context of each second entity of the plurality of second entities and a second transformer encoder; adjusting, with at least one processor, the plurality of first embeddings and the first transformer encoder based on a first contrastive loss between the plurality of first embeddings and the plurality of first encoded representations; and 5UH6809.DOCX Page 48 of 54
Attorney Docket No.08223-2401902 (7476WO01) adjusting, with at least one processor, the plurality of second embeddings and the second transformer encoder based on a second contrastive loss between the plurality of second embeddings and the plurality of second encoded representations. 2. The method of claim 1, further comprising: iteratively repeating, with at least one processor, generating the plurality of first encoded representations, generating the plurality of second encoded representations, adjusting the plurality of first embeddings and the first transformer encoder, and adjusting the plurality of second embeddings and the second transformer encoder until at least one termination condition is satisfied. 3. The method of claim 1, further comprising: generating, with at least one processor, a prediction based on the first embedding of a selected first entity of the plurality of first entities, the first entity context of the selected first entity, the first transformer encoder, and the second transformer encoder. 4. The method of claim 3, further comprising: adjusting, with at least one processor, the plurality of first embeddings, the first transformer encoder, the plurality of second embeddings, and the second transformer encoder based on a total loss determined based on the prediction. 5. The method of claim 4, further comprising: iteratively repeating, with at least one processor, generating the prediction and adjusting the plurality of first embeddings, the first transformer encoder, the plurality of second embeddings, and the second transformer encoder until at least one termination condition is satisfied. 6. The method of claim 3, wherein the prediction comprises a sequential prediction. 5UH6809.DOCX Page 49 of 54
Attorney Docket No.08223-2401902 (7476WO01) 7. The method of claim 1, wherein the plurality of first entities comprises a plurality of users, and wherein the plurality of second entities comprises a plurality of contents. 8. The method of claim 1, wherein generating the plurality of first embeddings comprises randomly initializing the plurality of first embeddings. 9. The method of claim 1, wherein generating the plurality of second embeddings comprises randomly initializing the plurality of second embeddings. 10. A system, comprising: at least one processor configured to: receive graph data associated with a bipartite graph comprising a plurality of first nodes, a plurality of second nodes, and a plurality of edges, each first node of the plurality of first nodes associated with a first entity of a plurality of first entities, each second node of the plurality of second nodes associated with a second entity of a plurality of second entities, each edge of the plurality of edges associated with an interaction between a respective first entity of the plurality of first entities and a respective second entity of the plurality of second entities, wherein a first entity context of each first entity of the plurality of first entities comprises all second entities of the plurality of second entities connected thereto by at least one edge of the plurality of edges, and wherein a second entity context of each second entity of the plurality of second entities comprises all first entities of the plurality of first entities connected thereto by at least one edge of the plurality of edges; generate a plurality of first embeddings comprising a respective first embedding associated with each first entity of the plurality of first entities; generate a plurality of first encoded representations comprising a respective first encoded representation associated with each first entity of the plurality of first entities based on the first entity context of each first entity of the plurality of first entities and a first transformer encoder; generate a plurality of second embeddings comprising a respective second embedding associated with each second entity of the plurality of second entities; 5UH6809.DOCX Page 50 of 54
Attorney Docket No.08223-2401902 (7476WO01) generate a plurality of second encoded representations comprising a respective second encoded representation associated with each second entity of the plurality of second entities based on the second entity context of each second entity of the plurality of second entities and a second transformer encoder; adjust the plurality of first embeddings and the first transformer encoder based on a first contrastive loss between the plurality of first embeddings and the plurality of first encoded representations; and adjust the plurality of second embeddings and the second transformer encoder based on a second contrastive loss between the plurality of second embeddings and the plurality of second encoded representations. 11. The system of claim 10, wherein the at least one processor is further configured to: iteratively repeat generating the plurality of first encoded representations, generating the plurality of second encoded representations, adjusting the plurality of first embeddings and the first transformer encoder, and adjusting the plurality of second embeddings and the second transformer encoder until at least one termination condition is satisfied. 12. The system of claim 10, wherein the at least one processor is further configured to: generate a prediction based on the first embedding of a selected first entity of the plurality of first entities, the first entity context of the selected first entity, the first transformer encoder, and the second transformer encoder. 13. The system of claim 12, wherein the at least one processor is further configured to: adjust the plurality of first embeddings, the first transformer encoder, the plurality of second embeddings, and the second transformer encoder based on a total loss determined based on the prediction. 14. The system of claim 13, wherein the at least one processor is further configured to: 5UH6809.DOCX Page 51 of 54
Attorney Docket No.08223-2401902 (7476WO01) iteratively repeat generating the prediction and adjusting the plurality of first embeddings, the first transformer encoder, the plurality of second embeddings, and the second transformer encoder until at least one termination condition is satisfied. 15. The system of claim 12, wherein the prediction comprises a sequential prediction. 16. The system of claim 10, wherein the plurality of first entities comprises a plurality of users, and wherein the plurality of second entities comprises a plurality of contents. 17. The system of claim 10, wherein generating the plurality of first embeddings comprises randomly initializing the plurality of first embeddings. 18. The system of claim 10, wherein generating the plurality of second embeddings comprises randomly initializing the plurality of second embeddings. 19. A computer program product comprising at least one non- transitory computer-readable medium including program instructions that, when executed by at least one processor, cause the at least one processor to: receive graph data associated with a bipartite graph comprising a plurality of first nodes, a plurality of second nodes, and a plurality of edges, each first node of the plurality of first nodes associated with a first entity of a plurality of first entities, each second node of the plurality of second nodes associated with a second entity of a plurality of second entities, each edge of the plurality of edges associated with an interaction between a respective first entity of the plurality of first entities and a respective second entity of the plurality of second entities, wherein a first entity context of each first entity of the plurality of first entities comprises all second entities of the plurality of second entities connected thereto by at least one edge of the plurality of edges, and wherein a second entity context of each second entity of the plurality of second entities comprises all first entities of the plurality of first entities connected thereto by at least one edge of the plurality of edges; 5UH6809.DOCX Page 52 of 54
Attorney Docket No.08223-2401902 (7476WO01) generate a plurality of first embeddings comprising a respective first embedding associated with each first entity of the plurality of first entities; generate a plurality of first encoded representations comprising a respective first encoded representation associated with each first entity of the plurality of first entities based on the first entity context of each first entity of the plurality of first entities and a first transformer encoder; generate a plurality of second embeddings comprising a respective second embedding associated with each second entity of the plurality of second entities; generate a plurality of second encoded representations comprising a respective second encoded representation associated with each second entity of the plurality of second entities based on the second entity context of each second entity of the plurality of second entities and a second transformer encoder; adjust the plurality of first embeddings and the first transformer encoder based on a first contrastive loss between the plurality of first embeddings and the plurality of first encoded representations; and adjust the plurality of second embeddings and the second transformer encoder based on a second contrastive loss between the plurality of second embeddings and the plurality of second encoded representations. 20. The computer program product of claim 19, wherein the instructions, when executed by the at least one processor, further cause the at least one processor to: generate a prediction based on the first embedding of a selected first entity of the plurality of first entities, the first entity context of the selected first entity, the first transformer encoder, and the second transformer encoder. 5UH6809.DOCX Page 53 of 54
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US202363469128P | 2023-05-26 | 2023-05-26 | |
| PCT/US2024/031246 WO2024249406A1 (en) | 2023-05-26 | 2024-05-28 | Method, system, and computer program product for pretrained dual transformers for bipartite graphs |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| EP4720887A1 true EP4720887A1 (en) | 2026-04-08 |
Family
ID=93658635
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| EP24816278.6A Pending EP4720887A1 (en) | 2023-05-26 | 2024-05-28 | Method, system, and computer program product for pretrained dual transformers for bipartite graphs |
Country Status (3)
| Country | Link |
|---|---|
| EP (1) | EP4720887A1 (en) |
| CN (1) | CN121311902A (en) |
| WO (1) | WO2024249406A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119615643A (en) * | 2025-02-13 | 2025-03-14 | 如鱼得水(杭州)软装定制有限公司 | Preparation method of anti-ultraviolet fabric and anti-ultraviolet fabric |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20220027707A1 (en) * | 2020-07-24 | 2022-01-27 | International Business Machines Corporation | Subgraph guided knowledge graph question generation |
| US11710049B2 (en) * | 2020-12-16 | 2023-07-25 | Ro5 Inc. | System and method for the contextualization of molecules |
-
2024
- 2024-05-28 CN CN202480035084.4A patent/CN121311902A/en active Pending
- 2024-05-28 WO PCT/US2024/031246 patent/WO2024249406A1/en not_active Ceased
- 2024-05-28 EP EP24816278.6A patent/EP4720887A1/en active Pending
Also Published As
| Publication number | Publication date |
|---|---|
| CN121311902A (en) | 2026-01-09 |
| WO2024249406A1 (en) | 2024-12-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20240428142A1 (en) | System, Method, and Computer Program Product for Multi-Domain Ensemble Learning Based on Multivariate Time Sequence Data | |
| US12566956B2 (en) | Method, system, and computer program product for generating robust graph neural networks using universal adversarial training | |
| US20240289613A1 (en) | Method, System, and Computer Program Product for Embedding Compression and Regularization | |
| US20230351431A1 (en) | System, Method, and Computer Program Product for Segmenting Users Using a Machine Learning Model Based on Transaction Data | |
| US12517926B2 (en) | System, method, and computer program product for analyzing a relational database using embedding learning | |
| CN116529707B (en) | Systems, methods, and computer program products for learning continuous embedding spaces for real-time payment transactions | |
| EP4720887A1 (en) | Method, system, and computer program product for pretrained dual transformers for bipartite graphs | |
| US12008449B2 (en) | System, method, and computer program product for iteratively refining a training data set | |
| US20250148353A1 (en) | Method, System, and Computer Program Product for Machine Learning Using Decoupled Knowledge Graphs | |
| EP4736068A2 (en) | System, method, and computer program product for generating counterfactual instances | |
| US20250209455A1 (en) | System, Method, and Computer Program Product for Network Message Augmentation | |
| US20240028874A1 (en) | System, Method, and Computer Program Product for Cleaning Noisy Data from Unlabeled Datasets Using Autoencoders | |
| WO2024197299A9 (en) | Method, system, and computer program product for providing a type aware transformer for sequential datasets | |
| EP4602515A1 (en) | Method, system, and computer program product for providing a framework to improve discrimination of graph features by a graph neural network | |
| CN114402335B (en) | Method, system and computer program product for managing model updates | |
| US12340297B1 (en) | System, method, and computer program product for generating and improving multitask learning models | |
| US20250322417A1 (en) | System, Method, and Computer Program Product for Predicting Consumer Behavior Based on Demographics and New Product Features Using Machine Learning Models | |
| WO2025178788A1 (en) | System, method, and computer program product for improved machine learning models for generating tabular data | |
| WO2024258705A2 (en) | Method, system, and computer program product for operating a large scale graph transformer machine learning model network architecture | |
| WO2026076083A1 (en) | System, method, and computer program product for reducing order bias of machine learning models via feature re-ordering | |
| WO2025075840A1 (en) | Method, system, and computer program product for analysis of machine learning models based on sequential counterfactual actions | |
| WO2025231375A1 (en) | System, method, and computer program product for enhancing machine learning model performance without altering the model or acquiring additional data | |
| WO2023215043A1 (en) | System, method, and computer program product for active learning in graph neural networks through hybrid uncertainty reduction |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE INTERNATIONAL PUBLICATION HAS BEEN MADE |
|
| PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: REQUEST FOR EXAMINATION WAS MADE |
|
| 17P | Request for examination filed |
Effective date: 20260102 |
|
| AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC ME MK MT NL NO PL PT RO RS SE SI SK SM TR |