Distributed external generalization graph processing method and system based on decoupling representation learning, and product

Through the decoupled representation learning method, the graph invariant information and graph changing information in the graph neural network are processed, and various distributed environments are simulated for self-supervised comparative learning, which solves the problem of performance degradation of the graph neural network in the distribution shift scenario and improves Graph representation learning ability.

CN118537675AActive Publication Date: 2024-08-23TSINGHUA UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410604501.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2024-08-23
Estimated Expiration
2044-05-15

AI Technical Summary

Technical Problem

The performance of existing graph neural networks drops significantly when faced with distribution shifts, and their reliance on graph labels leads to low performance in out-of-distribution generalization scenarios and low graph representation learning capabilities.

Method used

Using a method based on decoupled representation learning, unlabeled graph structure data is input into the graph neural network model, node representations are updated through the neighbor aggregation mechanism, and representation vectors of graph invariant information and graph changing information are obtained through graph convolution channel processing, simulation Self-supervised comparative learning is performed in a variety of distribution environments to obtain a well-trained graph neural network model.

Benefits of technology

Without relying on data labels, it distinguishes and dissociates graph-invariant information and graph-changing information in graph-structured data, prevents spurious correlation, and improves the prediction performance and graph representation learning capabilities of graph neural networks in out-of-distribution generalization scenarios. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537675A
    Figure CN118537675A
Patent Text Reader

Abstract

The invention provides an out-of-distribution generalization graph processing method, system and product based on decoupling representation learning, and relates to the technical field of graph processing. The method comprises the steps of inputting label-free graph structure data into a to-be-trained graph neural network model, and performing L times of iterative updating on node representation of each node in the graph structure data according to neighbor information to obtain updated node representation; processing the updated node representation through K graph convolution channels to obtain K representations of each node; processing the K representations of each node into a representation vector of graph invariant information and a representation vector of graph variation information; simulating various distribution environments according to the representation vector of the graph change information; in a plurality of distribution environments, self-supervised contrast learning is carried out by using the representation vector of the graph invariant information, and a trained graph neural network model is obtained and is used for classification of a graph data set, so that when a distribution difference exists between a test environment and a training environment, the prediction effect of the graph neural network model is adaptively ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of graph processing technology, and in particular, to a distributed out-of-band generalization graph processing method, system, and product based on decoupled representation learning. Background Art

[0002] In the real world, graph structured data is ubiquitous in various fields, such as social networks, transportation networks, financial networks, and chemical molecules. As a core topic in graph machine learning, Graph Neural Network (GNN) has made significant progress in academia and industry.

[0003] However, most existing studies assume that training and test data come from the same distribution, ignoring the fact that the distribution of training and test data is inconsistent in actual applications. This distribution shift phenomenon is ubiquitous and unavoidable, causing the performance of existing graph neural networks to significantly degrade when faced with distribution shift. Currently, existing work relies heavily on graph labels when learning out-of-distribution generalized graph representations, which are often scarce or even unavailable in actual applications. This results in low performance of graph neural networks and low graph representation learning ability in out-of-distribution generalization scenarios. Summary of the invention

[0004] Based on the above technical problems, an embodiment of the present invention provides a distribution out-of-generalization graph processing method, system and product based on decoupled representation learning, so as to adaptively ensure the prediction effect of the graph neural network model when there are distribution differences between the test environment and the training environment.

[0005] An embodiment of the present invention provides a method for processing an out-of-distribution generalization graph based on decoupled representation learning, the method comprising:

[0006] The unlabeled graph structure data is input into the graph neural network model to be trained, and the node representation of each node in the unlabeled graph structure data is iteratively updated L times according to the neighbor information using a neighbor aggregation mechanism to obtain an updated node representation; wherein the updated node representation of a node aggregates all information of the L-order neighbors of the node;

[0007] Processing the updated node representations through K independent graph convolution channels of the graph neural network model to be trained to obtain K representations of each node; wherein K and L are natural numbers greater than 1;

[0008] Processing the K representations of each node into a representation vector of graph invariant information and a representation vector of graph change information;

[0009] By using the graph neural network model to be trained, simulating various distribution environments of the unlabeled graph structure data according to the representation vector of the graph change information;

[0010] Using the graph neural network model to be trained, under the multiple distribution environments, the representation vector of the graph invariant information is used to perform self-supervised comparative learning to obtain a trained graph neural network model;

[0011] The molecular graph in the graph data set is input into the trained graph neural network model to obtain a graph representation of the molecular graph, and the graph data set is classified according to the graph representation of the molecular graph.

[0012] Optionally, processing the K representations of each node into a representation vector of graph invariant information and a representation vector of graph change information includes:

[0013] Through the graph information classification neural network, based on the group theory idea, it is assumed that any one or more of the K representations are representation vectors of candidate graph change information, and it is assumed that the remaining representations of the K representations are representation vectors of candidate graph invariant information;

[0014] Based on the representation vector of the candidate graph change information, simulate multiple hypothetical distribution environments;

[0015] Under the multiple hypothetical distribution environments, using the representation vector of the candidate graph invariant information to perform self-supervised contrastive learning, and calculating the hypothetical loss value corresponding to the graph information classification neural network;

[0016] Re-assuming that any one or more of the K representations are representation vectors of the candidate image change information, and assuming that the remaining representations of the K representations are representation vectors of the candidate image invariant information, until the assumed loss values ​​of all assumed situations of the K representations are calculated;

[0017] According to the assumptions of the K representations corresponding to the minimum assumption loss value, the K representations are processed into a representation vector of the graph invariant information and a representation vector of the graph change information.

[0018] Optionally, simulating various distribution environments of the unlabeled graph structure data according to the representation vector of the graph change information includes:

[0019] Clustering is performed according to the representation vector of the graph change information to obtain a clustering result;

[0020] Based on the clustering results, the multiple distribution environments are simulated to encourage the representation vector of the graph change information to maintain predictability of the distribution environment in the multiple distribution environments.

[0021] Optionally, the graph neural network model to be trained includes at least: a regularizer; in the multiple distribution environments, using the representation vector of the graph invariant information to perform self-supervised contrastive learning to obtain a trained graph neural network model, including:

[0022] By means of the regularizer, the representation vector of the graph invariant information is urged to maintain stability in the prediction of graph representation in the multiple distribution environments, and the representation vector of the graph invariant information represents information in the unlabeled graph structure data that truly has graph representation prediction value;

[0023] Perform graph representation prediction based on the representation vector of the graph invariant information, and calculate the loss value corresponding to the graph neural network model to be trained through self-supervised contrastive learning;

[0024] Based on the assumed loss value corresponding to the graph information classification neural network and the loss value corresponding to the graph neural network model to be trained, the model parameters of the graph neural network model to be trained are adjusted to obtain the trained graph neural network model.

