Language model pre-training method and system for end-to-end task-based dialogue

By performing information masking processing and recovery on unlabeled dialogue data, combined with adaptive self-supervised learning tasks, the problem of insufficient data in end-to-end task-based dialogue models is solved, the performance and data scale of language models are improved, and existing problems are solved. Problems with misdelivery and high costs in technology.

CN114036282BActive Publication Date: 2024-10-08AISPEECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111419963.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-26
Publication Date
2024-10-08
Estimated Expiration
2041-11-26

AI Technical Summary

Technical Problem

There are error delivery problems and high human and financial costs in existing task-oriented dialogue systems, and the end-to-end task-based dialogue model has limited performance due to insufficient data.

Method used

By obtaining unlabeled dialogue data for information masking and information recovery, we generate data-enhanced dialogue data, and design adaptive self-supervised learning tasks, including structured information recovery and text information inference, for end-to-end task-based dialogue Pre-training of language models.

Benefits of technology

It improves the performance of the end-to-end task-based dialogue language model, bridges the gap between pre-training and end-to-end models, and improves data scale and model performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114036282B_ABST
    Figure CN114036282B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a language model pre-training method for end-to-end task-based dialogue. The method includes: obtaining a first amount of unlabeled dialogue data; performing information masking processing and subsequent information recovery processing on each unlabeled dialogue data to generate a second amount of data-enhanced unlabeled dialogue data; and performing a language model pre-training task for end-to-end task-based dialogue based on the second amount of unlabeled dialogue data. An embodiment of the present invention also provides a language model pre-training system for end-to-end task-based dialogue. An embodiment of the present invention extracts the ontology of large-scale contextual text. In order to bridge the gap between pre-training and end-to-end TOD models, the method designs two adaptive self-supervised learning tasks: a structured information recovery task and a text information inference task. The data scale is increased, so that the performance of the language model for end-to-end task-based dialogue after pre-training is better.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent speech, and in particular to a language model pre-training method and system for end-to-end task-based dialogue. Background Art

[0002] Task-oriented dialogue systems aim to help users complete specific tasks, such as booking a hotel or booking a flight ticket, by interacting with natural language. With the popularity of industrial dialogue systems, task-oriented dialogue systems have received extensive attention in research. Existing task-oriented dialogue systems can be divided into two categories: pipeline format and end-to-end format.

[0003] The pipelined TOD (task-oriented dialogue) system consists of four modules: NLU (Natural Language Understanding), DST (Dialog State Tracking), DP (dialogue policy) and NLG (natural language generation). The four modules work in a pipelined manner, and different modules are trained independently.

[0004] Large-scale open-domain dialogue pre-trained model: Use large-scale open-domain dialogue data to train the Transformer-based pre-trained language model in a self-supervised manner.

[0005] End-to-end task-based dialogue model: The task-based dialogue model is normalized into a sequence-to-sequence generation model, completing dialogue state update and dialogue generation in the same model.

[0006] In the process of implementing the present invention, the inventors found that there are at least the following problems in the related art:

[0007] Pipeline-style task-based dialogue system: Due to the pipeline-style operation, errors in the upstream module will seriously affect the performance of the downstream module, causing serious error transmission problems. Secondly, different modules are trained independently, and each module requires independent labeled data, which makes the human and financial costs of building a dialogue system rise sharply.

[0008] Large-scale open-domain dialogue pre-training model: There are direct fundamental differences in the fundamental purposes of open-domain dialogue and task-based dialogue. Open-domain dialogue focuses on consistency with the current dialogue logic. Generally speaking, more dialogue rounds indicate better system performance. Task-based dialogue is to complete a type of dialogue task and requires accurate information. Under the premise of completing user tasks, fewer dialogue rounds indicate better system performance.

[0009] End-to-end task-based dialogue model: Compared with existing chat-type dialogue data, the scale of task-based dialogue data is seriously insufficient. End-to-end task-based dialogue data needs to rely on large-scale such training data, which greatly limits the performance of current end-to-end task-based dialogue models. Summary of the invention

