Constructing Datasets for Multi-hop Reading Comprehension Across Documents

Johannes Welbl, Pontus Stenetorp, Sebastian Riedel

Introduction

Devising computer systems capable of answering questions about knowledge described using text has been a longstanding challenge in Natural Language Processing (NLP). Contemporary end-to-end Reading Comprehension (RC) methods can learn to extract the correct answer span within a given text and approach human-level performance [Kadlec et al., 2016, Seo et al., 2017a]. However, for existing datasets, relevant information is often concentrated locally within a single sentence, emphasizing the role of locating, matching, and aligning information between query and support text. For example, ?) observed that a simple binary word-in-query indicator feature boosted the relative accuracy of a baseline model by 27.9%.

We argue that, in order to further the ability of machine comprehension methods to extract knowledge from text, we must move beyond a scenario where relevant information is coherently and explicitly stated within a single document. Methods with this capability would aid Information Extraction (IE) applications, such as discovering drug-drug interactions [Gurulingappa et al., 2012] by connecting protein interactions reported across different publications. They would also benefit search [Carpineto and Romano, 2012] and Question Answering (QA) applications [Lin and Pantel, 2001] where the required information cannot be found in a single location.

Figure 1 shows an example from Wikipedia, where the goal is to identify the country property of the Hanging Gardens of Mumbai. This cannot be inferred solely from the article about them without additional background knowledge, as the answer is not stated explicitly. However, several of the linked articles mention the correct answer India (and other countries), but cover different topics (e.g. Mumbai, Arabian Sea, etc.). Finding the answer requires multi-hop reasoning: figuring out that the Hanging Gardens are located in Mumbai, and then, from a second document, that Mumbai is a city in India.

We define a novel RC task in which a model should learn to answer queries by combining evidence stated across documents. We introduce a methodology to induce datasets for this task and derive two datasets. The first, WikiHop, uses sets of Wikipedia articles where answers to queries about specific properties of an entity cannot be located in the entity’s article. In the second dataset, MedHop, the goal is to establish drug-drug interactions based on scientific findings about drugs and proteins and their interactions, found across multiple Medline abstracts. For both datasets we draw upon existing Knowledge Bases (KBs), Wikidata and DrugBank, as ground truth, utilizing distant supervision [Mintz et al., 2009] to induce the data – similar to ?) and ?).

We establish that for 74.1% and 68.0% of the samples, the answer can be inferred from the given documents by a human annotator. Still, constructing multi-document datasets is challenging; we encounter and prescribe remedies for several pitfalls associated with their assembly – for example, spurious co-locations of answers and specific documents.

For both datasets we then establish several strong baselines and evaluate the performance of two previously proposed competitive RC models [Seo et al., 2017a, Weissenborn et al., 2017]. We find that one can integrate information across documents, but neither excels at selecting relevant information from a larger documents set, as their accuracy increases significantly when given only documents guaranteed to be relevant. The best model reaches 54.5% on an annotated test set, compared to human performance at 85.0%, indicating ample room for improvement.

In summary, our key contributions are as follows: Firstly, proposing a cross-document multi-step RC task, as well as a general dataset induction strategy. Secondly, assembling two datasets from different domains and identifying dataset construction pitfalls and remedies. Thirdly, establishing multiple baselines, including two recently proposed RC models, as well as analysing model behaviour in detail through ablation studies.

Task and Dataset Construction Method

We will now formally define the multi-hop RC task, and a generic methodology to construct multi-hop RC datasets. Later, in Sections 3 and 4 we will demonstrate how this method is applied in practice by creating datasets for two different domains.

A model is given a query qq, a set of supporting documents SqS_{q}, and a set of candidate answers CqC_{q} – all of which are mentioned in SqS_{q}. The goal is to identify the correct answer a  Cqa^{*}~{}\in~{}C_{q} by drawing on the support documents SqS_{q}. Queries could potentially have several true answers when not constrained to rely on a specific set of support documents – e.g., queries about the parent of a certain individual. However, in our setup each sample has only one true answer among CqC_{q} and SqS_{q}. Note that even though we will utilize background information during dataset assembly, such information will not be available to a model: the document set will be provided in random order and without any metadata. While certainly beneficial, this would distract from our goal of fostering end-to-end RC methods that infer facts by combining separate facts stated in text.

Dataset Assembly

We assume that there exists a document corpus DD, together with a KB containing fact triples (s,r,o)(s,r,o) – with subject entity ss, relation rr, and object entity oo. For example, one such fact could be (Hanging_Gardens_of_Mumbai, country, India). We start with individual KB facts and transform them into query-answer pairs by leaving the object slot empty, i.e. q=(s,r,?)q=(s,r,?) and a=oa^{*}=o.

