Machine reading comprehension method and system

By combining evidence generation and answer verification in the machine reading comprehension system, the evidence extractor and answer verifier are used to determine the final answer, which solves the problem of insufficient performance of the existing system in complex tasks and improves the accuracy and credibility of reading comprehension. Spend.

CN113961692BActive Publication Date: 2024-10-18AISPEECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing machine reading comprehension systems have problems with insufficient performance improvement in evidence extraction and answer verification, especially in complex task forms such as multiple-choice and generative tasks.

Method used

A machine reading comprehension method is proposed. By inputting the text and questions to be read and understood into the answer retriever for preliminary prediction, candidate answers and their probabilities are obtained, and then the text, questions and candidate answers are input into the evidence extractor to extract noise evidence. The final answer is ultimately determined by the answer validator. This method combines evidence generation and answer verification, enhancing the interpretability of the system.

Benefits of technology

Through the extraction and verification of noise evidence, the accuracy of reading comprehension and the credibility of the system are improved, the problem of lack of evidence annotation is solved, and the performance is further improved through data enhancement methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113961692B_ABST
    Figure CN113961692B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a machine reading comprehension method. The method includes: inputting the text to be read and the question to be understood into the answer retriever for preliminary prediction, obtaining multiple candidate answers and the preliminary probability corresponding to each candidate answer; inputting the text to be read, the question and the multiple candidate answers into the evidence extractor, extracting each noise evidence corresponding to each candidate answer from the text to be read; inputting the question, each candidate answer and the corresponding noise data into the answer verifier, and determining the final answer with the highest probability from each candidate answer. An embodiment of the present invention also provides a machine reading comprehension system. The embodiment of the present invention determines the influence of the masked sentence on the probability of the candidate answer, determines each noise evidence corresponding to each candidate answer, and also solves the problem of no evidence annotation in the reading comprehension task. Data enhancement is performed using evidence to further improve the accuracy of reading comprehension.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of machine learning, and in particular to a machine reading comprehension method and system. Background Art

[0002] The research goal of MRC (Machine Reading Comprehension) is to enable machines to answer questions related to a given natural language article. In addition to building a system that can accurately answer questions, it is also necessary to consider making the answers stable, reliable, and highly confident so that they can be applied in real scenarios. Allowing the reading comprehension system to provide evidence for the answers while providing answers can greatly enhance the interpretability of the reading comprehension system.

[0003] We can create larger, more comprehensive, and more complex datasets to further improve language understanding, both through evidence generation and answer verification:

[0004] Existing evidence generation work is mainly carried out through two aspects. On the one hand, it is based on the heuristic method of model prediction. These methods generate pseudo labels by observing or predicting the output of the model, and then train the evidence selection model through the pseudo labels. On the other hand, by introducing or observing some technologies that have interpretable capabilities, such as the attention mechanism, the corresponding fragments are selected as the explanation of the answer.

[0005] The answer verification technology in reading comprehension is mostly based on extractive reading comprehension tasks (that is, the answer is a fragment in the article). These tasks verify the questions with sentences or articles or answers containing the answers to determine whether the answers are correct and whether the questions can be answered.

[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] Existing work on evidence extraction can extract relevant sentences, but it focuses on extracting evidence itself and ignores the exploration of further applications of evidence, resulting in no improvement in the performance of question-answering systems and even a certain performance loss in some work. Existing work on answer verification is limited to simpler extraction tasks and ignores the natural correlation between evidence extraction and answer verification. It is difficult to find application scenarios for more complex task forms such as multiple-choice and generative tasks. Summary of the invention

[0008] To at least address the problem of the limitations of answer verification in the prior art which ignores the role of evidence in reading comprehension.

[0009] In a first aspect, an embodiment of the present invention provides a machine reading comprehension method, comprising:

[0010] Input the text and question to be read into the answer retriever for preliminary prediction, and obtain multiple candidate answers and preliminary probabilities corresponding to each candidate answer;

[0011] Inputting the text to be read and understood, the question and a plurality of candidate answers into an evidence extractor, and extracting each noise evidence corresponding to each candidate answer from the text to be read and understood;

