Entity alignment method based on unsupervised learning by integrating multi-dimensional features of entities

By integrating entity multi-dimensional features and structure enhancement iterative strategies in unsupervised learning, the problem of low noise data processing efficiency in unsupervised entity alignment is solved, the accuracy and efficiency of entity alignment in knowledge graphs are improved, and higher quality alignment is achieved. Seed generation.

CN118536500BActive Publication Date: 2024-10-11NANJING UNIV OF AERONAUTICS & ASTRONAUTICS +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411003493.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-11
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

Existing unsupervised entity alignment methods have low efficiency and accuracy when processing noisy data, and are difficult to effectively identify and filter mismatched and inconsistent entity descriptions, affecting the cross-graph data heterogeneity and consistency of the knowledge graph.

Method used

An unsupervised learning-based method is used to fuse the multi-dimensional features of entities. By extracting multi-dimensional features from information sources such as text, images, attributes, etc., the graph attention network, pre-trained visual features and long-short-term memory network are used for embedding processing, combined with trainable The weighted connection generates the initial alignment seed, and iteratively extracts high-quality entity pairs through the structure enhancement iterative strategy denoising process.

Benefits of technology

It improves the quality of initial training and iterative training alignment seeds, improves the efficiency and accuracy of entity alignment during knowledge graph fusion, effectively reduces the impact of noise, and improves the quality of alignment seeds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536500B_ABST
    Figure CN118536500B_ABST
Patent Text Reader

Abstract

The present invention discloses an entity alignment method based on unsupervised learning that integrates multidimensional features of entities. The method includes: extracting multidimensional features from information sources in entities to represent entities; extracting features from data, considering modal heterogeneity, and obtaining embedding results under different modalities respectively; combining structural embedding, visual embedding, entity word-level and character-level embedding, and attribute character embedding of multimodal knowledge graphs, and weightedly connecting multimodal embeddings to integrate them into joint embeddings; based on the joint embedding results, calculating the similarity between cross-graph entities and generating initial alignment seeds; using a structural enhancement iteration strategy to reduce noise on the initial alignment seeds, and iteratively extracting new high-quality entity pairs. The present invention can effectively improve the quality of alignment seeds of initial training and iterative training, thereby effectively improving the efficiency and accuracy of entity alignment when multimodal knowledge graphs are fused.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention discloses an entity alignment method based on unsupervised learning that integrates multi-dimensional features of entities, and relates to the fields of multimodal knowledge graphs and entity alignment. Background Art

[0002] Knowledge graph is a graphical structure used to represent knowledge. It consists of entities (such as people, places, events, etc.) and the relationships between them. With the development of artificial intelligence and natural language processing technology, knowledge graph has gradually become a core component of various intelligent applications. It is not only used in search engine optimization, but also widely used in intelligent recommendation systems, intelligent question and answer, intelligent dialogue systems and other fields. This graphical form of knowledge representation aims to simulate human semantic understanding, enabling computers to better understand and process human knowledge.

[0003] Traditional knowledge graphs are mainly built based on text data, but with the explosive growth of multimedia data, it is difficult for a single modal knowledge graph to fully capture the rich semantic information of an entity. Therefore, multimodal knowledge graphs came into being in this context. Multimodal knowledge graphs cover knowledge representations from various data sources and modalities, including text, structured data, and images. This diverse information enriches the feature representation of entities, allowing the semantic similarities between entities to be captured from multiple perspectives. For example, for a person entity, its feature representation can be enriched using multimodal data such as its description in text, pictures in social media, video clips, and voice recordings, thereby improving the understanding and inference of its semantics.

[0004] With the development of knowledge graphs and the expansion of their application scope, many different knowledge graphs have emerged. Each graph may adopt different data structures, semantic representations, and patterns, resulting in differences in entity descriptions. This difference hinders information sharing and integration across knowledge graphs and limits the application effect of knowledge graphs. In order to address the needs of heterogeneity and consistency of data across knowledge graphs, people have proposed entity alignment methods. Through entity alignment, data describing the same entity in different knowledge graphs can be matched and linked, so that these entities have consistent identification and semantic interpretation in different graphs.