[0025] Optionally, the graph data set includes a drug data set, the molecular graph includes a drug molecule graph, and the method further includes:

[0026] Using the labeled molecular graph to perform a model test on the trained graph neural network model to obtain a test result;

[0027] The step of inputting the molecular graph in the graph data set into the trained graph neural network model to obtain a graph representation of the molecular graph, and classifying the graph data set according to the graph representation of the molecular graph includes:

[0028] When the test result satisfies the conditions, the unlabeled drug molecule graph in the drug data set is input into the trained graph neural network model to obtain a graph representation of the drug molecule graph;

[0029] The drug dataset is classified based on the graph representation of the drug molecule graph.

[0030] Optionally, the method further comprises:

[0031] Inputting the social network graph data into the trained graph neural network model to obtain a graph representation of the social network graph data;

[0032] Analyze the social network graph data based on the graph representation of the social network graph data to obtain analysis results;

[0033] The analysis result includes at least: dynamic changes and data migration of the social network corresponding to the social network graph data.

[0034] Optionally, the method further comprises:

[0035] Inputting the graph data in the human-computer interaction system into the trained graph neural network model to obtain the graph representation corresponding to the human-computer interaction;

[0036] Based on the graph representation corresponding to the human-computer interaction, user needs and user behaviors in the human-computer interaction system are understood and predicted.

[0037] A second aspect of an embodiment of the present invention provides a distributed generalization graph processing system based on decoupled representation learning, the system comprising:

[0038] A node representation module is used to input the unlabeled graph structure data into the graph neural network model to be trained, and adopt a neighbor aggregation mechanism to iteratively update the node representation of each node in the unlabeled graph structure data L times according to the neighbor information to obtain an updated node representation; wherein the updated node representation of a node aggregates all information of the L-order neighbors of the node;

[0039] A representation processing module, used to process the updated node representation through K independent graph convolution channels of the graph neural network model to be trained to obtain K representations of each node; wherein K and L are natural numbers greater than 1;

[0040] A representation classification module, used for processing the K representations of each node into a representation vector of graph invariant information and a representation vector of graph change information;

[0041] An environment simulation module, used to simulate various distribution environments of the unlabeled graph structure data according to the representation vector of the graph change information through the graph neural network model to be trained;

[0042] A model training module, used to perform self-supervised comparative learning using the representation vector of the graph invariant information through the graph neural network model to be trained under the multiple distribution environments to obtain a trained graph neural network model;

[0043] The graph processing module is used to input the molecular graph in the graph data set into the trained graph neural network model to obtain the graph representation of the molecular graph, and classify the graph data set according to the graph representation of the molecular graph.

[0044] Optionally, the characterization and classification module comprises:

[0045] A first hypothesis module is used to use a graph information classification neural network and, based on group theory, assume that any one or more of the K representations are representation vectors of candidate graph change information, and assume that the remaining representations of the K representations are representation vectors of candidate graph invariant information;

[0046] An environment hypothesis module, used for simulating multiple hypothetical distribution environments based on the representation vector of the candidate graph change information;

[0047] A first loss calculation module is used to perform self-supervised contrastive learning using the representation vector of the invariant information of the candidate graph under the multiple hypothetical distribution environments to calculate the hypothetical loss value corresponding to the graph information classification neural network;

[0048] A second assumption module is used to re-assume that any one or more of the K representations are representation vectors of the candidate image change information, and to assume that the remaining representations of the K representations are representation vectors of the candidate image invariant information, until the assumption loss values ​​of all assumptions of the K representations are calculated;

[0049] The representation determination module is used to process the K representations into a representation vector of the graph invariant information and a representation vector of the graph change information according to the assumptions of the K representations corresponding to the minimum assumption loss value.

[0050] Optionally, the environment simulation module includes:

[0051] A clustering module, used for clustering according to the representation vector of the graph change information to obtain a clustering result;

[0052] An environment determination module is used to simulate the multiple distribution environments based on the clustering results to encourage the representation vector of the graph change information to maintain predictability of the distribution environment in the multiple distribution environments.

[0053] Optionally, the graph neural network model to be trained includes at least: a regularizer; a model training module, including:

[0054] A normalization module, configured to enable the representation vector of the graph invariant information to maintain stability of graph representation prediction in the multiple distribution environments through the regularizer, wherein the representation vector of the graph invariant information represents information in the unlabeled graph structure data that truly has graph representation prediction value;

[0055] A second loss calculation module is used to perform graph representation prediction based on the representation vector of the graph invariant information, and calculate the loss value corresponding to the graph neural network model to be trained through self-supervised contrastive learning;

[0056] A model parameter adjustment module is used to adjust the model parameters of the graph neural network model to be trained based on the assumed loss value corresponding to the graph information classification neural network and the loss value corresponding to the graph neural network model to be trained, so as to obtain the trained graph neural network model.

[0057] Optionally, the graph data set includes a drug data set, the molecular graph includes a drug molecule graph, and the system further includes:

[0058] A model testing module, used to perform model testing on the trained graph neural network model using annotated molecular graphs to obtain test results;

[0059] The graph processing module comprises:

[0060] A drug characterization module, used for inputting the unlabeled drug molecule graph in the drug data set into the trained graph neural network model to obtain a graph characterization of the drug molecule graph when the test result meets the conditions;

[0061] A drug classification module is used to classify the drug dataset based on the graph representation of the drug molecule graph.

[0062] Optionally, the system further comprises:

[0063] A social data processing module, used to input social network graph data into the trained graph neural network model to obtain a graph representation of the social network graph data;

[0064] A social data analysis module, configured to analyze the social network graph data based on the graph representation of the social network graph data to obtain an analysis result;

[0065] The analysis result includes at least: dynamic changes and data migration of the social network corresponding to the social network graph data.

[0066] Optionally, the system further comprises:

[0067] A human-computer interaction processing module, used to input the graph data in the human-computer interaction system into the trained graph neural network model to obtain the graph representation corresponding to the human-computer interaction;

[0068] The human-computer interaction analysis module is used to understand and predict user needs and user behaviors in the human-computer interaction system based on the graph representation corresponding to the human-computer interaction.

[0069] A third aspect of an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the distributed out-of-band generalization graph processing method based on decoupled representation learning as described in the first aspect of the embodiment of the present invention is implemented.

[0070] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for processing a distributed generalization graph based on decoupled representation learning as described in the first aspect of an embodiment of the present invention is implemented.

