Topic enhancement-based graph neural network event review text generation method

Through the graph neural network method based on topic enhancement, a multi-event text hierarchical structure graph is constructed and deeply interacted, which solves the problem of failing to effectively capture the semantic relationship of event text in the existing technology, and achieves high-quality review text generation.

CN118709654APending Publication Date: 2024-09-27BEIJING INST OF TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410724480.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing review text generation methods fail to effectively capture the complex semantic relationships and key topics between multiple event texts, resulting in insufficiently detailed and rich generated content. They also rely on manual construction of topic hierarchical trees or only consider a single reference relationship, which cannot be used in large-scale analysis. Reuse on large-scale data sets.

Method used

The graph neural network method based on topic enhancement is used to extract key topics through a large language pre-training model, build a multi-event text hierarchical structure graph, conduct in-depth interaction to obtain rich semantic representation, and use the key topic enhanced decoder to generate review text.

Benefits of technology

It realizes the mining of rich semantic logical relationships between multiple event texts, improves the hierarchy and quality of review texts, and improves the accuracy of keyword extraction and the accuracy of generated content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118709654A
    Figure CN118709654A
Patent Text Reader

Abstract

The invention relates to a graph neural network event review text generation method based on topic enhancement, and belongs to the technical field of computer natural language understanding. The method comprises the following steps: firstly, extracting key topics from a target event text and a reference event text by utilizing a large language pre-training model; and then filtering the event text representation by utilizing a key topic screening mechanism. A hierarchical graph structure is constructed around a key topic, and a target event text and a reference event text are subjected to deep interaction to obtain node representation with rich semantics. And finally, generating a review text by using a decoder with enhanced key topics. According to the method, the concept of key topics is introduced, and the key topics are used as indexes to construct a hierarchical structure chart to connect the target event text with the reference event text, so that rich semantic logic relationships among multiple event texts can be mined. According to the method, the keyword extraction quality can be improved, and the hierarchy of review text content is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a graph neural network event summary text generation method based on topic enhancement, and belongs to the technical field of computer natural language understanding. Background Art

[0002] To understand the ins and outs of an event, it is necessary to conduct an in-depth analysis of the historical information related to the event to help clarify the cause and effect of the event. The automatic generation of event review text can be seen as a variant of the automatic generation of scientific paper reviews. It is necessary to collect other referenced event text information related to the target event text in the current field, and conduct a comprehensive analysis based on the relevant text content. Finally, the identified core information is integrated and clarified to form the review text part. The writing of the review text requires comparison and analysis of related texts on their common discussion topics. Therefore, it is necessary to focus on capturing the complex relationships that may exist between given related texts. However, the existing review text generation methods have not achieved detailed modeling of given text information.

[0003] At present, some researchers have proposed some methods for automatic generation of review texts. For example, in terms of extractive review generation, Hoang et al. first manually constructed a topic hierarchy tree of the target text and the cited text, and on this basis extracted relevant sentences from all given texts as output. However, the topic hierarchy tree it relies on needs to be manually constructed in advance, which is time-consuming and labor-intensive, and cannot be reused on large-scale datasets. In addition, there are some generative review generation methods, such as Ge et al., who introduced an external citation network graph and used GAT for encoding, but only considered the scenario of a single citation relationship. Chen et al. constructed a target text-guided structural graph based on extracted keywords, and realized review text generation based on the graph encoding. However, this work used document representations as graph nodes and did not learn and optimize text representations in a fine-grained manner.

[0004] Although existing methods have achieved some results in the task of automatically generating review texts, in order to achieve a more sophisticated modeling of event-related text relations and make the generated content more accurate and rich, further consideration is needed from the following aspects:

[0005] 1. A high-quality review text needs to compare and analyze the arguments of multiple cited papers on certain directions or discussion points. Therefore, based on the current event and its cited events, the direction discussed in common by these event texts can be found as the core index to link multiple related text information.