Next, we define a directed bipartite graph, where vertices on one side correspond to documents in DD, and vertices on the other side are entities from the KB – see Figure 2 for an example. A document node dd is connected to an entity ee if ee is mentioned in dd, though there may be further constraints when defining the graph connectivity. For a given (q,a)(q,a^{*}) pair, the candidates CqC_{q} and support documents SqDS_{q}\subseteq D are identified by traversing the bipartite graph using breadth-first search; the documents visited will become the support documents SqS_{q}.

As the traversal starting point, we use the node belonging to the subject entity ss of the query qq. As traversal end points, we use the set of all entity nodes that are type-consistent answers to qq. To determine entities which are type-consistent for a query qq, we consider all entities which are observed as object in a fact with rr as relation type – including the correct answer. Note that whenever there is another fact (s,r,o)(s,r,o^{\prime}) in the KB, i.e. a fact producing the same qq but with a different aa^{*}, we will not include oo^{\prime} into the set of end points for this sample. This ensures that precisely one of the end points corresponds to a correct answer to qq.Here we rely on a closed-world assumption; that is, we assume that the facts in the KB state all true facts.

When traversing the graph starting at ss, several end points will be visited, though generally not all; those visited define the candidate set CqC_{q}. If however the correct answer aa^{*} is not among them we discard the (q,a)(q,a^{*}) pair. The documents visited to reach the end points will define the support document set SqS_{q}. That is, SqS_{q} comprises chains of documents leading not only from the query subject to the correct answer, but also to type-consistent false candidates.

With this methodology, relevant textual evidence for (q,a)(q,a^{*}) will be spread across documents along the chain connecting ss and aa^{*} – ensuring that multi-hop reasoning goes beyond resolving co-reference within a single document. Note that including other type-consistent candidates alongside aa^{*} as end points in the graph traversal – and thus into the support documents – renders the task considerably more challenging [Jia and Liang, 2017]. Models could otherwise identify aa^{*} in the documents by simply relying on type-consistency heuristics. It is worth pointing out that by introducing alternative candidates we counterbalance a type-consistency bias, in contrast to ?) and ?) who instead rely on entity masking.

WikiHop

Wikipedia contains an abundance of human-curated, multi-domain information and has several structured resources such as infoboxes and Wikidata [Vrandečić, 2012] associated with it. Wikipedia has thus been used for a wealth of research to build datasets posing queries about a single sentence [Morales et al., 2016, Levy et al., 2017] or article [Yang et al., 2015, Hewlett et al., 2016, Rajpurkar et al., 2016]. However, no attempt has been made to construct a cross-document multi-step RC dataset based on Wikipedia.

A recently proposed RC dataset is WikiReading [Hewlett et al., 2016], where Wikidata tuples (item, property, answer) are aligned with the Wikipedia articles regarding their item. The tuples define a slot filling task with the goal of predicting the answer, given an article and property. One problem with using WikiReading as an extractive RC dataset is that 54.4% of the samples do not state the answer explicitly in the given article [Hewlett et al., 2016]. However, we observed that some of the articles accessible by following hyperlinks from the given article often state the answer, alongside other plausible candidates.

We now apply the methodology from Section 2 to create a multi-hop dataset with Wikipedia as the document corpus and Wikidata as structured knowledge triples. In this setup, (item, property, answer) Wikidata tuples correspond to (s,r,o)(s,r,o) triples, and the item and property of each sample together form our query qq – e.g., (Hanging Gardens of Mumbai, country, ?). Similar to ?) we only use the first paragraph of an article, as relevant information is more often stated in the beginning. Starting with all samples in WikiReading, we first remove samples where the answer is stated explicitly in the Wikipedia article about the item. We thus use a disjoint subset of WikiReading compared to ?) to construct WikiHop.

The bipartite graph is structured as follows: (1) for edges from articles to entities: all articles mentioning an entity ee are connected to ee; (2) for edges from entities to articles: each entity ee is only connected to the Wikipedia article about the entity. Traversing the graph is then equivalent to iteratively following hyperlinks to new articles about the anchor text entities.

For a given query-answer pair, the item entity is chosen as the starting point for the graph traversal. A traversal will always pass through the article about the item, since this is the only document connected from there. The end point set includes the correct answer alongside other type-consistent candidate expressions, which are determined by considering all facts belonging to WikiReading training samples, selecting those triples with the same property as in qq and keeping their answer expressions. As an example, for the Wikidata property country, this would be the set {France,Russia,...}\{\text{France},\text{Russia},...\}. We executed graph traversal up to a maximum chain length of 3 documents. To not pose unreasonable computational constraints, samples with more than 64 different support documents or 100 candidates are removed, discarding \approx1% of the samples.

2 Mitigating Dataset Biases

Dataset creation is always fraught with the risk of inducing unintended errors and biases [Chen et al., 2016, Schwartz et al., 2017]. As ?) only carried out limited analysis of their WikiReading dataset, we present an analysis of the downstream effects we observe on WikiHop.