[0010] In order to at least solve the problem of insufficient training data in end-to-end task models in the prior art.

[0011] In a first aspect, an embodiment of the present invention provides a language model pre-training method for end-to-end task-based dialogue, comprising:

[0012] Obtaining a first amount of unlabeled conversation data;

[0013] Performing information masking processing and subsequent information recovery processing on each unlabeled dialogue data to generate a second amount of data-enhanced unlabeled dialogue data;

[0014] A language model pre-training task for end-to-end task-based dialogue is performed based on the second amount of unlabeled dialogue data.

[0015] In a second aspect, an embodiment of the present invention provides a language model pre-training system for end-to-end task-based dialogue, including:

[0016] A conversation data acquisition program module, used to acquire a first amount of unlabeled conversation data;

[0017] A dialog data enhancement program module, used for performing information masking processing and subsequent information recovery processing on each unlabeled dialog data to generate a second amount of data-enhanced unlabeled dialog data;

[0018] A pre-training program module is used to perform a language model pre-training task for end-to-end task-based dialogue based on the second amount of unlabeled dialogue data.

[0019] According to a third aspect, an electronic device is provided, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the language model pre-training method for end-to-end task-based dialogue according to any embodiment of the present invention.

[0020] In a fourth aspect, an embodiment of the present invention provides a storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, the steps of the language model pre-training method for end-to-end task-based dialogue of any embodiment of the present invention are implemented.

[0021] The beneficial effect of the embodiment of the present invention is: extracting the ontology of large-scale contextual text. In order to bridge the gap between pre-trained and end-to-end TOD models, this method designs two adaptive self-supervised learning tasks: structured information recovery task and text information inference task. The data scale is increased, making the language model of pre-trained end-to-end task-based dialogue perform better. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0023] Figure 1 is a flow chart of a language model pre-training method for end-to-end task-based dialogue provided by one embodiment of the present invention;

[0024] Figure 2 It is a schematic diagram of proprioceptive pre-training of a language model pre-training method for end-to-end task-based dialogue provided by an embodiment of the present invention;

[0025] Figure 3 It is a schematic diagram of pre-training and fine-tuning of a language model pre-training method for end-to-end task-based dialogue provided by one embodiment of the present invention;

[0026] Figure 4 It is a schematic diagram of the overall process of a language model pre-training method for end-to-end task-based dialogue provided by one embodiment of the present invention;

[0027] Figure 5 Schematic diagram of five task-oriented dialogue data sets of a language model pre-training method for end-to-end task-based dialogue provided by an embodiment of the present invention;

[0028] Figure 6 It is a schematic diagram of an end-to-end response generation result on MultiWOZ2.0 of a language model pre-training method for end-to-end task-based dialogue provided by an embodiment of the present invention;

[0029] Figure 7 It is a schematic diagram of an end-to-end response generation result on Cam-Rest676 of a language model pre-training method for end-to-end task-based dialogue provided by an embodiment of the present invention;

[0030] Figure 8 It is a schematic diagram of a dialog state tracking result of a language model pre-training method for end-to-end task-based dialog provided by an embodiment of the present invention;

[0031] Fig. 9 is a schematic diagram of a dialog state tracking result of a language model pre-training method for end-to-end task-based dialog provided by another embodiment of the present invention;

[0032] Fig.10 It is a schematic diagram of an ablation study of a language model pre-training method for end-to-end task-based dialogue provided by an embodiment of the present invention;

[0033] Fig.11 It is a schematic diagram of response generation results of a language model pre-training method for end-to-end task-based dialogue provided by an embodiment of the present invention;

[0034] Fig.12 is a structural diagram of a language model pre-training system for end-to-end task-based dialogue provided by an embodiment of the present invention;