[0012] The question, candidate answers and corresponding noise data are input into an answer verifier, and a final answer with the highest probability is determined from the candidate answers.

[0013] In a second aspect, an embodiment of the present invention provides a machine reading comprehension system, including:

[0014] A preliminary prediction program module is used to input the text to be read and understood and the question into the answer retriever for preliminary prediction, and obtain multiple candidate answers and preliminary probabilities corresponding to each candidate answer;

[0015] An evidence selection program module, used for inputting the text to be read and understood, the question and a plurality of candidate answers into an evidence extractor, and extracting each noise evidence corresponding to each candidate answer from the text to be read and understood;

[0016] The answer verification program module is used to input the question, each candidate answer and each corresponding noise data into the answer verifier, and determine the final answer with the highest probability from the candidate answers.

[0017] 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 machine reading comprehension method of any embodiment of the present invention.

[0018] 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 machine reading comprehension method of any embodiment of the present invention are implemented.

[0019] The beneficial effects of the embodiments of the present invention are: determining the influence of the masked sentence on the probability of the candidate answer, determining each noise evidence corresponding to each candidate answer, and solving the problem of no evidence annotation in the reading comprehension task. Using evidence for data enhancement can further improve the accuracy of reading comprehension from the enhanced text to be read and understood. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] 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.

[0021] Figure 1 is a flow chart of a machine reading comprehension method provided by an embodiment of the present invention;

[0022] Figure 2 It is a EVEMRC framework structure diagram of a machine reading comprehension method provided by an embodiment of the present invention;

[0023] Figure 3 This is a data graph of experimental results of a machine reading comprehension method provided by an embodiment of the present invention on the RACE+ dataset;

[0024] Figure 4 It is a data graph of experimental results of RACE and DREAM data sets of a machine reading comprehension method provided by an embodiment of the present invention;

[0025] Figure 5 It is an evidence data graph of an answer verifier of a machine reading comprehension method provided by an embodiment of the present invention;

[0026] Figure 6 is a comparative data diagram between different verification program settings of a machine reading comprehension method provided by an embodiment of the present invention;

[0027] Figure 7 It is a data diagram of different types of data expansion methods of a machine reading comprehension method provided by an embodiment of the present invention;

[0028] Figure 8 is a structural diagram of a machine reading comprehension system provided by an embodiment of the present invention;

[0029] Fig. 9 A schematic diagram of the structure of an embodiment of an electronic device for machine reading comprehension provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0030] 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.

[0031] like Figure 1 The flowchart of a machine reading comprehension method provided by an embodiment of the present invention includes the following steps:

[0032] S11: inputting the text to be read and the question into the answer retriever for preliminary prediction, and obtaining a plurality of candidate answers and preliminary probabilities corresponding to the candidate answers;

[0033] S12: inputting the text to be read and understood, the question and a plurality of candidate answers into an evidence extractor, and extracting each noise evidence corresponding to each candidate answer from the text to be read and understood;

[0034] S13: Input the question, candidate answers and corresponding noise data into the answer verifier, and determine the final answer with the highest probability from the candidate answers.

[0035] In this embodiment, Figure 2 The machine reading comprehension framework is shown, and the components in the framework include: AR (Answer Retriever), ES (Evidence Selector) and AV (Answer Verifier).

[0036] Reading comprehension usually consists of text and questions, for example, given a large paragraph of material, and questions related to the material. Through reading comprehension tests, students can correctly understand the meaning of the article, analyze the connection and hierarchy between paragraphs and chapters, and summarize the main ideas and key points of the article.

[0037] For step S11, the text and questions to be read and understood are selected. The MRC model AR (Answerretriver) can be used to read the entire article, find all candidate answers, and use their probability distribution as preliminary predictions. For span prediction, free-form answers, or cloze-style MRC tasks, AR must give all possible answers to prepare input for the evidence selector; in the multiple-choice MRC setting, for simplicity, a list of provided answers can be used. In this way, for different types of reading comprehension, multiple candidate answers and preliminary probabilities corresponding to each candidate answer can be obtained.