A first observation is that there is a significant bias in the answer distribution of WikiReading. For example, in the majority of the samples the property country has the United States of America as the answer. A simple majority class baseline would thus prove successful, but would tell us little about multi-hop reasoning. To combat this issue, we subsampled the dataset to ensure that samples of any one particular answer candidate make up no more than 0.1%0.1\% of the dataset, and omitted articles about the United States.

Document-Answer Correlations

A problem unique to our multi-document setting is the possibility of spurious correlations between candidates and documents induced by the graph traversal method. In fact, if we were not to address this issue, a model designed to exploit these regularities could achieve 74.6% accuracy (detailed in Section 6).

Concretely, we observed that certain documents frequently co-occur with the correct answer, independently of the query. For example, if the article about London is present in SqS_{q}, the answer is likely to be the United Kingdom, independent of the query type or entity in question. Appendix C contains a list with several additional examples.

We designed a statistic to measure this effect and then used it to sub-sample the dataset. The statistic counts how often a candidate cc is observed as the correct answer when a certain document is present in SqS_{q} across training set samples. More formally, for a given document dd and answer candidate cc, let cooccurrence(d,c)\text{\emph{cooccurrence}}(d,c) denote the total count of how often dd co-occurs with cc in a sample where cc is also the correct answer. We use this statistic to filter the dataset, by discarding samples with at least one document-candidate pair (d,c)(d,c) for which cooccurrence(d,c)>20\text{\emph{cooccurrence}}(d,c)>20.

MedHop

Following the same general methodology, we next construct a second dataset for the domain of molecular biology – a field that has been undergoing exponential growth in the number of publications [Cohen and Hunter, 2004]. The promise of applying NLP methods to cope with this increase has led to research efforts in IE [Hirschman et al., 2005, Kim et al., 2011] and QA for biomedical text [Hersh et al., 2007, Nentidis et al., 2017]. There are a plethora of manually curated structured resources [Ashburner et al., 2000, The UniProt Consortium, 2017] which can either serve as ground truth or to induce training data using distant supervision [Craven and Kumlien, 1999, Bobic et al., 2012]. Existing RC datasets are either severely limited in size [Hersh et al., 2007] or cover a very diverse set of query types [Nentidis et al., 2017], complicating the application of neural models that have seen successes for other domains [Wiese et al., 2017].

A task that has received significant attention is detecting Drug-Drug Interactions (DDIs). Existing DDI efforts have focused on explicit mentions of interactions in single sentences [Gurulingappa et al., 2012, Percha et al., 2012, Segura-Bedmar et al., 2013]. However, as shown by ?), cross-sentence relation extraction increases the number of available relations. It is thus likely that cross-document interactions would further improve recall, which is of particular importance considering interactions that are never stated explicitly – but rather need to be inferred from separate pieces of evidence. The promise of multi-hop methods is finding and combining individual observations that can suggest previously unobserved DDIs, aiding the process of making scientific discoveries, yet not directly from experiments, but by inferring them from established public knowledge [Swanson, 1986].

DDIs are caused by Protein-Protein Interaction (PPI) chains, forming biomedical pathways. If we consider PPI chains across documents, we find examples like in Figure 3. Here the first document states that the drug Leuprolide causes GnRH receptor-induced synaptic potentiations, which can be blocked by the protein Progonadoliberin-1. The last document states that another drug, Triptorelin, is a superagonist of the same protein. It is therefore likely to affect the potency of Leuprolide, describing a way in which the two drugs interact. Besides the true interaction there is also a false candidate Urofollitropin for which, although mentioned together with GnRH receptor within one document, there is no textual evidence indicating interactions with Leuprolide.

We construct MedHop using DrugBank [Law et al., 2014] as structured knowledge resource and research paper abstracts from Medline as documents. There is only one relation type for DrugBank facts, interacts_with, that connects pairs of drugs – an example of a MedHop query would thus be (Leuprolide, interacts_with, ?). We start by processing the 2016 Medline release using the preprocessing pipeline employed for the BioNLP 2011 Shared Task [Stenetorp et al., 2011]. We restrict the set of entities in the bipartite graph to drugs in DrugBank and human proteins in Swiss-Prot [Bairoch et al., 2004]. That is, the graph has drugs and proteins on one side, and Medline abstracts on the other.

The edge structure is as follows: (1) There is an edge from a document to all proteins mentioned in it. (2) There is an edge between a document and a drug, if this document also mentions a protein known to be a target for the drug according to DrugBank. This edge is bidirectional, i.e. it can be traversed both ways, since there is no canonical document describing each drug – thus one can “hop” to any document mentioning the drug and its target. (3) There is an edge from a protein pp to a document mentioning pp, but only if the document also mentions another protein pp^{\prime} which is known to interact with pp according to Reactome [Fabregat et al., 2016]. Given our distant supervision assumption, these additionally constraining requirements err on the side of precision.