[0035] Fig.13 A schematic diagram of the structure of an embodiment of an electronic device for pre-training a language model for end-to-end task-based dialogue provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0037] like Figure 1 FIG. 1 is a flow chart of a method for pre-training a language model for end-to-end task-based dialogue provided by an embodiment of the present invention, comprising the following steps:

[0038] S11: Acquire a first amount of unlabeled conversation data;

[0039] S12: performing information masking processing and subsequent information recovery processing on each unlabeled dialogue data to generate a second amount of data-enhanced unlabeled dialogue data;

[0040] S13: Perform a language model pre-training task for end-to-end task-based dialogue based on the second amount of unlabeled dialogue data.

[0041] In this implementation, an ontology-aware pre-trained language model (OPAL) is proposed. From a high-level perspective, this method abstracts the end-to-end TOD task into two subtasks: ontology recovery and next text generation, which correspond to the dialogue state tracking task and the response generation task respectively.

[0042] For step S11, it is difficult to obtain annotated data for an end-to-end task-based conversational language model. The scale of task-based conversational data is seriously insufficient, so it is necessary to increase the scale of training data. Therefore, unlabeled conversational data is selected. Large-scale text data with conversational context can be crawled from major websites and then processed into unlabeled conversational data that can be applied to an end-to-end task-based conversational language model.

[0043] For step S12, the processed unlabeled conversation data is applied to the structured information recovery task and the text information inference task. It is necessary to perform information masking processing and subsequent information recovery processing on each unlabeled conversation data. In this way, more unlabeled conversation data can be generated, which increases the data volume. That is, the second number is greater than the first number.

[0044] For step S13, the second amount of unlabeled dialogue data generated for training is used to perform a language model pre-training task for end-to-end task-based dialogue.

[0045] As an implementation mode, the above steps are described in detail, and the method includes:

[0046] extracting structured information from a first amount of unlabeled conversation data;

[0047] For each unlabeled dialogue data, masking the object information related to the task in the structured dialogue information;

[0048] A structured information recovery task is performed to perform object recovery on each unlabeled dialogue data after the mask processing to generate data-enhanced unlabeled dialogue data.

[0049] Mask one of the sentences in the context of each unlabeled dialogue data;

[0050] A text information recovery task is performed to restore the text of each unlabeled dialogue data after the masking process to generate data-enhanced unlabeled dialogue data.

[0051] In this embodiment, the existing task-oriented dialogue data with a given ontology is limited to the pre-trained language model. In order to increase the scale of pre-trained data, the method divides the pre-training process into two stages. The above steps are the first stage of pre-training the model on large-scale context text.

[0052] The structured information of the dialogue data includes: subject-relationship-object triple relationship information.

[0053] Since end-to-end task-based conversation data is rather special, conventionally crawled conversations always contain common references and information omissions. In order to avoid crawling such information. Unlike conventional conversation data, common references and information omissions rarely appear in Wikipedia's context text. This method uses the external information extraction tool OpenIE to automatically extract the ontology information of the context text. The extracted subject-relation-object triples are directly simulated as domain-slot-value triples. Figure 2 As shown in Figure 1, during the pre-training process, the object values ​​in the extracted ontology are masked. One of the pre-training tasks designed by this method is to restore the ontology (called ontology recovery), which is similar to the DST task. In order to improve the reasoning ability of the pre-trained model, this method masks the context text (one or two sentences randomly selected) and pushes the model into the following context. Therefore, the pre-training sample consists of four elements: the masked ontology Masked document context Ontology Hexiaben The goal of the model is to maximize the joint probability:

[0054]

[0055] In order to obtain qualified triples for a sentence using OpenIE, this method removes all stop words in the triples and filters the triples with one triple component as blank. This is also the main reason for not using Reddit before training. There are a lot of pronouns in the text, and it is difficult to extract qualified triples. This pre-training stage greatly increases the size of the pre-training data.

