Multi-model dialogue text abstract generation method based on data enhancement
Through multi-model feature fusion and self-learning training, the problem of data scarcity and insufficient processing complexity of a single model is solved, more diverse and coherent dialogue texts are generated, and the performance and robustness of the abstract dialogue summary model are improved. .
Patent Information
- Application Number
- CN202411028639.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-01
AI Technical Summary
Existing technologies have data scarcity limitations in abstract dialogue summarization, resulting in poor model performance when learning language structure, semantics, and context, and it is difficult for a single model to capture complexity and diversity when processing long texts, resulting in generated dialogue text Inadequate coherence and confusing semantics.
A multi-model dialogue text summary generation method based on data enhancement is adopted. The dialogue text is processed through topic segmentation and masking operations, and multiple pre-trained models are combined for feature fusion generation. Self-learning training is introduced to optimize the model performance, and the generation is more diverse and smooth. conversation data.
The generalization ability and performance of the dialogue summary model are improved, the generated dialogue text is more diverse and coherent, the robustness of the model and the quality of dialogue summary are enhanced, the dependence on manual annotation data is reduced, and the generation cost is reduced.
Smart Images

Figure CN118733757A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of natural language processing, relates to text data enhancement technology, and in particular to a multi-model dialogue text summary generation method based on data enhancement. Background Art
[0002] With the continuous emergence of emerging technologies, natural language processing has been widely used in more application scenarios, such as intelligent assistants, social media analysis, public opinion monitoring, etc. Abstract dialogue summarization is a difficult point in text summarization tasks. Abstract dialogue summarization is to extract important information from the dialogue to form a concise and general summary. This technology has many possible uses in practical applications, such as customer service dialogues, automatic generation of meeting records, virtual assistant dialogue optimization, and automatic generation of news reports. In abstract dialogue summarization, a key point is to convert the dialogue structure into a summary of the text structure. The dialogue structure usually includes elements such as multiple rounds of dialogue, interactions between different speakers, and changes in topics in the dialogue. It is necessary to consider identifying the dialogue structure and extracting more coherent and complete important information under the condition of considering the background and context of the dialogue. However, today's abstract dialogue summary models rely on high-quality annotated data, and building high-performance models with stronger generalization capabilities and deep semantic understanding is often constrained by data scarcity.
[0003] Data augmentation increases the quantity and diversity (variety of data) of a given dataset. Limited labeled data often leads to overfitting on the training set, and data augmentation work alleviates this problem by automatically or manually manipulating the data to create additional augmented data. For existing data augmentation for abstract conversation summaries, researchers extend general data processing methods to generate synthetic examples by replacing semantically similar text spans in conversations and summaries. Others have attempted to analyze structured conversation data, splitting the conversation structure by topic as the unit of combined augmentation to fill these gaps. Compared with general data augmentation that ignores the conversation structure, data augmentation for abstract conversation summaries explicitly focuses on the conversation structure and is more suitable for conversation summaries.
[0004] Most of the existing data augmentation methods only use a single model to generate new data based on the original text. However, the traditional single model may have certain limitations when dealing with dialogue generation tasks and cannot fully capture the diversity and complexity of dialogues. Multi-Model Dialogue Generation refers to the use of multiple different models to generate dialogues. These models may include neural network-based generative models, pre-trained language models (such as GPT-3, BERT), and other machine learning models. The use of multiple models can combine the advantages of each model, generate dialogue content from different perspectives, and improve the quality and diversity of generated dialogues. For example, one model can focus on the accuracy of grammar and structure, and another model can focus on the coherence and naturalness of the dialogue. By integrating these models, richer and more diverse dialogue content can be generated.
[0005] Building high-performance models is often constrained by data scarcity, which limits the extensive information required by the model to learn language structure, semantics, and context, thereby restricting its application performance in the real world. This scarcity is mainly reflected in two aspects: first, the scarcity of domain data, and second, the high cost of data annotation and the concentrated demand for manpower. Therefore, introducing data enhancement is an effective and cost-effective way of data processing. Existing related technologies include:
[0006] Patent CN11727717A discloses a method for enhancing conversation data samples and a method and system for pre-training a conversation text generation model. The method selects a single-round conversation including conversation content, conversation response, and optimal external knowledge from the collected conversation sample data set, generates a new extended conversation by exchanging these elements in a cross-rotation manner, and then splices the original conversation and the extended conversation to form an enhanced conversation sample data set. This method achieves data enhancement and improves model performance without increasing the cost of data annotation, so that it can generate responses from different perspectives during training. However, this splicing cannot adapt well to the context of the original text, the conversation text lacks coherence, and is prone to semantic confusion.
[0007] Patent CN118095218A discloses a method for enhancing insurance industry dialogue data based on a large model, which aims to solve the problems of confusing content logic, incomplete semantics, low efficiency and low accuracy when enhancing semantics in the prior art. The method uses a large model to semantically rewrite the acquired insurance industry data in single sentences and full text. The specific steps include: obtaining the real historical dialogue voice between customers and salesmen, identifying and converting it into text for screening, dividing the continuous text into dialogue segments, reorganizing several amplified texts, and rewriting it again through a large model. This rewriting method not only achieves enhancement at the single sentence and dialogue level, but also improves the quality of insurance industry dialogue. By setting multiple sentence, dialogue and full text prompt tags, the diversity and scale of the dialogue are further enhanced. The method uses a large model to rewrite the insurance industry dialogue segments, but for large models, it is impossible to specialize in various professional fields, and using large models to generate requires more computing resources, which is not a simple and easy way to implement.
[0008] In summary, most existing methods focus on the field of abstract text summarization. Due to the complexity and structure of conversation text, the character-level or sentence-level synonym replacement, addition and deletion, etc. in the original text data enhancement method will inevitably lead to semantic confusion. If a large model is used for data enhancement, the generation cost will be greatly increased, which is not conducive to the use of enhancement methods. Moreover, when generating enhanced text, the attention of a single model is still insufficient to understand the conversation text. Conversation text is usually a long text, such as daily conversations and conference conversations. How to solve the semantic understanding of long texts and generate enhanced data is also an important aspect of data enhancement. Summary of the invention
[0009] In order to overcome the shortcomings of the above-mentioned prior art, the present invention provides a multi-model conversation text summary generation method based on data enhancement, by performing topic segmentation and masking operation on the original conversation, and performing multi-model text feature fusion masking generation on the processed masked conversation, thereby obtaining a richer and more diverse conversation text.
[0010] The present invention combines the differences in attention paid to dialogue text when different pre-trained models generate dialogues, and further expands the scope of attention to the original dialogue text by introducing multi-model learning, so as to better understand the dialogue logic and structural information, and generate a large amount of new and more diverse dialogue data based on the original data set. The present invention proposes a data enhancement method for multi-model dialogue generation for abstract dialogue summaries, which is used to solve the problem that data scarcity limits the performance of abstract dialogue summary models, including: designing a subject segmentation and masking generation strategy for structured dialogue text, a dialogue generation method with multi-model feature fusion, and a data enhancement method based on self-learning training. The present invention can improve the generalization ability and performance of the dialogue summary generation model and realize the generation of abstract dialogue summaries.
[0011] The technical solution provided by the present invention is:
[0012] A multi-model dialogue text summary generation method based on data enhancement, which generates new dialogue text by subject segmentation, feature fusion, and masking generation of the original dialogue text in the existing data set, and then uses the teacher model to generate pseudo summaries of the new dialogue to form enhanced data; continuously improves its own performance through a self-learning method to generate richer and more diverse dialogue texts, and finally obtains a high-quality dialogue generation model through repeated iterative optimization, which is used to generate dialogue text summaries; the method comprises the following steps:
[0013] 1) Propose a new topic segmentation algorithm to perform topic segmentation and masking operations on existing conversation text data; including:
[0014] 11) A conversation text topic segmentation algorithm with time series analysis and adaptive threshold is proposed to perform topic segmentation on the conversation text in the existing dataset and divide the conversation content into different topic paragraphs;
[0015] 12) Calculate and select the topic part with the highest similarity to the full text for masking operation, retain the complete context, and generate masked text.
[0016] 2) Perform multi-model text feature fusion and masking generation to generate new dialogue text;
[0017] 21) Extracting feature representations of masked text through multiple generative models;
[0018] 22) After the feature vectors generated by different models are normalized, feature fusion operation is performed; fusion can be achieved by weighted averaging and splicing to generate new masked dialogue text;
[0019] 3) Conduct self-learning training
[0020] Train the initial teacher model on the existing data set to obtain a trained initial teacher model;
[0021] Then, the trained teacher model is used to generate pseudo summaries for the masked dialogue text obtained in step 2), and these pseudo summaries are used as enhanced data to further train the teacher model. Through iterative optimization of self-learning training, an efficient dialogue summary generation model is obtained.
[0022] Compared with the prior art, the present invention has the following beneficial effects:
[0023] According to the differences in the attention paid to dialogue texts by different pre-trained models when generating dialogues, the present invention introduces multi-model feature fusion for data enhancement, further expanding the scope of attention to the original dialogue text, and enabling a better understanding of dialogue logic and structural information. Based on the original dialogue dataset, a large amount of new, more diverse and fluent dialogue data is generated, thereby making the dialogue summary model more robust and obtaining a better dialogue summary when performing downstream summary tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 Schematic diagram of the process of generating data augmentation methods for multi-model dialogue.
[0025] Figure 2 It is a schematic diagram of the enhanced data generation process in a specific embodiment of the present invention.
[0026] Figure 3 Schematic diagram of the topic segmentation algorithm with time series analysis and adaptive threshold proposed in the present invention.
[0027] Figure 4 It is a schematic diagram of the multi-model dialogue generation process in a specific embodiment of the present invention. DETAILED DESCRIPTION
[0028] The present invention will be further described below by way of embodiments in conjunction with the accompanying drawings, but the scope of the present invention is not limited in any way.
[0029] Figure 1 The figure shows the process of the multi-model dialogue generation data enhancement method designed by the present invention, which includes two parts: generation of enhanced data and a self-learning training method using the enhanced data.
[0030] The specific implementation includes: segmenting and masking topics; generating dialogues by fusing multi-model text features; and conducting self-learning training.
[0031] 1) Enhanced data generation
[0032] The annotated dialogue data comes from existing dialogue summary datasets, such as the DialogSum dataset and the SAMSum dataset. The annotated dialogue data contains the original dialogue text and the corresponding annotated summary. In order to reduce the dependence on manually annotated summaries when generating enhanced data, the present invention uses the method of subject segmentation and masking generation of the original dialogue text in the existing dataset to generate new dialogue text, and then uses the teacher model to generate pseudo summaries for the new dialogue to form enhanced data. Enhanced data generation is as follows: Figure 2 As shown. Includes:
[0033] A. Topic Segmentation and Masking Operations
[0034] When generating new dialogue text, in order to ensure the logical coherence and consistency of the masking generation process and make the dialogue more natural and smooth, the existing C99 linear text segmentation algorithm is improved to perform topic segmentation and selective masking operations on the original dialogue text.
[0035] Among them, the C99 linear text segmentation algorithm is a linear text segmentation algorithm based on vocabulary chain and word frequency proposed by Choi FYY in the paper "Advances in Domain Independent Linear Text Segmentation" published in 2000. It can effectively identify the topic changes in the text and show good results in text segmentation. Based on the C99 linear text segmentation algorithm and combined with the characteristics of the dialogue text, the present invention proposes a dialogue text topic segmentation algorithm with time series analysis and adaptive threshold, such as Figure 3 The specific algorithm implementation steps are as follows: (1) Set the parameters of the C99 linear text segmentation algorithm, such as setting an appropriate window size and initial threshold. Segment the entire text into independent sentences to form a sentence sequence list S = {s1, s2, ..., s n}; (2) When calculating the similarity between sentences, the temporal weight is introduced to obtain the time-weighted similarity matrix; (3) The similarity ranking is calculated within the local window and the ranking matrix is constructed; (4) The cumulative similarity matrix is obtained by performing similarity integral calculation on the ranking matrix; (5) The sliding window technology is used to perform calculations on the cumulative similarity matrix, and the text paragraph boundaries are detected by comparing the cumulative similarity value within the sliding window with the adaptive threshold.
[0036] The C99 algorithm is mainly based on sentence similarity and ranking matrix, and does not explicitly use the temporal information of the text. The new segmentation algorithm designed by the present invention specifically adds the temporal factor when calculating the similarity matrix and considers the temporal relationship of the sentences. n}, sim(s i ,s j ) represents sentence s i and sentences j Unweighted semantic similarity calculated using cosine similarity; i and j are sentence s i and sentences j The index in the text sequence. Define the distance function d(i,j) for sentence s i and sentences j Time distance in text:
[0037] d(i,j)=|ij|
[0038] Then, define the weight function ω(d) as a weight based on time distance, where d is a distance function, which represents the time distance of the sentence pair in the text. The sentence pair with a small time distance value has a larger similarity weight, and the sentence pair with a large time distance value has a smaller similarity weight. The following weight function is used:
[0039] ω(d)=e -αd
[0040] Among them, α is an adjustment parameter used to control the decay speed of weight with time distance. A larger α means that the weight decays faster. The introduction of time series analysis captures the impact of time order in text on semantic consistency. The weighted similarity sim ω (s i ,s j ) Combined with the time factor:
[0041] sim ω (s i ,s j )=ω(d)·sim(s i ,s j )
[0042] In addition, the algorithm uses an adaptive threshold mechanism when determining the boundaries of text paragraphs. By dynamically adjusting the boundary detection threshold according to the specific types of text, the algorithm is more flexible and accurate in practical applications, and performs well when processing complex conversation text and time series data. Text statistical features are used as the basis for confirming the text type to dynamically adjust the boundary detection threshold, including the average and standard deviation of the cumulative similarity. The specific adaptive threshold calculation is as follows:
[0043] T=μ+βσ
[0044] Among them, μ is the average value of the cumulative similarity of the entire conversation, σ is the standard deviation of the cumulative similarity, and β is an adjustable parameter to control the flexibility of the threshold. The position of the text paragraph boundary is determined by comparing the cumulative similarity value in the sliding window with the adaptive threshold T:
[0045]
[0046] Among them, cumulative_score(s i ) represents the cumulative similarity value of the i-th sentence. If the cumulative similarity value is less than the threshold, it is a boundary, and if it is greater than it is not a boundary.
[0047] The improved C99 algorithm is applied to segment the input conversation text and divide the conversation content into different topic paragraphs. The Bert-Score proposed by Zhang et al. in 2019 is used to compare the word embeddings between texts to calculate the similarity between each topic paragraph part and the original text, and the topic part with the highest similarity is selected for masking operation, and the masked text is generated.
[0048] Compared with the existing data generation enhancement methods, the use of the conversation text topic segmentation algorithm with time series analysis and adaptive thresholds improves the sensitivity to time order and the adaptability of the algorithm in different text types. When generating data, retaining a relatively complete context can maintain the semantic coherence of the generated text, and the generated text is more in line with the actual conversation scene. In addition, by masking the part of the original text with the most information and introducing more information, the generated content has higher creativity and flexibility, and can generate a completely new conversation based on the original one, rather than just repeating and combining existing content. This feature makes the trained conversation summary generation model show higher robustness and performance when facing complex conversation scenes.
[0049] B. Multi-model dialogue generation
[0050] The present invention introduces the collaborative application of multiple generative models in the data enhancement process of dialogue summaries for the first time to solve the difficulty of understanding the long dialogue text in the process of dialogue masking generation. Specifically, the present invention uses models including the Bart model and the T5 model. By performing feature fusion encoding on the masked text and integrating the feature advantages of different generative models, more diverse and creative long text content is generated. Figure 4 shown.
[0051] In this process, the Bart model is first used to encode the masked text generated in the previous step to generate the feature vector of the Bart model. Then, the same masked text is encoded using the T5 model to generate the feature vector of the T5 model. The feature vectors generated by the Bart and T5 models are fused, and the fusion method includes but is not limited to weighted averaging, splicing, etc. Such feature fusion enables the model to obtain more masked text information. Combining the advantages of the two models, more diverse and accurate dialogue texts are generated.
[0052] In previous methods for data enhancement of dialogue summarization, when a single model is used to process long texts, it is difficult for the model to effectively capture long-distance dependencies due to the long sequence length, resulting in a lack of consistency and coherence in the generated text. By fusing the features processed by each model, it is possible to improve the model's ability to process local information while retaining the global information of the long text. In addition, by using different models to extract text features from different perspectives, the fused features are richer and can better capture the complex information in the long text.
[0053] 2) Enhanced data self-learning training
[0054] After the dialogue generation process is completed, a variety of dialogue texts will be obtained, but these texts do not contain summaries of the texts. In this case, the idea of introducing self-learning training can better utilize unlabeled data and reduce the dependence on manually labeled data, making the method of the present invention easy to use and highly applicable.
[0055] The self-learning training method process is as follows: (1) Train the existing dialogue summary dataset to obtain the initial teacher model f θ ; (2) Use the teacher model to generate a pseudo-summary of the generated dialogue text, and the pseudo-summary together with the obtained pseudo-summary constitutes the enhanced data; (3) Combine the enhanced data and the annotated dialogue data, and train on the basis of the initial teacher model to obtain a dialogue summary generation sub-model with better performance; (4) The sub-model will be used as the teacher model f in the next iteration θ ', continue to jump to step (2) to use the sub-model to generate a new pseudo-summary and repeat the above process. Use an independent validation set to evaluate the performance of the model and monitor the indicators on the validation set. The termination indicator in the present invention is the ROUGE-L value of the generated summary and the reference summary. The formula for calculating ROUGE-L is:
[0056]
[0057] The accuracy or precision (P) is the ratio of the longest common subsequence in the generated summary to the total length of the generated summary. The recall rate (R) is the ratio of the longest common subsequence in the generated summary to the total length of the reference summary. The F1 score is the harmonic mean of the accuracy and recall. The iteration can be stopped when the F1 value of ROUGE-L no longer increases significantly or starts to decrease. The sub-model obtained after the iterative training is terminated is the dialogue summary generation model.
[0058] This iterative training method ensures that the model generates richer and more diverse dialogue texts in the process of continuous optimization. Through repeated iterative optimization, the teacher model gradually improves the summary generation performance. On the one hand, self-learning training can effectively utilize a large amount of unlabeled data and reduce the dependence on manually labeled data, thereby saving cost and time. On the other hand, it can also adapt to the ever-changing environment and data distribution to keep the model up to date and efficient. Self-learning training is consistent with the process of constantly updating the model to generate better pseudo-summaries to generate enhanced data. When the child model learns the information of the enhanced data generated by the teacher model, the self-learning model can continuously self-correct and optimize during the training process, gradually improving its own performance. This self-learning method makes the enhancement method simpler and more efficient, generates diverse data samples, introduces more training data, reduces overfitting, enhances the robustness of the model and its adaptability to different inputs, and makes the model more stable when facing new data.
[0059] It should be noted that the purpose of publishing the embodiments is to help further understand the present invention, but those skilled in the art can understand that various substitutions and modifications are possible without departing from the scope of the present invention and the appended claims. Therefore, the present invention should not be limited to the contents disclosed in the embodiments, and the scope of protection claimed by the present invention shall be subject to the scope defined in the claims.
Claims
1. A multi-model dialogue text summary generation method based on data enhancement, characterized in that: The original dialogue text is used to generate new dialogue text by subject segmentation, feature fusion, and masking generation, and then the teacher model is used to generate pseudo summaries of the new dialogue to enhance the data; the performance is continuously improved through self-learning methods to generate rich and diverse dialogue texts, and through repeated iterative optimization, a high-quality dialogue generation model for generating dialogue text summaries is finally obtained; the steps include: 1) Design a topic segmentation algorithm, perform topic segmentation and masking operations on the conversation text data, and generate masked text; include: 11) Improve the text segmentation algorithm based on vocabulary chain and word frequency, design a conversation text topic segmentation algorithm with time series analysis and adaptive threshold, segment the input conversation text, and divide the conversation content into different topic paragraphs; including: When calculating the similarity matrix, the temporal factors of the sentences are added based on the vocabulary chain and word frequency, and the weight function ω(d) is defined as the weight based on the time distance; The sentence similarity sim after combining the time factor weighting ω (s i ,s j ) is expressed as: Yes ω (s i ,s j )=ω(d)·yes(s) i ,s j ) Among them, sim(s i ,s j ) represents sentence s i and sentences j Unweighted semantic similarity calculated using cosine similarity; When determining the text paragraph boundary, an adaptive threshold mechanism is used to determine the boundary position by dynamically adjusting the text paragraph boundary detection threshold. Specifically, the text statistical features are used as the basis for confirming the text type to dynamically adjust the boundary detection threshold, including the mean and standard deviation of the similarity. By comparing the accumulated similarity value in the sliding window with the adaptive threshold T, the text paragraph boundary position is determined, thereby segmenting the dialogue text; 12) Calculate the similarity between each topic paragraph and the original text by comparing the word embeddings between the texts, select the topic part with the highest similarity for masking, and generate the masked text; 2) In the process of data enhancement of the dialogue summary, multi-model text feature fusion masking generation is performed to generate new dialogue text; including: 21) Extracting feature representations of masked text through multiple generative models; 22) The feature vectors generated by different models are normalized and then feature fused to generate new dialogue text; 3) Conduct self-learning training; including: First, train the initial teacher model on the existing dialogue text dataset to obtain a trained initial teacher model; Then, the trained model is used to generate a pseudo summary of the masked dialogue text obtained in step 2), and the pseudo summary is used as enhanced data to further train the teacher model; Through iterative optimization of self-learning training, an efficient conversation summary generation model is obtained.
2. The method for generating a multi-model dialogue text summary based on data enhancement as claimed in claim 1, characterized in that: In step 11), the weight function ω(d) is expressed as: ω(d)=e -αd Among them, α is an adjustment parameter used to control the decay speed of the weight with time distance; d is the distance function, which represents the time distance of the sentence pair in the text, expressed as: d(i,j)=|ij|; i and j are sentence s i and sentences j The index number in the text sequence.
3. The method for generating a multi-model dialogue text summary based on data enhancement as claimed in claim 1, characterized in that: In step 11), the adaptive threshold calculation is expressed as: T=μ+βσ Where T is the adaptive threshold; μ is the average value of the cumulative similarity of the conversations, σ is the standard deviation of the cumulative similarity, and β is an adjustable parameter that controls the flexibility of the threshold.
4. The method for generating a multi-model dialogue text summary based on data enhancement as claimed in claim 1, characterized in that: Step 12) Calculate the similarity between each topic paragraph and the original text, specifically using Bert-Score.
5. The method for generating a multi-model dialogue text summary based on data enhancement as claimed in claim 1, characterized in that: Step 21) specifically includes: encoding the generated masked text using the Bart model to generate a feature vector of the Bart model; and encoding the same masked text using the T5 model to generate a feature vector of the T5 model.
6. The method for generating a multi-model dialogue text summary based on data enhancement as claimed in claim 5, characterized in that: Step 22) specifically fuses the feature vectors generated by the Bart model and the T5 model. The fusion methods include weighted averaging and concatenation. The model obtains more masked text information through feature fusion.
7. The method for generating a multi-model dialogue text summary based on data enhancement as claimed in claim 1, characterized in that: In step 3), the self-learning training method process includes: 31) Train the existing conversation summary dataset to obtain the initial teacher model; 32) Use the teacher model to generate a pseudo summary of the generated dialogue text, which together with the obtained pseudo summary constitutes the enhanced data; 33) Using the enhanced data and annotated dialogue data, the initial teacher model is trained to obtain a dialogue summary generation sub-model; 34) Use the dialogue summary generation sub-model as the teacher model for the next iteration and go to step 32); 35) The sub-model obtained after the iterative training is terminated is the dialogue summary generation model.
8. The method for generating a multi-model dialogue text summary based on data enhancement as claimed in claim 7, characterized in that: The iteration is terminated when the harmonic mean of precision and recall in the ROUGE-L value of the generated summary and the reference summary no longer increases significantly or starts to decrease.