As a mention, similar to ?), we consider any exact match of a name variant of a drug or human protein in DrugBank or Swiss-Prot. For a given DDI (drug1, interacts_with, drug2), we then select drug1 as the starting point for the graph traversal. As possible end points, we consider any other drug, apart from drug1 and those interacting with drug1 other than drug2. Similar to WikiHop, we exclude samples with more than 64 support documents and impose a maximum document length of 300 tokens plus title.

The bipartite graph for MedHop is orders of magnitude more densely connected than for WikiHop. This can lead to potentially large support document sets SqS_{q}, to a degree where it becomes computationally infeasible for a majority of existing RC models. After the traversal has finished, we subsample documents by first adding a set of documents that connects the drug in the query with its answer. We then iteratively add documents to connect alternative candidates until we reach the limit of 64 documents – while ensuring that all candidates have the same number of paths through the bipartite graph.

Mitigating Candidate Frequency Imbalance

Some drugs interact with more drugs than others – Aspirin for example interacts with 743 other drugs, but Isotretinoin with only 34. This leads to similar candidate frequency imbalance issues as with WikiHop – but due to its smaller size MedHop is difficult to sub-sample. Nevertheless we can successfully combat this issue by masking entity names, detailed in Section 6.2.

Dataset Analysis

Table 1 shows the dataset sizes. Note that WikiHop inherits the train, development, and test set splits from WikiReading – i.e., the full dataset creation, filtering, and sub-sampling pipeline is executed on each set individually. Also note that sub-sampling according to document-answer correlation significantly reduces the size of WikiHop from 528{\approx}528K training samples to 44{\approx}44K. While in terms of samples, both WikiHop and MedHop are smaller than other large-scale RC datasets, such as SQuAD and WikiReading, the supervised learning signal available per sample is arguably greater. One could, for example, re-frame the task as binary path classification: given two entities and a document path connecting them, determine whether a given relation holds. For such a case, WikiHop and MedHop would have more than 1M and 150K paths to be classified, respectively. Instead, in our formulation, this corresponds to each single sample containing the supervised learning signal from an average of 19.5 and 59.8 unique document paths.

Table 2 shows statistics on the number of candidates and documents per sample on the respective training sets. For MedHop, the majority of samples have 9 candidates, due to the way documents are selected up until a maximum of 64 documents is reached. Few samples have less than 9 candidates, and samples would have far more false candidates if more than 64 support documents were included. The number of query types in WikiHop is 277, whereas in MedHop there is only one: interacts_with.

To establish the quality of the data and analyze potential distant supervision errors, we sampled and annotated 100 samples from each development set.

Table 3 lists characteristics along with the proportion of samples that exhibit them. For 45%, the true answer either uniquely follows from multiple texts directly or is suggested as likely. For 26%, more than one candidate is plausibly supported by the documents, including the correct answer. This is often due to hypernymy, where the appropriate level of granularity for the answer is difficult to predict – e.g. (west suffolk, administrative_entity, ?) with candidates suffolk and england. This is a direct consequence of including type-consistent false answer candidates from Wikidata, which can lead to questions with several true answers. For 9% of the cases a single document suffices; these samples contain a document that states enough information about item and answer together. For example, the query (Louis Auguste, father, ?) has the correct answer Louis XIV of France, and French king Louis XIV is mentioned within the same document as Louis Auguste. Finally, although our task is significantly more complex than most previous tasks where distant supervision has been applied, the distant supervision assumption is only violated for 20% of the samples – a proportion similar to previous work [Riedel et al., 2010]. These cases can either be due to conflicting information between Wikidata and Wikipedia (8%), e.g. when the date of birth for a person differs between Wikidata and what is stated in the Wikipedia article, or because the answer is consistent but cannot be inferred from the support documents (12%). When answering 100 questions, the annotator knew the answer prior to reading the documents for 9%, and produced the correct answer after reading the document sets for 74% of the cases. On 100 questions of a validated portion of the Dev set (see Section 5.3), 85% accuracy was reached.

MedHop

Since both document complexity and number of documents per sample were significantly larger compared to WikiHop, (see Figure 4 in Appendix B) it was not feasible to ask an annotator to read all support documents for 100 samples. We opted to verify the dataset quality by providing only the subset of documents relevant to support the correct answer, i.e., those traversed along the path reaching the answer. The annotator was asked if the answer to the query “follows”, “is likely”, or “does not follow”, given the relevant documents. 68% of the cases were considered as “follows” or as “is likely”. The majority of cases violating the distant supervision assumption were due to lacking a necessary PPI in one of the connecting documents.

2 Crowdsourced Human Annotation