[0005] In the entity alignment process, alignment seeds play an important role. Alignment seeds refer to known and verified entity matching pairs that are used to guide entity alignment algorithms to match and link. These seeds can be manually annotated by domain experts or generated by automatic methods. In recent years, many entity alignment methods have achieved satisfactory performance by relying on abundant alignment seeds as training data. However, it is costly to obtain high-quality alignment seeds through manual annotation. Therefore, various unsupervised entity alignment methods have emerged, which usually include two steps: (i) extracting initial alignment seeds as training data using auxiliary information of entities (such as images and names); (ii) continuously extracting new entity pairs to supplement training data. Although unsupervised entity alignment methods have natural advantages over manual methods, they still face challenges. For example, in the unsupervised entity alignment process, it may be affected by noisy data, such as wrong entity matches or inconsistent descriptions. The algorithm needs to be able to effectively identify and filter these noisy data to improve the quality of alignment seeds. Summary of the invention

[0006] In order to solve the above technical problems, the present invention proposes an entity alignment method based on unsupervised learning that integrates multi-dimensional features of entities, aiming to improve the quality of alignment seeds of initial training and iterative training, thereby effectively improving the efficiency and accuracy of entity alignment during knowledge graph fusion.

[0007] The entity alignment method based on unsupervised learning and integrating multi-dimensional features of entities described in the present invention specifically comprises the following steps:

[0008] (1) Extract multidimensional features from various information sources of entities (such as text, images, attributes, etc.) to represent each entity.

[0009] (2) Extract features from the data and obtain embedding results under different modalities. The structural embedding uses the graph attention network ( ) are obtained; the visual features and word-level features of entity names are obtained from the pre-trained , The character-level features of entity names are obtained from the character pairs of translated entity names; attribute character embedding uses a long short-term memory recurrent neural network ( )get.

[0010] (3) The structural embedding, visual embedding, word-level and character-level embedding, and attribute character embedding of the graph are combined, and trainable weighted connections are used to integrate multimodal embedding into the joint embedding.

[0011] (4) Based on the mixed feature vectors of all entities in the two graphs, the cosine similarity of all cross-graph entities is calculated to generate the initial entity alignment seed.

[0012] (5) Use the structure enhancement iterative strategy proposed in this application to denoise the generated initial alignment seeds to remove possible erroneous matches or low-quality alignments and iteratively extract new high-quality entity pairs.

[0013] Furthermore, the implementation process of step (1) is as follows:

[0014] In order to describe entities more comprehensively, multidimensional features are extracted from various information sources, including text, images, attributes, etc. Text mining technology can analyze text information such as entity descriptions and associated documents and convert them into vector representations. At the same time, computer vision technology can be used to extract features from the image information of entities. In addition, features can also be extracted from the attribute data of entities, such as statistical indicators of numerical attributes, correlations between attributes, etc. The comprehensive use of these multidimensional features can more accurately express the rich information of each entity.

[0015] Furthermore, the implementation process of step (2) is as follows:

[0016] For the structural embedding of the graph, we use a Model to obtain information source and information sources The structural embedding of the entity in:

[0017] ;

[0018] in Is Entity The random initialization structural characteristics of and represents the diagonal weight matrix and the graph adjacency matrix.

[0019] For the visual embedding of image information, we use the pre-trained ImageNet recognition task. The obtained visual features are sent through the feed-forward layer. Visual features To get the visual embedding:

[0020] ;

[0021] in, and are the training parameters in the first feed-forward layer;

[0022] For the word-level features and character-level features of the entity name, a simple feed-forward layer is applied to obtain the name and character embeddings:

[0023] ;

[0024] in, and are the training parameters in the second feed-forward layer, and From the entity Word-level features and character-level features of names; word-level features of entity names are obtained from pre-trained The character-level features are obtained from the character bigrams of the translated entity names.