[0006] 2. Regardless of whether it is the given target event text or the cited event text, they both contain content that is relevant or irrelevant to the generated review text. Therefore, it is necessary to consider the filtering and screening of text information.

[0007] 3. When generating review texts, it is also necessary to consider the rich and complex semantic logical relationships between the given multiple texts. The target event text and the referenced event text interact under key topics to construct a structure tree. In other words, in the process of generating review texts, it is also necessary to consider the graph structure interaction.

[0008] In summary, in order to enhance the understanding of the semantic relations between related event texts and generate review texts, it is necessary to model and learn the event text representation, mine better semantic information, and capture the complex logical relations between multiple event texts around key topics. Summary of the invention

[0009] The purpose of this invention is to improve the review text generation method, overcome the technical defects of the existing review text generation method such as only obtaining text representation from a coarse-grained perspective, and creatively propose a text generation method based on a topic-enhanced graph neural network, which can generate review content based on multiple event texts.

[0010] This method introduces a large language pre-training model to extract key topics, constructs a multi-event text hierarchical structure diagram around the key topics, and can automatically generate review text.

[0011] First, a large language pre-training model is used to extract key topics from the target event text and the quoted event text.

[0012] Then, the event text and key topic information are encoded, and the event text representation is filtered and selected.

[0013] Afterwards, a hierarchical graph structure is constructed around key topics, allowing the target event text to interact deeply with the referenced event text to obtain node representations with rich semantics.

[0014] Finally, the decoder enhanced with key topics is used to generate review text.

[0015] The present invention is achieved based on the following technical solutions.

[0016] A method for generating event summary text based on a topic-enhanced graph neural network includes the following steps:

[0017] Step 1: Extract key topics from the target event text and the cited event text.

[0018] Given the specific description of the keyword extraction task and the target event text and reference event text information, keywords are extracted from the large language pre-training model as the key topics discussed in these event texts.

[0019] Step 2: Code the event text and key topic information.

[0020] Specifically, the steps include:

[0021] Step 2.1: Get the word embedding of each word. This can be achieved using the BERT model.

[0022] Step 2.2: Take the word representation as input and obtain the sentence representation in each event text and the topic representation of the key topic. This can be achieved by mean pooling.

[0023] Step 3: Filter and select event text representations.

[0024] Step 3.1: Semantically match and filter the key topics and sentence representations in the event text, calculate the relevance score between the key topics and the event text sentences, and update the event text sentence nodes based on the relevance score.

[0025] Step 3.2: Explore the relationship between each sentence in each event text and all sentences in the global scope of the event text to maintain the important information in the encoded sentence, calculate the correlation score between the current sentence representation and the global sentence in the event text, and then update the current sentence node in the event text based on the correlation score.

[0026] Step 3.3: Concatenate and fuse the sentence representations updated in two ways to enhance the core information. The two updated information are concatenated and passed through a fully connected layer to achieve information fusion.

[0027] Step 4: Based on key topics, construct a hierarchical diagram of the target event text, referenced event text, and key topics, and conduct in-depth interaction of multiple event texts.

[0028] Specifically, first, based on the co-occurrence relationship between key topics and event texts, three types of connection relationships are constructed. For these three types of connection relationships, the three types of text sentence representations are regarded as three different types of graph nodes, and the edges are connected based on the correlation between them to construct a connection graph.

[0029] For each type of node, it will be encoded based on three relationships. Take the sentence node of the quoted event text as an example:

[0030] (1) The key topic connected to the quoted text sentence is updated through the cross-attention mechanism based on the topic-guided attention mechanism;

[0031] (2) The target text sentence connected to the reference text sentence is updated through the cross-attention mechanism calculation;

[0032] (3) The reference text sentence and all reference text sentence nodes in the global domain are updated through the self-attention mechanism.

[0033] Afterwards, the nodes updated through the three relationships are spliced, and the various updated information is fused through the fully connected layer to obtain the final representation of the event text sentences and key topics.

