An author classification method based on heterogeneous citation networks

By abstracting the citation network into a heterogeneous graph and using graph structure learners, expanders, and filters to generate node embeddings, the problems of difficulty in meta-path determination and low classification efficiency in the existing technology are solved, and efficient author classification is achieved.

CN116383446BActive Publication Date: 2024-09-13HARBIN ENG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310359202.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-06
Publication Date
2024-09-13
Estimated Expiration
2043-04-06

AI Technical Summary

Technical Problem

Existing graph neural networks require a lot of effort and time to determine meta-paths on heterogeneous graphs when classifying authors in citation networks, and cannot find all meta-paths that are useful for enriching author information, resulting in low classification efficiency and accuracy.

Method used

Abstract the citation network into a heterogeneous graph, use the graph structure learner to sample and recombine the heterogeneous graph, establish connections through the graph structure expander, screen the diversity with the graph structure filter, and build a graph structure analyzer based on the HAN model to automatically Adaptation generates node embeddings and gives different weights to different meta-paths.

Benefits of technology

It greatly reduces the cost of heterogeneous graph representation learning, establishes connections between distant nodes in the citation network, improves the accuracy and efficiency of representation learning, and improves the accuracy and efficiency of author classification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116383446B
    Figure CN116383446B
Patent Text Reader

Abstract

A method for author classification based on heterogeneous citation networks, specifically a method for classifying authors in citation networks using heterogeneous graph representation learning based on meta-structure, is used to solve the problem that when the GNN method is used to classify authors in citation networks, the efficiency and accuracy of heterogeneous graph representation learning are low, resulting in low efficiency and accuracy of author classification in citation networks. The citation network of a certain field is abstracted into a heterogeneous graph, and the heterogeneous graph and its contained meta-paths and meta-graphs are defined respectively. The node types in the heterogeneous graph include articles, authors and conferences; the heterogeneous graph is processed by a graph structure learner, a graph structure expander and a graph structure filter in turn to obtain a new graph structure; a graph structure analyzer is constructed according to the HAN model, and the graph structure analyzer is used to embed nodes in the new graph structure, so as to complete the heterogeneous graph representation learning of the citation network, and the authors are classified according to the heterogeneous graph representation learning to obtain the classified authors. This method belongs to the field of author classification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an author classification method, and in particular to an author classification method in a citation network using heterogeneous graph representation learning based on meta-structure, and belongs to the field of author classification. Background Art

[0002] Currently, existing graph neural networks (GNNs) are performed on homogeneous graphs or heterogeneous graphs, but there are certain limitations in extracting information on both homogeneous and heterogeneous graphs. In homogeneous graphs, for example, work based on graph convolution technology uses the type information of edges and nodes as the features of edges and nodes, but ignores the impact of the types of edges and nodes on the structure. In heterogeneous graphs, the concept of meta-paths is introduced to solve the problems of GNN methods in homogeneous graphs. For example, work based on meta-path random walks uses meta-path sequences to guide the process of finding neighbor nodes. That is, when looking for neighbor nodes, it is to find "neighbor nodes" connected by meta-paths rather than simply connected by edges. This method has rich semantics when extracting neighbor node information.

[0003] The citation network is a typical heterogeneous graph, which has different types of nodes such as A (author), P (article), and C (conference). When publishing papers, authors in the citation network often consult or cite the work of other authors, and these authors generally belong to the same research field, so it is very necessary to classify authors in the same field. However, there are hundreds of millions or even billions of authors in large citation networks. It is impossible to manually classify authors in citation networks, so the GNN method is applied to the author classification of citation networks, and meta-paths are used to mine more authors and corresponding information, and authors are classified according to the information. For example, the meta-path A (author)-P (article)-A (author) can show the co-authorship relationship between two authors, and the meta-path A (author)-P (article)-C (conference)-P (article)-A (author) shows that both authors have published articles at the same conference. Through these meta-paths, the author's information can be further enriched, but this method still has some limitations. First, general GNN methods require pre-defined meta-paths, and the process of manually constructing meta-paths requires strong prior knowledge, because not all meta-paths are helpful for enriching node information in the citation network, so it is necessary to determine the useful meta-paths in the citation network in advance, which is difficult for non-professionals and requires a lot of effort and time, affecting the efficiency of heterogeneous graph representation learning; second, in complex citation networks, there is a lack of ability to handle sparse connections and missing connections between distant nodes, resulting in some meta-paths that are useful for enriching author information not being found, thereby reducing the accuracy of heterogeneous graph representation learning; third, because the semantics contained in different meta-paths are different, and the importance of the same meta-path is different for different tasks, however, most existing methods simply aggregate the information contained in different meta-paths, which will also reduce the accuracy of heterogeneous graph representation learning, affecting subsequent author classification tasks, resulting in low efficiency and accuracy of author classification in citation networks. Summary of the invention

[0004] In order to solve the problems that when the GNN method is used to classify authors in a citation network, it takes a lot of effort and time to determine the meta-paths on the heterogeneous graph, which affects the efficiency of heterogeneous graph representation learning, and it is impossible to find all meta-paths that are useful for enriching author information. The information contained in different meta-paths is simply aggregated, which affects the accuracy of heterogeneous graph representation learning, resulting in low efficiency and accuracy of author classification in the citation network. Then, an author classification method based on heterogeneous citation networks is proposed.

[0005] The technical solution adopted by the present invention is:

[0006] It includes the following steps:

[0007] S1. Abstract the citation network of a certain research field into a heterogeneous graph, and define the heterogeneous graph, the meta-path contained in the heterogeneous graph, and the meta-graph respectively;

[0008] S2. Use the graph structure learner to sample and recombine the heterogeneous graph to obtain a new subgraph, multiply the new subgraph in a matrix manner to obtain a new graph structure, use the graph structure expander to expand the new graph structure to obtain an expanded new graph structure, use the graph structure filter to define and filter the diversity of the expanded new graph structure to obtain a filtered new graph structure;

[0009] S3. Build a graph structure analyzer based on the HAN model. In the graph structure analyzer, use the screened new graph structure as the input of the graph convolutional network GCN, output node embedding, and use a multi-layer perceptron to perform nonlinear transformation on the node embedding. The weight of each specific graph structure under a specific semantic node embedding is measured by the similarity between the node embedding after nonlinear transformation and a semantic level attention vector. The weight is fused with the specific semantic node embedding to obtain the final node embedding, and the heterogeneous graph representation learning of the citation network is completed. According to the heterogeneous graph representation learning, the authors of the citation network in a certain research field in S1 are classified to obtain the classified authors.

[0010] Furthermore, the specific process of S1 is as follows:

[0011] S11. Define the heterogeneous graph:

[0012] Abstract the citation network of a certain research field into a heterogeneous graph, define the heterogeneous graph as G = (V, E), and the relationship model of the heterogeneous graph as T G =(T v ,T e ), where V is the set of nodes in the heterogeneous graph, E is the set of edges in the heterogeneous graph, and T v is a set of node types in a heterogeneous graph, including articles P, authors A, and conferences C in a certain field. e is the set of edge types in the heterogeneous graph, including PA, AP, PC, and CP;

[0013] According to any two nodes in the heterogeneous graph, the corresponding edge type is obtained, and each edge type is stored in an adjacency matrix A, A∈R N×N , where N = |V|, then the heterogeneous graph can be stored using an adjacency matrix, that is, the heterogeneous graph includes multiple adjacency matrices, so the heterogeneous graph is a tensor Each adjacency matrix is ​​actually a subgraph;

[0014] S12. Abstract the relationship between nodes in the citation network into a meta-structure. The meta-structure includes a meta-path and a meta-graph. A meta-path is a path connecting different types of edges on a heterogeneous graph.

[0015] S13. Define meta-path based on heterogeneous graph:

[0016] definition represents the meta-path, e l represents the lth type of edge in the meta-path, e l ∈T e ;

[0017] S14. Define meta-graph based on heterogeneous graph:

[0018] The metagraph M is a graph with a single source node v s and a single target node v t A directed acyclic graph, that is, v s The in-degree is 0, v t The out-degree is 0, so use M = (V M ,E M ,A M ,R M ,v s ,v t ) represents a metagraph, where Respectively Constraints, V M represents the set of nodes in the metagraph M, E M represents the set of edges in the metagraph M, A M represents the set of node types in the metagraph M, R M Represents the set of edge types in the metagraph M.

[0019] Furthermore, the specific process of S2 is as follows:

[0020] S21, define that there are multiple graph structure generation layers, each of which is composed of l graph structure learners, and use a graph structure learner to generate tensors of heterogeneous graphs in S11 Sampling is performed to obtain multiple subgraphs A i , recombining all subgraphs to obtain a new subgraph Q, then for l graph structure learners, l new subgraphs are obtained, and the l new subgraphs are multiplied in the form of a matrix to obtain a new graph structure H containing a meta-structure of a path type with a length ranging from 1 to l, that is, one graph structure generation layer obtains a new graph structure H, and multiple graph structure generation layers obtain multiple new graph structures H, and multiple new graph structures H constitute a tensor of the new graph structure

[0021] S22, using a graph structure expander to expand the tensor of the new graph structure to obtain a tensor of the expanded new graph structure, where the expanded new graph structure includes a meta-graph type meta-structure;

[0022] S23. Use the graph structure filter to perform diversity definition and screening on the tensor of the expanded new graph structure to obtain the screened tensor of the new graph structure.

[0023] Furthermore, the specific process of S21 is as follows:

[0024] S211. Define that there are multiple graph structure generation layers, each graph structure generation layer is composed of l graph structure learners, and the number of graph structure generation layers is represented by the number of channels C;

[0025] S212, in each graph structure learner, the tensor of the heterogeneous graph in S11 Sampling is performed to obtain multiple subgraphs A i , use two 1×1 convolutional layers to obtain all sub-graphs A i The weights are reorganized to obtain a new subgraph Q:

[0026]

[0027] Among them, φ represents the convolutional layer, W φ ∈R 1×1×K represents the parameter of φ, A i , α i Represent heterogeneous graphs and W φ The child elements in

[0028] For each graph structure generation layer, the l graph structure learners obtain l new subgraphs Q1, Q2, ...Q l ;

[0029] S213, multiply the l new subgraphs in the form of a matrix to obtain a new graph structure H containing path type element structures with lengths ranging from 1 to l:

[0030] H=Q1Q2…Q l (2)

[0031] in, is a metastructure of length l at the tth l The weights in the graph structure learner are used to obtain a new graph structure H with a meta-structure of length l:

[0032]

[0033] Then one graph structure generation layer obtains a new graph structure H, and multiple graph structure generation layers obtain multiple new graph structures H, and multiple new graph structures H constitute a tensor of new graph structures

[0034]

[0035] in, Depends on the number of channels C.