We asked human annotators on Amazon Mechanical Turk to evaluate samples of the WikiHop development set. Similar to our qualitative analysis of MedHop, annotators were shown the query-answer pair as a fact and the chain of relevant documents leading to the answer. They were then instructed to answer (1) whether they knew the fact before; (2) whether the fact follows from the texts (with options “fact follows”, “fact is likely”, and “fact does not follow”); and (3); whether a single or several of the documents are required. Each sample was shown to three annotators and a majority vote was used to aggregate the annotations. Annotators were familiar with the fact 4.6% of the time; prior knowledge of the fact is thus not likely to be a confounding effect on the other judgments. Inter-annotator agreement as measured by Fleiss’ kappa is 0.253 in (2), and 0.281 in (3) – indicating a fair overall agreement, according to ?). Overall, 9.5% of samples have no clear majority in (2).

Among samples with a majority judgment, 59.8% are cases where the fact “follows”, for 14.2% the fact is judged as “likely”, and as “not follow” for 25.9%. This again provides good justification for the distant supervision strategy.

Among the samples with a majority vote for (2) of either “follows” or “likely”, 55.9% were marked with a majority vote as requiring multiple documents to infer the fact, and 44.1% as requiring only a single document. The latter number is larger than initially expected, given the construction of samples through graph traversal. However, when inspecting cases judged as “single” more closely, we observed that many indeed provide a clear hint about the correct answer within one document, but without stating it explicitly. For example, for the fact (witold cichy, country_of_citizenship, poland) with documents d1d_{1}: Witold Cichy (born March 15, 1986 in Wodzisław Śląski) is a Polish footballer[…] and d2d_{2}: Wodzisław Śląski[…] is a town in Silesian Voivodeship, southern Poland[…], the information provided in d1d_{1} suffices for a human given the background knowledge that Polish is an attribute related to Poland, removing the need for d2d_{2} to infer the answer.

3 Validated Test Sets

While training models on distantly supervised data is useful, one should ideally evaluate methods on a manually validated test set. We thus identified subsets of the respective test sets for which the correct answer can be inferred from the text. This is in contrast to prior work such as ?), ?), and ?), who evaluate only on distantly supervised samples. For WikiHop, we applied the same annotation strategy as described in Section 5.2. The validated test set consists of those samples labeled by a majority of annotators (at least 2 of 3) as “follows”, and requiring “multiple” documents. While desirable, crowdsourcing is not feasible for MedHop since it requires specialist knowledge. In addition, the number of document paths is \approx3x larger, which along with the complexity of the documents greatly increases the annotation time. We thus manually annotated 20% of the MedHop test set and identified the samples for which the text implies the correct answer and where multiple documents are required.

Experiments

This section describes experiments on WikiHop and MedHop with the goal of establishing the performance of several baseline models, including recent neural RC models. We empirically demonstrate the importance of mitigating dataset biases, probe whether multi-step behavior is beneficial for solving the task, and investigate if RC models can learn to perform lexical abstraction. Training will be conducted on the respective training sets, and evaluation on both the full test set and validated portion (Section 5.3) allowing for a comparison between the two.

Selects a random candidate; note that the number of candidates differs between samples.

Max-mention

Predicts the most frequently mentioned candidate in the support documents SqS_{q} of a sample – randomly breaking ties.

Majority-candidate-per-query-type

Predicts the candidate cCqc\in C_{q} that was most frequently observed as the true answer in the training set, given the query type of qq. For WikiHop, the query type is the property pp of the query; for MedHop there is only the single query type – interacts_with.

TF-IDF

Retrieval-based models are known to be strong QA baselines if candidate answers are provided [Clark et al., 2016, Welbl et al., 2017]. They search for individual documents based on keywords in the question, but typically do not combine information across documents. The purpose of this baseline is to see if it is possible to identify the correct answer from a single document alone through lexical correlations. The model forms its prediction as follows: For each candidate cc, the concatenation of the query qq with cc is fed as an OR query into the whoosh text retrieval engine. https://pypi.python.org/pypi/Whoosh/ It then predicts the candidate with the highest TF-IDF similarity score:

Document-cue

During dataset construction we observed that certain document-answer pairs appear more frequently than others, to the effect that the correct candidate is often indicated solely by the presence of certain documents in SqS_{q}. This baseline captures how easy it is for a model to exploit these informative document-answer co-occurrences. It predicts the candidate with highest score across CqC_{q}:

Extractive RC models: FastQA and BiDAF

