Different illustration graph representation learning method and system based on relation vector

The variational relation vector graph neural network (VR-GNN) introduces relationship vectors into the graph neural network to effectively model the complex structure of mismatched graphs, solves the problem of ignoring the semantic information of mismatched edges in the existing technology, and achieves Better node classification effect.

CN118779746AInactive Publication Date: 2024-10-15INSTITUTE OF INFORMATION ENGINEERING CHINESE ACADEMY OF SCIENCES
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410746408.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-10-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When processing mismatched graphs, existing graph neural networks ignore the semantic information in mismatched edges, resulting in poor model representation capabilities and the inability to effectively model the complex structures in mismatched graphs.

Method used

A variational relation vector graph neural network (VR-GNN) is proposed. The encoder generates relation vectors and combines graph structure, features and label information. The decoder integrates relation vectors into the message passing mechanism to achieve effective processing of mismatched graphs. Modeling.

Benefits of technology

By introducing relationship vectors, the modeling capabilities of mismatch structures in mismatch graphs are significantly improved, and experimental results show that better classification results are achieved in node classification tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779746A_ABST
    Figure CN118779746A_ABST
Patent Text Reader

Abstract

The invention relates to a different illustration graph representation learning method and system based on relation vectors. The method is a variational GNN model, and the fine-grained relation learning is creatively fused into the message passing process, so that the modeling of the homology and the heterology on the graph is realized. According to the method, relation vector generation and node representation are modeled in a unified framework, so that knowledge learned by relation vectors can be converted into node representation more directly, relation vector generation is achieved through an encoder, and node representation is achieved through a decoder. According to the method, the edge complex semantic relation of the different matching graph is modeled by introducing the relation vector, so that modeling of a different matching structure in the different matching graph is promoted, and a better classification result can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer data mining and analysis, in particular to the technical field of graph data mining, and specifically refers to a heterogeneous graph representation learning method and system based on relationship vectors. Background Art

[0002] Graph neural networks are widely used in the real world, for example, in the discovery of community groups in social networks, automatic classification of articles in citation networks, and prediction of protein properties in protein molecular structures. Among them, related models represented by graph convolutional neural networks (GCNs) and their variants have been widely studied. They learn node representations by smoothing the features of neighboring nodes. This smoothing operation is applicable to graph data with homogeneity as the assumption. However, in many real-world tasks (such as anomaly detection), heterogeneity is the key assumption in the graph. Such methods will significantly reduce the performance of the generated graph representation in heterogeneous graphs, and may even be worse than the results obtained by using MLP to transform node features without considering the graph structure. Homogeneity refers to the similarity or the same category of adjacent nodes in the graph, and heterogeneity refers to the dissimilarity or different category of adjacent nodes in the graph.

[0003] Currently, modeling heterogeneous graphs, a special type of graph data, has become the key to solving many real-world graph mining tasks, and many related methods have been proposed recently. Current methods still use an aggregation mechanism similar to the homogeneous aggregation method, and treat heterogeneous edges as noise, using denoising methods to generate representations, or treat heterogeneous edges as high-frequency signals and use filtering methods to process them. However, these methods ignore the rich semantic information in heterogeneous edges, resulting in poor representation capabilities of the model. Summary of the invention

[0004] In order to solve the problem of single edge semantic modeling in the current model, inspired by the related technologies of knowledge graph, this patent proposes a heterogeneous graph modeling method that uses relationship vectors to model the semantics of adjacent edges - Variational Relation Vector Graph Neural Network (VR-GNN for short).

[0005] This method is a variational GNN model that innovatively integrates fine-grained relational learning into the message passing process, thereby modeling homogamy and heterogamy on the graph. This method models relation vector generation and node representation in a unified framework, so that the knowledge learned from relation vectors can be more directly converted into node representation, where the encoder implements relation vector generation and the decoder implements node representation. The encoder of this method regards the relation vector as a latent variable and uses variational reasoning to generate the relation vector based on the graph structure, features and labels, combining all the information on the graph to make the relation vector more informative. Its decoder incorporates the generated relation vector into the message passing mechanism, where neighbors are aggregated into the features of the central node after side information conversion. Finally, the model uses the output node representation to perform downstream node classification tasks.