[0036] Furthermore, the specific process of S22 is as follows:

[0037] The graph structure expander is a Hadamard product operation, which is a tensor of the new graph structure. Choose any two adjacency matrices H i and H j , using the Hadamard product to H i and H j Expand and obtain a new graph structure H containing the meta-graph type meta-structure HP , since the graph structure can be used as a graph matrix, the new graph structure H HP Using the normalization method based on matrix row values, each element in the graph matrix is ​​normalized with the total value of each row of the graph matrix to obtain the expanded new graph structure. Repeat the above operation to obtain multiple new graph structures H HP , multiple new graph structures H HP Tensors that make up the expanded new graph structure

[0038] Furthermore, the specific process of S23 is as follows:

[0039] Given an integrated model HC and weight α t , we get the definition of the amb diversity measurement method, as shown below:

[0040]

[0041] Formula (5) is used to define the diversity of information in different graph structures, as shown in the following formula:

[0042]

[0043] Where, W is the total number of graph structures;

[0044] Based on formula (6), the tensor of the new graph structure is calculated And the tensor of the expanded new graph structure All new graph structures H in i The diversity is sorted from large to small, and the P new graph structures with the largest diversity are selected as the output of the graph structure filter in the form of graph structure tensor, as shown in the following formula:

[0045]

[0046] in, A tensor representing the new graph structure after filtering,

[0047] Furthermore, the specific process of S3 is as follows:

[0048] S31, the tensor of the new graph structure in S23 The P new graph structures in are used as the input of the graph convolutional network GCN, and the output is P node embeddings Z1, Z2, …, Z P , Among them, Z a represents the node embedding under a new graph structure, a∈P,H a Represents the tensor H selected The adjacency matrix corresponding to the a-th new graph structure, Indicates H a The degree matrix of N×d Represents the feature matrix, W∈R d×d represents the training weight matrix;

[0049] S32. Obtain the weight of each new graph structure based on the P node embeddings:

[0050] (β1, β2, …, β P )=att sem (Z1, Z2, ..., Z P ) (8)

[0051] Among them, att sem Represents a deep neural network that performs semantic level attention;

[0052] S33. Use a layer of multi-layer perceptron to perform nonlinear transformation on node embeddings. Use the similarity between the node embeddings after nonlinear transformation and a semantic level attention vector q to measure the importance of specific semantic node embeddings of a specific new graph structure. Average the importance of all specific semantic node embeddings to obtain the importance of each new graph structure w. i :

[0053]

[0054] Among them, W is the training weight matrix, b is the bias value, and q is the semantic level attention vector;

[0055] The importance of each new graph structure is normalized through the softmax function to obtain the weight of the corresponding new graph structure, as shown in the following formula:

[0056]

[0057] Among them, β i is the weight of each new graph structure, β i The higher it is, the more important the new graph structure is;

[0058] S34. The weight w of the new graph structure iIt is fused with the specific semantic node embedding corresponding to the new graph structure to obtain the final node embedding Z:

[0059]

[0060] At this point, the heterogeneous graph representation learning of the citation network is completed. According to the heterogeneous graph representation learning, the authors of the citation network of a certain research field in S1 are classified to obtain the classified authors.

[0061] Beneficial Effects

[0062] The present invention abstracts the citation network of a certain research field into a heterogeneous graph, customizes the heterogeneous graph, the meta-path and meta-graph contained in the heterogeneous graph, divides the heterogeneous graph into multiple sub-graphs for subsequent calculations, and the node types in the heterogeneous graph include articles P, authors A and conferences C in a certain field, and the edge types include PA, AP, PC, and CP; the graph structure learner is used to sample and recombine the multiple sub-graphs in the heterogeneous graph to obtain a new graph structure, and the graph structure learner can adaptively generate meta-paths useful for enriching the author node information, greatly reducing the cost of heterogeneous graph citation network representation learning. Then, the new graph structure is expanded by the graph structure expander to obtain the expanded new graph structure, so that the connection between the author nodes with a long distance in the citation network can be established, the author node information is enriched, all useful meta-paths are found, and the accuracy of heterogeneous graph representation learning is improved. Next, the graph structure filter is used to define and filter the diversity of the expanded new graph structure, obtain the filtered new graph structure, and find truly effective information. Finally, the graph structure analyzer is used to realize the final node embedding in the heterogeneous graph and complete the heterogeneous graph representation learning. According to the heterogeneous graph representation learning, the authors of the citation network in a certain research field are classified to obtain the classified authors. In this step, different meta-paths are given different weights, which is more in line with the actual situation and further improves the accuracy and efficiency of heterogeneous graph representation learning, thereby improving the accuracy and efficiency of author classification. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 It is a schematic diagram of a single-channel graph structure learner;

[0064] Figure 2 This is an example diagram of the matrix multiplication expansion relationship;

[0065] Figure 3 This is an example diagram of the operation of the graph structure expander;

[0066] Figure 4 It is a schematic diagram of the graph structure analyzer process;

[0067] Figure 5 It is a schematic diagram of meta-structure visualization analysis;

[0068] Figure 6This is the result graph of the node classification experiment. DETAILED DESCRIPTION

[0069] Specific implementation method 1: Combination Figure 1-Figure 6 This embodiment describes an author classification method based on a heterogeneous citation network. Since all author nodes contain node features, heterogeneous graph representation learning can be performed through node features. Therefore, the present invention accurately predicts the research field of each author through a heterogeneous representation learning method based on meta-structure and performs author node classification. It includes the following steps:

[0070] S1. Abstract the citation network of a certain research field into a heterogeneous graph, and define the heterogeneous graph, the meta-path contained in the heterogeneous graph, and the meta-graph respectively. The specific process is as follows:

[0071] S11. Define the heterogeneous graph:

[0072] The citation networks involved in the present invention include DBLP (Digital Bibliography & Library Project) and ACM (Association for Computing Machinery). The citation network of a certain research field is abstracted into a heterogeneous graph, and the heterogeneous graph is defined as G = (V, E). The relationship model of the heterogeneous graph is T G =(T v ,T e ), where V is the set of nodes in the heterogeneous graph, E is the set of edges in the heterogeneous graph, and T v is a set of node types in a heterogeneous graph, including P (article), A (author), C (conference), etc. in a certain research field. e is the set of edge types in the heterogeneous graph, including PA, AP, PC, CP, etc. The heterogeneous graph G = (V, E) has a node type mapping function f v :V→T v and edge type mapping function f e :E→T e . Definition | T v | is the number of node types in the heterogeneous graph, |T e | is the number of edge types in the heterogeneous graph, if T v |+T e |>2, indicating that there may be multiple types of nodes or multiple types of edges or multiple types of nodes and multiple types of edges in the heterogeneous graph. According to any two nodes in the heterogeneous graph (which can be nodes of the same type or different types), the corresponding edge type is obtained, and each edge type is stored in an adjacency matrix, which can be understood as each edge type is an adjacency matrix. N×NStore heterogeneous graphs, where N = |V|. If node v i and node v j There is an edge e between ij , then a in the adjacency matrix A ij is non-zero, otherwise it is zero, v i is the i-th node in the heterogeneous graph, v j is the jth node in the heterogeneous graph, v i 、v j ∈V,e ij is the connection node v in the heterogeneous graph i and node v j The edge, e ij ∈E.a ij ∈A is calculated as follows:

[0073]

[0074] According to the edge type, a heterogeneous graph can be composed of Indicates, where K represents the type of edge, K=|T e |, k represents the kth type, k∈K, A k ∈R N×N , when node v i and node v j When there is an edge of type k, A k [i,j] is non-zero. More precisely, the heterogeneous graph is composed of K adjacency matrices, so the heterogeneous graph can be represented as a tensor Each adjacency matrix is ​​actually a subgraph, and the adjacency matrix is ​​just a representation of the graph in the form of a matrix.

[0075] S12. The relationship between any nodes in the citation network is abstracted into a meta-structure. The meta-structure includes a meta-path and a meta-graph. A meta-path is a path connecting different types of edges on a heterogeneous graph.

[0076] S13. Define meta-path based on heterogeneous graph:

[0077] definition represents the meta-path, e l represents the lth type of edge in the meta-path, e l ∈T e , the meta path is between v1 and v l+1 A composite relationship is defined between Represents a composite operation between node relations.

[0078] S14. Define meta-graph based on heterogeneous graph:

[0079] The metagraph M is a graph with a single source node vs and a single target node v t The directed acyclic graph of v s The in-degree is 0, v t The out-degree is 0, so use M = (V M ,E M ,A M ,R M ,v s ,v t ) represents a metagraph, where Respectively Constraints, V M represents the set of nodes in the metagraph M, E M represents the set of edges in the metagraph M, A M represents the set of node types in the metagraph M, R M Represents the set of edge types in the metagraph M.

[0080] S2. Use the graph structure learner to sample and recombine the heterogeneous graph to obtain a new subgraph, multiply the new subgraph in a matrix manner to obtain a new graph structure, use the graph structure expander to expand the new graph structure to obtain an expanded new graph structure, use the graph structure filter to define and filter the diversity of the expanded new graph structure to obtain a filtered new graph structure. The specific process is as follows:

[0081] S21, define that there are multiple graph structure generation layers, each of which is composed of l graph structure learners, and use a graph structure learner to generate tensors of heterogeneous graphs in S11 Sampling is performed to obtain multiple subgraphs A i , recombining all subgraphs to obtain a new subgraph Q, then for l graph structure learners, l new subgraphs are obtained, and the l new subgraphs are multiplied in the form of a matrix to obtain a new graph structure H containing a meta-structure of a path type with a length ranging from 1 to l, that is, one graph structure generation layer obtains a new graph structure H, and multiple graph structure generation layers obtain multiple new graph structures H, and multiple new graph structures H constitute a tensor of the new graph structure The graph structure can be viewed as representing the new heterogeneous graph in the form of a graph matrix:

[0082] In order to build an automated learning process, a graph structure learner is used to combine all subgraphs sampled from the heterogeneous graph G into a new heterogeneous graph. The graph structure learner is a single channel, such as Figure 1 shown.

[0083] The heterogeneous graph G is composed of different types of nodes V and different types of edges E. Obviously, for the initial tensor of the heterogeneous graph G For example, we can use the type set T of edge E e Will Split into a smaller set of subgraph adjacency matrices, as shown below:

[0084]

[0085] Among them, T e Represents the edge type set of E, A[e] represents a tensor The subgraph adjacency matrix of all edges of type e in A[e] is composed of nodes corresponding to edges of type e.