[0056] Simply put, this method abstracts the dialogue state tracking and dialogue generation tasks in task-based dialogues, which can be regarded as structured information recovery tasks and text information inference tasks. For the text information inference task, the last sentence of the text data is masked, and then the corresponding text recovery task is designed to construct the corresponding dialogue generation task. As for how to extract structured information from text data, the solution proposed by this method is to use external information extraction tools to directly obtain the triple relationship information (subject-relation-object) in the text. These triple information are used as the structured information in the text data to form the ontology of the text data. When constructing the self-supervised task, the object information in the triple is masked, and the corresponding pre-training task is to restore the corresponding triple based on the text information given the subject-relation. Since there are a lot of references and missing information in the unlabeled dialogue data, large-scale text data is directly used to construct the above training data.

[0057] It can be seen from this implementation that the ontology of large-scale contextual text is extracted. In order to bridge the gap between pre-trained and end-to-end TOD models, this method designs two adaptive self-supervised learning tasks: structured information recovery task and text information inference task. The data scale is increased, making the language model of pre-trained end-to-end task-based dialogue perform better.

[0058] As an implementation manner, after the language model pre-training task, the method further includes:

[0059] receiving benchmark dialogue data of an end-to-end task-based dialogue, and extracting benchmark structured information of the benchmark dialogue data;

[0060] A language model pre-training task for end-to-end task-based dialogue is performed based on the benchmark structured information.

[0061] The benchmark structured information of the benchmark conversation data is determined by extracting triple relationship information of the benchmark conversation data using a text matching method.

[0062] In this embodiment, since the pre-training in the first stage is all trained using enhanced data, in order to further improve the performance of the language model (for example, to make it more accurate), the model is pre-trained on smaller TOD data in the second stage to further narrow the gap between the pre-trained model and downstream tasks. The two stages complement each other.

[0063] In the second stage, pre-training on TOD data To further narrow the gap between pre-trained language models and end-to-end models, our method leverages less end-to-end task-oriented dialogue data during pre-training, where the dialogue ontology is designed by dialogue experts instead of extracting the ontology using OpenIE. This allows the extraction of domain-slot-value triples from the dialogue context with the given ontology directly using text matching methods (which is different from the way the structured information is determined in the first stage). Note that the extracted triples with text matching operations are not dialogue states. In this pre-training stage, the ontology triples of the dialogue must also be recovered, which is consistent with the previous pre-training process. In other words, unlike SOLOIST and NCM, our method does not need to use annotated dialogue states, but only needs to leverage the given dialogue ontology to match triples related to the ontology. This property increases the generalization of the proposed ontology-aware pre-training method, where the ontology is easier to obtain than the dialogue state annotations. Figure 3The end-to-end TOD task shown in the figure. During the pre-training process, the ontology is extracted from the context, and the context is only a part of the given ontology. Ontology recovery is to recover all triples related to the ontology, for example, the triple res-food-Chinese that is not in a dialogue state. During fine-tuning, there is an additional database search step. In this way, after the above steps, a more accurate small amount of end-to-end task-type dialogue data is used in the second stage to further tune the language model. The overall flow chart of fine-tuning and pre-training in the above steps is shown in the figure. Figure 4 shown.

[0064] It can be seen from this implementation that the performance of the language model for end-to-end task-oriented dialogue can be further improved by further training with accurately labeled end-to-end task-oriented dialogue data.

[0065] The proposed method is tested in detail and the pre-trained model OPAL is evaluated on the dialogue state tracking task and the end-to-end TOD task. To further verify the effectiveness of the proposed OPAL, an ablation study is conducted to analyze the impact of different pre-training components. Finally, resource-limited experiments are designed to calculate the sample efficiency of the proposed OPAL on the end-to-end TOD task, and some cases are shown in the appendix to study the strength of the proposed OPAL.