[0006] The technical solution adopted by the present invention is as follows:

[0007] A method for learning heterogeneous graph representation based on relationship vectors, comprising the following steps:

[0008] Using the encoder, we use variational reasoning to generate relationship vectors based on the structure, features, and labels of the graph;

[0009] The decoder is used to merge the generated relation vector into the message passing mechanism to obtain the final node representation, which is then used to perform the downstream node classification task.

[0010] Furthermore, the optimization objectives of the encoder and the decoder are:

[0011]

[0012] Among them, the learnable variational latent variable posterior probability distribution is used To approximate the true latent variable posterior probability distribution p θ (z|A,X,Y tr ), A represents the adjacency matrix of the graph, X represents the node features on the graph, and Y tr represents the training label set, θ, are learnable parameters; is a KL divergence, which is the loss of the encoder, which uses three types of information on the graph, namely structure A, feature X and label Y tr To generate the relationship vector z on each edge; at the same time, z is used as a hidden variable in variational inference, and is restricted by a predefined prior hidden variable probability distribution p(z); As the loss of the decoder, the relationship vector z generated by the encoder is combined with the structure A and the feature X to restore the label information Y of the known node tr ; Indicates that the distribution The expectations below.

[0013] Furthermore, the encoder generates three types of sub-relationship vectors through variational inference, namely, a structural sub-relationship vector, a feature sub-relationship vector and a label sub-relationship vector, and fuses the three types of sub-relationship vectors to obtain a final relationship vector; the three types of sub-relationship vectors are set to mutually independent multivariate normal distributions.

[0014] Furthermore, each connection is assigned randomly initialized expectation and variance embeddings to obtain a structural sub-relation vector; an MLP is used to transform the concatenation of the two endpoint features and generate the expectation and variance as a feature sub-relation vector.

[0015] Furthermore, only out-degree node labels are used to generate label sub-relation vectors, the steps of which include: for connection e ij , the node v i Label y i as one-hot vectors and feed them into the MLP to generate expectation and variance embeddings; for unobserved labels, the one-hot vectors are set to all zeros.

[0016] Furthermore, the decoder uses the relationship vector to convert the original neighbor features into correct messages and aggregates them to obtain the final node representation, and uses the output node representation to perform the downstream node classification task; the message passing function used by the decoder is:

[0017]

[0018]

[0019] in, Represents node v i The node embedding at layer l is Represents edge e ji In the relation vector at the lth level, U represents the update function, AGG represents the aggregation function, and N i represents the neighbor set of node i, represents the node transformation function, W l Represents the parameters of the lth layer; the initial relationship vector is: For each neighbor, a combination of feature transformation and relation transformation is used before aggregation, which utilizes the semantic information in the relation vector to transform the neighbor into a feature that is more suitable for the central node and models the homogamous and heterogamous properties of each connection during message passing.

[0020] Furthermore, the workflow of the decoder includes:

[0021] First, an MLP is applied to transform the raw node features into higher-level embeddings: where x i Represents the original node features;

[0022] Then, the nodes are aggregated and self-attention is used to aggregate neighbor information:

[0023]

[0024] in, represents the aggregation result of node i at layer l, is a hyperparameter of the attention mechanism;

[0025] Then, use the update function to update the embedding representation of the node:

[0026]

[0027] Among them, θ is used to balance and The residual link to the initial representation is used to ensure the computational stability of the attention mechanism.

[0028] Then, the output node representation is obtained through iteration, and MLP is adopted to complete the downstream classification task.

[0029] A heterogeneous graph representation learning system based on relationship vectors, comprising:

[0030] The encoder is used to generate the relationship vector using variational reasoning based on the structure, features and labels of the graph;

[0031] The decoder is used to merge the generated relation vector into the message passing mechanism to obtain the final node representation, and use the node representation to perform the downstream node classification task.

[0032] The beneficial effects of the present invention are as follows:

[0033] The present invention designs a new heterogeneous graph representation learning method, which models the complex semantic relationship of the edges of the heterogeneous graph by introducing relationship vectors, thereby promoting the modeling of heterogeneous structures in the heterogeneous graph. Experimental results show that the present invention achieves better classification results than other baseline methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is the overall model structure diagram of the present invention, which consists of two parts: encoder and decoder. Among them, the encoder generates a relationship vector z by combining structure, feature and label information, and the decoder uses the generated relationship vector to realize node classification. The encoder generates three types of sub-relationship vectors through variational reasoning and combines them into the final relationship vector. The three sub-relationship vectors are set to be independent of each other. The decoder uses the relationship vector to convert the original neighbor features into correct messages and aggregates them to obtain the final node representation. DETAILED DESCRIPTION

[0035] The present invention is further described in detail below through specific embodiments and drawings.

[0036] The core idea of ​​the present invention is to introduce relation vectors to describe different homogeneous and heterogeneous connections of the graph in a more efficient message passing framework. To achieve this effect, the whole process is disassembled into an encoder-decoder structure. The present invention first uses the encoder to encode the edge semantic information into relation vectors, and then integrates the relation vectors into the message passing framework in the decoder to generate reasonable node representations.

[0037] Specifically, the present invention unifies the generation of relationship vectors and node representations in an end-to-end framework, using an encoder to generate relationship vectors and a decoder to generate node representations, such as Figure 1 As shown in Figure 2, the encoder fully extracts the three types of graph data information and fuses them.

[0038] The following first introduces the overall framework of the model, then introduces the specific design of the encoder that generates the relationship vector, then introduces how to use the relationship vector generated by the encoder to complete message passing, and finally introduces the entire model training and inference process.

[0039] 1. Overall model architecture

[0040] The present invention adopts variational autoencoder (VAE) as the overall framework of the model. This framework is a popular variational inference framework for encoding / decoding hidden embeddings of data. Specifically, the model regards the relationship vector of the edge as a latent variable z, and regards the node classification as a prediction process under the guidance of the latent variable z, so the process of VR-GNN can be given by the following formal formula:

[0041] p θ (Y|A,X)=∫p θ (z|A,X,Y tr ) θ (Y|z,A,X,Y tr )dz

[0042] Among them, p θ (Y|A, X) represents the posterior probability distribution for label prediction, A represents the adjacency matrix of the graph, and X represents the node features on the graph. Indicates the label information of the nodes on the graph, Y tr represents the training label set and θ is a learnable parameter.

[0043] Since the true latent variable posterior probability distribution p θ (z|A,X,Y tr) is difficult to obtain directly, so the model uses the idea of ​​variational inference to learn it. Specifically, the model introduces a learnable variational latent variable posterior probability distribution in is a learnable parameter. The model uses the variational latent variable posterior probability distribution to approximate the true latent variable posterior probability distribution p θ (z|A,X,Y tr ). To achieve this goal, the model uses the Kullback-Leibler (abbreviated as KL) divergence to narrow the distance between the two distributions, namely:

[0044]

[0045] After performing variational inference on the above formula, the final model optimization objective can be obtained:

[0046]

[0047] The variational lower bound obtained above consists of two parts, which represent the encoder and decoder in the model respectively. is a KL divergence, which is the encoder part that uses three kinds of information on the graph, namely structure A, feature X and label Y tr To generate the relationship vector z on each edge. At the same time, z is used as a hidden variable in variational inference, and is restricted by a predefined prior hidden variable probability distribution p(z). For the second part It acts as a decoder and combines the relationship vector z generated by the encoder with the structure A and feature X to restore the label information Y of the known node tr . Indicates that the distribution The expectations below.