In our experiments we evaluate two recently proposed LSTM-based extractive QA models: the Bidirectional Attention Flow model (BiDAF, ?)), and FastQA [Weissenborn et al., 2017], which have shown a robust performance across several datasets. These models predict an answer span within a single document. We adapt them to a multi-document setting by sequentially concatenating all dSqd\in S_{q} in random order into a superdocument, adding document separator tokens. During training, the first answer mention in the concatenated document serves as the gold span. We also tested assigning the gold span randomly to any one of the mention of the answer, with insignificant changes. At test time, we measured accuracy based on the exact match between the prediction and answer, both lowercased, after removing articles, trailing white spaces and punctuation, in the same way as ?). To rule out any signal stemming from the order of documents in the superdocument, this order is randomized both at training and test time. In a preliminary experiment we also trained models using different random document order permutations, but found that performance did not change significantly.

For BiDAF, the default hyperparameters from the implementation of ?) are used, with pretrained GloVe [Pennington et al., 2014] embeddings. However, we restrict the maximum document length to 8,192 tokens and hidden size to 20, and train for 5,000 iterations with batchsize 16 in order to fit the model into memory. The superdocument has a larger number of tokens compared to e.g. SQuAD, thus the additional memory requirements. For FastQA we use the implementation provided by the authors, also with pre-trained GloVe embeddings, no character-embeddings, no maximum support length, hidden size 50, and batch size 64 for 50 epochs.

While BiDAF and FastQA were initially developed and tested on single-hop RC datasets, their usage of bidirectional LSTMs and attention over the full sequence theoretically gives them the capacity to integrate information from different locations in the (super-)document. In addition, BiDAF employs iterative conditioning across multiple layers, potentially making it even better suited to integrate information found across the sequence.

2 Lexical Abstraction: Candidate Masking

The presence of lexical regularities among answers is a problem in RC dataset assembly – a phenomenon already observed by ?). When comprehending a text, the correct answer should become clear from its context – rather than from an intrinsic property of the answer expression. To evaluate the ability of models to rely on context alone, we created masked versions of the datasets: we replace any candidate expression randomly using 100 unique placeholder tokens, e.g. “Mumbai is the most populous city in MASK7.” Masking is consistent within one sample, but generally different for the same expression across samples. This not only removes answer frequency cues, it also removes statistical correlations between frequent answer strings and support documents. Models consequently cannot base their prediction on intrinsic properties of the answer expression, but have to rely on the context surrounding the mentions.

3 Results and Discussion

Table 5 shows the experimental outcomes for WikiHop and MedHop, together with results for the masked setting; we will first discuss the former. A first observation is that candidate mention frequency does not produce better predictions than a random guess. Predicting the answer most frequently observed at training time achieves strong results: as much as 38.8% / 44.2% and 58.4% / 67.3% on the two datasets, for the full and validated test sets respectively. That is, a simple frequency statistic together with answer type constraints alone is a relatively strong predictor, and the strongest overall for the “unmasked” version of MedHop.

The TF-IDF retrieval baseline clearly performs better than random for WikiHop, but is not very strong overall. That is, the question tokens are helpful to detect relevant documents, but exploiting only this information compares poorly to the other baselines. On the other hand, as no co-mention of an interacting drug pair occurs within any single document in MedHop, the TF-IDF baseline performs worse than random. We conclude that lexical matching with a single support document is not enough to build a strong predictive model for both datasets.

The Document-cue baseline can predict more than a third of the samples correctly, for both datasets, even after sub-sampling frequent document-answer pairs for WikiHop. The relative strength of this and other baselines proves to be an important issue when designing multi-hop datasets, which we addressed through the measures described in Section 3.2. In Table 4 we compare the two relevant baselines on WikiHop before and after applying filtering measures. The absolute strength of these baselines before filtering shows how vital addressing this issue is: 74.6% accuracy could be reached through exploiting the cooccurrence(d,c)\text{\emph{cooccurrence}}(d,c) statistic alone. This underlines the paramount importance of investigating and addressing dataset biases that otherwise would confound seemingly strong RC model performance. The relative drop demonstrates that the measures undertaken successfully mitigate the issue. A downside to aggressive filtering is a significantly reduced dataset size, rendering it infeasible for smaller datasets like MedHop.

Among the two neural models, BiDAF is overall strongest across both datasets – this is in contrast to the reported results for SQuAD where their performance is nearly indistinguishable. This is possibly due to the iterative latent interactions in the BiDAF architecture: we hypothesize that these are of increased importance for our task, where information is distributed across documents. It is worth emphasizing that unlike the other baselines, both FastQA and BiDAF predict the answer by extracting a span from the support documents without relying on the candidate options CqC_{q}.

In the masked setup all baseline models reliant on lexical cues fail in the face of the randomized answer expressions, since the same answer option has different placeholders in different samples. Especially on MedHop, where dataset sub-sampling is not a viable option, masking proves to be a valuable alternative, effectively circumventing spurious statistical correlations that RC models can learn to exploit.