[0066] In the first stage of the proposed OPAL, the method uses the Wikipedia corpus to pre-train the model. Figure 5 In the diagram of five task-oriented dialogue datasets shown in Figure 1, five task-oriented dialogue datasets are used, of which Schema and TaskMaster are utilized in the second stage of the pre-training process, and the rest are downstream benchmarks. WOZ and CamRest676 are single-domain task-oriented dialogue corpora, which are the DST benchmark and end-to-end TOD benchmark that have been studied in depth, respectively. MultiWOZ is a multi-domain dialogue corpus, which is challenging due to its multi-domain setting and diversity of language styles. There are two versions of the MultiWOZ dataset used in the experiment: MultiWOZ2.0 and MultiWOZ2.1, where MultiWOZ2.1 fixes most of the DST annotation errors in MultiWOZ2.0. To compare with other baselines, we run the end-to-end TOD task on MultiWOZ2.0 and the DST task on Multi-WOZ2.0 and MultiWOZ2.1.

[0067] For the dialogue state tracking task, this method uses the joint objective accuracy (JGA) to evaluate the model. The DST model prediction is successful only when all predicted slot values ​​in each round are exactly matched with the gold. For the end-to-end TOD task, three scores are reported: Inform, Success, and BLEU. Inform measures whether the system response provides the correct entity. Success reports whether the system response provides all requested slots. BLEU evaluates the naturalness of the generated system response.

[0068] This method implements the proposed OPAL using Transformers from HuggingFace and BART, a pre-trained denoising autoencoder. To verify the generalization of the proposed pre-training method, the basic and large versions of BART (BARTL) are set as the backbone of the proposed OPAL, named OPAL and OPALL, respectively. The learning rate for both pre-training and fine-tuning is 1e-5. The optimizer is AdamW. In the first stage of the pre-training process, the total number of training steps is 280,000 and the batch size is 256. Similar to NCM, this method is pre-trained for 100,000 steps in the second stage. During the fine-tuning process of the downstream task, the batch size is 32.

[0069] This method compares OPAL with a strong baseline, which has state-of-the-art (SOTA) performance on DST and end-to-end TOD. DST models can be divided into two categories: classification methods and generative methods. Classification methods rely on optional slot values ​​of the ontology and select values ​​from them. Their scalability is a serious issue for practical dialogue systems. Generative methods directly extract values ​​from the dialogue context, which is comparable to the proposed OPAL.

[0070] For the end-to-end TOD task, existing end-to-end TOD systems can be divided into modular systems and sequential systems. Modular systems use multiple decoders to independently generate downstream outputs and are trained in an end-to-end manner. Sequential systems formulate end-to-end TOD as a single sequence prediction problem. Sequicity proposed a two-stage CopyNet approach to generate dialogue states and system responses. HRED-TS proposed a teacher-student framework with a hierarchical recurrent encoder-decoder backbone. DAMD designed a domain-aware multi-decoder network with a multi-action data augmentation method. DSTC8 Winner and SimpleTOD successfully used the pre-trained language model GPT-2 for unified end-to-end TOD modeling. Inspired by SimpleTOD, SOLOIST optimized GPT-2 with out-domain TOD data and achieved good portability. MinTL-BART and UBAR improve end-to-end TOD systems by changing the input content without additional assumptions. NCM improves the decoder with a noisy channel model and proposes a two-stage pre-training approach to warm up the Transformer-based model, which is first pre-trained on the Reddit corpus and then pre-trained on task-oriented dialogues.

[0071] This method first fine-tunes the pre-trained models OPAL and OPALL on two well-studied end-to-end TOD datasets Multi-WOZ2.0 and CamRest676, as shown in Figure 6 A schematic diagram of the end-to-end response generation results on MultiWOZ2.0 is shown. √ and × indicate whether dialogue behavior annotations are used during training; and Figure 7Schematic diagram of the end-to-end response generation results on Cam-Rest676 shown. The proposed model is compared with a strong baseline in an end-to-end dialogue learning setting. In order to verify the generalization of the proprioceptive pre-training method, the basic version and the large version BART are set as the backbone of the pre-trained model. Compared with the performance fine-tuned on the original BART, the proposed OPAL and OPALL achieve an overall performance improvement of 8.2 and 10.16 on the MultiWOZ2.0 dataset and an absolute improvement of 7.33 points on the CamRest676 dataset. SOLOIST and NCM are the two methods closest to OPAL, both of which use out-of-domain TOD to pre-train Transformer-based models. Unlike our method, these two methods rely on DST annotations. Our model can still obtain the best task completion (notification and success) and has a BLEU score that is barely lower than NCM. Compared with the overall baseline, our model achieves new SOTA overall performance (combination) on both datasets. The large version model OPALL outperforms the basic version OPAL with an overall score improvement of 1.09. To make fair comparison with other baselines, we only report the performance of the base version OPAL in the following experiments.