[0071] The embodiment of the present invention provides a distribution out-of-band generalization graph processing method based on decoupled representation learning. First, the unlabeled graph structure data is input into the graph neural network model to be trained, and the node representation of each node in the unlabeled graph structure data is iteratively updated L times by using the neighbor aggregation mechanism to obtain the updated node representation; secondly, the updated node representation of each node is processed through K independent graph convolution channels to obtain K representations of each node; then, the K representations of each node are processed into a representation vector of graph invariant information and a representation vector of graph change information, and then, according to the representation vector of graph change information, various distribution environments of unlabeled graph structure data are simulated; finally, in various distribution environments, the representation vector of graph invariant information is used for self-supervised comparative learning to obtain A trained graph neural network model is used to classify molecular graphs based on the trained graph neural network model, so that the graph invariant information and graph variation information represented by the graph structure can be distinguished, independent and dissociated without relying on data labels, thereby removing pseudo-correlations in the representation, simulating various distribution environments based on graph variation information, and performing self-supervised comparative learning based on graph invariant information in various distribution environments, thereby preventing the graph neural network model from making predictions based on pseudo-correlations between graph variation information and labels, and encouraging the graph neural network model to make predictions based on stable graph invariant information, so as to adaptively ensure the prediction effect of the model when there are distribution differences between the test environment and the training environment, thereby improving the prediction performance of the out-of-distribution generalization graph neural network and the graph representation learning ability of the graph neural network. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0073] Figure 1 It is a flow chart of a method for processing a distributed generalization graph based on decoupled representation learning provided by an embodiment of the present invention;

[0074] Figure 2 It is a flow chart of a method for pre-training an out-of-distribution generalization graph based on decoupled representation according to an embodiment of the present invention;

[0075] Figure 3It is a structural block diagram of a distributed generalization graph processing system based on decoupled representation learning shown in one embodiment of the present invention;

[0076] Figure 4 It is a schematic diagram of an electronic device shown in an embodiment of the present invention. DETAILED DESCRIPTION

[0077] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0078] Currently, graph neural networks are mainly divided into three aspects:

[0079] The first aspect is graph neural network representation learning: Graph neural networks have received widespread attention recently. Thanks to their powerful graph representation capabilities, they have achieved relatively ideal performance in many tasks. This type of method mainly adopts a neighbor aggregation mechanism to iteratively update the node representation based on neighbor information. After obtaining the updated node representation, the full graph representation is aggregated and summarized through the graph pooling method. The effect of this type of method will be reduced when the distribution of the test environment and the training environment is inconsistent. Therefore, the application scenario has certain limitations and cannot be used in real scenarios of out-of-distribution generalization. Among them, out-of-distribution generalization refers to the situation where the data distribution used by the model during training is inconsistent with the data distribution encountered in actual application.

[0080] The second aspect is the out-of-distribution generalization graph neural network: this type of method does not rely on the number of nodes in the graph structure data itself to give prediction results, and can migrate the model trained on a small graph to a large graph and achieve good results on the large graph. However, this type of method only adapts to the situation where the number of nodes in the training environment and the test environment changes, and cannot adapt to other types of distribution changes. It also cannot be used for out-of-distribution generalization graph representation learning problems in real scenarios.

[0081] The third aspect is self-supervised pre-training of graph neural networks: Self-supervised pre-training is a popular unsupervised method in the fields of computer vision and natural language processing. It has also revolutionized the field of graph learning because of its excellent performance in learning information representations from cleverly designed previous tasks without relying on labels. Self-supervised pre-training of graph neural networks is mainly divided into two categories, namely contrastive and generative methods. Contrastive pre-trained graph neural networks use instance identification as a pre-training task, while generative pre-trained graph neural networks use direct reconstruction of missing parts of the input graph data as a pre-training task. However, this type of method cannot be applied to situations where the training environment and the test environment are inconsistent, so the representation obtained cannot accurately characterize the graph structure data in an unknown test environment, which affects the performance of downstream tasks to a certain extent.

[0082] It can be seen that the vectorized representations obtained by current graph neural networks are all fitted to the training environment, and there is no adaptive processing for unknown, complex, and test environments where the distribution may change. It mainly focuses on fitting the training data, and represents an overall vector from a holistic perspective. It cannot capture the important generalizable information behind the graph structure data, and does not consider the true characteristics of the graph structure data when data labels are missing. However, a large amount of unlabeled graph structure data in the real world often comes from complex distributions. When the training data is not sufficient to reflect the true distribution of the data, the test data will have a distribution difference from the training data. Therefore, in this case, the traditional method will terminate the training when the obtained graph structure representation achieves good results on the training data set, but when it is actually applied to the test environment, the performance will be significantly reduced due to distribution migration, which greatly limits the application scenarios and cannot improve the representation learning ability of the graph neural network through pre-training.

[0083] Therefore, in order to at least partially solve one or more of the above-mentioned problems and other potential problems, an embodiment of the present invention proposes a distribution-out-of-generalization graph processing method based on decoupled representation learning. In this method, without relying on data labels, the graph invariant information and the graph change information of the node representation in the graph data structure are distinguished, independent, and dissociated to remove the pseudo-correlation in the representation, and prevent the model from making predictions based on the pseudo-correlation of the graph change information and the label. The graph change information is used to simulate a variety of distribution environments, and the graph invariant information is used to make predictions in a variety of distribution environments. When there are distribution differences between the test environment and the training environment, the prediction effect of the graph neural network model can be adaptively guaranteed, the prediction performance of the distribution-out-of-generalization graph neural network is improved, and the graph representation learning ability of the graph neural network is improved.

[0084] Reference Figure 1 , Figure 1 FIG. 1 is a flow chart of a method for processing a distributed generalization graph based on decoupled representation learning provided by an embodiment of the present invention. Figure 1 As shown, the method may include the following steps:

[0085] Step S11: Input the unlabeled graph structure data into the graph neural network model to be trained, adopt a neighbor aggregation mechanism, and iteratively update the node representation of each node in the unlabeled graph structure data L times according to the neighbor information to obtain an updated node representation; wherein the updated node representation of a node aggregates all information of the node's L-order neighbors.

[0086] In this embodiment, the unlabeled graph data structure is used as a training sample to train the graph neural network model to be trained, so that the trained graph neural network model can perform graph representation prediction in the out-of-distribution generalization scenario. Among them, the unlabeled graph data structure is an unlabeled graph data structure, and the graph data structure can be a molecular graph, a social network graph, a traffic network graph, a financial network graph, etc., which is not limited in this embodiment.

[0087] After the unlabeled graph structure data is input into the graph neural network model to be trained, the neighbor aggregation mechanism can be used to perform L iterative updates on the node representation of each node in the unlabeled graph structure data according to the neighbor information to obtain an updated node representation. Neighbor aggregation is performed on the node information of each input unlabeled graph structure data, and the information of each node (i.e., the current node) is updated using the neighbor information of each node in the unlabeled graph structure data to obtain an updated node representation; through an independent graph convolution channel, L iterative updates are performed to aggregate all the information of each node's L-order neighbors to obtain an updated node representation of each node. Among them, the updated node representation of a node aggregates all the information of the node's L-order neighbors.

[0088] Step S12: Process the updated node representation through K independent graph convolution channels of the graph neural network model to be trained to obtain K representations of each node; wherein K and L are natural numbers greater than 1.

