Entity linking method based on multi-modal feature fusion
By introducing image features and attribute features into entity links, and using multi-modal feature fusion and deep attention networks, the problem of poor short text link effects is solved, achieving higher accuracy and robustness, and is suitable for short texts Link to this entity.
Patent Information
- Application Number
- CN202410751887.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-12
AI Technical Summary
Existing text-based single-modal entity linking methods have an upper limit on the short text linking effect, and cannot achieve more accurate and reliable links, especially due to the limited contextual information in short texts, resulting in insufficient semantic information.
An entity linking method based on multi-modal feature fusion is adopted. By introducing image features and attribute features related to entities, BERT and ResNet encoders are used for embedding representation, and the semantic enhancement module and deep attention network are combined to carry out multi-modal feature extraction. Fusion and complementary enhancement to build multi-modal representations to improve link accuracy.
It improves the accuracy of short text entity links, enhances the robustness and effectiveness of the model, and enables more accurate and reliable entity links in short texts without the need for artificial features.
Smart Images

Figure CN118709689A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of natural language processing, and more specifically, relates to an entity linking method based on multimodal feature fusion. Background Art
[0002] Multimodal entity linking is a natural language processing task that aims to link the mentioned targets in the text to the entities in the knowledge base to eliminate entity ambiguity. Multimodal entity linking has a wide range of applications in semantic understanding, knowledge question answering, information mining, and knowledge graph construction.
[0003] In the text-based unimodal entity linking method, the main features that entity linking relies on include prior knowledge of the entity, entity type information, and text information based on the entity context. However, both the prior knowledge of the entity and the entity type information rely on manual statistics, so the mainstream entity linking method is to achieve entity disambiguation based on text information. The entity linking model based on text information has achieved good experimental performance in the linking effect of long texts, because long texts can provide rich semantic information related to the entity. However, the linking effect of short texts is not satisfactory.
[0004] The contextual information in short texts is limited, and the semantic information that can be provided to help disambiguation is limited, resulting in a limit to the linking effect of short texts for linking schemes that mainly rely on text features. It is impossible to achieve more accurate and reliable links by relying solely on text information. The rise of multimodal data has brought new opportunities for short text entity linking. If multimodal information such as images related to entities is provided in the entity linking task, it will help the model understand the data more comprehensively, enhance the robustness and effectiveness of the model, and thus is expected to improve the performance of short text entity linking. Summary of the invention
[0005] The purpose of the present invention is to overcome the shortcomings of the prior art and provide an entity linking method based on multimodal feature fusion, which introduces image features and attribute features related to entities to complete the short text entity linking task, and has the advantages of high linking accuracy and no need for artificial features.
[0006] To achieve the above-mentioned object of the invention, the present invention provides an entity linking method based on multimodal feature fusion, characterized in that it includes the following steps:
[0007] (1) Download the entity linking dataset;
[0008] Download the entity link dataset, where each link sample contains the contextual information and image information of the mentioned target m;
[0009] Download the candidate entity set corresponding to the target m mentioned in each link sample, and each candidate entity e r Contains description text, image information, and attribute information;
[0010] (2) Embedding representations of text and images;
[0011] The context information and image information of the mentioned target m are input into the BERT encoder and ResNet encoder respectively to obtain the context representation T of the mentioned target m and image representation V m ;
[0012] The candidate entity e r The description text and image information are respectively input into the BERT encoder and ResNet encoder to obtain the candidate entity e r The text representation T er and image representation V er ;
[0013] (3) semantic enhancement of different modal features of the mentioned target m;
[0014] Represent the context of the target mention T m and candidate entity e r The text representation T er The two are input into the semantic enhancement module together, and the enhanced context representation T of the mentioned target is output. m ';
[0015] The image representation V of the mentioned target m m and the image representation V of the candidate entity er The images are input into the semantic enhancement module and the enhanced image representation V is output. m ';
[0016] (4) Complementary enhancement of text and image representations;
[0017] The context representation T after mentioning the target m is enhanced m ' and image representation V m 'Input into the deep attention network and output the context feature vector t of the target m m and image feature vector v m ;
[0018] The candidate entity e r The text representation T e and image representation V e Input into the deep attention network and output the text feature vector t of the candidate entity er and image feature vector v er ;
[0019] (5) Attribute feature extraction;
[0020] The candidate entity e r The attribute information of the candidate entity is input into the attribute feature extraction module, and the attribute feature vector p of the candidate entity is output. er ;
[0021] (6) Extracting multimodal representations;
[0022] (6.1) Construct the initialization feature matrix H 0 ;
[0023] H 0 =[t m ,v m ,t e1 ,v e1 ,p e1 ,…,t er ,v er ,p er ,…,t eR ,v eR ,p eR ]
[0024] H 0 Each element in H is regarded as a node, so 0 Simplified to:
[0025]
[0026] in, And so on. R represents the number of candidate entities, t er ,v er ,p er Respectively represent the rth candidate entity e r Text feature vector, image feature vector and attribute feature vector;
[0027] (6.2), construct the initial adjacency matrix A 0 ;
[0028]
[0029] Among them, a ij Represents the weight value of the relationship edge connecting the i-th node and the j-th node;
[0030] (6.3) Update the initialized feature matrix and the initialized adjacency matrix through loop iteration;
[0031]
[0032] Among them, l represents the current iteration number, represents the weight matrix, σ(·) represents the activation function, and M represents the size of n×n mask matrix. The elements in the matrix satisfy:
[0033]
[0034] (6.4), multimodal representation extraction;
[0035] After L cycles of iteration, the feature matrix is recorded as H L , the adjacency matrix is recorded as A L ;
[0036] Extract feature matrix H L Element h 1 L Multimodal representation f as a target for mention m , extract the feature matrix H L middle As multimodal representations of 1 to R candidate entities, respectively er ;
[0037] (7) Extract the entities that need to be linked to the mentioned target;
[0038] Calculate the mention target m and each candidate entity e r The multimodal representation similarity size:
[0039] S(m,e r )=cos(f m ,f e,r )
[0040] Among them, cos(·) represents the cosine similarity calculation, S(m,e r ) indicates the mention target m and the rth candidate entity e r The similarity between them;
[0041] Select the candidate entity with the greatest similarity for prediction output:
[0042]
[0043] Among them, e * Indicates the entity to which the mention target m is to be linked.
[0044] The object of the invention of the present invention is achieved in this way:
[0045] The present invention is based on an entity linking method based on multimodal feature fusion. First, the relevant multimodal information of the mentioned target and candidate entity is input into a semantic enhancement module, and the feature enhancement of the mentioned text and image is performed respectively. Then, the method passes through a deep attention network to fully capture the semantic relevance between heterogeneous modal information. Then, a graph convolutional neural network is used to realize the fusion of multimodal features, and the corresponding multimodal representations of the mentioned target and candidate entity are obtained respectively. Finally, the candidate entities are sorted according to the similarity between the multimodal representations of the mentioned target and the candidate entity, and the candidate entity with the largest similarity is selected as the predicted linking entity.
[0046] At the same time, the entity linking method based on multimodal feature fusion of the present invention also has the following beneficial effects:
[0047] (1) The semantic enhancement module can enhance the information features of the mentioned objects and reduce the noise by relying on the attention weight value, thereby enriching the feature representation of the mentioned objects. At the same time, the design of the gated fusion strategy helps to alleviate the problem of feature loss during network transmission.
[0048] (2) The design of the deep attention network can fully capture the semantic correlation between heterogeneous features and at the same time play the role of complementary enhancement between features, thereby enhancing the representation ability of the model.
[0049] (3) Utilize graph structures to achieve the transmission and dynamic fusion of features from different modalities, thereby obtaining a more accurate and robust multimodal representation of the entity. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is a flow chart of the entity linking method based on multimodal feature fusion of the present invention;
[0051] Figure 2 is the semantic enhancement model graph;
[0052] Figure 3 It is a diagram of the deep attention network structure;
[0053] Figure 4 It is a schematic diagram of the graph structure. DETAILED DESCRIPTION
[0054] The specific implementation of the present invention is described below in conjunction with the accompanying drawings so that those skilled in the art can better understand the present invention. It should be noted that in the following description, when the detailed description of known functions and designs may dilute the main content of the present invention, these descriptions will be omitted here.
[0055] Example
[0056] Figure 1 It is a flow chart of the entity linking method based on multimodal feature fusion of the present invention.
[0057] In this embodiment, if Figure 1 As shown, the present invention provides an entity linking method based on multimodal feature fusion, comprising the following steps:
[0058] S1, download the entity linking dataset;
[0059] Download the entity link dataset, where each link sample contains the contextual information and image information of the mentioned target m;
[0060] Download the candidate entity set corresponding to the target m mentioned in each link sample, and each candidate entity e r Contains description text, image information, and attribute information;
[0061] S2, embedding representation of text and images;
[0062] In this embodiment, the text information uses the BERT encoder to extract the corresponding feature vector for each word in the text sequence and generate the corresponding text representation. The image information uses the ResNet encoder to divide the image into several regions, and extract the corresponding feature vector for each region to generate the corresponding image representation;
[0063] Therefore, the context information and image information of the mentioned target m are input into the BERT encoder and ResNet encoder respectively to obtain the context representation T of the mentioned target m and image representation V m ;
[0064] Similarly, the candidate entity e r The description text and image information are respectively input into the BERT encoder and ResNet encoder to obtain the candidate entity e r The text representation T er and image representation V er ;
[0065] S3, semantic enhancement of different modal features of the mentioned target m;
[0066] Represent the context of the target mention T m and candidate entity e r The text representation T er The two are input into the semantic enhancement module together, and the enhanced context representation T of the mentioned target is output. m ';
[0067] In this embodiment, if Figure 2 As shown, the semantic enhancement module includes a modality enhancement part and a gated fusion part;
[0068] Among them, the modality enhancement part is mainly composed of the attention-based embedding matrix and the softmax layer;
[0069] The context representation T of the mentioned target m m and candidate entity e r The text representation T er Input to the modality enhancement part, first mapped to the same embedding matrix to obtain the attention score matrix S:
[0070]
[0071] Where A is the embedding matrix;
[0072] Then extract the maximum value of each column in the attention score matrix S and calculate it through the softmax function to get the corresponding attention weight value sequence, and then represent the context T of the target m. m Multiplying the corresponding element of the weight value sequence to obtain the context representation T after modality enhancement of the mentioned target m att ;
[0073] The gated fusion part mainly consists of average pooling layer, concatenation layer and fully connected layer;
[0074] The context representation T of the mentioned target m m and the context representation T after modality enhancement att The input is sent to the gated fusion part, and the vectors are concatenated after passing through the average pooling layer, and then input to the fully connected layer to output the fusion ratio coefficient g. 1 and g 2 :
[0075] [g 1 ,g 2 ]=f(concat(Avg(T m ),Avg(T att )))
[0076] Among them, Avg() represents the average pooling operation, concat() represents vector concatenation, and f() represents the fully connected layer;
[0077] Then the context representation T of the mentioned target m is m and the context representation T after modality enhancement att According to the fusion ratio coefficient, the addition operation is performed to output the enhanced context representation T of the mentioned target. m ':
[0078] T m '=g 1 *T m +g 2 *T att
[0079] Similarly, the image representation V of the mentioned target mm and the image representation V of the candidate entity er The images are input into the semantic enhancement module and the enhanced image representation V is output. m '.
[0080] S4, complementary enhancement of text and image representations;
[0081] The context representation T after mentioning the target m is enhanced m ' and image representation V m 'Input into the deep attention network and output the context feature vector t of the target m m and image feature vector v m ;
[0082] In this embodiment, if Figure 3 As shown, the deep attention network mainly consists of a text attention layer, a visual attention layer, and a maximum pooling layer;
[0083] Among them, the text attention layer and the visual attention layer are both composed of a multi-head attention mechanism, a normalization layer, a feedforward neural network and a normalization layer in series. The difference lies in the different inputs;
[0084] The context representation T after mentioning the target m is enhanced m ' and image representation V m 'Input into the deep attention network, and then pass through the visual attention layer, text attention layer and maximum pooling layer to output the context feature vector t of the target m m ;
[0085] The context representation T after mentioning the target m is enhanced m ' and image representation V m 'Input into the visual attention layer and output the image representation after complementary enhancement of target m
[0086]
[0087] Where VisualLayler() represents the visual attention layer;
[0088] The context representation T after mentioning the target m is enhanced m ' and image representation V m 'Input into the text attention layer to output the context representation of the complementary enhancement of the mentioned target m
[0089]
[0090] Where TextLayler() represents the text attention layer;
[0091] Then the enhanced context representation T of the mentioned target m is m ' and complementary enhanced image representation Input into the text attention layer, and then pass through the maximum pooling layer to output the context feature vector t that mentions the target m m :
[0092]
[0093] Among them, Maxpool() represents the maximum pooling layer;
[0094] Finally, the context representation after complementary enhancement of the mentioned target m is and image representation V m 'Input into the visual attention layer, and then pass through the maximum pooling layer to output the image feature vector v of the target m m :
[0095]
[0096] Similarly, the candidate entity e r The text representation T e and image representation V e Input into the deep attention network and output the text feature vector t of the candidate entity er and image feature vector v er .
[0097] S5, attribute feature extraction;
[0098] The candidate entity e r The attribute information of the candidate entity is input into the attribute feature extraction module, and the attribute feature vector p of the candidate entity is output. er ;
[0099] In this embodiment, the attribute feature extraction module includes a coding layer and a one-dimensional convolution layer;
[0100] The candidate entity e r The attribute information is input into the encoding layer, and the BERT model is used to encode the attribute representation sequence P e ={p 1 ,p 2 ,…,p l}, where l represents the length of the attribute representation sequence;
[0101] The attribute representation sequence is input into the convolution layer. The convolution layer sets three convolution kernels of different scales, with the sizes of 2, 3 and 4 respectively. A one-dimensional convolution operation is performed on the kth convolution kernel. The feature value extracted at the i-th position of the attribute representation sequence is recorded as f i k :
[0102] fi k =ReLU(conv(p i ;...;p i+k-1 ))
[0103] Where conv() represents a one-dimensional convolution operation, and ReLU() represents an activation function;
[0104] Then select the maximum value as the eigenvalue f at the i-th position i :
[0105] f i =max(f i k ),k=2,3,4
[0106] Finally, the feature values at each position are combined to output the entity attribute feature vector p of the candidate entity er :
[0107] p er ={f 1 ,f 2 ,…,f l}
[0108] S6, extract multimodal representations;
[0109] S6.1. Constructing the initialization feature matrix H 0 ;
[0110] In this embodiment, if Figure 4 As shown, the graph structure includes nodes and edges;
[0111] For the mentioned target, its context information and image information are abstracted into two nodes: context node and image node. The initialization values of the two nodes are the context feature vector t of the mentioned target m. m and image feature vector v m ;
[0112] For each candidate entity e r , its text information, image information and attribute information are abstracted into three nodes: text node, image node and attribute node, and the initialization values of the three nodes are candidate entity e r The text feature vector t er 、Image feature vector v er and attribute feature vector p er ;
[0113] Finally, the initial values of all nodes form the feature matrix H 0
[0114] H 0 =[t m,v m ,t e1 ,v e1 ,p e1 ,…,t er ,v er ,p er ,…,t eR ,v eR ,p eR ]
[0115] H 0 Each element in H is regarded as a node, so 0 Simplified to:
[0116]
[0117] in, And so on. R represents the number of candidate entities, t er ,v er ,p er Respectively represent the rth candidate entity e r Text feature vector, image feature vector and attribute feature vector;
[0118] S6.2. Construct the initial adjacency matrix A 0 ;
[0119] Five types of relationship edges are established to display the relationship between nodes. A relationship edge is established between the context node of the target m and the text node of the candidate entity, a relationship edge is established between the context node of the target m and the image node of the candidate entity, a relationship edge is established between the image node of the target m and the text node of the candidate entity, a relationship edge is established between the image node of the target m and the image node of the candidate entity, and a relationship edge is established between the text node of the candidate entity and the attribute node of the candidate entity. The initial value of the edge is the cosine similarity between the node values; therefore, the relationship between all nodes is constructed to initialize the adjacency matrix A 0 ;
[0120]
[0121] Among them, a ij Represents the weight value of the relationship edge connecting the i-th node and the j-th node;
[0122] S6.3, updating the initialized feature matrix and the initialized adjacency matrix by loop iteration;
[0123]
[0124] Among them, l represents the current iteration number, represents the weight matrix, σ(·) represents the activation function, and M represents the size of n×n mask matrix. The elements in the matrix satisfy:
[0125]
[0126] S6.4, multimodal representation extraction;
[0127] After L cycles of iteration, the feature matrix is recorded as H L , the adjacency matrix is recorded as A L ;
[0128] Extract feature matrix H L Medium Element Multimodal representation f as a target for mention m , extract the feature matrix H L middle As multimodal representations of 1 to R candidate entities, respectively er ;
[0129] S7, extracting the entities that need to be linked to the mentioned target;
[0130] Calculate the mention target m and each candidate entity e r The multimodal representation similarity size:
[0131] S(m,e r )=cos(f m ,f e,r )
[0132] Among them, cos(·) represents the cosine similarity calculation, S(m,e r ) indicates the mention target m and the rth candidate entity e r The similarity between them;
[0133] Select the candidate entity with the greatest similarity for prediction output:
[0134]
[0135] Among them, e * Indicates the entity to which the mention target m is to be linked.
[0136] Experiment and result analysis
[0137] This example verifies the effectiveness of the entity linking technology based on multimodal feature fusion (ELT-MFF) through a series of experiments.
[0138] Download two multimodal entity linking datasets, WikiMEL and WikiDiverse. Each sample in the dataset contains the text and image information corresponding to the mention, the candidate entity set corresponding to the mention, and the text, image and attribute information corresponding to each candidate entity;
[0139] The number of multimodal samples in the WikiMEL dataset exceeds 20,000, and the entity types include common entity types, such as names of people, places, and organizations. The number of candidate entities for each mention in the dataset is 100.
[0140] The WikiDiverse dataset is constructed from news media such as Wikinews and BBC as well as the Wikipedia database. The constructed dataset covers a wide range of topics and entities; the number of candidate entities for each mention is 10;
[0141] This embodiment is implemented based on the machine learning open source library Pytorch, the version of Pytorch is 1.13.1, the version of Python is 3.9, and the version of CUDA is 11.6. The model of the GPU in the experimental hardware environment is NVIDIA GeForce RTX3090Ti, and the video memory size is 24.0GB.
[0142] The entity linking method based on multimodal feature fusion is experimented and performance analyzed on the WikiMEL and WikiDiverse datasets. The datasets are divided into training set, test set and validation set.
[0143] In order to verify the effectiveness of the entity linking method based on multimodal feature fusion proposed in the present invention, this embodiment selects some representative models since the development of multimodal entity linking technology for comparison. The evaluation index adopted in the experiment is Top-k, which is used to predict the proportion of the top k results with the highest probability in the results containing correct labels. The number of candidate entities corresponding to each mention in WikiMEL is 100, and Top-1, Top-5, Top-10 and Top-20 are used as experimental evaluation indicators. The number of candidate entities corresponding to each mention in WikiDiverse is 10, and the three experimental evaluation indicators of Top-1, Top-3 and Top-5 are used. The results of the comparative experiment are shown in Table 1.
[0144]
[0145] Table 1 Comparison of experimental results of different models on multimodal datasets
[0146] From the experimental results in Table 1, we can see that ELT-MMF outperforms other models in the Top-k indicators on the WikiMEL dataset. In the Top-1 indicator, the accuracy of ELT-MMF reached 66.2%, which is 0.7 percentage points higher than the DRIN model. In the experimental indicators of Top-5, Top-10, and Top-20, the ELT-MMF model has a certain improvement in performance compared with the DRIN model. It is worth noting that among the compared models, the ELT-MMF model is 22.3% higher than the GHMFC model in the Top-1 indicator, which verifies the effectiveness of the ELT-MMF model.
[0147] In the experimental results of the WikiDiverse dataset, the ELT-MMF model scored 60.2% in the Top-1 index, achieving the best experimental results among the compared experimental models and improving by 9.1% over the DRIN model, which was a significant improvement in experimental results. At the same time, the Top-3 and Top-5 indicators were improved by 1.4% and 2.2% respectively over the DRIN model.
[0148] From the overall analysis, the G-MFDA model proposed in this paper has achieved good experimental results on the multimodal datasets WikiMEL and WikiDiverse datasets, and the Top-k indicators are better than the compared mainstream models, which verifies the effectiveness and advancement of the ELT-MMF model proposed in this paper.
[0149] Although the above describes the illustrative specific embodiments of the present invention to facilitate those skilled in the art to understand the present invention, it should be clear that the present invention is not limited to the scope of the specific embodiments. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations using the concept of the present invention are protected.
Claims
1. An entity linking method based on multimodal feature fusion, characterized in that: The following steps are involved: (1) Download the entity linking dataset; Download the entity link dataset, where each link sample contains the contextual information and image information of the mentioned target m; Download the candidate entity set corresponding to the target m mentioned in each link sample, and each candidate entity e r Contains description text, image information, and attribute information; (2) Embedding representations of text and images; The context information and image information of the mentioned target m are input into the BERT encoder and ResNet encoder respectively to obtain the context representation T of the mentioned target m and image representation V m ; The candidate entity e r The description text and image information are respectively input into the BERT encoder and ResNet encoder to obtain the candidate entity e r The text representation T er and image representation V er ; (3) semantic enhancement of different modal features of the mentioned target m; Represent the context of the target mention T m and candidate entity e r The text representation T er The two are input into the semantic enhancement module together, and the enhanced context representation T of the mentioned target is output. m '; The image representation V of the mentioned target m m and the image representation V of the candidate entity er The images are input into the semantic enhancement module and the enhanced image representation V is output. m '; (4) Complementary enhancement of text and image representations; The context representation T after mentioning the target m is enhanced m ' and image representation V m 'Input into the deep attention network and output the context feature vector t of the target m m and image feature vector v m ; The candidate entity e r Text representation T e and image representation V e Input into the deep attention network and output the text feature vector t of the candidate entity er and image feature vector v er ; (5) Attribute feature extraction; The candidate entity e r The attribute information of the candidate entity is input into the attribute feature extraction module, and the attribute feature vector p of the candidate entity is output. er ; (6) Extracting multimodal representations; (6.1) Construct the initialization feature matrix H 0 ; H 0 =[t m ,v m ,t e1 ,v e1 ,p e1 ,…,t er ,v er ,p er ,…,t eR ,v eR ,p eR ] H 0 Each element in H is regarded as a node, so 0 Simplified to: in, And so on. R represents the number of candidate entities, t er ,v er ,p er Respectively represent the rth candidate entity e r Text feature vector, image feature vector and attribute feature vector; (6.2), construct the initial adjacency matrix A 0 ; Among them, a ij Represents the weight value of the relationship edge connecting the i-th node and the j-th node; (6.3) Update the initialized feature matrix and the initialized adjacency matrix through loop iteration; Among them, l represents the current iteration number, represents the weight matrix, σ(·) represents the activation function, and M represents the size of n×n mask matrix. The elements in the matrix satisfy: (6.4), multimodal representation extraction; After L cycles of iteration, the feature matrix is recorded as H L , the adjacency matrix is recorded as A L ; Extract feature matrix H L Medium Element Multimodal representation f as a target for mention m , extract the feature matrix H L middle As multimodal representations of 1 to R candidate entities, respectively er ; (7) Extract the entities that need to be linked to the mentioned target; Calculate the mention target m and each candidate entity e r The multimodal representation similarity size: S(m,e r )=cos(f m ,f e,r ) Among them, cos(·) represents the cosine similarity calculation, S(m,e r ) indicates the mention target m and the rth candidate entity e r The similarity between them; Select the candidate entity with the greatest similarity for prediction output: Among them, e * Indicates the entity to which the mention target m is to be linked.
2. The entity linking method based on multimodal feature fusion according to claim 1, characterized in that: The semantic enhancement module includes a modality enhancement part and a gated fusion part; Among them, the modality enhancement part is mainly composed of the attention-based embedding matrix and the softmax layer; The context representation T of the mentioned target m m and candidate entity e r The text representation T er Input to the modality enhancement part, first mapped to the same embedding matrix to obtain the attention score matrix S: Where A is the embedding matrix; Then extract the maximum value of each column in the attention score matrix S and calculate it through the softmax function to get the corresponding attention weight value sequence, and then represent the context T of the target m. m Multiplying the corresponding element of the weight value sequence to obtain the context representation T after modality enhancement of the mentioned target m att ; The gated fusion part mainly consists of average pooling layer, concatenation layer and fully connected layer; The context representation T of the mentioned target m m and the context representation T after modality enhancement att The input is sent to the gated fusion part, and the vectors are concatenated after passing through the average pooling layer, and then input to the fully connected layer to output the fusion ratio coefficients g1 and g2: [g1,g2]=f(concat(Avg(T m ),Avg(T att ))) Among them, Avg() represents the average pooling operation, concat() represents vector concatenation, and f() represents the fully connected layer; Then the context representation T of the mentioned target m is m and the context representation T after modality enhancement att According to the fusion ratio coefficient, the addition operation is performed to output the context representation T after the target is mentioned. m ': T m '=g1*T m +g2*T att Similarly, the image representation V of the mentioned target m m and the image representation V of the candidate entity er The images are input into the semantic enhancement module and the enhanced image representation V is output. m '.
3. The entity linking method based on multimodal feature fusion according to claim 1, characterized in that: The deep attention network mainly consists of a text attention layer, a visual attention layer and a maximum pooling layer; Among them, the text attention layer and the visual attention layer are both composed of a multi-head attention mechanism, a normalization layer, a feedforward neural network and a normalization layer in series. The difference lies in the different inputs; The context representation T after mentioning the target m is enhanced m ' and image representation V m 'Input into the deep attention network, and output the context feature vector t of the target m through the visual attention layer, text attention layer and pooling layer in turn m ; The context representation T after mentioning the target m is enhanced m ' and image representation V m 'Input into the visual attention layer and output the image representation after complementary enhancement of target m Where VisualLayler() represents the visual attention layer; The context representation T after mentioning the target m is enhanced m ' and image representation V m 'Input into the text attention layer to output the context representation of the complementary enhancement of the mentioned target m Where TextLayler() represents the text attention layer; Then the enhanced context representation T of the mentioned target m is m ' and complementary enhanced image representation Input into the text attention layer, and then pass through the maximum pooling layer to output the context feature vector t that mentions the target m m : Among them, Maxpool() represents the maximum pooling layer; Finally, the context representation after complementary enhancement of the mentioned target m is and image representation V m 'Input into the visual attention layer, and then pass through the maximum pooling layer to output the image feature vector v of the target m m : Similarly, the candidate entity e r The text representation T e and image representation V e Input into the deep attention network and output the text feature vector t of the candidate entity er and image feature vector v er .
4. The entity linking method based on multimodal feature fusion according to claim 1, characterized in that: The attribute feature extraction module includes a coding layer and a one-dimensional convolution layer; The candidate entity e r The attribute information is input into the encoding layer, and the BERT model is used to encode the attribute representation sequence P e ={p1,p2,…,p l }, where l represents the length of the attribute representation sequence; The attribute representation sequence is input into the convolution layer. The convolution layer sets three convolution kernels of different scales, with the sizes of the convolution kernels being 2, 3, and 4 respectively. A one-dimensional convolution operation is performed on the kth convolution kernel. The feature value extracted at the i-th position of the attribute representation sequence is recorded as f i k : f i k =ReLU(conv(p i ;...;p i+k-1 )) Where conv() represents a one-dimensional convolution operation, and ReLU() represents an activation function; Then select the maximum value as the eigenvalue f at the i-th position i : f i =max(f i k ),k=2,3,4 Finally, the feature values at each position are combined to output the entity attribute feature vector p of the candidate entity er : p er ={f1,f2,…,f l }。
Citation Information
Patent Citations
Text-enhanced knowledge graph joint representation learning method and device
CN112347268A
Text-based entity linking method, text-based entity identification method, electronic equipment and storage medium
CN115017325A
Industry knowledge base system and method based on entity link and relation extraction
CN117151220A
Multi-modal false news detection method based on multi-level semantic enhancement
CN117315695A
Multi-modal entity linking method and system based on large model
CN117371527A
Cited By
Multi-modal entity connection method based on data enhancement
CN119128813A