[0086] According to the above formula, the heterogeneous graph is split into multiple minimum unit subgraphs (subgraph adjacency matrix), and the subgraph adjacency matrix corresponding to each subgraph is can be regarded as a metastructure of length 1, and building more complex metastructures is actually from tensors Select the corresponding subsets from the citation network, and then connect the corresponding subsets through matrix multiplication. For example, in the citation network, the length of the adjacency matrix A of the 2-tuple structure Author-Paper-Conference (APC) is APC We can use the adjacency matrix A of Author-Paper, Paper-Conference AP With A PC Multiply them together to get A APC =A AP ×A PC .

[0087] From the perspective of the adjacency matrix, it can be explained as follows: for each graph structure learner, the tensor of the heterogeneous graph in S11 Sampling is performed to obtain multiple subgraphs A i , use two 1×1 convolutional layers to obtain all sub-graphs A i The convolution kernel of the adjacency matrix is ​​calculated by softmax, and the weights are reorganized to obtain a new subgraph Q, which has fewer sampled nodes and edges than subgraph A. i , each new subgraph Q is a graph structure, as shown below:

[0088]

[0089] Among them, φ represents the convolutional layer; W φ ∈R 1×1×K is the parameter of φ. The convolutional layer parameters include node features, input feature dimensions, output feature dimensions, etc.; A i , α i Heterogeneous graphs and W φ Sub-elements in, such as A i Representing heterogeneous graphs The i-th subgraph in i Indicates A iParameters; Q is actually Weighted sum of neutron graphs.

[0090] In the above way, the two graph structure learners can learn from heterogeneous graph tensors Two new subgraphs Q1 and Q2 are obtained, and the two new subgraphs are multiplied in the form of matrices to generate a new graph structure H containing a path type metastructure with a length of 2:

[0091] H=D -1 Q1Q2

[0092] Where D is the heterogeneous graph tensor Normalizing the degree matrix with the degree matrix can maintain the numerical stability of the graph structure.

[0093] Each graph structure learner outputs a new subgraph Q, which is represented by an adjacency matrix. In order to obtain a new graph structure containing a path-type meta-structure of length l, l graph structure learners are combined into a graph structure generation layer, and the graph structure generation layer is defined as L. The output of the graph structure generation layer L is the new graph structure H. The number of graph structure generation layers is represented by the number of channels C (channels), so the number of graph structure learners is l×C. l and C are hyperparameters that can be set by yourself during training. Through l graph structure learners, l new subgraphs Q1, Q2, ...Q l , multiply l new subgraphs in the form of a matrix to obtain a new graph structure H. Then a graph structure generation layer (a channel) can generate a new graph structure H, as shown in the following formula:

[0094] H=Q1Q2…Q l

[0095] in, is a metastructure of length l at the tth l The weights in the graph structure learner are used to obtain a new graph structure H with a meta-structure of length l:

[0096]

[0097] According to the above process, the multiple new graph structures H are formed into a tensor of new graph structures

[0098]

[0099] in, Depends on the number of channels C.

[0100] The present invention considers a clever example to explain why the form of matrix multiplication is used, such as Figure 2As shown in Figure 2, the director-movie-company heterogeneous graph is used as the input of the graph structure learner. First, the original relationship graph (i.e., the original heterogeneous graph) is split into sub-relationships based on the edge relationship as the index, as shown in Figure 2. Figure 2 As shown in the figure, we get two sub-relationships: director-(director)-movie and production company-(producer)-movie. If we directly multiply the two sub-relationships, we can get a new relationship that does not exist in the original graph, such as director-production company. In the data stream, all relationships are stored in matrix form, so multiplying the adjacency matrix of the subgraph can naturally get a new graph structure.

[0101] S22, using a graph structure expander to expand the tensor of the new graph structure to obtain a tensor of the expanded new graph structure, where the expanded new graph structure includes a meta-graph type meta-structure;

[0102] The graph structure learner only linearly expands the graph structure. The corresponding meta-structure is the style meta-path such as "APA, PVA". In order to enable the graph structure learner to learn more complex structural information, the Hadamard product operation is used to perform the The expansion is performed, that is, the graph structure expander is the Hadamard product operation.

[0103] The Hadamard product operation refers to multiplying the elements of corresponding positions of two matrices. In the data stream, the relationship exists in the form of a matrix, as shown in the following formula:

[0104]

[0105] The elements in the matrix come from the weights of the convolutional layer for each sub-relation and the product of the weights between different layers. Obviously, each element is a decimal between 0 and 1. Choose any two adjacency matrices H i and H j , H i and H j The new graph structure H containing the meta-graph type meta-structure is obtained through the Hadamard product HP , the graph structure can be regarded as a graph matrix, each element of which is equivalent to the attention coefficient applied to the two graph structures. Figure 3 As shown, in H i and H j After the Hadamard product operation, the weight of each sub-relationship (each small grid in the graph represents a sub-relationship) in the graph structure changes. The sub-relationships are shown as FP and VP. The weight is represented by the depth of the color block. The light color block indicates low attention, and the dark color block indicates high attention. For the Hadamard product operation, due to the multiplication of decimals between 0 and 1, the new graph structure H HP The value of will continue to decrease, and a large number of Hadamard product operations will reduce the numerical stability of the graph structure. Therefore, for the new graph structure H HPThe normalization method based on matrix row values ​​is used to normalize each element in the graph matrix with the total value of each row of the graph matrix. In essence, all out-degrees of a node are normalized. The specific definition is shown in the following formula:

[0106]

[0107] Where N is the number of nodes, k and j represent the new graph structure H HP The k-th row and j-th column in the matrix.