[0072] The classification-based DST model and the generation-based DST model are shown in Figure 8 The upper part and the lower part of the diagram of the dialogue state tracking results on MultiWOZ2.0 and MultiWOZ2.1 are shown in FIG. Fig. 9 The lower half of the diagram of the dialogue state tracking results on the single-domain WOZ is shown. Figure 8 The DST results on MultiWOZ2.0 and MultiWOZ2.1 datasets are reported. Among all the baselines, our proposed method OPAL achieves the highest joint objective accuracy (JGA) on both datasets. Compared with the classification-based SOTA model SST, OPAL can even achieve 2.91% and 1.48% JGA improvements. Fig. 9 The results of DST on WOZ are shown, which is a single-domain dataset with only 7 slots. The computational complexity of the classification model is proportional to the number of candidate slot values. The advantage of classification-based models is to predict valid candidate slot values ​​on a simple conversation domain. This is the main reason why classification-based models are more popular on the single-domain WOZ dataset. Compared with the well-designed classification-based model BERT-DST, OPAL achieves a 0.9% decrease in joint objective accuracy. Compared with the novel generation-based model TRADE, OPAL achieves a 4.9% increase in joint objective accuracy.

[0073] Analysis Experiments The proposed OPAL is evaluated on the end-to-end TOD task to answer two questions:

[0074] Q1: What role do different pre-training corpora (context text from Wikipedia and out-of-domain TOD) play?

[0075] Q2: Is OPAL more efficient than the original BART in sampling situations where resources are limited?

[0076] Fig.10 Ablation diagrams of the end-to-end TOD datasets CamRest676 and MultiWOZ2.0 are shown. Ablation studies of the proposed OPAL with two pre-training stages are reported. Stage 1 of OPAL is pre-trained on contextual text, and stage 2 is pre-trained on task-oriented dialogue with proprioceptive pre-training method. To evaluate the effect of these two corpora, our method pre-trains the backbone (BART) alone on the pre-training data contextual text or task-oriented dialogue, where the pre-trained models are named OPALC and OPALT, respectively. The pre-trained models OPALC and OPALT still outperform the original BART by a large margin. It demonstrates the efficiency of the proposed proprioceptive pre-training method. In particular, the pre-trained model OPALC, which has not seen any TOD data in the pre-training stage, can obtain competitive performance with the SOTA method NCML. Compared with NCMB, which has a similar parameter scale to our model, OPALC has a clear advantage on both end-to-end TOD datasets. OPALC has similar performance to OPALT. It is known that OPALC is affected by unseen TOD data, while OPALT is affected by the size of pre-training data. OPAL of our method adopts a two-stage pre-training method to solve the above problems, which is a classic example of "one plus one is greater than two". The two-stage pre-training model OPAL has a comprehensive score of 1.65 and 2.58 on CamRest676 and MultiWOZ2.0, which is better than the individual models. This shows that the ontology-aware context corpus and ontology-aware TOD data are complementary.

