Answering while Summarizing: Multi-task Learning for Multi-hop QA with Evidence Extraction

Kosuke Nishida, Kyosuke Nishida, Masaaki Nagata, Atsushi Otsuka, Itsumi Saito, Hisako Asano, Junji Tomita

Introduction

Reading comprehension (RC) is a task that uses textual sources to answer any question. It has seen significant progress since the publication of numerous datasets such as SQuAD Rajpurkar et al. (2016). To achieve the goal of RC, systems must be able to reason over disjoint pieces of information in the reference texts. Recently, multi-hop question answering (QA) datasets focusing on this capability, such as QAngaroo Welbl et al. (2018) and HotpotQA Yang et al. (2018), have been released.

Multi-hop QA faces two challenges. The first is the difficulty of reasoning. It is difficult for the system to find the disjoint pieces of information as evidence and reason using the multiple pieces of such evidence. The second challenge is interpretability. The evidence used to reason is not necessarily located close to the answer, so it is difficult for users to verify the answer.

Yang et al. (2018) released HotpotQA, an explainable multi-hop QA dataset, as shown in Figure 1. Hotpot QA provides the evidence sentences of the answer for supervised learning. The evidence extraction in multi-hop QA is more difficult than that in other QA problems because the question itself may not provide a clue for finding evidence sentences. As shown in Figure 1, the system finds an evidence sentence (Evidence 2) by relying on another evidence sentence (Evidence 1). The capability of being able to explicitly extract evidence is an advance towards meeting the above two challenges.

Here, we propose a Query Focused Extractor (QFE) that is based on a summarization model. We regard the evidence extraction of the explainable multi-hop QA as a query-focused summarization task. Query-focused summarization is the task of summarizing the source document with regard to the given query. QFE sequentially extracts the evidence sentences by using an RNN with an attention mechanism on the question sentence, while the existing method extracts each evidence sentence independently. This query-aware recurrent structure enables QFE to consider the dependency among the evidence sentences and cover the important information in the question sentence. Our overall model uses multi-task learning with a QA model for answer selection and QFE for evidence extraction. The multi-task learning with QFE is general in the sense that it can be combined with any QA model.

Moreover, we find that the recognizing textual entailment (RTE) task on a large textual database, FEVER Thorne et al. (2018), can be regarded as an explainable multi-hop QA task. We confirm that QFE effectively extracts the evidence both on HotpotQA for RC and on FEVER for RTE.

We propose QFE for explainable multi-hop QA. We use the multi-task learning of the QA model for answer selection and QFE for evidence extraction.

QFE adaptively determines the number of evidence sentences by considering the dependency among the evidence sentences and the coverage of the question.

QFE achieves state-of-the-art performance on both HotpotQA and FEVER in terms of the evidence extraction score and comparable performance to competitive models in terms of the answer selection score. QFE is the first model that outperformed the baseline on HotpotQA.

Task Definition

Here, we re-define explainable multi-hop QA so that it includes the RC and the RTE tasks.

Context CC (multiple texts), Query QQ (text)

Answer Type ATA_{T} (label), Answer String ASA_{S} (text), Evidence EE (multiple texts)

The Context CC is regarded as one connected text in the model. If the connected CC is too long (e.g. over 2000 words), it is truncated. The Query QQ is the query. The model answers QQ with an answer type ATA_{T} or an answer string ASA_{S}. The Answer Type ATA_{T} is selected from the answer candidates, such as ‘Yes’. The answer candidates depend on the task setting. The Answer String ASA_{S} exists only if there are not enough answer candidates to answer QQ. The answer string ASA_{S} is a short span in CC. Evidence EE consists of the sentences in CC and is required to answer QQ.

For RC, we tackle HotpotQA. In HotpotQA, the answer candidates are ‘Yes’, ‘No’, and ‘Span’. The answer string ASA_{S} exists if and only if the answer type ATA_{T} is ‘Span’. CC consists of ten Wikipedia paragraphs. The evidence EE consists of two or more sentences in CC.

For RTE, we tackle FEVER. In FEVER, the answer candidates are ‘Supports’, ‘Refutes’, and ‘Not Enough Info’. The answer string ASA_{S} does not exist. CC is the Wikipedia database. The evidence EE consists of the sentences in CC.

Proposed Method

This section first explains the overall model architecture, which contains our model as a module, and then the details of our QFE.

Except for the evidence layer, our model is the same as the baseline Clark and Gardner (2018) used in HotpotQA Yang et al. (2018). Figure 2 shows the model architecture. The input of the model is the context CC and the query QQ. The model has the following layers.