[0034] Finally, the updated sentence representation is passed through a feedforward neural network to update the representation of event text and key topic words.

[0035] Step 5: Use the decoder enhanced by key topics to obtain the content generated in the current training round.

[0036] After the word representation is updated through the above mechanism, the updated representation needs to be integrated into the decoder to help the decoder better generate the final text content.

[0037] Specifically, the decoder can follow the design style of Transformer. For each learning layer, it first takes the standard generated text as the input of the decoder and performs masked self-attention mechanism calculation on the standard input text.

[0038] Based on the current text information, we calculate the cross attention mechanism with the key topic. Then we use the keywords and the content observed by the current step model to link the other two information.

[0039] Finally, these rich context vectors are concatenated and fed into the decoder to help it make choices to improve the quality of the generated text.

[0040] Step 6: Calculate the loss function to iterate the model parameters and complete the model training.

[0041] The decoder is used to predict the generated text content and the standard content to calculate the negative log-likelihood loss function, so that all parameters of the model can be updated with gradients.

[0042] Step 7: Repeat steps 2 to 6 for multiple rounds of training to enable the model to obtain more accurate parameter values. Use the trained model to generate the review text content.

[0043] After completing an iterative update training, return to step 2 to perform calculations through the network again until step 6 to complete a new round of training. After multiple rounds of training, the model parameters are continuously iterated, so that the model obtains more accurate parameter values, thereby completing the complete training process of the model. Using the trained model, high-quality review text content can be generated.

[0044] At this point, the review text generation based on topic-enhanced graph neural network has been completed, and the generation of review content for multiple event texts has been realized.

[0045] Beneficial Effects

[0046] Compared with the prior art, the method of the present invention has the following advantages:

[0047] 1. This method introduces the concept of key topics and uses key topics as indexes to construct a hierarchical graph to connect the target event text with the referenced event text, which can help mine the rich semantic logical relationships between multiple event texts.

[0048] 2. This method introduces a large language pre-training model to extract core keywords as key topics from multiple event texts, which can improve the quality of extracted keywords.

[0049] 3. This method adopts a screening mechanism based on key topics to extract more core content information in the event text representation.

[0050] 4. This method constructs a hierarchical multi-layer attention decoding mechanism based on key topics. It guides the model to focus on the target event text and the cited event text respectively through key topic information, thereby improving the hierarchy of the review text content. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 Flow chart of the method of the present invention.

[0052] Figure 2 This is a block diagram of the implementation of the method of the present invention. DETAILED DESCRIPTION

[0053] The method of the present invention is described in detail below with reference to the accompanying drawings and embodiments.

[0054] Example

[0055] The website address of the two data sets selected in this embodiment is: https: / / forms.gle / 51HSxUHcpui7k4Ep6.

[0056] A set of text data in the field of “review text generation” is randomly selected from the dataset, and the summary of the given target text is recorded as A, and the summary information set of the reference text is R = {r1,...,r |R|}, the target text actually corresponds to the summary text result In which, |R| represents the number of cited texts in the cited text set, r |R| Indicates the cited text of the |R|th article, Indicates the Lth in the actual review text y words.

[0057] Specifically, the target text consists of consecutive L a words, namely Similarly, each citation text r contained in Ri Use L r consecutive words, that is Given A and R, generate the summary part of the target text Indicates the Lth in the generated review text y words.

[0058] like Figure 1 As shown, a review text generation method based on a topic-enhanced graph neural network includes the following steps:

[0059] Step 1: Extract key topics.

[0060] Design an instruction EX , which is used to guide the large language pre-training model to extract key words. The instruction content contains two parts: one is the description of the keyword extraction task D EX , which requires a detailed description of the specific task content, the conditions that need to be met for extracting content, and the final output text format, etc.; the second part of information that needs to be provided is the given target text A and reference text R information.

[0061] I EX =Demonstration:{D EX} (1)

[0062] Input={A,R} (2)

[0063] Step 2: For each text, obtain its word-level and sentence-level representations.