[0077] Under different resource restriction settings, the proposed OPAL achieves the best performance in terms of task completion (Inform and Success), response naturalness (BLEU), and overall performance among the baselines, such as Fig.11Schematic diagram of resource-limited response generation results on MultiWOZ2.0 shown. This demonstrates the sample efficiency of the proposed ontology-aware pre-training method. When the training data is very limited (only 80 dialogues), OPALT can significantly improve the overall performance over OPALC (an absolute improvement of 3.2 points). This improvement comes from task completion ability, which shows that TOD data can improve the generalization ability of the pre-trained model for end-to-end TOD tasks. As the training data increases, OPALC, which is pre-trained on large-scale contextual text data, has a faster rate of improvement. When the amount of training data reaches 1600 dialogues, OPALC obtains an absolute gain of 4.8 points over OPALT. This shows that the scale of pre-training data affects the growth potential of the pre-trained model.

[0078] This method proposes an ontology-aware pre-training method for modeling end-to-end task-oriented dialogues. The scale of existing task-oriented dialogue data is far from the need for pre-training models. Therefore, external tools are used to extract the ontology of large-scale contextual text. In order to bridge the gap between pre-training and end-to-end TOD models, two adaptive self-supervised learning tasks are designed: ontology recovery and next-generation text generation. The pre-training process is divided into two stages. Stage 1 pre-trains on large-scale ontology-aware contextual text, and stage 2 pre-trains on ontology-aware TOD data. OPAL of this method achieves excellent performance on end-to-end TOD tasks and dialogue state tracking tasks.

[0079] like Fig.12 The figure shows a structural diagram of a language model pre-training system for end-to-end task-based dialogue provided by an embodiment of the present invention. The system can execute the language model pre-training method for end-to-end task-based dialogue described in any of the above embodiments and be configured in a terminal.

[0080] The present embodiment provides a language model pre-training system 10 for end-to-end task-based dialogue, including: a dialogue data acquisition program module 11, a dialogue data enhancement program module 12 and a pre-training program module 13.

[0081] Among them, the dialogue data acquisition program module 11 is used to acquire a first amount of unlabeled dialogue data; the dialogue data enhancement program module 12 is used to perform information masking processing and subsequent information recovery processing on each unlabeled dialogue data to generate a second amount of data enhanced unlabeled dialogue data; the pre-training program module 13 is used to perform a language model pre-training task for end-to-end task-based dialogue based on the second amount of unlabeled dialogue data.

[0082] Furthermore, the dialogue data enhancement program module is used to:

[0083] extracting structured information from a first amount of unlabeled conversation data;

[0084] For each unlabeled dialogue data, masking the object information related to the task in the structured dialogue information;

[0085] A structured information recovery task is performed to perform object recovery on each unlabeled dialogue data after the mask processing to generate data-enhanced unlabeled dialogue data.

[0086] An embodiment of the present invention further provides a non-volatile computer storage medium, the computer storage medium storing computer executable instructions, the computer executable instructions can execute the language model pre-training method for end-to-end task-based dialogue in any of the above method embodiments;

[0087] As an implementation mode, the non-volatile computer storage medium of the present invention stores computer executable instructions, and the computer executable instructions are configured as follows:

[0088] Obtaining a first amount of unlabeled conversation data;

[0089] Performing information masking processing and subsequent information recovery processing on each unlabeled dialogue data to generate a second amount of data-enhanced unlabeled dialogue data;

[0090] A language model pre-training task for end-to-end task-based dialogue is performed based on the second amount of unlabeled dialogue data.

[0091] As a non-volatile computer-readable storage medium, it can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present invention. One or more program instructions are stored in the non-volatile computer-readable storage medium, and when executed by the processor, the language model pre-training method for end-to-end task-based dialogue in any of the above method embodiments is executed.

[0092] Fig.13 is a schematic diagram of the hardware structure of an electronic device for a language model pre-training method for end-to-end task-based dialogue provided by another embodiment of the present application, such as Fig.13 As shown, the device includes:

[0093] One or more processors 1310 and memory 1320, Fig.13 A processor 1310 is taken as an example. The device for the language model pre-training method for end-to-end task-based dialogue may also include: an input device 1330 and an output device 1340.

[0094] The processor 1310, the memory 1320, the input device 1330 and the output device 1340 may be connected via a bus or other means. Figure 8 The example of connecting through bus is taken in the following.