The Context Layer

The Matching Layer

The Evidence Layer

Then, the evidence layer concatenates the word-level vectors and the sentence-level vectors:

where the jj-th word in CC is included in the i(j)i(j)-th sentence in CC.

The Answer Layer

predicts the answer type ATA_{T} and the answer string ASA_{S} from C5C_{5}. The layer has stacked Bi-RNNs. The output of each Bi-RNN is mapped to the probability distribution by the fully connected layer and the softmax function.

Loss Function:

Our model uses multi-task learning with a loss function L=LA+LEL=L_{A}+L_{E}, where LAL_{A} is the loss of the answer and LEL_{E} is the loss of the evidence. The answer loss LAL_{A} is the sum of the cross-entropy losses for all probability distributions obtained by the answer layer. The evidence loss LEL_{E} is defined in subsection 3.3.

2 Query Focused Extractor

Query Focused Extractor (QFE) is shown as the red box in Figure 2. QFE is an extension of the extractive summarization model of Chen and Bansal (2018), which is not for query-focused settings. Chen and Bansal used an attention mechanism to extract sentences from the source document such that the summary would cover the important information in the source document. To focus on the query, QFE extracts sentences from CC with attention on QQ such that the evidence covers the important information with respect to QQ. Figure 3 shows an overview of QFE.

where et∈{1,⋯ ,ls}e^{t}\in\{1,\cdots,l_{s}\} is the index of the sentence extracted at step tt. We define Et={e1,⋯ ,et}E^{t}=\{e^{1},\cdots,e^{t}\} to be the set of sentences extracted until step tt.

QFE extracts the ii-th sentence according to the probability distribution (the light blue box):

Then, QFE selects et=argmax Pr⁡(i;Et−1)e^{t}=\mathop{\rm argmax}\limits~{}\Pr(i;E^{t-1}).

Let gtg^{t} be a query vector considering the importance at step tt. We define gtg^{t} as the glimpse vector Vinyals et al. (2016) (the green box):

3 Training Phase

In the training phase, we use teacher-forcing to make the loss function. The loss of the evidence LEL_{E} is the negative log likelihood regularized by a coverage mechanism See et al. (2017):

The max operation in the first term enables the sentence with the highest probability to be extracted. This operation means that QFE extracts the sentences in the predicted importance order. On the other hand, the evidence does not have the ground truth order in which it is to be extracted, so the loss function ignores the order of the evidence sentences. The coverage vector ctc^{t} is defined as ct=∑τ=1t−1ατ.c^{t}=\sum_{\tau=1}^{t-1}\alpha^{\tau}.

4 Test Phase

In the test phase, QFE terminates the extraction by reaching the EOE sentence. The predicted evidence is defined as

where E^t\hat{E}^{t} is the predicted evidence until step tt. QFE uses the beam search algorithm to search E^\hat{E}.

Experiments on RC

In HotpotQA, the query QQ is created by crowd workers, on the condition that answering QQ requires reasoning over two paragraphs in Wikipedia. The candidates of ATA_{T} are ‘Yes’, ‘No’, and ‘Span’. The answer string ASA_{S}, if it exists, is a span in the two paragraphs. The context CC is ten paragraphs, and its content has two settings. In the distractor setting, CC consists of the two gold paragraphs used to create QQ and eight paragraphs retrieved from Wikipedia by using TF-IDF with QQ. Table 1 shows the statistics of the distractor setting. In the fullwiki setting, all ten paragraphs of CC are retrieved paragraphs. Hence, CC may not include two gold paragraphs, and in that case, ASA_{S} and EE cannot be extracted. Therefore, the oracle model does not achieve 100 % accuracy. HotpotQA does not provide the training data for the fullwiki setting, and the training data in the fullwiki setting is the same as the distractor setting.

2 Experimental Setup

Our baseline model is the same as the baseline in Yang et al. (2018) except as follows. Whereas we use equation (1), they use

We also compared DFGN + BERT Xiao et al. (2019), Cognitive Graph Ding et al. (2019), GRN and BERT Plus, which were unpublished at the submission time (4 March 2019).

Evaluation metrics

We evaluated the prediction of ATA_{T}, ASA_{S} and EE by using the official metrics in HotpotQA. Exact match (EM) and partial match (F1) were used to evaluate both the answer and the evidence. For the answer evaluation, the score was measured by the classification accuracy of ATA_{T}. Only when ATA_{T} was ‘Span’ was the score also measured by the word-level matching of ASA_{S}. For the evidence, the partial match was evaluated by the sentence ids, so word-level partial matches were not considered. For metrics on both the answer and the evidence, we used Joint EM and Joint F1 Yang et al. (2018).