[0064] Specifically, BERT is used to convert the input text into word-level representation h m , and then the word representation is passed through the average pooling layer to obtain the sentence representation of the text

[0065] Step 3: Highlight the core information in the text representation through key topic screening mechanism.

[0066] Specifically, the steps include:

[0067] Step 3.1: Use keywords to semantically match and filter sentence representations in the document:

[0068]

[0069] Among them, W Q , W K , W V is the trainable parameter matrix, d h is the dimension of word embedding. Update by gathering core information through key words. Represents the attention weights of key words and sentences in the document; Represents the representation of the jth word in the extracted key words, Represents the mth sentence representation in the i-th text.

[0070] Step 3.2: Maintain the important information in the encoded sentences by exploring the relationship between each sentence in each document and all sentences in the document globally. The details are as follows:

[0071]

[0072] in, Represents the attention weight between the current sentence in the document and all sentences in the document globally.

[0073] After being updated by the two mechanisms, the two updated representations are fused to enhance the core signal information. After the keyword-guided selective screening mechanism, the updated document sentence representation is obtained.

[0074]

[0075] Among them, FFN represents the fully connected layer.

[0076] Step 4: Build a hierarchical graph structure based on key topics and perform graph neural encoding.

[0077] Based on the given information, three types of nodes are obtained: key topic nodes Target text node Quoting text nodes Based on this, three relationships are built around key topics:

[0078] (1) Key topic - target text / reference text: If the target text and the reference text contain this topic, the topic is connected to the text containing the topic content based on this co-occurrence relationship;

[0079] (2) Target text-reference text: If the target text and the reference text both contain the same topic, the target text and the corresponding reference text are considered to be related in terms of the content point described in the topic and are connected;

[0080] (3) Key topics, target texts, and quoted texts are within the same type of node: For each type of node, each node will be associated with nodes within the entire domain of similar nodes.

[0081] For these three connection relationships, a connection graph is constructed and encoded. Taking the reference text sentence node update process as an example, each reference text sentence will be encoded according to the three relationships connected to it:

[0082] (1) The key topic connected to the quoted text sentence is updated through the cross-attention mechanism based on the topic-guided attention mechanism;

[0083] (2) The target text sentence connected to the reference text sentence is updated through the cross-attention mechanism calculation;

[0084] (3) Update the nodes of the quoted text sentence and all quoted text sentence nodes in the global domain through the self-attention mechanism:

[0085]

[0086] in, represents the representation of the jth sentence in the i-th document after being updated by the keyword screening mechanism. Represents all key topic representations, and * is the subscript of all key topics.

[0087] The updated sentence representation is updated at the document word level through a feedforward neural network:

[0088]

[0089] in, represents the updated representation of the jth word in the i-th document, It represents the representation of the jth sentence in the i-th document after being updated by the graph encoder.

[0090] Similarly, the target text sentence representation can also be calculated through these connections to obtain the final representation Similarly, key topics are also finally represented

[0091] Step 5: After the word representation is updated through the above mechanism, the updated representation is integrated into the decoder to help the decoder better generate the final text content.

[0092] First, the standard generated text is used as the input of the decoder, and the masked self-attention mechanism is calculated on the standard input text.

[0093]

[0094] Among them, LN() represents the linear layer, g t Indicates the word currently input into the decoder in the standard text, g *Represents all the words in the standard text, and MSAttn() represents the self-masking self-attention mechanism network.

[0095] based on Calculate the cross attention mechanism z on the key word k,t :

[0096]

[0097] Among them, W a , W b are all learnable parameter matrices. ReLU represents the activation function. Represents each word in the key topic.

[0098] Use the keywords and the content observed by the current step model to link the other two pieces of information, so as to find the part that is more relevant to the keyword from the word sequence of the target text and the quoted text. Take the quoted text as an example:

[0099]

[0100] in, represents the focus weight between the keyword and all the reference text words in the current step, z r,t It represents the focus weight between the input text and all the reference text words in the current step in the current standard text. MHAtn() represents the multi-head self-attention mechanism network. Represents the multiple word representations in the i-th cited text.