Both neural RC models are able to largely retain or even improve their strong performance when answers are masked: they are able to leverage the textual context of the candidate expressions. To understand differences in model behavior between WikiHop and MedHop, it is worth noting that drug mentions in MedHop are normalized to a unique single-word identifier, and performance drops under masking. In contrast, for the open-domain setting of WikiHop, a reduction of the answer vocabulary to 100 random single-token mask expressions clearly helps the model in selecting a candidate span, compared to the multi-token candidate expressions in the unmasked setting. Overall, although both neural RC models clearly outperform the other baselines, they still have large room for improvement compared to human performance at 74% / 85% for WikiHop.

Comparing results on the full and validated test sets, we observe that the results consistently improve on the validated sets. This suggests that the training set contains the signal necessary to make inference on valid samples at test time, and that noisy samples are harder to predict.

4 Using only relevant documents

We conducted further experiments to examine the RC models when presented with only the relevant documents in SqS_{q}, i.e., the chain of documents leading to the correct answer. This allows us to investigate the hypothetical performance of the models if they were able to select and read only relevant documents: Table 6 summarizes these results. Models improve greatly in this gold chain setup, with up to 81.2% / 85.7% on WikiHop in the masked setting for BiDAF. This demonstrates that RC models are capable of identifying the answer when few or no plausible false candidates are mentioned, which is particularly evident for MedHop, where documents tend to discuss only single drug candidates. In the masked gold chain setup, models can then pick up on what the masking template looks like and achieve almost perfect scores. Conversely, these results also show that the models’ answer selection process is not robust to the introduction of unrelated documents with type-consistent candidates. This indicates that learning to intelligently select relevant documents before RC may be among the most promising directions for future model development.

5 Removing relevant documents

To investigate if the neural RC models can draw upon information requiring multi-step inference we designed an experiment where we discard all documents that do not contain candidate mentions, including the first documents traversed. Table 7 shows the results: we can observe that performance drops across the board for BiDAF. There is a significant drop of 3.3%/6.2% on MedHop, and 10.0%/2.1% on WikiHop, demonstrating that BiDAF, is able to leverage cross-document information. FastQA shows a slight increase of 2.2%/3.2% for WikiHop and a decrease of 2.7%/4.1% on MedHop. While inconclusive, it is clear that FastQA with fewer latent interactions than BiDAF has problems integrating cross-document information.

Related Work

End-to-end text-based QA has witnessed a surge in interest with the advent of large-scale datasets, which have been assembled based on Freebase [Berant et al., 2013, Bordes et al., 2015], Wikipedia [Yang et al., 2015, Rajpurkar et al., 2016, Hewlett et al., 2016], web search queries [Nguyen et al., 2016], news articles [Hermann et al., 2015, Onishi et al., 2016], books [Hill et al., 2016, Paperno et al., 2016], science exams [Welbl et al., 2017], and trivia [Boyd-Graber et al., 2012, Dunn et al., 2017]. Besides TriviaQA [Joshi et al., 2017], all these datasets are confined to single documents, and RC typically does not require a combination of multiple independent facts. In contrast, WikiHop and MedHop are specifically designed for cross-document RC and multi-step inference. There exist other multi-hop RC resources, but they are either very limited in size, such as the FraCaS test suite, or based on synthetic language [Weston et al., 2016]. TriviaQA partly involves multi-step reasoning, but the complexity largely stems from parsing compositional questions. Our datasets center around compositional inference from comparatively simple queries and the cross-document setup ensures that multi-step inference goes beyond resolving co-reference.

Compositional Knowledge Base Inference

Combining multiple facts is common for structured knowledge resources which formulate facts using first-order logic. KB inference methods include Inductive Logic Programming [Quinlan, 1990, Pazzani et al., 1991, Richards and Mooney, 1991] and probabilistic relaxations to logic like Markov Logic [Richardson and Domingos, 2006, Schoenmackers et al., 2008]. These approaches suffer from limited coverage and inefficient inference, though efforts to circumvent sparsity have been undertaken [Schoenmackers et al., 2008, Schoenmackers et al., 2010]. A more scalable approach to composite rule learning is the Path Ranking Algorithm [Lao and Cohen, 2010, Lao et al., 2011], which performs random walks to identify salient paths between entities. ?) circumvent these sparsity problems by introducing synthetic links via dense latent embeddings. Several other methods have been proposed, using composition functions such as vector addition [Bordes et al., 2014], RNNs [Neelakantan et al., 2015, Das et al., 2017], and memory networks [Jain, 2016]. Another approach is the Neural Theorem Prover [Rocktäschel and Riedel, 2017], which uses dense rule and symbol embeddings to learn a differentiable backward chaining algorithm.

All of these previous approaches center around learning how to combine facts from a KB, i.e., in a structured form with pre-defined schema. That is, they work as part of a pipeline, and either rely on the output of a previous IE step [Banko et al., 2007], or on direct human annotation [Bollacker et al., 2008] which tends to be costly and biased in coverage. However, recent neural RC methods [Seo et al., 2017a, Shen et al., 2017] have demonstrated that end-to-end language understanding approaches can infer answers directly from text – sidestepping intermediate query parsing and IE steps. Our work aims to evaluate whether end-to-end multi-step RC models can indeed operate on raw text documents only – while performing the kind of inference most commonly associated with logical inference methods operating on structured knowledge.