[0048] In the prediction phase, the learned encoder will be used directly to generate the relationship vector for each edge, and then the decoder p θ These generated relationship vectors will be used to predict the labels of unknown nodes. Therefore, the final model structure can be obtained as follows:

[0049]

[0050] in, Indicates the inference result of the node label.

[0051] 2. Encoder: Relation vector generation

[0052] This section will introduce the specific design of the encoder in detail. The encoder is expected to fully extract graph data information and generate specific relationship vectors from this information for downstream node generation. The detailed design process is as follows:

[0053] The model uses the independent and identically distributed assumption to model the relationship vector of each edge. Specifically, given three types of data in a graph: structure A, feature X, and known label Y tr , variational posterior latent variable probability distribution And the prior latent variable probability distribution p(z) can be written as follows:

[0054]

[0055]

[0056] Among them, z ij Represents edge e ij The relationship vector, e ij represents the edge connecting nodes i and j, and ε represents the edge set.

[0057] Therefore, the learning function of the encoder can be rewritten as follows:

[0058]

[0059] In order to make the above distribution easier to analyze, the model makes the posterior latent variable probability distribution a multivariate normal distribution and the prior latent variable probability distribution a standard multivariate normal distribution:

[0060]

[0061] p(z ij ) = N(0, I)

[0062] where μ ij and is the distribution parameter that needs to be learned, and I represents the identity matrix.

[0063] In addition, the relationship vector z ij It is expected that all homogamous and heterogamous features of the encoding edges will be generated. Among them, homogamous features refer to features caused by the existence of heterogamous edges, and heterogamous features refer to features caused by the existence of heterogamous edges. In order to achieve this goal, the model mainly considers three aspects of information to generate z ij : Structure, features and labels (corresponding to A, X and Y respectively tr three sub-relation vectors).

[0064] Specifically, the model converts z ij Decompose into three sub-relationship vectors generated from different graph data, and then linearly combine them to get the final relationship vector. The specific method is as follows:

[0065] z ij =α s Z s,ij+α f z f,ij +α l Z l,ij

[0066] where α s , α f , α l is the combination coefficient, which is a model hyperparameter. s,ij , z f,ij and z l,ij They represent the latent variables (i.e., sub-relationship vectors) obtained from the structure, feature, and label information respectively. The model models these three latent variables as three Gaussian distributions, and obtains the final relationship vector after the above summation. The three Gaussian distributions are as follows:

[0067] Z s,ij ~N(μ s,ij , σ s,ij I)

[0068] z f,ij ~N(μ f,ij , σ f,ij I)

[0069] Z l,ij ~N(μ l,ij , σ l,ij I)

[0070] Where I is the identity matrix.

[0071] Once the model obtains the expected μ of the sub-relation vector .,ij and variance The model can then infer the distribution of the final relationship vector. The specific inference formula is as follows:

[0072] μ ij =α s μ s,ij +a f μ f,ij +α l μ l,ij

[0073]

[0074] Next, the design details of each sub-relationship vector will be introduced in detail.

[0075] Structural sub-relation vector: To capture structural information, the model assigns randomly initialized expectation and variance embeddings to each edge:

[0076]

[0077]

[0078] Where H is the size of the hidden dimension. Since each edge maintains a relation vector by itself without interference from other information, the learning of this sub-relation vector can only rely on graph structure information, such as the degree of the node.

[0079] Feature sub-relation vector: Since the features of the edge endpoints can be regarded as weak label information, they can be used as indicators of edge homogeneity and heterogeneity. Specifically, the model uses MLP (Multilayer Perceptron) to transform the concatenation of the two endpoint features and generate the expectation and variance as shown below:

[0080] f ij =ReLU(MLP([x i ||x j ])

[0081] μ f,ij =MLP(f ij )

[0082] σ f,ij =MLP(f ij )

[0083] The above MLPs are different modules. In order to reduce the number of symbols used, the models use the same notation (the same below).

[0084] Label sub-relation vector: The labels of the two end nodes can provide a direct description of the homology and heterology of the connection, but the use of label information faces two problems: 1. Only some of the node labels are observed; 2. The introduction of label information to the in-degree node may cause label leakage problems, because message passing will bring the "correct answer" to the node. Therefore, the model only uses the out-degree node labels to generate sub-relation vectors. Specifically, for the connection e ij , the model will node v i Label y i as a one-hot vector and feed it into the MLP to generate the expected and variance embeddings. For unobserved labels, the model sets the one-hot vector to all zeros. The process can be expressed as follows:

[0085] μ l,ij =MLP(y i )

[0086] σ l,ij =MLP(y i )

[0087] Relation vector generation: After obtaining the mean and variance embeddings of each sub-relation, the model combines them into the final embedding μ using the method described above. ij and

[0088] In addition, the model does not directly sample z ij , but applies the VAE reparameterization technique to make the sampling process differentiable. Specifically, the model first samples a sample from the standard normal distribution, and then uses the generated mean μ according to the following formula ij and variance Convert samples from the standard distribution to samples from the distribution generated by the model, thus simulating sampling from the generated normal distribution:

[0089] z ij =μ ij +σ ij ε

[0090] Among them, ε is the normal distribution sampling result

[0091] 3. Decoder: Message passing mechanism based on relation vector

[0092] The purpose of the decoder is to incorporate the generated relation vector into the message passing framework to complete the downstream node classification task. In this work, its inspiration is mainly based on the idea of ​​TransE (a classic knowledge graph model), that is, the relationship acts as both the semantics of connecting nodes and a relation transformation. The message passing function of the model can be formalized as follows:

[0093]

[0094]

[0095] in, Represents node v i The node embedding at layer l is Represents edge e ji In the relation vector at the lth level, U represents the update function, AGG represents the aggregation function, and N i represents the neighbor set of node i, represents the node transformation function, W l Represents the parameters of the lth layer. The initial relationship vector is: For each neighbor, the model uses a combination of feature transformation and relation transformation before aggregation, rather than just a single feature transformation. This change can leverage the semantic information in the relation vector to transform neighbors into features that are more appropriate for the central node, and flexibly model the homogamous and heterogamous properties of each connection during message passing.

[0096] After each layer of convolution, the relationship vector will also undergo a feature transformation to maintain the consistency of the relationship vector and node embedding in each layer:

[0097]

[0098] in, Represents the relational transformation parameters of the lth layer.

[0099] Next, the overall process of the decoder and the corresponding implementation details are given.

[0100] First, the model applies an MLP to transform raw node features into higher-level embeddings:

[0101]

[0102] Among them, x i Represents the original node features.

[0103] Then, the model aggregates the nodes. Considering that the attention mechanism can adaptively model the influence of different nodes, the model uses self-attention to aggregate neighbor information:

[0104]

[0105] in, represents the aggregation result of node i at layer l, is the hyperparameter of the attention mechanism:

[0106]

[0107] Where k represents the kth neighbor of node i.

[0108] Afterwards, the model uses an update function to update the embedding representation of the node:

[0109]

[0110] Among them, θ is used to balance and This ensures the computational stability of the attention mechanism by using the residual link to the initial representation. Then the second and third steps above will be iterated L times to obtain the output node representation. Finally, the model uses an MLP to complete the downstream classification task:

[0111]

[0112] in, Represents the inference result of node i.

[0113] 4. Model training and reasoning

[0114] Training phase: After getting the prediction for each node, the model can calculate the semi-supervised loss of the decoder:

[0115]

[0116] Among them, N tr represents the number of training nodes, CE(.) is the cross entropy loss, y i Represents the label of node i.

[0117] Finally, the total loss of the model is obtained: Among them, γ is a hyperparameter used to balance the size of the two loss functions.

[0118] Reasoning stage: In the reasoning stage, when Generate z ij When the model directly uses the expected μ ij As edge ij The model ignores the variance σ ij To reduce inference noise.

[0119] The beneficial effects of the present invention are as follows: the present invention designs a new heterogeneous graph representation learning method, and models the complex semantic relationship of the edges of the heterogeneous graph by introducing a relationship vector, thereby promoting the modeling of heterogeneous structures in the heterogeneous graph. The present invention conducts verification experiments on node classification tasks on homogeneous and heterogeneous graphs on 8 common graph data sets. The experimental results in Tables 1 and 2 show that the present invention achieves better classification results than other baseline methods.

[0120] Table 1 Comparison of the method of the present invention with the SOTA method on heterogeneous graphs

[0121]

[0122] Table 2 Comparison of the proposed method with the SOTA method on the same graph

[0123]

[0124]

[0125] An embodiment of the present invention discloses a heterogeneous graph representation learning method based on a relationship vector. Assuming that a heterogeneous graph node attribute matrix X, an adjacency matrix A, and a node label Y are given, the prediction process is as follows:

[0126] (1) In the training phase, obtain the samples used for training and their corresponding labels Y tr .

[0127] (2) It consists of three features, namely attribute X, structure A and label Y. tr Generate the corresponding three seed relationship vectors z f,ij , z s,ij , Z l,ij .

[0128] (3) Combine the three seed relationship vectors into a unified relationship vector zij . And get the encoder loss

[0129] (4) Combine the generated relationship vector with message passing to generate the node representation

[0130] (5) Use the node representation to perform downstream node classification tasks and obtain the decoder loss

[0131] (6) Fusion encoder and decoder losses to complete model optimization

[0132] (7) In the prediction stage, the optimized model is used to predict the properties of unknown nodes.

[0133] The present invention is aimed at the most basic node classification task in heterogeneous graph analysis and mining tasks, so it can be widely used in practical applications in various real-world scenarios. For example:

[0134] In social networks, for tasks such as online water army detection, fraud detection, and crawler detection, such graph data often contains a large number of heterogeneous structures due to the forgery behavior of malicious users. Therefore, using the model of the present invention to model heterogeneous graphs can effectively capture this special structure and promote the discovery of such malicious behaviors. That is, the method of the present invention is used to obtain node representations in social networks, and then the obtained node representations are used to classify nodes to discover malicious behaviors.

[0135] In the field of biomedicine, combination therapy, that is, the use of multiple drugs to improve clinical outcomes, has been shown to have advantages over monotherapy. In order to avoid expensive high-throughput testing in drug combinations, drug-drug networks can be constructed to accelerate drug discovery. However, single drug targets in effective drug pairs tend to be close to disease modules but cover different neighborhoods, so drug-drug networks show heterogeneity. Using the method of the present invention, this heterogeneous structure can be better modeled, thereby promoting the discovery of drugs in combination therapy. That is, the method of the present invention is used to obtain node representations in drug-drug networks, and then the obtained node representations are used to perform node classification, so as to find effective drug combinations, thereby implementing treatment for patients.

[0136] Another embodiment of the present invention provides a computer device (computer, server, smart phone, etc.), which includes a memory and a processor, the memory stores a computer program, the computer program is configured to be executed by the processor, and the computer program includes instructions for executing each step in the method of the present invention.

[0137] Another embodiment of the present invention provides a computer-readable storage medium (such as ROM / RAM, magnetic disk, optical disk), wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the steps of the method of the present invention are implemented.

[0138] The specific embodiments of the present invention disclosed above are intended to help understand the content of the present invention and implement it accordingly. It can be understood by those skilled in the art that various replacements, changes and modifications are possible without departing from the spirit and scope of the present invention. The present invention should not be limited to the contents disclosed in the embodiments of this specification, and the scope of protection of the present invention shall be subject to the scope defined in the claims.

Claims

1. A method for learning heterogeneous graph representation based on relationship vectors, characterized in that: The following steps are involved: Using the encoder, we use variational reasoning to generate relationship vectors based on the structure, features, and labels of the graph; The decoder is used to merge the generated relation vector into the message passing mechanism to obtain the final node representation, which is then used to perform the downstream node classification task.

2. The method according to claim 1, characterized in that The optimization objectives of the encoder and the decoder are: Among them, the learnable variational latent variable posterior probability distribution is used To approximate the true latent variable posterior probability distribution p θ (z|A,X,Y tr ), A represents the adjacency matrix of the graph, X represents the node features on the graph, and Y tr represents the training label set, θ, are learnable parameters; is a KL divergence, which is the loss of the encoder, which uses three types of information on the graph, namely structure A, feature X and label Y tr To generate the relationship vector z on each edge; at the same time, z is used as a hidden variable in variational inference, and is restricted by a predefined prior hidden variable probability distribution p(z); As the loss of the decoder, the relationship vector z generated by the encoder is combined with the structure A and the feature X to restore the label information Y of the known node tr ; Indicates that the distribution The expectations below.

3. The method according to claim 1, characterized in that The encoder generates three types of sub-relationship vectors through variational inference, namely, structural sub-relationship vectors, feature sub-relationship vectors and label sub-relationship vectors, and fuses the three types of sub-relationship vectors to obtain a final relationship vector; the three types of sub-relationship vectors are set to mutually independent multivariate normal distributions.

4. The method according to claim 3, characterized in that By assigning randomly initialized expectation and variance embeddings to each connection, a structural sub-relation vector is obtained; MLP is used to transform the concatenation of the two endpoint features and generate the expectation and variance as the feature sub-relation vector.

5. The method according to claim 3, characterized in that: Only out-degree node labels are used to generate a label sub-relation vector, and the steps include: for connection e ij , the node v i Label y i as one-hot vectors and feed them into the MLP to generate expectation and variance embeddings; for unobserved labels, the one-hot vectors are set to all zeros.

6. The method according to claim 1, characterized in that The decoder uses the relationship vector to convert the original neighbor features into correct messages and aggregates them to obtain the final node representation, and uses the output node representation to perform the downstream node classification task; the message passing function used by the decoder is: in, Represents node v i The node embedding at layer l is Represents edge e ji In the relation vector at the lth level, U represents the update function, AGG represents the aggregation function, and N i represents the neighbor set of node i, represents the node transformation function, W l Represents the parameters of the lth layer; the initial relationship vector is: For each neighbor, a combination of feature transformation and relation transformation is used before aggregation, which utilizes the semantic information in the relation vector to transform the neighbor into a feature that is more suitable for the central node and models the homogamous and heterogamous properties of each connection during message passing.

7. The method according to claim 6, characterized in that The workflow of the decoder includes: First, an MLP is applied to transform the raw node features into higher-level embeddings: where x i Represents the original node features; Then, the nodes are aggregated and self-attention is used to aggregate neighbor information: in, represents the aggregation result of node i at layer l, is a hyperparameter of the attention mechanism; Then, use the update function to update the embedding representation of the node: Among them, θ is used to balance and The residual link to the initial representation is used to ensure the computational stability of the attention mechanism. Then, the output node representation is obtained through iteration, and MLP is adopted to complete the downstream classification task.

8. A heterogeneous graph representation learning system based on relationship vectors, characterized in that: include: The encoder is used to generate the relationship vector using variational reasoning based on the structure, features and labels of the graph; The decoder is used to merge the generated relation vector into the message passing mechanism to obtain the final node representation, and use the node representation to perform the downstream node classification task.

9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, the computer program is configured to be executed by the processor, and the computer program comprises instructions for executing the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a computer, the method according to any one of claims 1 to 7 is implemented.