[0101] In the same way, the target text is obtained z r,t .

[0102] After obtaining these rich context vectors, they are concatenated and input into the decoder to help it make choices to improve the quality of the generated text:

[0103]

[0104] in, It represents the probability of generating each word from the vocabulary in the tth step. Softmax() represents the activation function, which normalizes the predicted probability to the range of 0-1.

[0105] Step 6: Calculate the loss function to iterate the model parameters and complete the model training.

[0106] The decoder is used to predict the generated text content and the standard content to calculate the negative log-likelihood loss function, so that all parameters of the model can be updated with gradients.

[0107] Specifically, at each step of decoder generation, the gradient of all parameters is updated by calculating the negative log-likelihood loss function between the generated content and the standard content:

[0108]

[0109] Among them, L s represents the loss function, L y Indicates the length of the generated review text, y t Represents the word corresponding to the t-th position in the actual review text at the t-th step.

[0110] Figure 2 The following is a diagram of the implementation framework based on this method.

[0111] In order to evaluate the quality of the model, ROUGE scores are used to evaluate the generated results. Specifically, ROUGE-1, ROUGE-2, ROUGE-L and ROUGE-SU scores are used as evaluation indicators of the model.

[0112] Table 1: Comparison of the effects of various comparison methods on two datasets

[0113]

[0114] The generation quality evaluation results of ROUGE-1, ROUGE-2, ROUGE-L and ROUGE-SU obtained using this method are shown in the last row of Table 1.

[0115] Step 7: Repeat steps 2 to 6 for multiple rounds of training to enable the model to obtain more accurate parameter values. Use the trained model to generate the review text content.

[0116] After completing an iterative update training, return to step 2 to perform calculations through the network again until step 6 to complete a new round of training. After multiple rounds of training, the model parameters are continuously iterated, so that the model obtains more accurate parameter values, thereby completing the complete training process of the model. Using the trained model, high-quality review text content can be generated.

Claims

1. A method for generating event summary text based on graph neural network with topic enhancement, characterized by: Step 1: Extract key topics from the target event text and the quoted event text; Step 2: Encode the event text and key topic information; Step 3: Filter and select event text representations; First, based on the co-occurrence relationship between key topics and event texts, three types of connection relationships are constructed; Key topic - target text / reference text: If the target text and the reference text contain this topic, the topic will be connected to the text containing the topic content based on this co-occurrence relationship; Target text-reference text: If the target text and the reference text both contain the same topic, the target text and the corresponding reference text are considered to be related in terms of the content point described in the topic and are connected; Key topics, target texts, and reference texts are within the same type of node: For each type of node, each node will be associated with nodes within the entire domain of similar nodes; For the above three connection relationships, a connection graph is constructed and encoded; For the three types of connection relationships, the three types of text sentence representations are regarded as three different types of graph nodes, and the edges are connected based on the correlation between them to construct a connection graph; For each type of node, it will be encoded based on three relationships; Afterwards, the nodes updated through the three relationships are concatenated, and the multiple updated information is fused through the fully connected layer to obtain the final representation of the event text sentences and key topics; Finally, the updated sentence representation is updated at the event text and key topic word level through a feedforward neural network; Step 4: Based on the key topics, construct a hierarchical diagram of the target event text, the referenced event text, and the key topics, and conduct in-depth interaction of multiple event texts; Step 5: Use the decoder enhanced by key topics to obtain the content generated in the current training round; Step 6: Calculate the loss function to iterate the model parameters and complete the model training; The decoder is used to predict the generated text content and the standard content to calculate the negative log-likelihood loss function, so that all parameters of the model can be updated with gradients; Step 7: After completing one iteration of training, repeat steps 2 to 6 for multiple rounds of training to enable the model to obtain more accurate parameter values; Use the trained model to generate review text content.