[0025] For character embedding of attributes, consider using a composition function to encode the attribute value and define the relationship of each element in the attribute triple as ; Function usage The network encodes a sequence of characters into a single vector; using The final hidden state of the network is represented as a vector of attribute values:

[0026] ;

[0027] in is the character embedding of the attribute value; after linear transformation in the third feed-forward layer, the character embedding of the attribute is obtained:

[0028] ;

[0029] in and are trainable parameters in the third feed-forward layer.

[0030] Furthermore, the implementation process of step (3) is as follows:

[0031] Connect the visual features in the entity image, the word-level features and character-level features in the entity name, and the attribute character embeddings, and use trainable weighted connections to integrate the multimodal embedding obtained from (2) into the joint embedding In , the embeddings of each modality are first L2 normalized before being jointly embedded:

[0032] ;

[0033] in is the number of modes, It is The trainable attention weights of the modalities, function represents the natural exponential function, It is The embedding vector of each modality.

[0034] Furthermore, the implementation process of step (4) is as follows:

[0035] In step (3), the information source can be obtained by calculation and information sources The mixed feature vectors of all entities are then used to calculate the cosine similarity of all entities across the graph:

[0036] ;

[0037] in, is the cosine similarity matrix, and Information sources and information sources The number of entities in express , and Then, sort the cosine similarity matrix from high to low. Collect cross-graph entity pairs starting from the most similar entity pairs. Once a pair of entities is collected, all other links related to these two entities should be discarded. Finally, we get the record front Initial alignment seeds for similar entity pairs .

[0038] Furthermore, the implementation process of step (5) is as follows:

[0039] First, given an information source that is not in the training data and information sources Joint embedding of entities, calculate the Euclidean distance matrix of entity pairs across the graph. Then, select the entity pairs with the closest distance to each other in the embedding space, which are defined as pre-aligned entity pairs. For each pair of entities in the pre-aligned entity pairs , need to be evaluated Whether it shows the most similar structure. Specifically, choose the distance The closest front Then, we calculate the number of known equivalent one-hop neighbors they share by and these The structural similarity between entities. The entity with the highest similarity is , and, with The entity with the highest similarity is , then the pair of entities are considered to be most similar in structure to each other, and Add to the candidate list. If each entity pair in the candidate list meets the probability requirements for a certain number of consecutive rounds, it will be permanently added to the training set.

[0040] Compared with the prior art, the technical solution implemented by the present invention has the following beneficial effects:

[0041] The present invention provides an entity alignment method based on unsupervised learning that integrates multi-dimensional features of entities. Multi-dimensional entity features are used in an integrated manner to extract initial alignment seeds. The proposed structure enhancement iterative strategy can effectively reduce the extraction of noise and greatly improve the quality of alignment seeds, thereby effectively improving the efficiency and accuracy of entity alignment during knowledge graph fusion. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a flow chart of an entity alignment method based on unsupervised learning that integrates multi-dimensional features of entities of the present invention;

[0043] Figure 2 is a flow chart of extracting features from different modal data according to the present invention;

[0044] Figure 3 is a flow chart of the structure enhancement iterative strategy for denoising aligned seeds of the present invention. DETAILED DESCRIPTION

[0045] Combination Figure 1 , the present invention will be further described below.

[0046] The entity alignment method based on unsupervised learning and integrating multi-dimensional features of entities described in the present invention specifically comprises the following steps:

[0047] (1) Extract multidimensional features from various information sources of entities (such as text, images, attributes, etc.) to represent each entity.

[0048] In order to describe entities more comprehensively, multidimensional features are extracted from various information sources, including text, images, attributes, etc. Text mining technology can analyze text information such as entity descriptions and associated documents and convert them into vector representations. At the same time, computer vision technology can be used to extract features from the image information of entities. In addition, features can also be extracted from the attribute data of entities, such as statistical indicators of numerical attributes, correlations between attributes, etc. The comprehensive use of these multidimensional features can more accurately express the rich information of each entity.