[0108] The graph structure expander obtains multiple new graph structures H through Hadamard product and normalization operations. HP , multiple new graph structures H HP Tensors that together form the expanded new graph structure

[0109] S23, using the graph structure filter to perform diversity definition and screening on the tensor of the expanded new graph structure, to obtain the screened tensor of the new graph structure;

[0110] The above S21 and S22 obtained and Multiple new graph structures, including meta-path type meta-structures and meta-graph type meta-structures. Different graph structures have different weight coefficients for each meta-structure, and the improvement effects on downstream learning tasks are also different. In order to find the meta-structure with the best improvement effect, it is necessary to preliminarily screen the learned graph structures and retain the graph structures with large structural differences as output.

[0111] Diversity is defined as the ability of different models to extract input features. The more diverse the model, the better the feature extraction performance. Diversity measurement was first proposed by AdaBoost.NC, who named the proposed method amb. Assume that when the predicted x is consistent with the actual result, h t (x) is equal to 1; otherwise h t (x) is equal to -1. Given an integrated model HC and weight α t , we can get the definition of amb as shown below:

[0112]

[0113] The idea of ​​amb is to find the difference between each result and all other results, that is, to calculate T×(T-1) / 2 times, where T represents the number of results. The work of amb is mainly aimed at the problem of ranking the performance of different models in the integrated model, while the graph structure learner is to learn the rich structural information in the heterogeneous graph. The output graph structure also faces the problem of how much structural information it contains. The graph structure information contained in different graph structures can be defined by diversity, as shown in the following formula:

[0114]

[0115] Where W is the total number of graph structures. The diversity definition is equivalent to taking the absolute value of the difference between the two graph structures, and defining the absolute value of the difference as the distance between the two graph structures. For any graph structure, its diversity is defined as the sum of its distances to all other graph structures.

[0116] Based on the above formula, calculate the tensor of the new graph structure And the tensor of the expanded new graph structure All new graph structures H in i The diversity is sorted from large to small, and the P new graph structures with the largest diversity are selected as the output of the graph structure filter, that is, the filtered new graph structure is obtained, which is in the form of a graph structure tensor, as shown in the following formula:

[0117]

[0118] in, The number of meta-structures in the graph filtered by the graph structure filter is not determined by P. P defines the number of graph structures, while a single graph structure H i It is weighted by all meta-structures with lengths from 1 to l, which already includes multiple meta-structures. Therefore, the diverse screening method used here is equivalent to guiding the graph structure generation layer to try to select a graph structure that can make the final generated graph structure different from the original graph structure when learning the meta-structure, and also different from the graph structure learned by the graph structure learner of other channels. The purpose of using a diverse graph structure filter is to optimize the output of the graph structure generation layer so that it tends to learn unique graph structures during the training process, which is beneficial to the learning process of downstream tasks.

[0119] New graph structure tensor The P graph structures in the graph are one by one. i ∈R N×N In the form of graph structure matrix, any value in the graph structure matrix represents the weighted sum of the meta-structure between two points. Taking the paper citation network as an example, the matrix corresponding to the meta-structure of “author-paper-author (APA)” is H A-P-A =α1×H A-P +α2×H P-A , the initial H P-A and H A-P is the corresponding adjacency matrix, in which the value is 0 or 1, 0 represents no connection, 1 represents connection; α1 and α2 are parameter vectors composed of numbers from 0 to 1, so the final H A-P-A The value range of is [0, 1], and the weight indirectly represents the selected meta-structure.

[0120] S3. Build a graph structure analyzer based on the HAN model. In the graph structure analyzer, use the screened new graph structure as the input of the graph convolution network GCN, output node embedding, use the multi-layer perceptron to perform nonlinear transformation on the node embedding, measure the weight of each specific graph structure under the specific semantic node embedding by the similarity between the node embedding after nonlinear transformation and a semantic level attention vector, fuse the weight with the specific semantic node embedding, obtain the final node embedding, complete the heterogeneous graph representation learning of the citation network, and classify the authors of the citation network in a certain research field in S1 according to the heterogeneous graph representation learning to obtain the classified authors. The specific process is as follows:

[0121] S31, the tensor of the new graph structure in S23 The P new graph structures in are used as the input of the graph convolutional network GCN, and the output is P node embeddings Z1, Z2, …, Z P , Among them, Z a represents the node embedding under a new graph structure, a∈P,H a Represents the tensor H selected The adjacency matrix corresponding to the a-th new graph structure, Indicates H a The degree matrix of N×d Represents the feature matrix, W∈R d×d Represents the training weight matrix.

[0122] S32. Obtain the weight of each new graph structure based on P node embeddings

[0123] (β1, β2, …, β P )=att sem (Z1, Z2, ..., Z P )

[0124] Among them, att sem Represents a deep neural network that performs semantic-level attention. Studies have shown that semantic-level attention can capture various semantic information behind heterogeneous graphs.

[0125] S33, use a layer of multi-layer perceptron (MLP) to perform nonlinear transformation on the node embedding, use the similarity between the node embedding after nonlinear transformation and a semantic level attention vector q to measure the importance of the specific semantic node embedding of the specific new graph structure, average the importance of all specific semantic node embeddings, and obtain the importance w of each new graph structure i :

[0126]

[0127] Among them, W is the training weight matrix, b is the bias value, and q is the semantic level attention vector. After obtaining the importance of each graph structure, the importance of each new graph structure is normalized by the softmax function to obtain the weight of the corresponding new graph structure, as shown in the following formula:

[0128]

[0129] Among them, β i is the weight of each new graph structure, that is, the contribution of each graph structure to a specific heterogeneous graph learning task, β i The higher it is, the more important the graph structure is. For different tasks, the same graph structure may have different weights.

[0130] S34. Set the graph structure weight w i The final node embedding Z is obtained by fusing it with the specific semantic node embedding of the corresponding graph structure, and the heterogeneous graph representation learning of the citation network is completed. The authors of the citation network of a certain research field in S1 are classified according to the heterogeneous graph representation learning to obtain the classified authors.

[0131]

[0132] Generally speaking, heterogeneous graphs contain different meaningful and complex semantic information, which is usually reflected by meta-structures and used for node embedding. Different meta-structures in heterogeneous graphs can extract different semantic information, and the importance of these different semantic information to nodes is different. For example, in the movie network, there are two types of meta-structures Movie-Year and Movie-Actor. Obviously, the meta-structure Movie-Actor is more important to a movie. In order to solve the problem of meta-structure selection and semantic fusion in heterogeneous graphs, a semantic hierarchical attention is applied to the graph structure through the graph structure analyzer to automatically learn the importance of the graph structure composed of different meta-structures. The implementation process of the graph structure analyzer is as follows: Figure 4 shown.

[0133] By using a meta-structure-based heterogeneous graph representation learning method to represent the citation network in the present invention, the research field of the paper author can be analyzed. Through this inference, the paper can be further classified according to the author's research field, which facilitates the reference and citation of literature.

[0134] The node classification experiment analysis of the above exemplary embodiments was carried out through real data sets. The present invention was represented by MS-GAN, the graph representation methods selected by the control group were DeepWalk, Metapath2vec, GCN, GAT, HAN, and GTN, the selected data sets were DBLP, IMDB, and ACM, and the evaluation indicator used was Macro-F1.

[0135] Figure 5 The generated meta-structures are visualized and analyzed to show the meta-structures learned by the graph structure generation layer of different channels. The depth of color represents the weight. Taking the leftmost channel as an example, the three sub-relations with the largest weights in the meta-structure are VP, FP, and PA, which means that the generation layer corresponding to this channel attaches the most importance to the two meta-structures of VPA and FPA. Figure 6 It can be observed that, compared with other similar algorithms, the graph representation learning scheme obtained by using the technical solution of the present invention has the highest Macro-F1 in all three data sets, that is, the best classification effect. Figure 5 and Figure 6 This shows that the technical solution of the present invention has the characteristics of automatic learning of meta-structure and high accuracy.

Claims