[0089] In this embodiment, after obtaining the updated node representation of each node, the updated node representation of each node can be processed through K independent graph convolution channels of the graph neural network model to be trained, and the relationships of the surrounding neighbor nodes are aggregated independently to achieve the decoupling of the hidden factors behind the unlabeled graph structure data, and obtain K representations of each node. In this way, the node representation of each node in the graph structure data is processed into K independent representations.

[0090] Among them, K and L in this embodiment are natural numbers greater than 1, K is a pre-defined model hyperparameter, which can be arbitrarily set manually based on experience, and this embodiment does not limit the specific values ​​of K and L.

[0091] Step S13: Process the K representations of each node into a representation vector of graph invariant information and a representation vector of graph change information.

[0092] In this embodiment, since the obtained vector representation (i.e., the K representations of each node) contains both graph invariant information (such as stability information, etc.) and graph variation information (such as noise information, etc.) of the unlabeled graph structure data, the correlation between these information may reduce the performance of the graph neural network model when the training environment and the test environment are quite different. Therefore, after obtaining the K representations of each node in the unlabeled graph structure data, this embodiment can process the K representations of each node into: a representation vector of the graph invariant information and a representation vector of the graph variation information. For example, the graph invariant information and the graph variation information identified by the K representations of each node are converted into corresponding representation vectors to obtain a representation vector of the graph invariant information and a representation vector of the graph variation information.

[0093] Step S14: Using the graph neural network model to be trained, and based on the representation vector of the graph change information, simulate various distribution environments of the unlabeled graph structure data.

[0094] In this embodiment, the graph neural network model to be trained can be used to simulate various distribution environments of unlabeled graph structure data based on the representation vector of the graph change information obtained.

[0095] Step S15: Using the graph neural network model to be trained, in the multiple distribution environments, self-supervised comparative learning is performed using the representation vector of the graph invariant information to obtain a trained graph neural network model.

[0096] In this embodiment, after simulating multiple distribution environments, the graph neural network model to be trained can be used to perform self-supervised comparative learning in the multiple distribution environments using the representation vector of the obtained graph invariant information to train the graph neural network model to obtain a trained graph neural network model.

[0097] For example, in an optional example, in each training process, the unlabeled graph structure data can be input in batches into the graph neural network model to be trained and the prediction results can be obtained, so as to calculate the loss function through self-supervised comparative learning, calculate the gradient of the graph neural network model parameters according to the loss value corresponding to the prediction result, and perform gradient update to optimize the performance of the graph neural network model until the training is completed to obtain a trained graph neural network model.

[0098] Step S16: Input the molecular graph in the graph data set into the trained graph neural network model to obtain the graph representation of the molecular graph, and classify the graph data set according to the graph representation of the molecular graph.

[0099] In this embodiment, after obtaining a trained graph neural network, the molecular graph in the graph data set can be input into the trained graph neural network model to perform graph representation prediction, and obtain the graph representation of the molecular graph output by the trained graph neural network model, so as to classify the molecular graph in the graph data set according to the graph representation of the molecular graph, thereby achieving classification of the graph data set. The trained graph neural network model in this embodiment can be used to perform at least one or more of the following tasks: classification task, regression task.

[0100] In this embodiment, without relying on data labels, the graph invariant information and graph variation information represented by the graph structure data are distinguished, independent and dissociated, thereby removing pseudo-correlations in the representation, simulating a variety of distribution environments based on the graph variation information, and then performing self-supervised comparative learning based on the graph invariant information in a variety of distribution environments, thereby preventing the graph neural network model from making predictions based on pseudo-correlations between graph variation information and labels, and encouraging the graph neural network model to make predictions based on stable graph invariant information, so as to adaptively ensure the prediction effect of the model when there are distribution differences between the test environment and the training environment, thereby improving the prediction performance of the out-of-distribution generalization graph neural network and the graph representation learning ability of the graph neural network.

[0101] That is to say, according to the method of this embodiment, the trained graph neural network model can adaptively generate stable graph representations on out-of-distribution graph structure data, effectively improve the accuracy and stability of graph structure data processing and representation learning, and improve the adaptability and stability of the graph neural network model in test environments with different distributions; it does not rely on label information and can still work effectively in the absence of data labels, which expands the application scenarios and is suitable for a variety of practical application scenarios, such as social network analysis, bioinformatics, and complex network system management; at the same time, by removing noise and pseudo-correlations (in terms of graph change information), the generalization ability of the model is further enhanced.

[0102] In combination with the above embodiments, in one implementation, the present invention further provides a method for processing out-of-distribution generalization graphs based on decoupled representation learning. In this method, the above step S13 may specifically include steps S21 to S25:

[0103] Step S21: Through the graph information classification neural network, based on the idea of ​​group theory, it is assumed that any one or more of the K representations are representation vectors of candidate graph change information, and it is assumed that the remaining representations of the K representations are representation vectors of candidate graph invariant information.

[0104] In this embodiment, the graph information classification neural network is a graph neural network, which is used to process the K representations of each node into a representation vector of graph invariant information and a representation vector of graph change information. Through the graph information classification neural network, based on the idea of ​​group theory, it can be assumed that any one or more of the K representations are representation vectors of candidate graph change information, and the remaining representations of the K representations are representation vectors of candidate graph invariant information. This is a hypothetical situation of K representations.

[0105] The representation vector of the candidate graph change information is the representation vector of the assumed graph change information, and the representation vector of the candidate graph invariant information is the representation vector of the assumed graph invariant information.

[0106] Step S22: simulating multiple hypothetical distribution environments based on the representation vector of the candidate graph change information.

[0107] In this embodiment, after obtaining a hypothetical situation, based on the representation vector of the assumed candidate graph change information in the hypothetical situation, multiple hypothetical distribution environments of the unlabeled graph structure data are simulated. The hypothetical distribution environment is a distribution environment simulated by the representation vector of the hypothetical graph change information.

[0108] Step S23: Under the multiple hypothesized distribution environments, use the representation vector of the candidate graph invariant information to perform self-supervised comparative learning, and calculate the hypothesized loss value corresponding to the graph information classification neural network.

[0109] In this embodiment, the representation vector of the candidate graph invariant information can be used to perform self-supervised contrastive learning under multiple hypothetical distribution environments to calculate the hypothetical loss value corresponding to the graph information classification neural network. The hypothetical loss value is the loss value of the loss function corresponding to the graph information classification neural network.

[0110] Step S24: re-assuming that any one or more of the K representations are representation vectors of the candidate image change information, and assuming that the remaining representations of the K representations are representation vectors of the candidate image invariant information, until the assumed loss values ​​of all assumed situations of the K representations are calculated.