[0049] (2) Extract features from the data and obtain embedding results under different modalities.

[0050] like Figure 2 As shown, the specific process of feature extraction for different modal data proposed in this application is as follows:

[0051] First, the graph structure information of the multimodal knowledge graph is obtained. Structural embedding is usually obtained using a graph representation learning method. A common method is to use a graph neural network to learn the representation between entities and relationships. These methods use the topological structure of the graph and the relationship between nodes to capture the semantic information and association between entities. Since there are different types of nodes in the multimodal knowledge graph (such as entities, text descriptions, image features, etc.), this paper adopts The model captures the complex relationships and cross-modal associations between these different types of nodes. In order to improve the ability to express complex multimodal data, two attention heads and two layers are selected. Model, which is convenient for learning different aspects of relationship representation in different attention heads:

[0052] ;

[0053] in, Is Entity The random initialization structural characteristics of and represents the diagonal weight matrix and the graph adjacency matrix.

[0054] The visual embedding of image information is pre-trained on the ImageNet recognition task. Obtained visual features. It is a deep convolutional neural network model with 152 layers of depth, which performs well in large-scale image classification tasks. The linear feedforward layer transforms the visual features of the entity linearly and extracts the features, and further optimizes and transforms these feature representations. The weight matrix and bias term of the linear feedforward layer are transformed by matrix multiplication and addition. The extracted high-dimensional visual features are mapped into a lower-dimensional and more compact visual embedding space, thereby achieving effective visual embedding extraction and representation. For each image, select The previous layer of the fully connected layer outputs the category probability as input, and after forward propagation, the result is used as the visual embedding of the final image information:

[0055] ;

[0056] in, and are the training parameters in the first feed-forward layer.

[0057] For word-level features and character-level features of entity names, the word-level features of entity names are obtained from pre-trained obtained in the vector. It is a commonly used word vector representation method. By training on a large-scale corpus, each word is mapped to a dense vector space of a fixed length to capture the semantic relationship between words. The character-level features are obtained from the character tuples of the translated entity names. This feature extraction method can better capture the character-level information and patterns in the entity names. In order to reduce the noise from neighboring entities when obtaining name and character embeddings, a simple linear feedforward layer is applied, which converts word-level features and character-level features into embedded representations through multiplication with the weight matrix and addition of bias terms:

[0058] ;

[0059] in, and are the training parameters in the second feed-forward layer, and From the entity Word-level features and character-level features of names. This process utilizes linear transformation and feature extraction to ensure that the semantic and character information of entity names can be effectively encoded and represented.

[0060] For the character embedding of attributes, a common approach is to interpret the attributes as a translation from entity to attribute value, but this approach may result in the same attribute having different interpretations in the two knowledge graphs. In this regard, consider using a combination function to encode the attribute value and define the relationship of each element in the attribute triple as ;here, is a combinatorial function, is the character sequence of the attribute value Using a method based on A combination function that encodes attribute values ​​into a single vector and maps similar attribute values ​​to similar vector representations. This function uses The network encodes a sequence of characters into a single vector. The final hidden state of the network is represented as a vector of attribute values:

[0061] ;

[0062] in is the character embedding of the attribute value. After the same forward pass, we get the character embedding of the attribute:

[0063] ;

[0064] in and are trainable parameters in the third feed-forward layer.

[0065] (1) Concatenate the embedding features of different modalities and integrate the multimodal embeddings into a joint embedding using trainable weighted connections.

[0066] We concatenate visual features from entity images with word-level features and character-level features from entity names, and utilize trainable weighted connections to integrate multimodal embeddings into a joint embedding.

[0067] ;

[0068] in is the number of modes, It is The trainable attention weights of the modalities, function represents the natural exponential function, i.e., the real number The exponential function with base , It is The embedding vector of each modality.