[0038] For step S12, the second stage is the extraction of noise evidence. This method designs an evidence extractor model. The input of this evidence extractor is the question and a corresponding possible answer (each possible answer needs to be extracted, which requires the input of multiple possible candidate answers), as well as each sentence in the article. The evidence extractor will be used to extract the noise evidence corresponding to this answer for each possible answer. After retrieving the candidate answers, use ES (Evidence Selector) to select evidence sentences for each answer. ES will first read through each sentence in the article, and then select sentences that are closely related to the specific answer. Since most MRC tasks lack evidence labels, ES is initialized by pseudo-evidence labels generated by Answer retriver, so as to extract each noise evidence corresponding to each candidate answer.

[0039] For step S13, through the preliminary prediction of AR and the sentences of noise evidence for each answer selection in ES, the answer verifier (AV) will recheck the answer list with the corresponding evidence sentences and questions. Compared with AR, the answer selection process is actually a general search. AV mainly focuses on verifying the sentences of targeted answer evidence from AV as input rather than the entire channel AR. Finally, AV gives the final answer and corresponding evidence combined with AR's prediction to determine the final answer with the maximum probability.

[0040] As an implementation manner, the question, each candidate answer and each corresponding noise data are input into the answer verifier, and determining the final answer with the highest probability from the candidate answers includes:

[0041] Input the question, each candidate answer and each corresponding noise data into the answer verifier, and output the reference probability of each candidate answer;

[0042] Determine the final probability of each candidate answer based on the preliminary probability and reference probability of each candidate answer;

[0043] The candidate answer corresponding to the final probability with the highest probability is determined as the final answer.

[0044] After determining the final answer, the method further includes:

[0045] The noisy evidence corresponding to the final answer is provided as the clean evidence.

[0046] In this embodiment, the evidence corresponding to each answer is used to predict the probability distribution of the new round of answers. The input is to splice each answer, question and the evidence corresponding to the answer into a sequence and probabilize the scores of different sequences. The final answer is obtained by weighting the preliminary answer and the answer output by the answer verifier to determine the final probability of each candidate answer. The evidence corresponding to the final answer is the clean evidence we selected, which can be provided to users to enhance the credibility of the question-answering system.

[0047] Specifically, the architecture of the machine reading comprehension framework can be formulated as follows:

[0048] p A , A=AR(P,Q)

[0049] E={E i :ES(P,Q,a i )for a i in A}

[0050] p V =AV(E,Q,A)

[0051] p=α*p V +(1-α)*p A

[0052] Where AR, ES, AV are answer retrievers, evidence selectors, and answer verifiers respectively; P, Q, A, and E are paragraphs, questions, candidate answers, and evidence sets for each answer respectively; p A , p V , p is the probability distribution of the candidate answers of the answer retriever, answer verifier and final prediction, and a is the weighting coefficient.

[0053] The inaccessibility of evidence labels leads to the research significance of interpretability in multiple-choice MRC tasks. Although the framework of this method can be applied to any type of MRC tasks, we still focus on multiple-choice MRC tasks. In the multiple-choice setting, the machine is required to answer the answer set A = {a1, a2, ..., a k}(e.g., k=4) Select the correct answer, given a segment P={s1, s2, ..., s n} and n sentences and a question Q. The details of the model architecture of this method are as follows:

[0054] For the multi-select MRC task, by concatenating [CLS], P, [SEP], Q, [SEP], a iThe input sequence is constructed by [CLS] and [SEP], where [CLS] and [SEP] are the classifier token and sentence separator in the pre-trained language model, respectively. The tokens before (including) the first [SEP] are grouped as the first segment, and the remaining tokens are considered the second segment. The input sequence is fed into a pre-trained language model such as BERT (Bidirectional Encoder Representation from Transformers, a pre-trained language representation model), and the final hidden state of the first token in the input sequence is obtained as Where N is the hidden size. Apply a linear classification layer Get each candidate answer a i The unnormalized scores of are obtained by applying a softmax layer to the unnormalized scores of all candidate answers to get the final prediction, namely:

[0055]

[0056] Evidence selector: Intuitively, the evidence sentences for different candidate answers may be different. Therefore, the evidence selector selects evidence for each candidate answer independently. Given a candidate answer a i , Sentences j and question Q, by connecting [CLS], s j ,[SEP],Q,[SEP],a i and [SEP] to construct the input sequence. Similar to the answer retriever, the final hidden state of the first token in the input sequence is represented as Linear classification layer To obtain the evidence score p E (i, j), that is:

[0057]

[0058] In answering a i After scoring each sentence in , select the K sentences with the highest scores as a i Evidence sentence.

[0059] Answer Verifier: Given all associated evidence sentences E i and candidate answer a i , by adding E i , Q and a i The concatenated input of is a model with the same structure as the answer retriever to verify it. Similarly, the final hidden state of the first token in the input sequence is represented as Linear classification layer To obtain a i The unstandardized score of is used to calculate the verifier probability by applying the softmax function to the unstandardized score, that is:

[0060]

[0061] Then the final answer score will be:

[0062] p=α*p V +(1-α)*p A

[0063] Where a is the weighting coefficient.

[0064] Furthermore, the evidence sentence corresponding to the final answer will be the clean evidence for the prediction.

[0065] It can be seen from this implementation that this method combines interpretability, evidence generation and answer verification, considers the correlation between evidence and answer verification, effectively handles various types of reading comprehension and has strong interpretability.

[0066] As an implementation manner, in this implementation manner, the inputting the text to be read and understood, the question, and a plurality of candidate answers into the evidence extractor, and extracting each noise evidence corresponding to each candidate answer from the text to be read and understood includes:

[0067] Masking sentences in the text to be read and understood, and determining the change in the preliminary probability of each candidate answer to the question after the sentence is masked as the importance of the masked sentence;

[0068] Based on the importance, it is determined whether the masked sentence is noise evidence.

[0069] In this implementation, inspired by how people view sentences as evidence, a heuristic pseudo-evidence label generation method based on answer retriever prediction is proposed.

[0070] Given a paragraph P, a question Q, and a candidate answer a, we first use the answer retriever model AR to get the original probability distribution of the answer. i The importance of sentence-level masking is performed on the input paragraph And obtained the masked prediction This prediction replaces the original input paragraph AR with P. It can be considered that if the masked sentence is crucial to answering the question, the answer distribution will change significantly after masking. Therefore, the Kullback-Leibler (KL) divergence between the two distributions is used as the overall evidence score. To determine the answer corresponding to each sentence, the difference between the two distributions is also calculated, and the sentence is assigned to the answer with the largest probability drop.

[0071] For each article, the first N sentences and their corresponding answers are selected as positive examples. In addition, negative examples are randomly extracted and combined with answers and non-evidential sentences to train the evidence selector. In this way, multiple extractions can extract noise evidence corresponding to each candidate answer from the text to be read and understood.

[0072] It can be seen from this implementation that the influence of the masked sentence on the probability of the candidate answer is determined, and each noise evidence corresponding to each candidate answer is determined, while also solving the problem of no evidence annotation in the reading comprehension task.

[0073] As an implementation manner, in this implementation manner, the method further includes performing data enhancement on the text to be read and understood based on the noise evidence, including:

[0074] Dividing the sentences of the text to be read and understood into: irrelevant information of the noise evidence, noise information including a plurality of noise evidences, and strongly relevant information corresponding to the noise evidence of the preset correct answer;

[0075] Data enhancement is performed based on the irrelevant information, the noise information and the strong relevant information.

[0076] In this implementation, a new data enhancement method is proposed, which uses the evidence sentences selected by ES (evidence selector) for data enhancement. It is believed that the evidence sentences not only provide strong interpretability, but also indicate the inherent structure of the information. After obtaining the noisy evidence and clean evidence, the information in the channel can be divided into three levels:

[0077] Irrelevant information corresponds to most of the non-evidentiary sentences in the article, which are related to the topic of the article but have no effect on answering the question.

[0078] The noise information corresponds to the noise evidence, which is closely related to the question and is selected by the evidence selector.

