An entity alignment method integrating multi-dimensional and multi-information
By using multi-layer graph convolutional networks and pre-trained models to fuse multi-dimensional information in the knowledge graph, the problem of lack of integrity of the knowledge graph and poor entity alignment is solved, achieving accuracy and reliability of entity alignment in the real world. It provides support for knowledge completion and link prediction.
Patent Information
- Application Number
- CN202210201472.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-03
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-03-03
AI Technical Summary
There is a lack of integrity in the construction process of existing knowledge graphs. Especially in sparse knowledge graphs in the real world, existing entity alignment methods are not effective and cannot effectively match entities that refer to the same object in different knowledge graphs.
Use multi-layer graph convolutional networks and pre-trained models (such as BERT, Sentence-Transformer) to combine multi-dimensional information, and fuse entities through average word vector initialization, downsampling, cosine similarity calculation, Levenshtein distance and sentence-level similarity matrix. Topological structure, semantic information and character-level information are used to calculate entity alignment scores and achieve cross-graph entity alignment.
It effectively improves the accuracy and reliability of entity alignment, can effectively match entities in real-world knowledge graphs, and provides technical support for knowledge completion and link prediction.
Smart Images

Figure CN114564597B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to knowledge graph construction, and more particularly to an entity alignment method that integrates multi-dimensional and multi-information. Background Art
[0002] As the knowledge pillar in the field of artificial intelligence, knowledge graphs have attracted extensive attention from academia and industry for their powerful knowledge representation and reasoning capabilities. Currently, there are a large number of knowledge graphs (KGs), such as YAGO, DBpedia, and CN-DBpedia. These large-scale knowledge graphs play an important role in many intelligent services. In addition, in order to meet the needs of specific fields, more and more domain knowledge graphs have been derived, such as medical knowledge graphs and financial knowledge graphs. However, when constructing these graphs, a trade-off between coverage and accuracy is required, so the problem of lack of integrity is almost unavoidable.
[0003] In order to make up for the shortcomings of a single KG, KGs need to be fused, among which entity alignment (EA) is an important part of knowledge fusion, that is, matching entities in different knowledge graphs that refer to the same object in the real world, thereby providing a basis and support for subsequent knowledge completion and knowledge prediction.
[0004] At present, most entity alignment methods mainly use the structural features of KG to determine whether two entities refer to the same thing. Some studies also take the relationship between entities into consideration. Some researchers also use entity name information as a supervisory signal to improve the embedding representation of entities. The above methods assume that entities expressing the same meaning in different KGs have similar adjacency structures and achieve good results on artificially constructed datasets. However, the knowledge graph in the real world will be sparser, and the effect of such methods will be weakened. Summary of the invention
[0005] The purpose of the present invention is to provide an entity alignment method that integrates multiple dimensions and multiple information. The entity alignment method that integrates multiple dimensions and multiple information is intended to solve the technical problem of the lack of integrity of the knowledge graph in the prior art.
[0006] The present invention provides an entity alignment method integrating multi-dimensional and multi-information, comprising the following steps:
[0007] Step 1: Take two heterogeneous knowledge graphs as input at the same time, and use a multi-layer graph convolutional network initialized with average word vectors to capture the initial embedding representation of entity nodes containing semantic and topological information;
[0008] Step 2: Based on step 1, downsampling is performed according to the importance of the neighboring nodes to the central node. It is believed that for the central node, the higher the frequency of the neighboring nodes in the context, the higher the contribution to the central node.
[0009] Step 3: Take the entity as the central node and use the graph convolutional network to obtain the embedded representation, which is then merged with the representation containing important neighbor information after downsampling.
[0010] Step 4: In order to ensure the reliability of the match and reduce the computational cost, possible candidate matching domains are selected for each source entity. Based on the entity vector representation obtained in the previous step, the source entity e is calculated by cosine similarity. i The similarity with these target entities in the region is represented by the target entity vector with the maximum value in the candidate domain, and the representation layer similarity matrix M is obtained. z , the matrix is a sparse matrix, where the rows of the matrix represent the source entities, the columns represent the target entities, and the values of the matrix represent the similarity;
[0011] Step 5: To implement semantic level analysis, BERT is used to pre-train entity names to obtain word vectors. The entity semantic name vectors are calculated based on the word vectors, thereby calculating the cosine similarity matrix M between the source entity and the target entity. s ;
[0012] Step 6: Considering the ease of operation, Levenshtein distance is used to measure the character-level similarity of two entity names. The similarity matrix is represented by M l ;
[0013] Step 7: Use entity description to determine the similarity of entities at the sentence level. Select the Sentence-Transformer pre-training model and train it for the sentence localization task. Use the candidate matching domain obtained in step 3 to calculate the sentence-level similarity matrix representation of the entity description. Here, the matrix is a sparse matrix, represented as M t ;
[0014] Step 8: Weighted sum of the similarity matrices M obtained in steps 4, 5, 6, and 7 z 、M s 、M l and M t , and obtain the final cross-graph entity alignment score table.
[0015] Furthermore, two heterogeneous knowledge graphs are taken as input at the same time, and a two-layer graph convolutional network initialized with average word vectors is used to capture the initial embedding representation of entity nodes containing semantic and topological information.
[0016] Furthermore, in step 3, the embedded representation obtained by using the graph convolutional network with the entity as the central node is fused with the representation containing important neighbor information after downsampling. The calculation method is as follows:
[0017]
[0018]
[0019] in, The entity e after integrating neighborhood information i The vector representation of h i The entity e is obtained by multi-layer graph convolution encoding i Initial vector, g i For entity e i The down-sampled neighborhood node fusion representation is , 6(.) is the activation function, W is the weight value, and the operator || represents matrix concatenation.
[0020] Furthermore, the structural information, semantic information and the neighbor node representation of the point downsampling are integrated to obtain the representation layer result; for the central node, the higher the frequency of the neighbor node in the context, the higher the contribution to the central node. Downsampling is achieved according to the importance of the neighbor node to the central node. The calculation method is as follows:
[0021]
[0022] Among them, N i Represents the central entity e i The first-order neighbor node set, h i and h i_j Entity e i and e i_j The vector representation of e i_j Representing entity e i The jth node in the set of first-order neighbor nodes, W s is the shared weight;
[0023] When implementing cross-graph entity alignment, we select possible candidate matching domains for each source entity and calculate the source entity e i The formula for determining the candidate matching domain based on the similarity with these target entities in the region is as follows:
[0024]
[0025] Among them, E2 represents the target KG, h j Represents entity e in E2 j The vector representation of h i Represents the source entity e i The vector representation of |.| L1 Indicates calculation of L1 norm distance.
[0026] Furthermore, in step 5, BERT pre-trained entity names are used to obtain word vectors, and entity semantic name vectors are calculated based on the word vectors, thereby calculating the cosine similarity matrix M between the source entity and the target entity. s .
[0027] Furthermore, in step 6, Levenshtein distance is used to measure the character-level similarity between two entities, and the similarity matrix is represented as M l .
[0028] Furthermore, step 7 uses the entity description to determine the similarity of the entity at the sentence level; the Sentence-Transformer pre-trained model is selected and trained for the sentence localization task, and the sentence-level similarity matrix representation M of the entity description is calculated using the candidate matching domain obtained in step 4. t .
[0029] Furthermore, all similarity matrices obtained are weighted and summed, and the similarity of the result layer is guaranteed to have the same weight as the similarity of the representation layer, where the result layer includes the sentence-level matrix M t , semantic level matrix M s , character-level matrix M l , indicating that the layer similarity matrix is M z , and assign them different weights respectively. The specific calculation is as follows:
[0030] M=α·M z +β·M t +η·M s +y·M l
[0031] Among them, α, β, η and y are the weights of the representation layer, sentence level, semantic level and character level respectively, and α=β+η+y=0.5.
[0032] Compared with the prior art, the present invention has a positive and obvious effect. The method of the present invention combines the entity similarity of the result layer and the representation layer, and realizes the solution of the entity alignment problem by weighted splicing of multi-dimensional results.
[0033] The method of the present invention integrates multiple aspects of entity information, namely entity name, attributes and entity description, and defines entity similarity measurement methods from the semantic level, word level and sentence level respectively, so as to effectively determine whether entities are aligned.
[0034] The method of the present invention can be applied to real-world knowledge graphs and provide technical support for subsequent knowledge completion and link prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1The present invention is a schematic diagram of the overall process of implementing a method for entity alignment that integrates multi-dimensional and multi-information. DETAILED DESCRIPTION
[0036] The present invention is further described below in conjunction with the accompanying drawings and embodiments, but the present invention is not limited to the embodiments, and all similar structures and similar variations of the present invention should be included in the protection scope of the present invention. The use of directions such as up, down, front, back, left, and right in the present invention is only for the convenience of description and is not a limitation on the technical solution of the present invention.
[0037] Example 1
[0038] like Figure 1 As shown, a method for entity alignment integrating multi-dimensional and multi-information of the present invention comprises the following steps:
[0039] Step 1: Take two heterogeneous knowledge graphs as input and use a two-layer GCN initialized with average word vectors to capture the node vector representation containing topological structure and semantic information as the initial result of the node embedding representation.
[0040] Step 2: Based on step 1, downsampling is performed according to the importance of the neighboring nodes to the central node. It is believed that for the central node, the higher the frequency of the neighboring nodes in the context, the higher the contribution to the central node. j is sampled as entity e i The probability calculation method of the candidate domain node is:
[0041]
[0042] Among them, N i Represents the central entity e i The first-order neighbor node set, h i and h i_j They are the entities e obtained by multi-layer graph convolutional encoding. i and e i_j The vector representation of T is the transpose calculation, W s is the shared weight.
[0043] Step 3: Source Entity e i The initial embedding representation of contains only topological information and semantic information initialized in the graph convolutional network. It is necessary to include the following sampled neighbor node information into the central entity representation, which is expressed as follows:
[0044]
[0045]
[0046] Among them, 6(.) is the activation function, W g and WN are all learnable weight matrices, N s is the source entity e i The candidate domain of size s is constructed, h p is the vector representation of any entity p in the candidate domain, The entity e after integrating neighborhood information i The vector representation of h i The entity e is obtained by multi-layer graph convolution encoding i Initial vector, g i For entity e i The down-sampled neighborhood node fusion representation is represented by , and the operator || represents matrix concatenation.
[0047] Step 4: To solve the problem of cross-graph entity alignment, we need to determine the matching degree between the source entity and the target entity. To ensure the reliability of the matching and reduce the computational cost, we select possible candidate matching domains for each source entity and calculate the source entity e i The similarity with these target entities in the region, the formulas for determining the candidate matching domain and the method for calculating the similarity between entity pairs are as follows:
[0048]
[0049]
[0050] Among them, p(h j |h i ) represents the selection of entity e j As an entity i The probability of matching the candidate domain, E2 represents the target KG, K is the target entity in the target KG, and h k is its vector representation, h j Represents entity e in E2 j The vector representation of h i Represents the source entity e i The vector representation of |.| L1 Indicates the calculation of L1 norm distance, cos〈h j ,h i > represents the computational entity e i and entity e i The vector h i and h j The cosine similarity between them, n represents the vector dimension, and l is the lth dimension of the vector.
[0051] In step 5, entity names, as the most common auxiliary signals containing more information, can be utilized at the semantic level and character level.
[0052] From the perspective of semantic level, BERT is used to pre-train entity names to obtain word vectors, and the entity semantic name vectors are calculated based on the word vectors. For a KG, the name embeddings of all entities can be represented by matrices, so as to calculate the cosine similarity matrix M between the source entity and the target entity. s .
[0053] Step 6: From the character level perspective, existing EA solutions almost ignore the usefulness of string information. Considering the simplicity of operation, Levenshtein distance is used to measure the similarity of two entities at the character level. The similarity matrix is expressed as M l .
[0054] Step 7: In the real-world KG, entities have description attributes. The content of this attribute is the entire sentence used to describe and explain the central entity. The entity description is used to determine the similarity of the entity at the sentence level. The Sentence-Transformer pre-trained model is selected and trained for the sentence location word task. The candidate matching domain obtained in step 4 is used to calculate the sentence-level similarity matrix representation of the entity description. Here, the matrix is a sparse matrix, represented as M t .
[0055] Step 8: Weighted sum of the similarity matrices M obtained in steps 4, 5, 6, and 7 z 、M s 、M l and M t , and obtain the final cross-graph entity alignment score table M.
[0056] M=α·M z +β·M t +η·M s +y·M l ;
[0057] Among them, M represents the final similarity between entity pairs between KGs as the alignment score, α, β, η and y are the weights of the representation layer, sentence level, semantic level and character level matrices respectively, and α=β+η+y=0.5.
[0058] The effect advantage of the present invention is:
[0059] The method of the present invention combines the entity similarity of the result layer and the representation layer, and realizes solving the entity alignment problem by weighted concatenation of multi-dimensional results.
[0060] The method of the present invention integrates multiple aspects of entity information, namely entity name, attributes and entity description, and defines entity similarity measurement methods from the semantic level, word level and sentence level respectively, so as to effectively determine whether entities are aligned.
[0061] The method of the present invention can be applied to real-world knowledge graphs and provide technical support for subsequent knowledge completion and link prediction.
Claims
1. A method for entity alignment integrating multi-dimensional and multi-information, characterized in that: The following steps are involved: Step 1: Take two heterogeneous knowledge graphs as input at the same time, and use a multi-layer graph convolutional network initialized with average word vectors to capture the initial embedding representation of entity nodes containing semantic and topological information; Step 2: Based on step 1, downsampling is performed according to the importance of the neighboring nodes to the central node. It is believed that for the central node, the higher the frequency of the neighboring nodes in the context, the higher the contribution to the central node. Step 3: Take the entity as the central node and use the graph convolutional network to obtain the embedded representation, which is then merged with the representation containing important neighbor information after downsampling. Step 4: In order to ensure the reliability of the match and reduce the computational cost, possible candidate matching domains are selected for each source entity. Based on the entity vector representation obtained in the previous step, the source entity e is calculated by cosine similarity. i The similarity with these target entities in the region is represented by the target entity vector with the maximum value in the candidate domain, and the representation layer similarity matrix M is obtained. z , the matrix is a sparse matrix, where the rows of the matrix represent the source entities, the columns represent the target entities, and the values of the matrix represent the similarity; Step 5: To implement semantic level analysis, BERT is used to pre-train entity names to obtain word vectors. The entity semantic name vectors are calculated based on the word vectors, thereby calculating the cosine similarity matrix M between the source entity and the target entity. s ; Step 6: Considering the ease of operation, Levenshtein distance is used to measure the character-level similarity of two entity names. The similarity matrix is represented by M l ; Step 7: Use entity description to determine the similarity of entities at the sentence level. Select the Sentence-Transformer pre-training model and train it for the sentence localization task. Use the candidate matching domain obtained in step 3 to calculate the sentence-level similarity matrix representation of the entity description. Here, the matrix is a sparse matrix, represented as M t ; Step 8: Weighted sum of the similarity matrices M obtained in steps 4, 5, 6, and 7 z 、M s 、M l and M t , get the final cross-graph entity alignment score table; In step 3, the entity is used as the central node and the embedded representation obtained by the graph convolutional network is fused with the representation containing important neighbor information after downsampling. The calculation method is as follows: in, The entity e after integrating neighborhood information i The vector representation of h i The entity e is obtained by multi-layer graph convolution encoding i Initial vector, g i For entity e i The down-sampled neighborhood node fusion representation is: is the activation function, W g and W N are all learnable weight matrices, N s is the source entity e i The candidate domain of size s is constructed, h p is the vector representation of any entity p in the candidate domain, and the operator || represents matrix concatenation; The representation layer result is obtained by integrating structural information, semantic information and point downsampling of neighbor node representation; for the central node, the higher the frequency of the neighbor node in the context, the higher the contribution to the central node. Downsampling is achieved according to the importance of the neighbor node to the central node. The calculation method is as follows: Among them, N i Represents the central entity e i The first-order neighbor node set, h i and h i_j Entity e i and e i_j The vector representation of e i_j Representing entity e i The jth node in the set of first-order neighbor nodes, W s is the shared weight; When implementing cross-graph entity alignment, we select possible candidate matching domains for each source entity and calculate the source entity e i The formula for determining the candidate matching domain based on the similarity with these target entities in the region is as follows: Among them, E2 represents the target KG, h j Represents entity e in E2 j The vector representation of h i Represents the source entity e i The vector representation of |.| L1 Indicates calculation of L1 norm distance.
2. The entity alignment method integrating multi-dimensional and multi-information according to claim 1, characterized in that: Two heterogeneous knowledge graphs are taken as input at the same time, and a two-layer graph convolutional network initialized with average word vectors is used to capture the initial embedding representation of entity nodes containing semantic and topological information.
3. The entity alignment method integrating multi-dimensional and multi-information according to claim 1, characterized in that: Step 5: Use BERT to pre-train entity names to obtain word vectors, and calculate the entity semantic name vector based on the word vectors, so as to calculate the cosine similarity matrix M between the source entity and the target entity. s .
4. The entity alignment method integrating multi-dimensional and multi-information according to claim 1, characterized in that: Step 6: Levenshtein distance is used to measure the character-level similarity between two entities. The similarity matrix is represented as M l .
5. The entity alignment method integrating multi-dimensional and multi-information according to claim 1, characterized in that: Step 7 uses entity descriptions to determine the similarity of entities at the sentence level; select the Sentence-Transformer pre-trained model and train it for the sentence location word task, and use the candidate matching domains obtained in step 4 to calculate the sentence-level similarity matrix representation M of the entity description. t .
6. The entity alignment method integrating multi-dimensional and multi-information according to claim 5, characterized in that: The weighted sum of all similarity matrices obtained is used, and the resulting layer similarity represents the same representation layer M z The similarity weights are the same, where The resulting layer includes a sentence-level matrix M t , semantic level matrix M s , character-level matrix M l Different weights are assigned respectively, and the specific calculation is as follows: M=α·M z +β·M t +η·M s +y·M l Among them, α, β, η and y are the weights of the representation layer, sentence level, semantic level and character level respectively, and α=β+η+y=0.5.