[0111] In this embodiment, the graph information classification neural network can assume all the hypothetical situations of the K representations based on the idea of ​​group theory, and calculate the corresponding hypothetical loss values. That is to say, after the graph information classification neural network assumes one hypothetical situation of the K representations and calculates the hypothetical loss value of the hypothetical situation, it will re-assume another hypothetical situation of the K representations: re-assume that any one or more of the K representations are the representation vectors of the candidate graph change information, re-assume that the remaining representations in the current K representations are the representation vectors of the candidate graph invariant information, and calculate the hypothetical loss value of the other situation, and so on (such as re-executing the above steps S21 to S23 for each hypothetical situation), until all the hypothetical situations of the K representations are assumed, and the hypothetical loss values ​​of all the hypothetical situations of the K representations are obtained.

[0112] For example, K is 3, and each node has 3 representations. First, we can assume that the first representation of the three representations is the representation vector of the candidate graph change information, and assume that the second and third representations of the three representations are the representation vectors of the candidate graph invariant information. The first representation is used to simulate multiple hypothetical distribution environments, and the second and third representations are used to perform self-supervised comparative learning in the multiple hypothetical distribution environments, and the corresponding hypothetical loss value is calculated; secondly, we can assume that the second representation of the three representations is the representation vector of the candidate graph change information, and assume that the first and third representations of the three representations are the representation vectors of the candidate graph invariant information. The second representation is used to simulate multiple hypothetical distribution environments, and the first and third representations are used to perform self-supervised comparative learning in the multiple hypothetical distribution environments, and the corresponding hypothetical loss value is calculated; then, we can assume that the third representation of the three representations is the representation vector of the candidate graph change information, and assume that the first and second representations of the three representations are the representation vectors of the candidate graph invariant information. The third representation is used to simulate multiple hypothetical distribution environments, and the first and second representations are used to perform self-supervised comparative learning in the multiple hypothetical distribution environments, and the corresponding hypothetical loss value is calculated; then , it can be assumed that the first and second representations of the three representations are the representation vectors of the candidate graph change information, and the third representation of the three representations is assumed to be the representation vector of the candidate graph invariant information. The first and second representations are used to simulate multiple hypothetical distribution environments, and the third representation is used to perform self-supervised comparative learning under the multiple hypothetical distribution environments to calculate the corresponding hypothetical loss value; and, it can be assumed that the second and third representations of the three representations are the representation vectors of the candidate graph change information, and the first representation of the three representations is assumed to be the representation vector of the candidate graph invariant information. The second and third representations are used to simulate multiple hypothetical distribution environments, and the first representation is used to perform self-supervised comparative learning under the multiple hypothetical distribution environments to calculate the corresponding hypothetical loss value; finally, it can be assumed that the first and third representations of the three representations are the representation vectors of the candidate graph change information, and the second representation of the three representations is assumed to be the representation vector of the candidate graph invariant information. The first and third representations are used to simulate multiple hypothetical distribution environments, and the second representation is used to perform self-supervised comparative learning under the multiple hypothetical distribution environments to calculate the corresponding hypothetical loss value, so that the hypothetical loss values ​​of all hypothetical situations of the three representations are obtained.

[0113] Step S25: According to the assumptions of the K representations corresponding to the minimum assumption loss value, the K representations are processed into a representation vector of the graph invariant information and a representation vector of the graph change information.

[0114] In this embodiment, after obtaining the hypothetical loss values ​​of all hypothetical situations, the minimum hypothetical loss value can be determined among all hypothetical loss values, and the hypothetical situation of the K representations corresponding to the minimum hypothetical loss value is the hypothetical situation with the best effect, and the hypothetical situation with the best effect includes the representation vector of the hypothetical graph invariant information and the representation vector of the hypothetical graph change information. Thus, according to the hypothetical situation of the K representations corresponding to the minimum hypothetical loss value, the K representations are processed into the representation vector of the graph invariant information and the representation vector of the graph change information.

[0115] As an example, let's continue with the above-mentioned embodiment of the three representations. For example, the assumption of the K representations corresponding to the minimum assumed loss value is: assuming that the first and third representations of the three representations are the representation vectors of the candidate graph change information, assuming that the second representation of the three representations is the representation vector of the candidate graph invariant information, then the graph information classification neural network ultimately determines the first and third representations of the three representations as the representation vectors of the graph change information, and determines the second representation of the three representations as the representation vector of the graph invariant information.

[0116] In combination with the above embodiments, in one implementation, the present invention further provides a distribution out-of-generalization graph processing method based on decoupled representation learning, in which the graph neural network model to be trained includes at least: a regularizer; the above step S15 of "under the multiple distribution environments, using the representation vector of the graph invariant information to perform self-supervised comparative learning to obtain a trained graph neural network model" may specifically include steps S31 to S33:

[0117] Step S31: Using the regularizer, the representation vector of the graph invariant information is enabled to maintain stability in predicting graph representation in the various distribution environments.

[0118] In this embodiment, the regularizer in the graph neural network model to be trained can be used to enable the representation vector of the graph invariant information to maintain the stability of the graph representation prediction in a variety of simulated distribution environments. Among them, the representation vector of the graph invariant information in this embodiment represents the information in the unlabeled graph structure data that truly has the value of graph representation prediction.

[0119] Step S32: perform graph representation prediction based on the representation vector of the graph invariant information, and calculate the loss value corresponding to the graph neural network model to be trained through self-supervised contrastive learning.

[0120] In this embodiment, the graph neural network model can focus more on capturing information in the graph structure data that is truly valuable for graph representation prediction, while excluding irrelevant graph change information, and perform graph representation prediction based on the representation vector of the graph invariant information to obtain the graph representation prediction result. Through self-supervised comparative learning, the loss value corresponding to the graph neural network model to be trained is calculated based on the graph representation prediction result.

[0121] Step S33: Based on the assumed loss value corresponding to the graph information classification neural network and the loss value corresponding to the graph neural network model to be trained, adjust the model parameters of the graph neural network model to be trained to obtain the trained graph neural network model.

[0122] In this embodiment, during the training process of the model, the graph neural network model to be trained and the graph information classification neural network are trained together. In each round of training, the model parameters of the graph neural network model to be trained and the network parameters corresponding to the graph information classification neural network can be adjusted based on the assumed loss value corresponding to the graph information classification neural network and the loss value corresponding to the graph neural network model to be trained until a trained graph neural network model and a trained graph information classification neural network are obtained.

[0123] This embodiment can help improve the efficiency of networks (such as graph neural network models and graph information classification neural networks) in identifying and utilizing core data features.