3 Results

Table 1 shows that, in the distractor setting, QFE performed the best in terms of the evidence extraction score among all models compared. It also achieved comparable performance in terms of the answer selection score and therefore achieved state-of-the-art performance on the joint EM and F1 metrics, which are the main metric on the dataset. QFE outperformed the baseline model in all metrics. Although our model does not use any pre-trained language model such as BERT Devlin et al. (2019) for encoding, it outperformed the methods that used BERT such as DFGN + BERT and BERT Plus. In particular, the improvement in the evidence EM score was +37.5 points against the baseline and +5.4 points against GRN.

In the fullwiki setting, Table 1 shows that QFE outperformed the baseline in all metrics. Compared with the unpublished model at the submission time, Cognitive Graph Ding et al. (2019) outperformed our model. There is a dataset shift problem Quionero-Candela et al. (2009) in HotpotQA, where the distribution of the number of gold evidence sentences and the answerability differs between training (i.e., the distractor setting) and test (i.e., the fullwiki setting) phases. In the fullwiki setting, the questions may have less than two gold evidence sentences or be even unanswerable. Our current QA and QFE models do not consider solving the dataset shift problem; our future work will deal with it.

Does QFE contribute to the performance?

Table 4 shows the results of the ablation study.

QFE performed the best among the models compared. Although the difference between our overall model and the baseline is the evidence extraction model, the answer scores also improved. QFE also outperformed the model that used only RNN extraction without glimpse.

QFE defines the terminal condition as reaching the EOE sentence, which we call adaptive termination. We confirmed that the adaptive termination of QFE contributed to its performance. We compared QFE with a baseline that extracts the two sentences with the highest scores, since the most frequent number of evidence sentences is two. QFE outperformed this baseline.

Our model uses the results of evidence extraction as a guide for selecting the answer, but it is not a pipeline model of evidence extraction and answer selection. Therefore, we evaluated a pipeline model that selects the answer string ASA_{S} only from the extracted evidence sentences, where the outputs of the answer layer corresponding to non-evidence sentences are masked with the prediction of the evidence extraction. Although almost all answer strings in the dataset are in the gold evidence sentences, the model performed poorly. We consider that the evidence extraction helps QA model to learn, but its performance is not enough to improve the performance of the answer layer with the pipeline model.

What are the characteristics of our evidence extraction?

Table 5 shows the evidence extraction performance in the distractor setting. Our model improves both precision and recall, and the improvement in precision is larger.

Figure 4 reveals the reason for the high EM and precision scores; QFE rarely extracts too much evidence. That is, it predicts the number of evidence sentences more accurately than the baseline. Table 5 also shows the correlation of our model about the number of evidence sentences is higher than that of the baseline.

We consider that the sequential extraction and the adaptive termination help to prevent over-extraction. In contrast, the baseline evaluates each sentence independently, so the baseline often extracts too much evidence.

What questions in HotpotQA are difficult for QFE?

We analyzed the difficulty of the questions for QFE from the perspective of the number of evidence sentences and reasoning type; the results are in Table 6 and Table 7.

First, we classified the questions by the number of gold evidence sentences. Table 6 shows the model performance for each number. The answer scores were low for the questions answered with five evidence sentences, which indicated that questions requiring much evidence are difficult. However, the five-evidence questions amount to only 80 samples, so this observation needs to be confirmed with more analysis. QFE performed well when the number of gold evidence sentences was two. Even though QFE was relatively conservative when extracting many evidence sentences, it was able to extract more than two sentences adaptively.

Second, we should mention the reasoning types in Table 7. HotpotQA has two reasoning types: entity bridge and entity comparison. Entity bridge means that the question mentioned one entity and the article of this entity has another entity required for the answer. Entity comparison means that the question compares two entities.

Table 7 shows that QFE works on each reasoning type. We consider that the difference between the results is due to the characteristics of the dataset. The answer F1 was relatively low in the comparison questions, because all yes/no questions belong to the comparison question and partial matches do not happen in yes/no questions. The evidence EM was relatively high in the comparison questions. One of the reason is that 77.1 % of the comparison questions have just two evidence sentences. This proportion is larger than that in the bridge questions, 64.9%. From another perspective, the comparison question sentence itself will contain the clues (i.e., two entities) required to gather all evidence sentences, while the bridge question sentence itself will provide only a part of the clues and require multi-hop reasoning, i.e., finding an evidence sentence from another evidence sentence. Therefore, the evidence extraction of the bridge questions is more difficult than that of the comparison questions.