Text-Based Multi-Step Reading Comprehension

?) have demonstrated that exploiting information from other related documents based on lexical semantic similarity is beneficial for re-ranking answers in open-domain non-factoid QA. ?) chain textual background resources for science exam QA and provide multi-sentence answer explanations. Beyond, a rich collection of neural models tailored towards multi-step RC has been developed. Memory networks [Weston et al., 2015, Sukhbaatar et al., 2015, Kumar et al., 2016] define a model class that iteratively attends over textual memory items, and they show promising performance on synthetic tasks requiring multi-step reasoning [Weston et al., 2016]. One common characteristic of neural multi-hop models is their rich structure that enables matching and interaction between question, context, answer candidates and combinations thereof [Peng et al., 2015, Weissenborn, 2016, Xiong et al., 2017, Liu and Perez, 2017], which is often iterated over several times [Sordoni et al., 2016, Neumann et al., 2016, Seo et al., 2017b, Hu et al., 2017] and may contain trainable stopping mechanisms [Graves, 2016, Shen et al., 2017]. All these methods show promise for single-document RC, and by design should be capable of integrating multiple facts across documents. However, thus far they have not been evaluated for a cross-document multi-step RC task – as in this work.

Learning Search Expansion

Other research addresses expanding the document set available to a QA system, either in the form of web navigation [Nogueira and Cho, 2016], or via query reformulation techniques, which often use neural reinforcement learning [Narasimhan et al., 2016, Nogueira and Cho, 2017, Buck et al., 2018]. While related, this work ultimately aims at reformulating queries to better acquire evidence documents, and not at answering queries through combining facts.

Conclusions and Future Work

We have introduced a new cross-document multi-hop RC task, devised a generic dataset derivation strategy and applied it to two separate domains. The resulting datasets test RC methods in their ability to perform composite reasoning – something thus far limited to models operating on structured knowledge resources. In our experiments we found that contemporary RC models can leverage cross-document information, but a sizeable gap to human performance remains. Finally, we identified the selection of relevant document sets as the most promising direction for future research.

Thus far, our datasets center around factoid questions about entities, and as extractive RC datasets, it is assumed that the answer is mentioned verbatim. While this limits the types of questions one can ask, these assumptions can facilitate both training and evaluation, and future work – once free-form abstractive answer composition has advanced – should move beyond. We hope that our work will foster research on cross-document information integration, working towards these long term goals.

Acknowledgments

We would like to thank the reviewers and the action editor for their thoughtful and constructive suggestions, as well as Matko Bošnjak, Tim Dettmers, Pasquale Minervini, Jeff Mitchell, and Sebastian Ruder for several helpful comments and feedback on drafts of this paper. This work was supported by an Allen Distinguished Investigator Award, a Marie Curie Career Integration Award, the EU H2020 SUMMA project (grant agreement number 688139), and an Engineering and Physical Sciences Research Council scholarship.

References

Appendix A Appendix: Versions

This paper directly corresponds to the TACL version,https://transacl.org/ojs/index.php/tacl/article/view/1325 apart from minor changes in wording, additional footnotes, and these appendices.

Appendix B Appendix: Candidate and Document statistics

Figure 4 illustrates the distribution of the number of support documents per sample. WikiHop shows a Poisson-like behaviour – most likely due to structural regularities in Wikipedia– whereas MedHop exhibits a bimodal distribution, in line with our observation that certain drugs and proteins have far more interactions and studies associated with them.

Figure 5 shows the distribution of document lengths for both datasets. Note that the document lengths in WikiHop correspond to the lengths of the first paragraphs of Wikipedia articles. MedHop on the other hand reflects the length of research paper abstracts, which are generally longer.

Figure 6 shows a histogram with the number of candidates per sample in WikiHop, and the distribution shows a slow but steady decrease. For MedHop, the vast majority of samples have 9 candidates, which is due to the way documents are selected up until a maximum of 64 documents is reached. Very few samples have fewer than 9 candidates, and samples would have far more false candidates if more than 64 support documents were included.

Appendix C Appendix: Document-Cue examples

Table 8 shows examples of answers and articles which, before filtering, frequently appear together in WikiHop.

Appendix D Appendix: Gold Chain Examples

Table 9 shows examples of document gold chains in WikiHop. Note that their lengths differ, with a maximum of 3 documents.

Appendix E Appendix: Query Types

Table 10 gives an overview over the 25 most frequent query types in WikiHop and their relative proportion in the dataset. Overall, the distribution across the 277 query types follows a power law.