[0124] In combination with the above embodiments, in one implementation, after obtaining a trained graph neural network model and a trained graph information classification neural network, in the process of graph processing, the graph structure data (such as a molecular graph) can be input into the trained graph neural network model to obtain an updated node representation of each node in the graph structure data; then, the updated node representation is processed through K independent graph convolution channels of the trained graph neural network model to obtain K representations of each node in the graph structure data; then, the K representations of each node in the graph structure data are processed into a representation vector of graph invariant information and a representation vector of graph change information through the trained graph information classification neural network; then, through the trained graph neural network model, according to the representation vector of graph change information determined by the trained graph information classification neural network, a variety of distribution environments are simulated; and, through the trained graph neural network model, the representation vector of graph invariant information is used to perform graph representation prediction under the various distribution environments, to obtain the output of the trained graph neural network model: a graph representation of the graph structure data, which is a dissociated graph structure data representation, so as to perform classification, regression and other tasks based on the graph representation of the graph structure data.

[0125] In combination with the above embodiments, the present invention further provides a method for processing out-of-distribution generalized graphs based on decoupled representation learning. In the method, the "simulating multiple distribution environments of the unlabeled graph structure data according to the representation vector of the graph change information" in the above step S14 may specifically include steps S41 and S42:

[0126] Step S41: clustering is performed according to the representation vector of the graph change information to obtain a clustering result.

[0127] In this embodiment, after obtaining the graph change information, clustering may be performed according to the representation vector of the graph change information to obtain a clustering result.

[0128] Step S42: Based on the clustering result, simulate and obtain the multiple distribution environments to encourage the representation vector of the graph change information to maintain predictability of the distribution environment in the multiple distribution environments.

[0129] In this embodiment, clustering results can be obtained based on clustering of representation vectors of graph change information, and various distribution environments of unlabeled graph structure data can be simulated to encourage the representation vectors of graph change information to maintain predictability of the distribution environment in a variety of distribution environments.

[0130] like Figure 2 As shown, Figure 2 FIG. 1 is a flow chart of a method for pre-training an out-of-distribution generalization graph based on decoupled representation according to an embodiment of the present invention. Figure 2 In the method, first, the unlabeled graph structure data is decoupled and encoded with graph invariant information and graph change information through the graph neural network model to be trained: for each input graph structure data, the node information of each input graph structure data is respectively aggregated, and the information of the current node is updated using the neighbor information of each node to obtain an updated node representation, and through L iterations, all the information of the L-order neighbors of each node is aggregated; then, through K independent graph convolution channels, all the information of the L-order neighbors of each node is independently aggregated, thereby realizing the decoupling of the hidden factors behind the graph structure data.

[0131] Secondly, self-supervised comparative clustering is performed based on graph change information: Through the graph information classification neural network, based on the idea of ​​group theory, the graph invariant information and graph change information are identified and converted into corresponding representation vectors. Clustering is performed according to the vector representation corresponding to the graph change information to simulate a variety of distribution environments, and encourage the graph change information to maintain predictiveness of the environment in these diverse distribution environments. Specifically, multiple environments can be determined after clustering, so as to determine which is graph invariant information and which is graph change information in multiple environments.

[0132] Then, based on the graph invariant information, stable learning is performed in multiple environments: a regularizer is introduced into the graph neural network model to be trained to enable the graph invariant information to maintain the stability of prediction in multiple distribution environments, so that the graph neural network model can focus more on capturing the information that is truly valuable for prediction in the graph structure when performing graph representation predictions, while excluding irrelevant graph change information, which helps to improve the network's recognition and utilization efficiency of core data features.

[0133] Finally, batch training optimization is performed: in each training process, a batch of graph structure data is selected, input into the graph neural network model to be trained, and the prediction results are obtained. Then, through self-supervised contrastive learning, the loss function is calculated, the gradient of the graph neural network model parameters is calculated according to the obtained loss value, and the gradient update is performed to optimize the network performance, and a trained graph neural network model is obtained. The trained graph neural network model can adaptively generate stable graph representations on out-of-distribution graph structure data without relying on label information.

[0134] Ultimately, the self-supervised pre-trained graph neural network model can output a pre-trained vectorized representation that generalizes out of distribution, which can be applied to the testing phase of downstream tasks: such as processing the graph dataset in the downstream task, obtaining the representation of each graph, and performing classification, regression and other tasks based on these representations.

[0135] In combination with the above embodiments, the present invention further provides a method for processing an out-of-distribution generalization graph based on decoupled representation learning. In the method, in addition to the above steps, step S51 may be further included, and the above step S16 may specifically include step S52 and step S53:

[0136] Step S51: Use the labeled molecular graph to perform model testing on the trained graph neural network model to obtain test results.

[0137] In this embodiment, the graph data set includes at least a drug data set, and the molecular graph includes at least a drug molecule graph. Since the challenge of insufficient labeled data is often faced in the early stages of drug development, after obtaining the trained graph neural network model, a small amount of labeled molecular graphs (such as within the first value, which can be freely set according to demand) can be used to test the trained graph neural network model to obtain test results.

[0138] Step S52: When the test result meets the conditions, the unlabeled drug molecule graph in the drug data set is input into the trained graph neural network model to obtain a graph representation of the drug molecule graph.

[0139] In this embodiment, when it is determined that the test results meet the conditions, it is determined that the trained graph neural network model can be applied to the classification of a larger scale of unlabeled drug data sets. At this time, the unlabeled drug molecule graph in the drug data set can be input into the trained graph neural network model to obtain a graph representation of the drug molecule graph. Among them, the conditions of this embodiment are that the test results meet the model requirements, such as the prediction accuracy is greater than a certain value, etc., and there is no restriction on this.

[0140] Step S53: classifying the drug dataset based on the graph representation of the drug molecule graph.

[0141] In this embodiment, the drug molecule graphs in the drug data set can be classified based on the graph representation of the drug molecule graph output by the trained graph neural network model, thereby significantly improving the screening efficiency and accuracy of drug molecules by improving the processing capability of unlabeled data, accelerating the new drug discovery process, and reducing R&D costs.

[0142] In combination with the above embodiments, the present invention further provides a method for processing out-of-distribution generalization graphs based on decoupled representation learning. In the method, in addition to the above steps, steps S61 and S62 may also be included:

[0143] Step S61: input the social network graph data into the trained graph neural network model to obtain a graph representation of the social network graph data.

[0144] In this embodiment, the trained graph neural network model can also be used for social network analysis: the social network graph data can be input into the trained graph neural network model to obtain a graph representation of the social network graph data.

[0145] Step S62: Analyze the social network graph data based on the graph representation of the social network graph data to obtain analysis results.

[0146] In this embodiment, the social network graph data may be analyzed based on the graph representation of the social network graph data to obtain analysis results, which at least include: dynamic changes and data migration of the social network corresponding to the social network graph data.

[0147] Considering that social network data usually has dynamic and distributed migration characteristics, traditional models are difficult to adapt to environmental changes. Based on this, this embodiment uses the environment-adaptive graph representation predicted by the trained graph neural network model to effectively handle dynamic changes and data migration, provide stable and generalized analysis results, enhance the accuracy of user behavior prediction, and improve user experience.