1. An author classification method based on heterogeneous citation networks, characterized by: It includes the following steps: S1. Abstract the citation network of a certain research field into a heterogeneous graph, and define the heterogeneous graph, the meta-path contained in the heterogeneous graph, and the meta-graph respectively; S2. Use the graph structure learner to sample and recombine the heterogeneous graph to obtain a new subgraph, multiply the new subgraph in a matrix manner to obtain a new graph structure, use the graph structure expander to expand the new graph structure to obtain an expanded new graph structure, use the graph structure filter to define and filter the diversity of the expanded new graph structure to obtain a filtered new graph structure; S3. Build a graph structure analyzer based on the HAN model. In the graph structure analyzer, use the screened new graph structure as the input of the graph convolutional network GCN, output node embedding, use a multi-layer perceptron to perform nonlinear transformation on the node embedding, measure the weight of each specific graph structure under a specific semantic node embedding by the similarity between the node embedding after nonlinear transformation and a semantic level attention vector, fuse the weight with the specific semantic node embedding to obtain the final node embedding, complete the heterogeneous graph representation learning of the citation network, and classify the authors of the citation network in a certain research field in S1 according to the heterogeneous graph representation learning to obtain the classified authors; The specific process of S1 is as follows: S11. Define the heterogeneous graph: Abstract the citation network of a certain research field into a heterogeneous graph, define the heterogeneous graph as G = (V, E), and the relationship model of the heterogeneous graph as T G =(T v ,T e ), where V is the set of nodes in the heterogeneous graph, E is the set of edges in the heterogeneous graph, and T v is a set of node types in a heterogeneous graph, including articles P, authors A, and conferences C in a certain field. e is the set of edge types in the heterogeneous graph, including PA, AP, PC, and CP; According to any two nodes in the heterogeneous graph, the corresponding edge type is obtained, and each edge type is stored in an adjacency matrix A, A∈R N×N , where N = |V|, then the heterogeneous graph can be stored using an adjacency matrix, that is, the heterogeneous graph includes multiple adjacency matrices, so the heterogeneous graph is a tensor K represents the type of edge; each adjacency matrix is ​​actually a subgraph; S12. Abstract the relationship between nodes in the citation network into a meta-structure. The meta-structure includes a meta-path and a meta-graph. A meta-path is a path connecting different types of edges on a heterogeneous graph. S13. Define meta-path based on heterogeneous graph: definition Represents a meta-path, v1 represents the first node in the heterogeneous graph, v2 represents the second node in the heterogeneous graph, and v l+1 represents the l+1th node in the heterogeneous graph, e1 represents the first type of edge in the meta-path, e2 represents the second type of edge in the meta-path, and e l represents the lth type of edge in the meta-path, e l ∈T e ; S14. Define meta-graph based on heterogeneous graph: The metagraph M is a graph with a single source node v s and a single target node v t The directed acyclic graph of v s The in-degree is 0, v t The out-degree is 0, so use M = (V M ,E M ,A M ,R M ,v s ,v t ) represents a metagraph, where V M represents the set of nodes in the metagraph M, E M represents the set of edges in the metagraph M, A M represents the set of node types in the metagraph M, R M Represents the set of edge types in the metagraph M; The specific process of S2 is: S21, define that there are multiple graph structure generation layers, each of which is composed of l graph structure learners, and use a graph structure learner to generate tensors of heterogeneous graphs in S11 Sampling is performed to obtain multiple subgraphs A i , recombining all subgraphs to obtain a new subgraph Q, then for l graph structure learners, l new subgraphs are obtained, and the l new subgraphs are multiplied in the form of a matrix to obtain a new graph structure H containing a meta-structure of a path type with a length ranging from 1 to l, that is, one graph structure generation layer obtains a new graph structure H, and multiple graph structure generation layers obtain multiple new graph structures H, and multiple new graph structures H constitute a tensor of the new graph structure S22, using a graph structure expander to expand the tensor of the new graph structure to obtain a tensor of the expanded new graph structure, where the expanded new graph structure includes a meta-graph type meta-structure; S23, using the graph structure filter to perform diversity definition and screening on the tensor of the expanded new graph structure, to obtain the screened tensor of the new graph structure; The specific process of S21 is as follows: S211. Define that there are multiple graph structure generation layers, each graph structure generation layer is composed of l graph structure learners, and the number of graph structure generation layers is represented by the number of channels C; S212, in each graph structure learner, the tensor of the heterogeneous graph in S11 Sampling is performed to obtain multiple subgraphs A i , use two 1×1 convolutional layers to obtain all sub-graphs A i The weights are reorganized to obtain a new subgraph Q: Among them, φ represents the convolutional layer, W φ represents the parameter of φ, A i , α i Represent heterogeneous graphs and W φ The child elements in For each graph structure generation layer, the l graph structure learners obtain l new subgraphs Q1, Q2, ...Q l ; S213, multiply the l new subgraphs in the form of a matrix to obtain a new graph structure H containing a path type element structure with lengths ranging from 1 to l: H=Q1Q2…Q l (2) in, is a metastructure of length l at the tth l The weights in the graph structure learner are used to obtain a new graph structure H with a meta-structure of length l: Then one graph structure generation layer obtains a new graph structure H, and multiple graph structure generation layers obtain multiple new graph structures H, and multiple new graph structures H constitute a tensor of new graph structures in, Depends on the number of channels C; The specific process of S22 is as follows: The graph structure expander is a Hadamard product operation, which is a tensor of the new graph structure. Choose any two adjacency matrices H i and H j , using the Hadamard product to H i and H j Expand and obtain a new graph structure H containing the meta-graph type meta-structure HP , since the graph structure can be used as a graph matrix, the new graph structure H HP Using the normalization method based on matrix row values, each element in the graph matrix is ​​normalized with the total value of each row of the graph matrix to obtain the expanded new graph structure. Repeat the above operation to obtain multiple new graph structures H HP , multiple new graph structures H HP Tensors that make up the expanded new graph structure The specific process of S23 is as follows: Given an integrated model HC and weight α t , we get the amb diversity measurement method, which is defined as, for each result, finding the difference between it and all other results; The diversity of information of different graph structures is defined using the AMB diversity measurement method. The diversity definition is equivalent to taking the absolute value of the difference between two graph structures, and defining the absolute value of the difference as the distance between the two graph structures. For any graph structure, its diversity is defined as the sum of its distances from all other graph structures. Compute tensors of new graph structures And the tensor of the expanded new graph structure All new graph structures H in i The diversity is sorted from large to small, and the P new graph structures with the largest diversity are selected as the graph structure tensor The output of the graph structure filter is in the form of .

2. The author classification method based on heterogeneous citation networks according to claim 1, characterized in that: The specific process of S3 is as follows: S31, the tensor of the new graph structure in S23 The P new graph structures in are used as the input of the graph convolutional network GCN, and the output is P node embeddings Z1, Z2, …, Z P , Among them, Z a represents the node embedding under a new graph structure, a∈P,H a Representing a tensor The adjacency matrix corresponding to the a-th new graph structure, Indicates H a The degree matrix, X represents the feature matrix, and W represents the training weight matrix; S32. Obtain the weight of each new graph structure based on the P node embeddings: (β1, β2, …, β P )=att sem (Z1, Z2, ..., Z P ) (5) Among them, att sem Represents a deep neural network that performs semantic level attention; S33. Use a layer of multi-layer perceptron to perform nonlinear transformation on node embeddings. Use the similarity between the node embeddings after nonlinear transformation and a semantic level attention vector q to measure the importance of specific semantic node embeddings of a specific new graph structure. Average the importance of all specific semantic node embeddings to obtain the importance of each new graph structure w. i : Among them, W is the training weight matrix, b is the bias value, and q is the semantic level attention vector; The importance of each new graph structure is normalized through the softmax function to obtain the weight of the corresponding new graph structure, as shown in the following formula: Among them, β i is the weight of each new graph structure, β i The higher it is, the more important the new graph structure is; S34. The weight w of the new graph structure i It is fused with the specific semantic node embedding corresponding to the new graph structure to obtain the final node embedding Z: At this point, the heterogeneous graph representation learning of the citation network is completed. According to the heterogeneous graph representation learning, the authors of the citation network of a certain research field in S1 are classified to obtain the classified authors.