[0095] The memory 1320, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the language model pre-training method for end-to-end task-based dialogue in the embodiment of the present application. The processor 1310 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 1320, that is, implements the language model pre-training method for end-to-end task-based dialogue in the above method embodiment.

[0096] The memory 1320 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data, etc. In addition, the memory 1320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 1320 may optionally include a memory remotely arranged relative to the processor 1310, and these remote memories may be connected to the mobile device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0097] The input device 1330 can receive input digital or character information. The output device 1340 can include a display device such as a display screen.

[0098] The one or more modules are stored in the memory 1320, and when executed by the one or more processors 1310, the language model pre-training method for end-to-end task-based dialogue in any of the above method embodiments is executed.

[0099] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.

[0100] The non-volatile computer-readable storage medium may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the non-volatile computer-readable storage medium may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the non-volatile computer-readable storage medium may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0101] An embodiment of the present invention also provides an electronic device, comprising: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the language model pre-training method for end-to-end task-based dialogue of any embodiment of the present invention.

[0102] The electronic device of the embodiment of the present application exists in various forms, including but not limited to:

[0103] (1) Mobile communication equipment: This type of equipment is characterized by having mobile communication functions and its main purpose is to provide voice and data communications. This type of terminal includes: smart phones, multimedia phones, functional phones, and low-end phones.

[0104] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDAs, MIDs, and UMPC devices, such as tablet computers.

[0105] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players, handheld game consoles, e-books, smart toys, and portable car navigation devices.

[0106] (4) Other electronic devices with data processing functions.

[0107] In this article, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include" and "comprise" include not only those elements, but also other elements not explicitly listed, or also include elements inherent to such processes, methods, articles or equipment. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or equipment that includes the elements.

[0108] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0109] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A language model pre-training method for end-to-end task-based dialogue, comprising: Obtaining a first amount of unlabeled conversation data; Perform information masking and subsequent information recovery processing on each unlabeled conversation data, including: extracting structured information of the first number of unlabeled conversation data, masking the object information related to the task in the structured information for each unlabeled conversation data, executing the structured information recovery task, and performing object recovery on each unlabeled conversation data after the masking process, and / or Masking one of the sentences in the context of each unlabeled conversation data, performing a text information recovery task, and performing text recovery on each unlabeled conversation data after the masking process, to generate a second amount of data-enhanced unlabeled dialogue data; A language model pre-training task for end-to-end task-based dialogue is performed based on the second amount of unlabeled dialogue data.

2. The method according to claim 1, wherein: The structured information of the dialogue data includes: subject-relationship-object triple relationship information.

3. The method according to claim 2, wherein: After the language model pre-training task, the method further includes: receiving benchmark dialogue data of an end-to-end task-based dialogue, and extracting benchmark structured information of the benchmark dialogue data; A language model pre-training task for end-to-end task-based dialogue is performed based on the benchmark structured information.

4. The method according to claim 3, wherein: The benchmark structured information of the benchmark conversation data is determined by extracting triple relationship information of the benchmark conversation data using a text matching method.

5. A language model pre-training system for end-to-end task-based dialogue, comprising: A conversation data acquisition program module, used to acquire a first amount of unlabeled conversation data; The dialogue data enhancement program module is used to perform information masking and subsequent information recovery processing on each unlabeled dialogue data, including: extracting structured information of the first number of unlabeled conversation data, masking the object information related to the task in the structured information for each unlabeled conversation data, executing the structured information recovery task, and performing object recovery on each unlabeled conversation data after the masking process, and / or Masking one of the sentences in the context of each unlabeled conversation data, performing a text information recovery task, and performing text recovery on each unlabeled conversation data after the masking process, to generate a second amount of data-enhanced unlabeled dialogue data; A pre-training program module is used to perform a language model pre-training task for end-to-end task-based dialogue based on the second amount of unlabeled dialogue data.

6. An electronic device, comprising: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the method described in any one of claims 1 to 4.

7. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 4 are implemented.