[0148] In combination with the above embodiments, the present invention further provides a method for processing an out-of-distribution generalization graph based on decoupled representation learning. In the method, in addition to the above steps, steps S71 and S72 may also be included:

[0149] Step S71: Input the graph data in the human-computer interaction system into the trained graph neural network model to obtain the graph representation corresponding to the human-computer interaction.

[0150] Considering that in human-computer interaction systems, it is crucial to accurately understand and predict user behavior, based on this, this embodiment can also use the trained graph neural network model for human-computer interaction and computer-aided systems, and input the graph data in the human-computer interaction system into the trained graph neural network model to obtain the output graph representation corresponding to the human-computer interaction.

[0151] Step S72: Based on the graph representation corresponding to the human-computer interaction, understand and predict the user needs and user behaviors in the human-computer interaction system.

[0152] In this embodiment, user needs and user behaviors in the human-computer interaction system can be understood and predicted based on the corresponding graph representation of human-computer interaction. The stability and generalization ability of the graph neural network model trained in this embodiment can enable the human-computer interaction system to more accurately understand user needs and behavior patterns, thereby providing a more personalized and efficient interaction experience.

[0153] In summary, the out-of-distribution generalized graph processing method based on decoupled representation learning proposed in the embodiment of the present invention is to enable the graph neural network model to achieve relatively stable performance in the case of a distribution shift of training and test data in a self-supervised pre-training manner in the absence of graph labels through self-supervised learning. In other words, in the case of inconsistent training and test environments, the method of this embodiment can adaptively and self-supervisorily calculate and generate a generalized graph structure data representation for out-of-distribution data without relying on environmental labels, thereby achieving more reliable and accurate application results.

[0154] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0155] Based on the same inventive concept, an embodiment of the present invention provides a distributed generalization graph processing system based on decoupled representation learning. Figure 3 , Figure 3 FIG. 1 is a block diagram of a distributed generalization graph processing system based on decoupled representation learning according to an embodiment of the present invention. Figure 3 As shown, the system 300 includes:

[0156] The node representation module 301 is used to input the unlabeled graph structure data into the graph neural network model to be trained, adopt a neighbor aggregation mechanism, and perform L iterations on the node representation of each node in the unlabeled graph structure data according to the neighbor information to obtain an updated node representation; wherein the updated node representation of a node aggregates all information of the L-order neighbors of the node;

[0157] A representation processing module 302 is used to process the updated node representation through K independent graph convolution channels of the graph neural network model to be trained to obtain K representations of each node; wherein K and L are natural numbers greater than 1;

[0158] A representation classification module 303, used for processing the K representations of each node into a representation vector of graph invariant information and a representation vector of graph change information;

[0159] An environment simulation module 304 is used to simulate various distribution environments of the unlabeled graph structure data according to the representation vector of the graph change information through the graph neural network model to be trained;

[0160] A model training module 305 is used to perform self-supervised comparative learning using the representation vector of the graph invariant information through the graph neural network model to be trained under the multiple distribution environments to obtain a trained graph neural network model;

[0161] The graph processing module 306 is used to input the molecular graph in the graph data set into the trained graph neural network model to obtain the graph representation of the molecular graph, and classify the graph data set according to the graph representation of the molecular graph.

[0162] Optionally, the characterization classification module 303 includes:

[0163] A first hypothesis module is used to use a graph information classification neural network and, based on group theory, assume that any one or more of the K representations are representation vectors of candidate graph change information, and assume that the remaining representations of the K representations are representation vectors of candidate graph invariant information;

[0164] An environment hypothesis module, used for simulating multiple hypothetical distribution environments based on the representation vector of the candidate graph change information;

[0165] A first loss calculation module is used to perform self-supervised contrastive learning using the representation vector of the invariant information of the candidate graph under the multiple hypothetical distribution environments to calculate the hypothetical loss value corresponding to the graph information classification neural network;

[0166] A second assumption module is used to re-assume that any one or more of the K representations are representation vectors of the candidate image change information, and to assume that the remaining representations of the K representations are representation vectors of the candidate image invariant information, until the assumption loss values ​​of all assumptions of the K representations are calculated;

[0167] The representation determination module is used to process the K representations into a representation vector of the graph invariant information and a representation vector of the graph change information according to the assumptions of the K representations corresponding to the minimum assumption loss value.

[0168] Optionally, the environment simulation module 304 includes:

[0169] A clustering module, used for clustering according to the representation vector of the graph change information to obtain a clustering result;

[0170] An environment determination module is used to simulate the multiple distribution environments based on the clustering results to encourage the representation vector of the graph change information to maintain predictability of the distribution environment in the multiple distribution environments.

[0171] Optionally, the graph neural network model to be trained includes at least: a regularizer; a model training module 305, including:

[0172] A normalization module, configured to enable the representation vector of the graph invariant information to maintain stability of graph representation prediction in the multiple distribution environments through the regularizer, wherein the representation vector of the graph invariant information represents information in the unlabeled graph structure data that truly has graph representation prediction value;

[0173] A second loss calculation module is used to perform graph representation prediction based on the representation vector of the graph invariant information, and calculate the loss value corresponding to the graph neural network model to be trained through self-supervised contrastive learning;

[0174] A model parameter adjustment module is used to adjust the model parameters of the graph neural network model to be trained based on the assumed loss value corresponding to the graph information classification neural network and the loss value corresponding to the graph neural network model to be trained, so as to obtain the trained graph neural network model.

[0175] Optionally, the graph data set includes a drug data set, the molecular graph includes a drug molecule graph, and the system 300 further includes:

[0176] A model testing module, used to perform model testing on the trained graph neural network model using annotated molecular graphs to obtain test results;

[0177] The graph processing module 306 includes:

[0178] A drug characterization module, used for inputting the unlabeled drug molecule graph in the drug data set into the trained graph neural network model to obtain a graph characterization of the drug molecule graph when the test result meets the conditions;

[0179] A drug classification module is used to classify the drug dataset based on the graph representation of the drug molecule graph.

[0180] Optionally, the system 300 further includes:

[0181] A social data processing module, used to input social network graph data into the trained graph neural network model to obtain a graph representation of the social network graph data;

[0182] A social data analysis module, configured to analyze the social network graph data based on the graph representation of the social network graph data to obtain an analysis result;

[0183] The analysis result includes at least: dynamic changes and data migration of the social network corresponding to the social network graph data.

[0184] Optionally, the system 300 further includes:

[0185] A human-computer interaction processing module, used to input the graph data in the human-computer interaction system into the trained graph neural network model to obtain the graph representation corresponding to the human-computer interaction;

[0186] The human-computer interaction analysis module is used to understand and predict user needs and user behaviors in the human-computer interaction system based on the graph representation corresponding to the human-computer interaction.

[0187] Based on the same inventive concept, another embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the distributed out-of-distribution generalization graph processing method based on decoupled representation learning as described in any of the above embodiments of the present invention are implemented.