Qualitative Analysis.

Table 8 shows an example of the behavior of QFE. In it, the system must compare the number of members of Kitchens of Distinction and with those of Royal Blood. The system extracted the two sentences describing the number of members. Then, the system extracted the EOE sentence.

We should note two sentences that were not extracted. The first sentence includes ‘members’ and ‘Kitchens of Distinction’, which are included in the query. However, this sentence does not mention the number of the members of Kitchens of Distinction. The second sentence also shows that Royal Blood is a duo. However, our model preferred Royal Blood (band name) to Royal Blood (album name) as the subject of the sentence.

Other examples are shown in Appendix A.2.

Experiments on RTE

In FEVER, the query QQ is created by crowd workers. Annotators are given a randomly sampled sentence and a corresponding dictionary. The given sentence is from Wikipedia. The key-value of the corresponding dictionary consists of an entity and a description of the entity. Entities are those that have a hyperlink from the given sentence. The description is the first sentence of the entity’s Wikipedia page. Only using the information in the sentence and the dictionary, annotators create a claim as QQ. The candidates of ATA_{T} are ‘Supports’, ‘Refutes’ and ‘Not Enough Info (NEI)’. The proportion of samples with more than one evidence sentence is 27.3% in the samples whose label is not ‘NEI’. The context CC is the Wikipedia database shared among all samples. Table 9 shows the statistics.

2 Experimental Setup

Because CC is large, we used the NSMN document retriever Nie et al. (2019) and gave only the top-five paragraphs to our model. Similar to NSMN, in order to capture the semantic and numeric relationships, we used 30-dimensional WordNet features and five-dimensional number embeddings. The WordNet features are binaries reflecting the existence of hypernymy/antonymy words in the input. The number embedding is a real-valued embedding assigned to any unique number.

Because the number of samples in the training data is biased on the answer type ATA_{T}, randomly selected samples were copied in order to equalize the numbers. Our model used ensemble learning of 11 randomly initialized models. For the evidence extraction, we used the union of the predicted evidences of each model. If the model predicts ATA_{T} as ‘Supports’ or ‘Refutes’, the model extracts at least one sentence. Details of the implementation are in Appendix A.1.

We evaluated the prediction of ATA_{T} and the evidence EE by using the official metrics in FEVER. ATA_{T} was evaluated in terms of the label accuracy. EE was evaluated in terms of precision, recall and F1, which were measured by sentence id. The FEVER score was used as a metric accounting for both ATA_{T} and EE. The FEVER score of a sample is 1 if the predicted evidence includes all gold evidence and the answer is correct. That is, the FEVER score emphasizes the recall of extracting evidence sentences over the precision.

3 Results

Table 3 shows QFE achieved state-of-the-art performance in terms of the evidence F1 and comparable performance in terms of label accuracy to the competitive models. The FEVER score of our model is lower than those of other models, because the FEVER score emphasizes recall. However, the importance of the precision and the recall depends on the utilization. QFE is suited to situations where concise output is preferred.

What are the characteristics of our evidence extraction?

Table 11 shows our model achieved high performance on all metrics of evidence extraction. On the test set, it ranked in 2nd place in precision, 3rd place in recall, and 1st place in F1. As for the results on the development set, QFE extracted with higher precision than recall. This tendency was the same as in the RC evaluation. The single model has a larger difference between precision and recall. The ensemble model improves recall and F1.

Related Work

RC is performed by matching the context and the query Seo et al. (2017). Many RC datasets referring to multiple texts have been published, such as MS MARCO Nguyen et al. (2016) and TriviaQA Joshi et al. (2017). For such datasets, the document retrieval model is combined with the context-query matching model Chen et al. (2017a); Wang et al. (2018a, b); Nishida et al. (2018).

Some techniques have been proposed for understanding multiple texts. Clark and Gardner (2018) used simple methods, such as connecting texts. Choi et al. (2017); Zhong et al. (2019) proposed a combination of coarse reading and fine reading. However, Sugawara et al. (2018) indicated that most questions in RC require reasoning from just one sentence including the answer. The proportion of such questions is more than 63.2 % in TriviaQA and 86.2 % in MS MARCO.