[0079] Strong relevant information corresponds to clean evidence, which is a necessary condition for giving the correct answer.

[0080] Based on the above information stratification, several data enhancement methods are proposed:

[0081] Replacement of irrelevant information Since the background information is useless in answering the question, the background information can be replaced with similar background information from other paragraphs.

[0082] Noise Reduction Specifically, the evidence sentences corresponding to the wrong answers are treated as noise. Therefore, the evidence sentences of the wrong answers that may mislead the model can be removed.

[0083] In contrast to noise addition, strongly correlated evidence-option pairs can be added to perturb the model prediction process by adding evidence and corresponding answers in the article and answer lists, respectively.

[0084] Only irrelevant information replacement and noise reduction are implemented, and noise addition is reserved for future work. The details of the algorithm are described below.

[0085] First, for an example with a paragraph P, a question Q, and an answer list a, examples with similar paragraphs are retrieved by embedding the text into its corresponding TFIDF (term frequency-inverse document frequency, a common weighting technique for information retrieval and data mining) weighted vector. The cosine similarity of the embeddings of the two channels P1 and P2 is calculated:

[0086] TFIDF(P1, P2) = cos(BoW TFIDF (P1, BoW TFIDF (P1))

[0087] Data augmentation is performed on the examples with the maximum TFIDF score among all the paragraphs between a1 and a2. The threshold helps filter out examples to retrieve only paragraphs with no similar background information or almost the same background information.

[0088] Then, use the following two methods to perform background replacement or background replacement and noise reduction at the same time:

[0089] Clean evidence preservation, after retrieving a similar target channel for a given source channel, only the clean evidence is inserted into the target channel to form a new example that contains the source question and answer while replacing the background information and removing the noise. Noisy evidence preservation is similar to clean evidence preservation, except that only the noisy evidence is inserted, while only the background replacement is performed.

[0090] It can be seen from this implementation that using evidence for data enhancement can further improve the accuracy of reading comprehension from the enhanced text to be read and understood.

[0091] The experiment of this method is to illustrate that since the multi-type MRC task requires more reasoning skills and cannot simply obtain evidence sentences through word matching, the following three multiple-choice questions are used:

[0092] RACE: RACE is a dataset collected from English exams for junior and senior high school students. Generated by human experts, RACE covers a variety of well-designed topics to assess students’ comprehension and reasoning abilities.

[0093] DREAM: DREAM is the first dialogue-based multiple-choice reading comprehension dataset collected from English as a foreign language test and designed by human experts to assess the reading comprehension ability of English learners.

[0094] RACE+: RACE+ is a subset of ExpMRC, similar to RACE, which is used to evaluate the interpretability of MRC systems. The evidence for each case in RACE+ is the minimum channel span that supports the answer.

[0095] For the evaluation of RACE, DREAM, and answer prediction tasks in RACE+, standard accuracy is used. For the evaluation of evidence, the F1 score is used, which measures the weighted average of precision and recall at a character level. In addition, the authors of RACE+ also provide a full F1 metric that reflects the correctness of two answers and their evidence.

[0096] The baseline results of RACE+ assessment are as follows Figure 3 The experimental results on the RACE+ dataset are shown in the figure. MostSimilarSent and MostSimilarSent.w / Ques select the sentence with the highest F1 score calculated in tandem with the predicted answer text or the predicted answer and the question. Pseudo-data training is a stronger baseline that uses the golden answer and question to retrieve the sentence most similar to the pseudo-data.

[0097] Analyze and study the model: Exclusive evidence verifier Exclusive evidence means that a sentence can only be used as evidence for one answer. Once multiple answers choose the same sentence as evidence, the answer with the highest evidence score in the evidence selector is used as the corresponding answer for the sentence.

[0098] Unified evidence verifier tries to apply unified evidence to the verifier of this method. Unified evidence means that all answers are verified using the same evidence sentence. The sentence with the highest score among all answers is selected as unified evidence.

[0099] Using Only the Question Verifier In order to determine whether the evidential question verification or the evidential answer verification is more effective, the answer verifier is also implemented using only the question and evidence sentences corresponding to the candidate answers.

[0100] To evaluate the framework of the proposed method, two pre-trained language models were used: BERT-base-uncased and Albertbase-v2, where the implementation is based on the public Pytorch implementation of Transformers. The AdamW optimizer was used with β1=0:9, β2=0:999, no weight decay and warm-up. The maximum input sequence length was set to 512. Since RACE+ only provides a development set and a hidden test set, the RACE training set was used for training. The number of sampling N of evidence and negation sentences was 2 for RACE and 1 for DREAM. The number of evidence sentences selected for the verifier was RACE-3 sentences and DREAM-2 sentences. The optimal weighting coefficient of the probability combination was found on the dev set with an interval of 0.1, and its value range was 0.1~0.5. The a1 and a2 of the filtered TFIDF score were 0.2 and 0.8 respectively. The main results were averaged by running three random seeds, and the average score was reported. Four NVIDIA 2080Ti were used for all experiments.

[0101] The framework of this method will be evaluated on RACE and DREAM to show the performance of answer prediction, such as Figure 4 The experimental results of the RACE and DREAM datasets are shown in Figure 2. In order to evaluate the evidence sentences extracted by the two-stage evidence selection pipeline of this method, as shown in Figure 2, the evidence sentences extracted by the two-stage evidence selection pipeline of this method are as follows: Figure 3 As shown in Figure 1, we first test the framework of this method on the RACE+ development set, and submit the best results to the RACE+ hidden test set. Figure 4 The results of comparing RACE and DREAM with BERT-base and ALBERT-base as baselines are shown.

[0102] EveMRC achieves consistent improvements over RACE+BERT-base+1.7%,+1.8%, RACE+ALBERT-base+1.8%,+1.5%, DREAM+BERT-base+1.5%,1.5%, and DREAM+ALBERTbase+1.4%,1.2%. Moreover, similar improvements can be achieved using only data augmentation or only the answer verifier. It is worth noting that the answer verifier is found to achieve better results than the data augmentation method and contributes the most to the EveMRC (Explainable MRC) framework of our method.

[0103] Figure 3The framework of this method is compared with several proposed baselines on RACE+. The experimental results on RACE+ show that the framework achieves significant improvements in both evidence selection (+12.8% and +9% on the development set and test set, respectively) and answer prediction (+3.1% and +6.6% on the development set and test set, respectively). Although no evidence selection is submitted compared with the large-scale baseline, the improvement in evidence selection is substantial, with the F1 score of evidence selection on the development set and test set improving by 10.5 points and 10 points, respectively.

[0104] When extracting evidence sentences for each answer candidate to verify the answer, the question of what kind of evidence sentences are most suitable for answer verification naturally arises. In the case where the extracted evidence is too long or too short, a lot of noise will be introduced or necessary evidence will be ignored. Figure 5 The verification results of answer selection accuracy on RACE and DREAM dev sets are shown as the number of evidence sentences increases. It can be seen that the verifier of our method has 3 or 4 evidence sentences on RACE and 2 evidence sentences on DREAM, which is reasonable because the average number of sentences on RACE is much longer than that on DREAM (17.6 vs. 8.5).

[0105] In the comparison of different verifier settings, this method proposes several verification settings with exclusive proofs, unified proofs and question-only. Figure 6 The comparison results on the RACE-dev set are shown. From the overall results of the four types of verifier settings, it is first observed that the standard answer verifier adopts answer-wise evidence with questions and options as verification and achieves the best performance. The performance of the unified evidence verifier is slightly worse than the standard verifier of our method, but it is also much better than the baseline. An important difference between unified evidence and answer-wise evidence is that answer-wise evidence can provide more comprehensive evidence information for verification, while unified evidence shares limited information. Similarly, exclusive evidence ensures the comprehensiveness of evidence information in the case of short evidence, but introduces more noise in the case of long evidence, which can also be derived from the accuracy curve of the number of evidence judgments of the exclusive evidence verifier. In addition, the question-only verifier performs the worst, which shows that evidence-answer verification is indispensable in the framework of our luminous method.

[0106] For clean evidence or noisy evidence, Figure 7Results of two types of data augmentation methods on the RACE-dev set are shown. Clearly, the data augmentation method that preserves clean evidence performs better than the one that preserves noisy evidence. Surprisingly, as the number of evidence sentences increases, it is observed that the accuracy of noisy evidence preservation increases, while the accuracy of clean evidence preservation decreases. It can be argued that short-length clean evidence already contains the most important evidence information, and as the length of evidence increases, it will introduce more noise. In contrast, noisy evidence requires a longer length to contain the essential information to answer the question.

[0107] In general, with the rise of research on interpretable MRC systems, this method proposes an interpretable MRC framework for evidence extraction and answer verification. By proposing a heuristic method to generate pseudo-evidence labels to solve the problem of lack of labeled evidence data, two impressive applications of evidence sentences are proposed: answer verification and data augmentation. Experimental results show the effectiveness and strong interpretability of the framework.

[0108] like Figure 8 The figure is a schematic diagram of the structure of a machine reading comprehension system provided by an embodiment of the present invention. The system can execute the machine reading comprehension method described in any of the above embodiments and is configured in a terminal.

[0109] A machine reading comprehension system 10 provided in this embodiment includes: a preliminary prediction program module 11, an evidence selection program module 12 and an answer verification program module 13.

[0110] Among them, the preliminary prediction program module 11 is used to input the text to be read and understood and the question into the answer retriever for preliminary prediction, and obtain multiple candidate answers and the preliminary probability corresponding to each candidate answer; the evidence selection program module 12 is used to input the text to be read and understood, the question and multiple candidate answers into the evidence extractor, and extract the noise evidence corresponding to each candidate answer from the text to be read and understood; the answer verification program module 13 is used to input the question, each candidate answer and the corresponding noise data into the answer verifier, and determine the final answer with the highest probability from the candidate answers.

[0111] Furthermore, the answer verification program module is used to:

[0112] Input the question, each candidate answer and each corresponding noise data into the answer verifier, and output the reference probability of each candidate answer;

[0113] Determine the final probability of each candidate answer based on the preliminary probability and reference probability of each candidate answer;

[0114] The candidate answer corresponding to the final probability with the highest probability is determined as the final answer.

[0115] Furthermore, the answer verification program module is also used to:

[0116] The noisy evidence corresponding to the final answer is provided as the clean evidence.

[0117] Furthermore, the evidence selection program module is used to:

[0118] Masking sentences in the text to be read and understood, and determining the change in the preliminary probability of each candidate answer to the question after the sentence is masked as the importance of the masked sentence;

[0119] Based on the importance, it is determined whether the masked sentence is noise evidence.

[0120] Furthermore, the system also includes a data enhancement program module based on noise evidence, which is used to:

[0121] Dividing the sentences of the text to be read and understood into: irrelevant information of the noise evidence, noise information including a plurality of noise evidences, and strongly relevant information corresponding to the noise evidence of the preset correct answer;

[0122] Data enhancement is performed based on the irrelevant information, the noise information and the strong relevant information.

[0123] The embodiment of the present invention further provides a non-volatile computer storage medium, the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the machine reading comprehension method in any of the above method embodiments;

[0124] 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:

[0125] Input the text and question to be read into the answer retriever for preliminary prediction, and obtain multiple candidate answers and preliminary probabilities corresponding to each candidate answer;

[0126] Inputting the text to be read and understood, the question and a plurality of candidate answers into an evidence extractor, and extracting each noise evidence corresponding to each candidate answer from the text to be read and understood;

[0127] The question, candidate answers and corresponding noise data are input into an answer verifier, and a final answer with the highest probability is determined from the candidate answers.

[0128] 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 machine reading comprehension method in any of the above method embodiments is executed.

[0129] Fig. 9 FIG. 1 is a schematic diagram of the hardware structure of an electronic device of a machine reading comprehension method provided by another embodiment of the present application. Fig. 9 As shown, the device includes:

[0130] One or more processors 910 and memory 920, Fig. 9 A processor 910 is taken as an example. The apparatus of the machine reading comprehension method may further include: an input device 930 and an output device 940.

[0131] The processor 910, the memory 920, the input device 930 and the output device 940 may be connected via a bus or other means. Fig. 9 The example of connecting through bus is taken in the following.

[0132] The memory 920 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the machine reading comprehension method in the embodiment of the present application. The processor 910 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 920, that is, implementing the machine reading comprehension method in the above method embodiment.

[0133] The memory 920 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 920 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 920 may optionally include a memory remotely arranged relative to the processor 910, 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.

[0134] The input device 930 can receive input digital or character information. The output device 940 can include a display device such as a display screen.

[0135] The one or more modules are stored in the memory 920, and when executed by the one or more processors 910, the machine reading comprehension method in any of the above method embodiments is executed.

[0136] 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.

[0137] 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.

[0138] 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 machine reading comprehension method of any embodiment of the present invention.

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

[0140] (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.

[0141] (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.

[0142] (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.

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

[0144] 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.

[0145] 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.

[0146] 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.

[0147] 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 machine reading comprehension method, comprising: Input the text and question to be read into the answer retriever for preliminary prediction, and obtain multiple candidate answers and preliminary probabilities corresponding to each candidate answer; Inputting the text to be read and understood, the question and a plurality of candidate answers into an evidence extractor, extracting each noise evidence corresponding to each candidate answer from the text to be read and understood, wherein the noise evidence is an evidence sentence closely related to the answer; The question, candidate answers and corresponding noise data are input into an answer verifier, a final answer with the highest probability is determined from the candidate answers, and noise evidence corresponding to the final answer is provided as clean evidence.

2. The method according to claim 1, wherein: The step of inputting the question, each candidate answer and each corresponding noise data into the answer verifier, and determining the final answer with the highest probability from the candidate answers comprises: Input the question, each candidate answer and each corresponding noise data into the answer verifier, and output the reference probability of each candidate answer; Determine the final probability of each candidate answer based on the preliminary probability and reference probability of each candidate answer; The candidate answer corresponding to the final probability with the highest probability is determined as the final answer.

3. The method according to claim 1, wherein: The step of inputting the text to be read and understood, the question, and a plurality of candidate answers into an evidence extractor, and extracting each noise evidence corresponding to each candidate answer from the text to be read and understood comprises: Masking sentences in the text to be read and understood, and determining the change in the preliminary probability of each candidate answer to the question after the sentence is masked as the importance of the masked sentence; Based on the importance, it is determined whether the masked sentence is noise evidence.

4. A machine reading comprehension system, comprising: A preliminary prediction program module is used to input the text to be read and understood and the question into the answer retriever for preliminary prediction, and obtain multiple candidate answers and preliminary probabilities corresponding to each candidate answer; An evidence selection program module is used to input the text to be read and understood, the question and multiple candidate answers into an evidence extractor, and extract each noise evidence corresponding to each candidate answer from the text to be read and understood, wherein the noise evidence is an evidence sentence closely related to the answer; The answer verification program module is used to input the question, each candidate answer and the corresponding noise data into the answer verifier, determine the final answer with the highest probability from the candidate answers, and provide the noise evidence corresponding to the final answer as clean evidence.

5. The system according to claim 4, wherein: The answer verification program module is used to: Input the question, each candidate answer and each corresponding noise data into the answer verifier, and output the reference probability of each candidate answer; Determine the final probability of each candidate answer based on the preliminary probability and reference probability of each candidate answer; The candidate answer corresponding to the final probability with the highest probability is determined as the final answer.

6. The system according to claim 4, wherein: The evidence selection program module is used to: Masking sentences in the text to be read and understood, and determining the change in the preliminary probability of each candidate answer to the question after the sentence is masked as the importance of the masked sentence; Based on the importance, it is determined whether the masked sentence is noise evidence.

7. 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 3.

8. 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 3 are implemented.

Citation Information

Patent Citations

  • Reading understanding method based on graph convolution network

    CN111046661A

  • Inference reading understanding method and system based on serialized evidence extraction

    CN112347756A