[0188] Based on the same inventive concept, another embodiment of the present invention provides an electronic device 400, such as Figure 4 shown. Figure 4 4 is a schematic diagram of an electronic device shown in an embodiment of the present invention. The electronic device includes a memory 402, a processor 401, and a computer program stored in the memory and executable on the processor, and when the processor executes, the steps in the distributed out-of-distribution generalization graph processing method based on decoupled representation learning described in any of the above embodiments of the present invention are implemented.

[0189] As for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the system embodiment.

[0190] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0191] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, embodiments of the present invention may take the form of complete hardware embodiments, complete software embodiments, or embodiments combining software and hardware. Moreover, embodiments of the present invention may take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0192] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0193] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0194] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0195] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0196] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0197] The above is a detailed introduction to the distributed out-generalization graph processing method, system and product based on decoupled representation learning provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for out-of-distribution generalization graph processing based on decoupled representation learning, characterized in that: The method comprises: The unlabeled graph structure data is input into the graph neural network model to be trained, and the node representation of each node in the unlabeled graph structure data is iteratively updated L times according to the neighbor information using a neighbor aggregation mechanism to obtain an updated node representation; wherein the updated node representation of a node aggregates all information of the L-order neighbors of the node; Processing the updated node representations through K independent graph convolution channels of the graph neural network model to be trained to obtain K representations of each node; wherein K and L are natural numbers greater than 1; Processing the K representations of each node into a representation vector of graph invariant information and a representation vector of graph change information; By using the graph neural network model to be trained, simulating various distribution environments of the unlabeled graph structure data according to the representation vector of the graph change information; Using the graph neural network model to be trained, under the multiple distribution environments, the representation vector of the graph invariant information is used to perform self-supervised comparative learning to obtain a trained graph neural network model; The molecular graph in the graph data set is input into the trained graph neural network model to obtain a graph representation of the molecular graph, and the graph data set is classified according to the graph representation of the molecular graph.

2. The method according to claim 1, characterized in that The step of processing the K representations of each node into a representation vector of graph invariant information and a representation vector of graph change information includes: Through the graph information classification neural network, based on the group theory idea, it is assumed that any one or more of the K representations are representation vectors of candidate graph change information, and it is assumed that the remaining representations of the K representations are representation vectors of candidate graph invariant information; Based on the representation vector of the candidate graph change information, simulate multiple hypothetical distribution environments; Under the multiple hypothetical distribution environments, using the representation vector of the candidate graph invariant information to perform self-supervised contrastive learning, and calculating the hypothetical loss value corresponding to the graph information classification neural network; Re-assuming that any one or more of the K representations are representation vectors of the candidate image change information, and assuming that the remaining representations of the K representations are representation vectors of the candidate image invariant information, until the assumed loss values ​​of all assumed situations of the K representations are calculated; According to the assumptions of the K representations corresponding to the minimum assumption loss value, the K representations are processed into a representation vector of the graph invariant information and a representation vector of the graph change information.

3. The method according to claim 1, characterized in that The simulating various distribution environments of the unlabeled graph structure data according to the representation vector of the graph change information includes: Clustering is performed according to the representation vector of the graph change information to obtain a clustering result; Based on the clustering results, the multiple distribution environments are simulated to encourage the representation vector of the graph change information to maintain predictability of the distribution environment in the multiple distribution environments.

4. The method according to claim 2, characterized in that: The graph neural network model to be trained includes at least: a regularizer; in the multiple distribution environments, the representation vector of the graph invariant information is used to perform self-supervised contrastive learning to obtain a trained graph neural network model, including: By means of the regularizer, the representation vector of the graph invariant information is urged to maintain stability in the prediction of graph representation in the multiple distribution environments, and the representation vector of the graph invariant information represents information in the unlabeled graph structure data that truly has graph representation prediction value; Perform graph representation prediction based on the representation vector of the graph invariant information, and calculate the loss value corresponding to the graph neural network model to be trained through self-supervised contrastive learning; Based on the assumed loss value corresponding to the graph information classification neural network and the loss value corresponding to the graph neural network model to be trained, the model parameters of the graph neural network model to be trained are adjusted to obtain the trained graph neural network model.

5. The method according to any one of claims 1 to 4, characterized in that: The graph data set includes a drug data set, the molecular graph includes a drug molecule graph, and the method further includes: Using the labeled molecular graph to perform a model test on the trained graph neural network model to obtain a test result; The step of inputting the molecular graph in the graph data set into the trained graph neural network model to obtain a graph representation of the molecular graph, and classifying the graph data set according to the graph representation of the molecular graph includes: When the test result satisfies the conditions, the unlabeled drug molecule graph in the drug data set is input into the trained graph neural network model to obtain a graph representation of the drug molecule graph; The drug dataset is classified based on the graph representation of the drug molecule graph.

6. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Inputting the social network graph data into the trained graph neural network model to obtain a graph representation of the social network graph data; Analyze the social network graph data based on the graph representation of the social network graph data to obtain analysis results; The analysis result includes at least: dynamic changes and data migration of the social network corresponding to the social network graph data.

7. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Inputting the graph data in the human-computer interaction system into the trained graph neural network model to obtain the graph representation corresponding to the human-computer interaction; Based on the graph representation corresponding to the human-computer interaction, user needs and user behaviors in the human-computer interaction system are understood and predicted.

8. A distributed generalization graph processing system based on decoupled representation learning, characterized in that: The system comprises: A node representation module is used to input the unlabeled graph structure data into the graph neural network model to be trained, and adopt a neighbor aggregation mechanism to iteratively update the node representation of each node in the unlabeled graph structure data L times according to the neighbor information to obtain an updated node representation; wherein the updated node representation of a node aggregates all information of the L-order neighbors of the node; A representation processing module, used to process the updated node representation through K independent graph convolution channels of the graph neural network model to be trained to obtain K representations of each node; wherein K and L are natural numbers greater than 1; A representation classification module, used for processing the K representations of each node into a representation vector of graph invariant information and a representation vector of graph change information; An environment simulation module, used to simulate various distribution environments of the unlabeled graph structure data according to the representation vector of the graph change information through the graph neural network model to be trained; A model training module, used to perform self-supervised comparative learning using the representation vector of the graph invariant information through the graph neural network model to be trained under the multiple distribution environments to obtain a trained graph neural network model; The graph processing module is used to input the molecular graph in the graph data set into the trained graph neural network model to obtain the graph representation of the molecular graph, and classify the graph data set according to the graph representation of the molecular graph.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the computer program is executed by the processor, the out-of-distribution generalization graph processing method based on decoupled representation learning is implemented as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements the out-of-distribution generalization graph processing method based on decoupled representation learning as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Training method and device of graph neural network

    CN112766500A

  • Out-of-distribution generalization graph representation learning method and device, equipment and storage medium

    CN114781582A