2. The method for generating event summary text based on topic enhancement graph neural network according to claim 1, characterized in that: In step 1, given the specific description of the keyword extraction task and the target event text and reference event text information, keywords are extracted from the large language pre-training model as the key topics discussed in these event texts.

3. The method for generating event summary text based on topic enhancement graph neural network according to claim 1, characterized in that: In step 2, first get the word embedding of each word; Then, the word representations are used as input to obtain sentence representations in each event text and topic representations of key topics; Then filter the event text representation, including the following steps: Semantically match and filter the key topics and sentence representations in the event text, calculate the relevance score between the key topics and the event text sentences, and update the event text sentence nodes based on the relevance score; Explore the relationship between each sentence in each event text and all sentences in the global scope of the event text to keep the important information in the encoded sentence, calculate the relevance score between the current sentence representation and the global sentence in the event text, and then update the current sentence node in the event text based on the relevance score; The sentence representations updated in two ways are concatenated and fused to enhance the core information; the two updated information are concatenated and passed through a fully connected layer to achieve information fusion.

4. The method for generating event summary text based on topic enhancement graph neural network according to claim 3, characterized in that: The BERT model is used to obtain word embeddings for each word.

5. The method for generating event summary text based on topic enhancement graph neural network according to claim 3, characterized in that: The mean pooling method is used to obtain the sentence representations in each event text and the topic representations of key topics.

6. The method for generating event summary text based on topic enhancement graph neural network according to claim 1, characterized in that: In step 3, for the sentence node of the reference event text, the relationship includes: The key topic connected to the quoted text sentence is updated through the cross-attention mechanism based on the topic-guided attention mechanism; The target text sentence connected to the reference text sentence is updated through the cross-attention mechanism calculation; The reference text sentence and all reference text sentence nodes in the global domain are updated through the self-attention mechanism.

7. The method for generating event summary text based on topic enhancement graph neural network according to claim 1, characterized in that: In step 5, the updated representation is integrated into the decoder to help the decoder better generate the final text content; The decoder follows the design style of Transformer. For each learning layer, the standard generated text is first used as the decoder input, and the masked self-attention mechanism is calculated on the standard input text. Based on the current text information, calculate the cross attention mechanism with the key topic; then use the keywords and the content observed by the current step model to link the other two information; Finally, these context vectors are concatenated and input into the decoder.

8. The method for generating event summary text based on topic enhancement graph neural network according to claim 1, characterized in that: In step 3, the key words are used to perform semantic matching and screening with the sentence representations in the document: Among them, W Q , W K , W V is the trainable parameter matrix, d h is the dimension of word embedding; Update by gathering core information through key words; Represents the attention weights of key words and sentences in the document; Represents the representation of the jth word in the extracted key words, represents the mth sentence representation in the i-th text; The important information in the encoded sentences is preserved by exploring the relationship between each sentence in each document and all sentences in the document globally, as follows: in, Represents the attention weight between the current sentence in the document and all sentences in the document globally; After being updated by the two mechanisms, the two updated representations are fused to enhance the core signal information; after the keyword-guided selective screening mechanism, the updated document sentence representation is obtained Among them, FFN represents the fully connected layer.

9. The method for generating event summary text based on topic enhancement graph neural network according to claim 1, characterized in that: In step 5, the standard generated text is used as the input of the decoder, and the masked self-attention mechanism is calculated on the standard input text Among them, LN() represents the linear layer, g t Indicates the word currently input into the decoder in the standard text, g * Represents all the words in the standard text, and MSAttn() represents the self-masking self-attention mechanism network; based on Calculate the cross attention mechanism z on the key word k,t : Among them, W a , W b They are all learnable parameter matrices; ReLU represents the activation function; Indicates every word in the key topic; Use keywords and the content observed by the model to link the other two information and find the part that is more relevant to the keyword from the word sequence of the target text and the reference text.

Citation Information

Cited By

  • Network threat intelligence relational triple combined extraction method based on deep learning

    US12248876B1