[0069] (2) Before joint embedding, the embedding of each modality is first processed by L2 normalization. This step ensures that the representation of each modality has a uniform scale and range, which helps the model better capture the correlation and information interaction between different modalities. L2 normalization divides each embedding vector by its L2 norm to normalize them to unit length, thereby improving the stability and generalization ability of the model and promoting the effective integration of multimodal embeddings.

[0070] (3) Based on the mixed feature vectors of all entities in the two graphs, the similarities of all cross-graph entities are calculated to generate the initial entity alignment seeds.

[0071] The mixed feature vectors of all entities in the two multimodal knowledge graphs are calculated. Next, the similarity of all cross-graph entities needs to be calculated, that is, the degree of association between them is measured by comparing the similarity of the mixed feature vectors of the two entities. In the entity alignment task, there are many common methods for calculating the similarity of cross-graph entities. Since cosine similarity is scale-invariant and has a relatively small amount of calculation, the cosine similarity of the entity feature vectors is finally chosen to be calculated, which can effectively capture the semantic similarity between entities:

[0072] ;

[0073] in, is the cosine similarity matrix, and Information sources and information sources The number of entities in express , and series connection.

[0074] Then, sort the cosine similarity matrix from high to low, and when collecting cross-graph entity pairs, start with the entity pair with the highest similarity. Once a pair of entities is collected, that is, an entity pair that exists in both knowledge graphs, all other links related to these two entities are discarded to avoid subsequent repeated calculations. This method can efficiently find the alignment relationship between cross-graph entities, while ensuring that each entity only appears once in the final alignment seed, avoiding the problem of duplicate alignment. Finally, we get a record of the previous The initial alignment seeds of similar entity pairs lay the foundation for subsequent alignment tasks.

[0075] (4) Use the structure enhancement iterative strategy proposed in this application to denoise the generated initial alignment seeds to remove possible erroneous matches or low-quality alignments and iteratively extract new high-quality entity pairs.

[0076] like Figure 3 As shown, the specific process of the structural enhancement iterative strategy proposed in this application for denoising the generated initial aligned seeds is as follows:

[0077] First, given an information source that is not in the training data and information sources Joint embedding of entities, calculate the Euclidean distance matrix of entity pairs across the graph. Then, select the entity pairs with the closest distance to each other in the embedding space, which are defined as pre-aligned entity pairs. For each pair of entities in the pre-aligned entity pairs , need to be evaluated Whether it shows the most similar structure. Specifically, choose the distance The closest front Then, we calculate the number of known equivalent one-hop neighbors they share by and these The structural similarity between entities. The entity with the highest similarity is , and, with The entity with the highest similarity is , then the pair of entities are considered to be most similar in structure to each other, and Add to the candidate list. If each entity pair in the candidate list meets the probability requirements for a certain number of consecutive rounds, it will be permanently added to the training set.

[0078] Obviously, those skilled in the art should understand that the above-mentioned method steps of the present invention can be implemented by a general-purpose computing device, and the tools used are not limited to those provided by the present invention. Other related tools can also implement the steps of the present invention. Although the embodiments of the present invention have been described above, they are only used to illustrate the technical scheme and main features of the present invention, but are not used to limit the present invention. Once the technical personnel in this field know the basic creative concepts, they can make additional changes and modifications to these embodiments, or make equivalent replacements for some of the technical features therein. Any changes or replacements that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed by the present invention are covered within the protection scope of the present invention.

Claims