This observation is one of the motivations behind multi-hop QA. HotpotQA Yang et al. (2018) is a task including supervised evidence extraction. QAngaroo Welbl et al. (2018) is a task created by using Wikipedia entity links. The difference between QAngaroo and our focus is two-fold: (1) QAngaroo does not have supervised evidence and (2) the questions in QAngaroo are inherently limited because the dataset is constructed using a knowledge base. MultiRC Khashabi et al. (2018) is also an explainable multi-hop QA dataset that provides gold evidence sentences. However, it is difficult to compare the performance of the evidence extraction with other studies because its evaluation script and leaderboard do not report the evidence extraction score.

Because annotation of the evidence sentence is costly, unsupervised learning of the evidence extraction is another important issue. Wang et al. (2019) tackled unsupervised learning for explainable multi-hop QA, but their model is restricted to the multiple-choice setting.

2 Recognizing Textual Entailment

RTE Bowman et al. (2015); Williams et al. (2018) is performed by sentence matching Rocktäschel et al. (2016); Chen et al. (2017b).

FEVER Thorne et al. (2018) has the aim of verification and fact checking for RTE on a large database. FEVER requires three sub tasks: document retrieval, evidence extraction, and answer prediction. In the previous work, the sub tasks are performed using pipelined models Nie et al. (2019); Yoneda et al. (2018). In contrast, our approach performs evidence extraction and answer prediction simultaneously by regarding FEVER as an explainable multi-hop QA task.

3 Summarization

A typical approach to sentence-level extractive summarization has an encoder-decoder architecture Cheng and Lapata (2016); Nallapati et al. (2017); Narayan et al. (2018). Sentence-level extractive summarization is also used for content selection in abstractive summarization (Chen and Bansal, 2018). The model extracts sentences in order of importance and edits them. We have extended this model so that it can be used for evidence extraction because we consider that the evidence must be extracted in order of importance rather than the original order, which the conventional models use.

Conclusion

We consider that the main contributions of our study are (1) the QFE model that is based on a summarization model for the explainable multi-hop QA, (2) the dependency among the evidence and the coverage of the question due to the usage of the summarization model, and (3) the state-of-the-art performance in evidence extraction in both RC and RTE tasks.

Regarding RC, we confirmed that the architecture with QFE, which is a simple replacement of the baseline, achieved state-of-the-art performance in the task setting. The ablation study showed that the replacement of the evidence extraction model with QFE improves performance. Our adaptive termination contributes to the exact matching and the precision score of the evidence extraction. The difficulty of the questions for QFE depends on the number of the required evidence sentences. This study is the first to base its experimental discussion on HotpotQA.

Regarding RTE, we confirmed that, compared with competing models, the architecture with QFE has a higher evidence extraction score and comparable label prediction score. This study is the first to show a joint approach for RC and FEVER.

References

Appendix A Supplemental Material

We implemented our model in PyTorch and trained it on four Nvidia Tesla P100 GPUs. The RNN was a gated recurrent unit (GRU) (Cho et al., 2014). The optimizer was Adam Kingma and Ba (2014). The word-based word embeddings were fixed GloVe 300-dimensional vectors Pennington et al. (2014). The character-based word embeddings were obtained using trainable eight-dimensional character embeddings and a 100-dimensional CNN and max pooling. Table 12 shows other hyper parameters.

In FEVER, if the model predicts ATA_{T} as ‘Supports’ or ‘Refutes’, the model extracts at least one sentence by removing the EOE sentence from the candidates to be extracted at t=1t=1.

A.2 Samples of QFE Outputs

The section describes some examples of QFE outputs. Table 13 shows examples on HotpotQA, and Table 14 shows examples on FEVER. We should note that QFE does not necessarily extract the sentence with the highest probability score at any step because QFE determines the evidence by using the beam search algorithm.

Three or four correct evidence sentences are extracted in the first and second examples in Table 13. The third example is a typical mistake of QFE; QFE extracts too few evidence sentences. In the fourth example, QFE extracts too many evidence sentences. The fifth and sixth questions are typical yes/no questions in HotpotQA. However, like other QA models, our model makes mistakes in answering such easy questions.

One or two evidence sentences are extracted correctly in the first, second, and third examples in Table 14. In FEVER, most claims requiring two evidence sentences can be verified by either of two correct evidence sentences, like in the second example. However, there are some claims that require both evidence sentences, like the third example. The fourth example is a typical mistake of QFE; QFE extracts too few evidence sentences. In the fifth and sixth example, the answers of the questions are ‘Not Enough Info’. QFE unfortunately extracts evidence when the QA model predicts another label.