1. An entity alignment method based on unsupervised learning that integrates multi-dimensional features of entities, characterized in that: The following steps are involved: S1, extracting multi-dimensional features from various information sources of the entity to represent each entity, wherein the information source includes text, images, and attributes; S2, extract features from entities and obtain embedding results under different modes, where structural embedding uses graph attention network The visual embedding and the word-level embedding of the entity name are obtained from the pre-trained , The character-level embedding of entity names is obtained from the character bigrams of translated entity names; attribute character embedding uses a recurrent neural network with long short-term memory. Obtain; the implementation process of step S2 is as follows: For a graph attention network with two attention heads and two layers Model to obtain information source and information sources The structural embedding of the entity in is: ; in, Is Entity The random initialization structural characteristics of and represents the diagonal weight matrix and the graph adjacency matrix; For the visual features of image information, we pre-trained on the ImageNet recognition task. The network gets the visual features; sends the entity through the first feed-forward layer Visual features To get the visual embedding: ; in, and are the training parameters in the first feed-forward layer; For the word-level features and character-level features of the entity name, a linear transformation is performed through the second feed-forward layer to obtain the name and character embeddings: ; in, and are the training parameters in the second feed-forward layer, and From the entity Word-level features and character-level features of names; word-level features of entity names are obtained from pre-trained The character-level features are obtained from the character bigrams of the translated entity names; For character embedding of attributes, use the combination function Encode the attribute value and define the relationship of each element in the attribute triple as ; Function usage The network encodes a sequence of characters into a single vector; using The final hidden state of the network is represented as a vector of attribute values: ; in is the character embedding of the attribute value; after linear transformation in the third feed-forward layer, the character embedding of the attribute is obtained: ; in and is a trainable parameter in the third feed-forward layer; S3, combining the structural embedding, the visual embedding, the word-level and character-level embedding of the entity name, and the attribute character embedding to obtain a joint embedding, and integrating the multimodal embedding into the joint embedding using a trainable weighted connection; the implementation process of step S3 is as follows: Before joint embedding, the embeddings of each modality are first L2 normalized: ; in is the number of modes, It is The trainable attention weights of the modalities, function represents the natural exponential function, It is The embedding vector of each modality; S4, based on the mixed feature vectors of all entities in the two graphs, calculating the cosine similarity of all cross-graph entities, and generating an initial entity alignment seed according to the cosine similarity; S5, uses a structure enhancement iterative strategy to denoise the generated initial alignment seeds and remove possible false matches or low-quality alignments.

2. According to claim 1, the entity alignment method based on unsupervised learning that integrates multi-dimensional features of entities is characterized by: The implementation process of step S1 is as follows: Extract multi-dimensional features from text, image and attribute information sources to describe entities; analyze entity descriptions and associated documents through text mining methods and convert the descriptions and associated documents into vector representations; extract features from image information of entities using computer vision technology; Extract statistical indicators and attribute correlations of numerical attributes from attribute data.

3. The entity alignment method based on unsupervised learning that integrates entity multi-dimensional features according to claim 1 is characterized in that: The implementation process of step S4 is as follows: S41 obtains information source through calculation and information sources After mixing the feature vectors of all entities, calculate the cosine similarity of all entities across the graph: ; in, is the cosine similarity matrix, and Information sources and information sources The number of entities in express , and Then, sort the cosine similarity matrix from high to low; S42, starting from the most similar entity pair, collects cross-graph entity pairs. Once a pair of entities is collected, all other links related to the two entities are discarded. Finally, the record front is obtained. Initial alignment seeds for similar entity pairs .

4. The entity alignment method based on unsupervised learning that integrates entity multi-dimensional features according to claim 1 is characterized in that: The implementation process of step S5 is as follows: S51, given an information source not in the training data and information sources Joint embedding of entities,compute the Euclidean distance matrix of entity pairs across graphs;then,select the entity pairs with the closest distance to each other in the embedding space,defined as the pre-aligned entity pairs; S52, for each pair of entities in the pre-aligned entity pair ,Evaluate Whether it shows the most similar structure; S53 Select distance The closest front Cross-graph entities, calculate this The number of known equivalent one-hop neighbors shared by the cross-graph entities is calculated and The structural similarity between entities, top is the total number of entities; If with The entity with the highest similarity is , and with The entity with the highest similarity is , then the pair of entities are considered to be most similar in structure to each other, and Add to candidate list; Each entity pair in the candidate list is permanently added to the training set if it meets the probability requirement for a set number of consecutive rounds.

Citation Information

Cited By

  • An open world entity alignment method based on multi-level attention

    CN123092419A