Multi-hop Question Answering

Mavi    Vaibhav    Jangra    Anubhav    Jatowt    Adam [ [ [
Abstract

The task of Question Answering (QA) has attracted significant research interest for long. Its relevance to language understanding and knowledge retrieval tasks, along with the simple setting makes the task of QA crucial for strong AI systems. Recent success on simple QA tasks has shifted the focus to more complex settings. Among these, Multi-Hop QA (MHQA) is one of the most researched tasks over the recent years. In broad terms, MHQA is the task of answering natural language questions that involve extracting and combining multiple pieces of information and doing multiple steps of reasoning. An example of a multi-hop question would be “The Argentine PGA Championship record holder has won how many tournaments worldwide?”. Answering the question would need two pieces of information: “Who is the record holder for Argentine PGA Championship tournaments?” and “How many tournaments did [Answer of Sub Q1] win?”. The ability to answer multi-hop questions and perform multi step reasoning can significantly improve the utility of NLP systems. Consequently, the field has seen a surge with high quality datasets, models and evaluation strategies. The notion of ‘multiple hops’ is somewhat abstract which results in a large variety of tasks that require multi-hop reasoning. This leads to different datasets and models that differ significantly from each other and makes the field challenging to generalize and survey. We aim to provide a general and formal definition of the MHQA task, and organize and summarize existing MHQA frameworks. We also outline some best practices for building MHQA datasets. This book provides a systematic and thorough introduction as well as the structuring of the existing attempts to this highly interesting, yet quite challenging task.

\maintitleauthorlist

Vaibhav Mavi
New York University, United States of America
[email protected] and Anubhav Jangra
Indian Institute of Technology Patna, India
[email protected] and Adam Jatowt
University of Innsbruck, Austria
[email protected] \issuesetupcopyrightowner=V. Mavi and A Jangra and A. Jatowt, volume = xx, issue = xx, pubyear = 2023, isbn = xxx-x-xxxxx-xxx-x, eisbn = xxx-x-xxxxx-xxx-x, doi = 10.1561/XXXXXXXXX, firstpage = 1, lastpage = 75 \addbibresourcemain.bib 1]New York University, United States of America; [email protected] 2]Indian Institute of Technology Patna, India; [email protected] 3]University of Innsbruck, Austria; [email protected] \articledatabox\nowfntstandardcitation

\makeabstracttitle

Chapter 1 Introduction

1.1 Question Answering

An eventual goal of artificial intelligence (AI) is to impart the ability to reason over natural language to machines. In order to achieve this, several natural language understanding and generation tasks have been proposed that require an agent to do some reasoning to get to the goal. One such example is the task of Question Answering (QA) where given a question and some relevant context, the goal is to predict the correct answer. The question answering task provides a quantifiable way to evaluate a system’s capability of language understanding and reasoning [SP25, squad, hermann2015teaching]. It is a critical problem in the fields of natural language processing (NLP) and information retrieval (IR), and a long-standing AI milestone.

Abundance of readily-available, high-quality information on the internet facilitates the need of automated QA systems that help probe this rich content based on individual needs. Due to recent advancements in Deep Learning techniques [albert], the machines have become able to successfully beat human performance on datasets like SQUAD 2.0 [squad2]. However, we have only scratched the surface of what these modern systems are capable of achieving. Depending on the user requirements, the complexity of QA tasks may vary. Some questions can be answered in brief (e.g., “Which color do you get when you mix red and yellow paints?”) - such questions are called objective questions or factoid questions. On the other hand, there exist subjective questions that demand detailed explanations to meet user requirements (e.g., “Why does mixing red, green and blue paints give black color paint, but projecting red, green, and blue light on a white surface return white light?”). A question can also be considered complex, if it requires a very niche domain expertise to answer the question (e.g., “What symptoms help diagnose chickenpox?”).

1.2 What is Multi-hop Question Answering (MHQA)?

For questions mentioned above, there might exist a single document or a single passage (formally referred as a ‘context’) that can provide a justifiable answer. However, there exists certain questions that cannot be answered using a single context (e.g., “What is the national bird of the nation that has a negative carbon footprint?”). The task of answering such questions is called multi-hop question answering (MHQA). The goal of MHQA is to predict the correct answer to a question that requires multiple reasoning ‘hops’ across given contexts (text, table, knowledge graph etc). We look at a more detailed definition of the task in Chapter 2.

The success in simple QA systems (also referred as single hop QA) does not necessarily entail success of MHQA systems. min-etal-2018-efficient and SP25 observe that most questions in existing single-hop QA datasets are answerable without much reasoning, by retrieving a small set of sentences. Moreover, multi-step reasoning is required by the models to answer complex questions (refer to Table 1.1). Humans can easily perform these multi-step reasoning in their everyday tasks, yet this is still a difficult task for machines. An agent can be said to perform multi-step reasoning if it reaches one or more intermediate conclusions before deriving the final answer and each of the intermediate conclusions serves as a necessary premise for some other conclusion. This sequence of intermediate conclusions, including the final answer, is called a reasoning chain and each step from one conclusion to the next can be referred to as a hop.

Table 1.1: Examples of various types of multi-hop questions.
Type of question Question Answer
Bridge Entity-based (temporal entity) Who was the president of United States in the year in which Mike Tyson declared his retirement? George W. Bush
Bridge Entity-based (geographical entity) What is the national bird of the nation that has a negative carbon footprint? The Raven
Bridge Entity-based (named entity) What is the birth place of the tennis player who has won the most grand slams? Belgrad, Serbien
Intersection Who is the only person to win an olympic medal and a Nobel prize? Philip John Noel-Baker
Comparison Which country has won more soccer world cups - Argentina or Brazil? Brasilien
Commonsense Reasoning If A prefers fruits over meat, when given an option of apple and chicken sandwich, what will A prefer? Apfel

It is important to note that the inability of AI systems to perform multiple steps of reasoning can be severely limiting, significantly reducing their usability. One such instance can be as shown in Fig. 1.1. Say a user is interested in knowing more about ‘the daughter of A’ and the only relevant information available in this context is ‘B’s father is C and her mother is A’. In this case, the AI system has to first infer that B is female and her mother is A. The system will then have to use common sense reasoning to conclude that B is the entity of interest and then retrieve the required information (refer to Fig. 1.1 for visual aid). Something like this seems trivial to humans but it may fatally confuse many existing AI systems. Therefore, we argue that multi-step reasoning is a crucial challenge and solving it can be a giant leap towards the goals of AI.

Refer to caption
Figure 1.1: An example of multi-hop reasoning

1.3 Applications of MHQA

As discussed above, MHQA serves as an appropriate benchmark task for evaluating an agent’s ability to perform multi-step reasoning. Along with this scientific significance, the task of MHQA has various practical applications. Queries given to current web search systems can often require multi-hop reasoning to reach the relevant documents. User satisfaction when using such systems can be greatly improved by utilizing multi-hop reasoning models. Furthermore, conversations between humans and agents can be smoother and more informative if the latter can handle complex questions. Answering a multi-hop question requires systems to aggregate information over multiple contexts. Therefore, techniques that are successful for MHQA can inspire progress in tasks such as sentence fusion [weiss2021extending, geva2019discofuse] and abstractive summarization [nayeem2018abstractive, lebanoff2019analyzing], event occurrence time prediction [wangSIGIR21], as well as multi-document summarization [ma2020multi, goldstein2000multi, haghighi2009exploring, barzilay1999information] or timeline summarization [yan2011evolutionary, ghalandari2020examining, steen2019abstractive, yu-etal-2021-multi] that require information aggregation over multiple documents. Additionally, most applications of QA such as information extraction (IE) and entailment, can be immensely benefited by multi-hop reasoning abilities [qa-ie].

QG1 argue that MHQA is a challenging task to an extent that they quantify the difficulty of a question as the number of inference steps (or hops) required to answer the question. This illustrates the direct utility of MHQA for the task of Difficulty controllable Question Generation (DQG) [dqg] that has various applications including curriculum-learning based methods for QA systems [qg4edu] and designing school exams of certain difficulty levels [easyques1].

Another problem closely related to MHQA consists of generating clarifying questions for conversational QA (chatbots) [SP22, zaib2021conversational]. In this setting, the original question/query can be ambiguous and hence more information is needed to disambiguate it. The model is supposed to generate a clarifying question in natural language, asking the user for the missing information. This can be considered as another task involving multi-step reasoning and can be greatly helped by improvements in MHQA.

1.4 Overview

Recently, a variety of datasets and techniques have been proposed for MHQA, including ones designed for MHQA over Knowledge Bases and Knowledge Graphs as well as those designed for QA over tables and text. A substantial number of recent works have focused on the task of MHQA and contributed to significant advancements. High quality datasets [DP1, DP2, DP3, DP4, DP5, DP6, DP7] have encouraged better models to be proposed which in turn have achieved impressive accuracy on these benchmarks. There has been a significant research in the recent years to solve the task. A variety of methods model the task as performing inference over static or dynamic graphs to find the reasoning paths [SP1, SP6, SP8, SP12, SP13, SP15, SP16, SP25, SP20, SP26, SP21]. A number of works have also attempted to decompose the multi-hop questions into single hop questions or generate follow-up questions based on the retrieved information [SP14, SP21, SP22, SP8, SP17]. The recent success of large language models (LLMs) has significantly influenced MHQA as well, with multiple attempts of using LLMs’ strong natural understanding and emergent abilities for answering complex multi-hop questions [llm-survey, LL2, LL3, LL33, LL13, LL14]. We discuss all these methods in a detailed and organized manner in Chapters 4, 5 and 6.

Due to the surge in the attention received by the task over the last decade, we believe that the community would benefit from an extensive survey encompassing recent advancements in MHQA. In this work, we closely cover similar-to\sim75 works from top venues including but not limited to EMNLP, ACL, NAACL, TACL, AAAI, EACL, SIGIR, ICLR, COLING, CoRR etc. published from 2016 to 2024. The research community has already several surveys in the field of question-answering, such as for single-hop QA [allam2012question, bouziane2015question, mishra2016survey, hoffner2017survey, soares2020literature, dimitrakis2020survey], open-domain QA [DBLP:series/synthesis/2021Roy, surveyodqa, zhu2021retrieving], medical QA [lin2021medical, jin2022biomedical], visual QA [visual-qa-survey, wu2017visual], etc. The surveys that are most relevant to MHQA are the ones focused on QA over knowledge bases [complex-survey-1, complex-survey-2, diefenbach2018core, DBLP:series/synthesis/2021Roy] and visual QA [visual-qa-survey, lin2021medical, wu2017visual]. However, these can be considered as sub-domains of the more general formulation of the MHQA field that this book aims to survey. Since the existing works go a long way in summarizing their intended domains, we choose to exclude Visual MHQA and MHQA over Knowledge Bases and Knowledge Graphs from the scope of this work.

We observe that despite the impressive accuracy of recent models on MHQA benchmarks, significant concerns have been raised regarding whether the models are actually able to perform multi-step reasoning in order to answer the multi-hop questions. Several works [AP1, AP2, AP3, AP4, AP5, AP6, AP7, AP8, SP32] conduct experiments and demonstrate that a significant portion of the accuracy can be ascribed to pattern matching and single step reasoning (also termed as shortcut reasoning). This points to new challenges and future directions for research in MHQA. Above all, it is fair to say that despite the inspiring progress made so far, the task of MHQA is still a long way from being solved.

A promising direction for solving some of these challenges is the task of explainable MHQA, a particular setting of MHQA that requires the model to output the correct reasoning chain (or equivalently, some kind of representation of the reasoning chain) along with the correct answer. This increases the model’s accountability and interpretability to the end user since the model now has to also explain how it reached the answer. Interpretability of the AI systems is crucial for their wide adoption for most high-stake applications such as finance, law and healthcare [samek2017explainable, alvarez-melis-jaakkola-2017-causal, arras2016relevant, biran2017explanation, gilpin2018explaining]. Consequently, more recent works [SP18, SP19, DP1, AP7, AP6] have focused on this setting. DP1 have also argued that training the model to output reasoning chain can further help in training to predict the correct answer as it serves as a useful auxiliary task. SP32 also find that using the reasoning chain as a supervision signal during training improves the performance on adversarial examples as well.

The remainder of this book is structured as follows: Chapter 2 aims to formalize the task of MHQA in a way that encompasses most existing variants. Chapter 3 describes existing MHQA datasets, their creation techniques, critiques and challenges111We discuss the datasets before methods as doing so provides on overview of the existing variants of the tasks which would be helpful to understand the intuition behind the proposed architectures.. Chapter 4 discusses traditional pre-LLM models in-depth in a structured way that leads to a taxonomy for existing methods in Chapter 6. Chapter 5 is dedicated to recent LLM based methods for MHQA, challenges of incorporating LLMs and their proposed solutions. Chapter 7 discusses the standard evaluation metrics along with evaluation methods specifically designed for evaluating multi-step reasoning/retrieval. Chapter 8 touches upon the multi-hop question generation problem. Chapter 9 then summarizes the insights of the book and critiques of the existing methods and datasets, to propose promising directions for future research in MHQA.

Chapter 2 Formulating the Multi-Hop Question Answering Task

Before diving into the advancements, we try to provide a formal and descriptive definition of the task. Although many attempts at formally defining the task have been made, we observe that they tend to focus on specific cases of the broader task. However, we aim to cover a large variety of tasks that can be considered as variants of the MHQA task. Therefore, we try to propose a broader definition that encompasses many variants of the task that have been tackled. By doing so, we also aim to clearly define the scope of what concerns Multi-Hop Question Answering for the rest of this book.

Formally defining the task of multi-hop question answering is not straightforward, since the definition of a hop is ambiguous in itself. For instance, in the context of open-domain QA on text documents, a hop could signify reasoning across different documents [DP1] whereas for QA over long documents, reasoning across different sections or paragraphs is a hop [SP22]. To the best of our knowledge, existing works do not provide a general definition of the task that encompasses its different variants. We argue that in order to systematically tackle the problem, and to obtain a good understanding of the progress in MHQA, it is crucial to first have a general definition.

We attribute the generality of the MHQA by keeping the notion of a context abstract. Depending on the task, a context can be any single independent piece of information: a sentence, a document, an image or an entity in a knowledge graph. Keeping this in mind, we formally define the task of multi-hop question answering as:

Let \mathbb{C}blackboard_C denote the set of all contexts, 𝒮𝒮\mathcal{S}caligraphic_S denote the set of all questions and 𝒜𝒜\mathcal{A}caligraphic_A denote the set of all possible answers. Given a question q𝒮𝑞𝒮q\in\mathcal{S}italic_q ∈ caligraphic_S and a set of related contexts, C𝐶C\subseteq\mathbb{C}italic_C ⊆ blackboard_C, the task is to approximate a function f:𝒮×n𝒜{Φ}:𝑓maps-to𝒮superscript𝑛𝒜Φf:\mathcal{S}\times\mathbb{C}^{n}\mapsto\mathcal{A}\cup\{\Phi\}italic_f : caligraphic_S × blackboard_C start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT ↦ caligraphic_A ∪ { roman_Φ }, that satisfies:

f(q,C)={a𝒜Pq={p1,,pk}C,k>1&Pq(aanswersq)Φotherwise𝑓𝑞𝐶cases𝑎𝒜formulae-sequencesubscript𝑃𝑞subscript𝑝1subscript𝑝𝑘𝐶𝑘1otherwisemodelssubscript𝑃𝑞𝑎𝑎𝑛𝑠𝑤𝑒𝑟𝑠𝑞Φ𝑜𝑡𝑒𝑟𝑤𝑖𝑠𝑒f(q,C)=\begin{cases}a\in\mathcal{A}&\exists\leavevmode\nobreak\ P_{q}=\{p_{1},% \cdots,p_{k}\}\subseteq C,k>1\\ &\And P_{q}\models(a\leavevmode\nobreak\ answers\leavevmode\nobreak\ q)\\ \Phi&otherwise\end{cases}italic_f ( italic_q , italic_C ) = { start_ROW start_CELL italic_a ∈ caligraphic_A end_CELL start_CELL ∃ italic_P start_POSTSUBSCRIPT italic_q end_POSTSUBSCRIPT = { italic_p start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , ⋯ , italic_p start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT } ⊆ italic_C , italic_k > 1 end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL & italic_P start_POSTSUBSCRIPT italic_q end_POSTSUBSCRIPT ⊧ ( italic_a italic_a italic_n italic_s italic_w italic_e italic_r italic_s italic_q ) end_CELL end_ROW start_ROW start_CELL roman_Φ end_CELL start_CELL italic_o italic_t italic_h italic_e italic_r italic_w italic_i italic_s italic_e end_CELL end_ROW (2.1)

where  models\models represents entailment, and ΦΦ\Phiroman_Φ is the output when q𝑞qitalic_q is unanswerable using \mathbb{C}blackboard_C111In case of multiple correct answers to q𝑞qitalic_q, Eq. 2.1 allows f𝑓fitalic_f to output any a𝑎aitalic_a that answers q𝑞qitalic_q, which is the case for datasets like SQuAD [squad, squad2]. However, some applications may require f𝑓fitalic_f to output all correct answers [min2020ambigqa] when multiple correct answers exist.. Given a question q𝑞qitalic_q and a set of contexts C𝐶Citalic_C, f𝑓fitalic_f returns an answer a𝑎aitalic_a that answers q𝑞qitalic_q by using a subset of ‘gold’ supporting contexts P𝑃Pitalic_P from C𝐶Citalic_C. The number of gold supporting contexts k𝑘kitalic_k is restricted to be more than 1 to ensure that the question is not solvable using a single hop (k=1𝑘1k=1italic_k = 1 reduces the task to traditional QA).

This definition captures the commonly adopted breakdown of the task to two sub-problems: Information Retrieval (IR) and Reading Comprehension (RC). Typically, f𝑓fitalic_f can be decomposed into (IR) g:𝒮×nk:𝑔maps-to𝒮superscript𝑛superscript𝑘g:\mathcal{S}\times\mathbb{C}^{n}\mapsto\mathbb{C}^{k}italic_g : caligraphic_S × blackboard_C start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT ↦ blackboard_C start_POSTSUPERSCRIPT italic_k end_POSTSUPERSCRIPT and (RC) h:𝒮×k𝒜{Φ}:maps-to𝒮superscript𝑘𝒜Φh:\mathcal{S}\times\mathbb{C}^{k}\mapsto\mathcal{A}\cup\{\Phi\}italic_h : caligraphic_S × blackboard_C start_POSTSUPERSCRIPT italic_k end_POSTSUPERSCRIPT ↦ caligraphic_A ∪ { roman_Φ }, for some k,k>1formulae-sequence𝑘𝑘1k\in\mathbb{N},\leavevmode\nobreak\ k>1italic_k ∈ blackboard_N , italic_k > 1 such that:

g(q,C)=Pq𝑔𝑞𝐶subscript𝑃𝑞\displaystyle g(q,C)=P_{q}italic_g ( italic_q , italic_C ) = italic_P start_POSTSUBSCRIPT italic_q end_POSTSUBSCRIPT (2.2)

where PqCsubscript𝑃𝑞𝐶P_{q}\subseteq Citalic_P start_POSTSUBSCRIPT italic_q end_POSTSUBSCRIPT ⊆ italic_C is the set of contexts relevant to q𝑞qitalic_q.

h(q,Pq)={aPq(aanswersq)Φotherwiseand𝑞subscript𝑃𝑞cases𝑎modelssubscript𝑃𝑞𝑎𝑎𝑛𝑠𝑤𝑒𝑟𝑠𝑞Φ𝑜𝑡𝑒𝑟𝑤𝑖𝑠𝑒𝑎𝑛𝑑\displaystyle h(q,P_{q})=\begin{cases}a&P_{q}\models(a\leavevmode\nobreak\ % answers\leavevmode\nobreak\ q)\\ \Phi&otherwise\end{cases}anditalic_h ( italic_q , italic_P start_POSTSUBSCRIPT italic_q end_POSTSUBSCRIPT ) = { start_ROW start_CELL italic_a end_CELL start_CELL italic_P start_POSTSUBSCRIPT italic_q end_POSTSUBSCRIPT ⊧ ( italic_a italic_a italic_n italic_s italic_w italic_e italic_r italic_s italic_q ) end_CELL end_ROW start_ROW start_CELL roman_Φ end_CELL start_CELL italic_o italic_t italic_h italic_e italic_r italic_w italic_i italic_s italic_e end_CELL end_ROW italic_a italic_n italic_d (2.3)
f(q,C)=h(q,g(q,C))𝑓𝑞𝐶𝑞𝑔𝑞𝐶\displaystyle f(q,C)=h(q,g(q,C))italic_f ( italic_q , italic_C ) = italic_h ( italic_q , italic_g ( italic_q , italic_C ) ) (2.4)

Reasoning chain: A reasoning chain for a question Pq={pq,i}i=1ksuperscriptsubscript𝑃𝑞superscriptsubscriptsubscriptsuperscript𝑝𝑞𝑖𝑖1𝑘P_{q}^{\prime}=\{p^{\prime}_{q,i}\}_{i=1}^{k}italic_P start_POSTSUBSCRIPT italic_q end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT = { italic_p start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_q , italic_i end_POSTSUBSCRIPT } start_POSTSUBSCRIPT italic_i = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_k end_POSTSUPERSCRIPT is defined as an ordered permutation of the set Pqsubscript𝑃𝑞P_{q}italic_P start_POSTSUBSCRIPT italic_q end_POSTSUBSCRIPT defined above, such that:

j, 1j<k,pq,jpq,j+1 represents the jth reasoning step and formulae-sequencefor-all𝑗1𝑗𝑘absentsubscriptsuperscript𝑝𝑞𝑗subscriptsuperscript𝑝𝑞𝑗1 represents the jth reasoning step and \displaystyle\forall\leavevmode\nobreak\ j,\leavevmode\nobreak\ 1\leq j<k,% \leavevmode\nobreak\ p^{\prime}_{q,j}\xrightarrow{}p^{\prime}_{q,j+1}\text{ % represents the $j^{th}$ reasoning step and }∀ italic_j , 1 ≤ italic_j < italic_k , italic_p start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_q , italic_j end_POSTSUBSCRIPT start_ARROW start_OVERACCENT end_OVERACCENT → end_ARROW italic_p start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_q , italic_j + 1 end_POSTSUBSCRIPT represents the italic_j start_POSTSUPERSCRIPT italic_t italic_h end_POSTSUPERSCRIPT reasoning step and
pq,ka is the kth reasoning step.absentsubscriptsuperscript𝑝𝑞𝑘𝑎 is the kth reasoning step.\displaystyle p^{\prime}_{q,k}\xrightarrow{}a\text{ is the $k^{th}$ reasoning % step.}italic_p start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_q , italic_k end_POSTSUBSCRIPT start_ARROW start_OVERACCENT end_OVERACCENT → end_ARROW italic_a is the italic_k start_POSTSUPERSCRIPT italic_t italic_h end_POSTSUPERSCRIPT reasoning step.

It is important to note that the granularity of what constitutes a reasoning chain can also be smaller than that of the contexts. For example, when the granularity of a context is passage, the reasoning chain may consist of particular sentences or particular entities belonging to those passages.

Hop: Each reasoning step of the reasoning chain can be termed as a hop. Furthermore, some commonsense knowledge might additionally be required to perform a reasoning step from one context (i.e., a document, table, etc.) to another. In that case, the commonsense reasoning can also be considered as a hop. The definition provided here does not consider reasoning hops over external/commonsense knowledge although it can be accommodated by allowing PqCQsubscript𝑃𝑞𝐶𝑄P_{q}\subseteq C\cup Qitalic_P start_POSTSUBSCRIPT italic_q end_POSTSUBSCRIPT ⊆ italic_C ∪ italic_Q, where Q𝑄Qitalic_Q is the external/commonsense knowledge base. However, we omit this for simplicity.

As mentioned in the introduction, many recent works focus on explainable MHQA to ensure the accountability and interpretability of the models while answering multi-hop questions. Formally, explainable MHQA is the setting of MHQA that requires f𝑓fitalic_f to output the reasoning chain Pqsubscriptsuperscript𝑃𝑞P^{\prime}_{q}italic_P start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_q end_POSTSUBSCRIPT (as an explanation for the answer) along with the answer, a𝑎aitalic_a. The set of ‘facts’ in the reasoning chain are often referred to as supporting facts [DP1].

The given definition is generic and can be extended to accommodate multiple variations of MHQA, some of which are listed below. Note that the given list is not exhaustive and the proposed definition of MHQA may be extended with new variations.

  • MHQA via fact composition: Cisubscript𝐶𝑖C_{i}italic_C start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT represents independent facts.

  • MHQA over long documents: QA over long documents can be considered multi-hop if the question requires the model to aggregate information across different sections, passages or sentences of the same document [DP5, SP22]. Here, each Cisubscript𝐶𝑖C_{i}italic_C start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT is a section/passage in the same document.

  • MHQA over multiple text documents: Each Cisubscript𝐶𝑖C_{i}italic_C start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT is an independent document.

  • Multiple choice MHQA: For each question, there is a small set of possible answers given beforehand. Thus, 𝒜𝒜\mathcal{A}caligraphic_A in Eq. 2.1 is dependent on q𝑞qitalic_q, 𝒜=𝒜(q)𝒜𝒜𝑞\mathcal{A}=\mathcal{A}(q)caligraphic_A = caligraphic_A ( italic_q ).

  • Open Domain vs Closed Domain MHQA: In the open domain setting, the set of contexts relevant to the question, C𝐶Citalic_C spans the entire corpus i.e., C=𝐶C=\mathbb{C}italic_C = blackboard_C whereas in the closed domain setting, C𝐶Citalic_C, the input to the model along with the question q𝑞qitalic_q, is a small subset of \mathbb{C}blackboard_C and may be different for each question i.e., C=Cq𝐶subscript𝐶𝑞C=C_{q}\subset\mathbb{C}italic_C = italic_C start_POSTSUBSCRIPT italic_q end_POSTSUBSCRIPT ⊂ blackboard_C. The closed domain setting guarantees that Cqsubscript𝐶𝑞C_{q}italic_C start_POSTSUBSCRIPT italic_q end_POSTSUBSCRIPT is sufficient to answer q𝑞qitalic_q and might also contain noisy irrelevant passages. It is important to note that the distinction between open-domain and closed-domain is regardless of the sizes of C,𝐶C,\mathbb{C}italic_C , blackboard_C, but is determined by the input of the task - whether each question is provided with a specific subset of sufficient contexts or not. As we will see in Chapter 4, the open-domain setting can be reduced to closed-domain by performing a preliminary retrieval over \mathbb{C}blackboard_C.

  • MHQA over Knowledge Bases/Knowledge Graphs:222For the scope of this book, we do not consider QA over KB or KG since these have been extensively covered by complex-survey-1, complex-survey-2, DBLP:series/synthesis/2021Roy. \mathbb{C}blackboard_C is a Knowledge Base (KB) or a Knowledge Graph (KG) with Cisubscript𝐶𝑖C_{i}italic_C start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT representing a triplet or a graph node.

  • Visual MHQA:333For the scope of this book, we only consider text based QA. \mathbb{C}blackboard_C is a set of images and/or videos (or equivalently, sequence of images).

  • Conversational QA with clarifying questions: Conversational QA can be regarded as an MHQA problem if answering the question requires the model to ask follow-up questions to the user. In this task, the user asks a question and the model tries to answer it based on some context. If the model cannot find the information necessary to answer the question, it generates a follow-up question for the user and enquires the missing information. Here, each follow-up question can be considered as a retrieval hop and figuring out the missing information can be regarded as a reasoning hop [SP22].

  • Temporal MHQA: Cisubscript𝐶𝑖C_{i}italic_C start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT represents here diverse temporal contexts which could be defined in several different ways. These could be simply documents published over different time points. However, on a more general level, contexts could be in the form of relevant time periods. Such time periods could mark bursts in the temporal distribution of relevant documents returned for an input question, or they could be formed by the focus time [focus-time] of relevant documents estimated either based on the embedded temporal expressions in the documents [wangIRJ21, WangJ0Y20], or inferred from past events and entities mentioned in text [wangSIGIR21].

We conclude this chapter by acknowledging some of the limitations of the proposed definition. Firstly, there may be multiple ways of mathematically denoting the same task. We do not claim the presented notation to be better than other possible notations in any way. We use the definition and notation that works best for us and allows us to clearly distinguish the scope of this book. We also prefer this notation as it allows us to naturally derive the commonly used concepts in MHQA such as reasoning chains, contexts and hops. It also allows us to capture the two-step process of retrieval and reasoning that is commonly adopted in question answering. We welcome the community to progress towards a more accurate and widely acceptable definition.

Chapter 3 A Comprehensive Study of Datasets: Analysis and Guidelines

The previous chapter highlighted the different forms of the task which implies the existence of multiple datasets that are unique and equally significant, and are suited to different variants of the problem. In this chapter we aim to briefly summarize existing datasets and provide their comparison. This chapter details on the process of dataset creation, statistics, comparison among the existing datasets, and is followed by our critique of these datasets. We start the discussion with existing datasets as this will provide necessary context and intuition of the data for the following chapters devoted to methods which operate on top of these datasets.

We split our discussion on datasets into three broad sections. In the first section, we dive into details of how the datasets are created, followed by a section devoted to some statistics and comparisons among the existing datasets. We end the discussion with a section explaining some critiques and observed shortcomings of the current datasets.

3.1 Dataset Creation

We begin by describing how MHQA datasets are generated. In this section, we include major challenges for creating these datasets, followed by different steps involved in the process.

3.1.1 Challenges

Creating a dataset for multi-hop question answering is more challenging than for a traditional (i.e., single hop) QA setup. The major challenges include:

  • Contexts used for questions should form a valid and unambiguous reasoning chain. This implies that a context used for a particular question should have some information overlap or some kind of entailment relation with at least one of the other contexts present in the expected reasoning chain [DP1].

  • Since the questions should require reasoning over multiple contexts, the process of question generation itself needs to somehow encapsulate information across those particular contexts.

  • The creation process needs to ensure that the question is not answerable by using any single context. For instance, the question “Who was the president of United States in the year in which World War II began?” requires two contexts containing “World War II began in 1939.” and “Franklin D. Roosevelt was the president of United States in 1939.” However, there may be a separate context containing “Franklin D. Roosevelt, president of United States at the start of World War II, was unwilling to…”. This challenge is more prevalent in the setting of Open Domain QA because of the incomplete prior knowledge about the possible contexts.

Therefore, it becomes crucial to look at the methods adopted during creation of existing datasets, along with their advantages and drawbacks and possible ways to mitigate these. In general, the dataset creation task can involve three major steps, which we discuss next.

  1. 1.

    Generating reasoning chains

  2. 2.

    Question generation by crowd-sourcing

  3. 3.

    Automatic/manual filtering

3.1.2 Reasoning Chain Candidates

Methods for coming up with reasoning chains are highly specific to the task and domain and thus, differ significantly for each dataset. Thus, we look at a few datasets individually.

  1. 1.

    HotpotQA [DP1]: HotpotQA contains only 2-hop questions formed using the first passages of documents from the English Wikipedia dump111https://en.wikipedia.org/. Two passages are chosen as a reasoning chain (termed candidate passage pair) if they satisfy either of the two conditions:

    • There exists a hyperlink from the first document to the second. The entity which forms the hyperlink is termed as the bridge entity and the questions are termed as bridge questions.

    • The entities for those passages belong to the same category (e.g. Michael Jordan and Kobe Bryant). These are specifically sampled from 42 manually created lists. Such pairs are used for creating comparison questions.

  2. 2.

    MultiHop-RAG [LL23]: MultiHop-RAG uses a set of diverse news articles and prompts GPT-4 to extract factual sentences from each article. These articles are again passed to GPT-4 for paraphrasing the factual sentence into a natural language claim. A topic and an entity are also generated in this step which are used as bridge entities for the reasoning chains.

  3. 3.

    HybridQA [DP6]: In HybridQA, the definition of a context can be either a passage or a table. It is argued that using a table as context avoids the ambiguity of the questions that could arise when using texts. To ensure at least two hops, the questions are restricted to have reasoning chains containing at least one table and one text document. The tables are filtered from the set of tables released in WikiTables [bhagavatula2013methods], and the Wikipedia hyperlinks present in the cells of the table are used to retrieve relevant passages. At most 12 sentences of the first passage of each Wikipedia page are treated as the passages.

  4. 4.

    NarrativeQA [DP3]: The dataset is for answering multi-hop questions on long stories. To ensure that the questions are indeed multi-hop and answering requires non localized reasoning, the annotators are asked to form questions using human-generated summaries of the stories. The stories are collected from books from Project Gutenberg222https://www.gutenberg.org/, while movie scripts are scraped from the web.

  5. 5.

    OpenBookQA [DP4]: OpenBookQA requires question answering on the scientific domain using a book (in simpler words, a collection) of scientific facts along-with a broad common knowledge (large open-domain scientific sentences). The book and common knowledge are the two contexts required to answer the questions in OpenBookQA. Book is collected by filtering a subset of the WorldTree corpus identified by worldtree where the common knowledge is collected from a collection of 14M scientific facts across Wikipedia, ConceptNet and other scientific corpora.

  6. 6.

    QASC [DP6]: QASC is also a dataset for two-hop QA using scientific facts. The process of generating reasoning chains is very similar to that of OpenBookQA. The two contexts of the reasoning chain are chosen from a set of good quality seed facts and a large corpus of auxiliary facts, respectively.

  7. 7.

    MultiRC [DP5]: The purpose of this dataset is to create multi-domain multi-hop questions. Documents across various domains are selected from multiple corpora. Here, the multiple contexts are part of the same passage and the task of candidate reasoning chain generation is left to the annotators; each document is given to the annotators and they are asked to form valid multi-hop reasoning questions.

3.1.3 Generating Questions

Generating multi-hop QA pairs requires accumulation of information across different contexts which itself is an unsolved problem [SP14, AP1, DP7, QG1, QG2, QG3, QG4, QG5, QG6].

Automatic generation:

DP2 automatically generate questions using existing KBs where WikiData and DrugBank [wishart2008drugbank] are used as the knowledge bases, and Wikipedia and Medline333https://www.nlm.nih.gov/medline/medline_overview.html are used as the document corpus. However, the question and answer types in the two datasets are highly constrained, owing to the creation technique. For instance, the only question type in the MedHop dataset is of the kind (drug1,interacts_with,?)𝑑𝑟𝑢subscript𝑔1𝑖𝑛𝑡𝑒𝑟𝑎𝑐𝑡𝑠_𝑤𝑖𝑡?(drug_{1},interacts\_with,?)( italic_d italic_r italic_u italic_g start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_i italic_n italic_t italic_e italic_r italic_a italic_c italic_t italic_s _ italic_w italic_i italic_t italic_h , ? ), where in the WikiHop dataset we have (item1,property,?)𝑖𝑡𝑒subscript𝑚1𝑝𝑟𝑜𝑝𝑒𝑟𝑡𝑦?(item_{1},property,?)( italic_i italic_t italic_e italic_m start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_p italic_r italic_o italic_p italic_e italic_r italic_t italic_y , ? ). Therefore, automatic generation using KBs is argued to result in datasets limited by the incompleteness of entity relations and schema of the KB used [SP16, DP1]. Furthermore, automating the generation of free-form text questions is known to be a challenging task and requires substantial training data [gatt2018survey, novikova-etal-2017-need, SP14]. However, with the latest research in LLMs, automatic question generation followed by semi-automatic verification is commonly adopted for creating small scale datasets [LL23].

Crowd sourcing:

Consequently, traditional datasets propose that the question creation step should be done using human-intelligence. Since the task is not very straight-forward even for humans, existing works have added comprehensive guidelines for creating questions. These annotation guidelines follow a common pattern, with slight nuances, irrespective of the task. We aim to summarize the annotation guidelines used by various datasets and hope that this could serve as a reference for the relevant future endeavours. Based on the techniques adopted by the existing datasets, the common annotation instructions and best-practices include:

  1. 1.

    To ensure that the questions require multi-hop reasoning:

    • Give examples of both positive and negative instances of what the task requires.

    • Break down the question generation task into simpler steps to prevent mistakes.

    • Use rule-based techniques to provide in-the-loop friendly hints and prevent the annotators from submitting trivial incorrect samples.

    • Use simple single-step IR or PLM (Pre-trained Language Models) based techniques to check if the question submitted is answerable using a single context only.

    • Ask annotators to submit the reasoning chain along with the question and answer.

    • Ask a different set of annotators to answer the questions using only a single context.

    • Ask a different set of annotators if the question requires multiple contexts to be answered.

  2. 2.

    To ensure that the questions are answerable:

    • Ask the annotator to also provide the answer to the question.

    • Prohibit the use of negation words in answer choices that can trivially fool baselines.

    • Ask for questions with very specific answers.

    • Ask a different set of annotators to answer the question and discard questions with significant error rates.

  3. 3.

    To ensure that the questions and answers are formed well:

    • Restrict the annotators to experts/native speakers of the intended language of the dataset.

    • Ask a different set of annotators to verify if the questions are grammatically well-formed.

    • Place a limit on the length of the answer.

    • For multiple choice questions, randomly shuffling answer choices can avoid annotator biases, such as choice A being the correct answer more often than choice D.

  4. 4.

    To ensure that the questions are challenging to answer:

    • Prohibit the annotator from copying spans of text from the input contexts.

    • Ask the annotators to make the questions challenging.

    • Ask the annotators to create confusing and irrelevant incorrect answer choices.

    • Ask the annotators to consider high-level relations between entities and events rather than localized relations.

However, crowd-sourced datasets also have severe limitations. SP23 argue that these datasets usually only present a partial picture of the underlying data distribution and are marred by numerous biases, such as annotator bias [geva-etal-2019-modeling], label bias [dua-etal-2020-benefits, gururangan-etal-2018-annotation], survivorship bias [AP4, SP32], and ascertainment bias [jia2017adversarial]. Furthermore, the absence of adversarial contexts during training time allows the models to learn shortcuts in reasoning and perform the task without doing multi-hop reasoning.

Post-processing:

The above-mentioned practices and instructions might not preclude all human errors. Thus, a further manual or rule-based automatic screening is generally done to get rid of these errors. For instance, DP6 remove a question 1) if the answer cannot be found from either table or passage, 2) if the answer is longer than 20 tokens, or 3) if the answer passage is easily retrieved using a single hop of TF-IDF retrieval. DP4, DP7 remove questions that the annotators are unable to answer correctly. DP5 remove a question if the annotators are able to answer it using only a single context. DP2 aim to resolve the candidate frequency imbalance by sub-sampling the dataset to ensure that questions having any particular answer candidate constitute not more than 0.1% of the dataset, and also by omitting articles that are about the United States. They tackle the issue of document-answer correlation by discarding the questions having any commonly occurring pair of a document and candidate answer. Finally, LL23 use GPT-4 to evaluate examples in the dataset against the following criteria: 1) The generated query must utilize all provided evidence in formulating the response; 2) The query should be answerable solely based on the provided evidence; 3) The response to the generated query should be either a single word or a specific entity; 4) The query must conform to its designated query type.

Table 3.1: Comparison of MHQA datasets. \mathbb{C}blackboard_C represents the set of all contexts present in the dataset whereas C𝐶Citalic_C represents the set of contexts for a single question. In OD (Open Domain setting), C=𝐶C=\mathbb{C}italic_C = blackboard_C.
Context
granularity
||\mathbf{|\mathbb{C}|}| blackboard_C | Size #hops | C | Question Source
Context
source
Domain Ans. type
HotpotQA Passage |Wikipedia| 112,779 1/2/3 10 / ODa Wikipedia Wikipedia Generic Span
HybridQA Table, Tables: 13k 69611 2/3 1 table Wikitables, Wikitables, Generic Span
Passage Passages: 293k passages Wikipedia Wikipedia
NarrativeQA Sentence
Books: 783
Movies: 789
46765 - 1 story
Multipleb
Multiple Fiction Generative
MultiRC Sentence 871 9872 2.37 1 passage
Multiplec
Multiple Generic
MCQ
|𝒜|𝒜|\mathcal{A}|| caligraphic_A |: 5.44
Medhop Passage Medline 2508 - OD Drugbank Medline Medicine
MCQ
|𝒜|𝒜|\mathcal{A}|| caligraphic_A |: 8.9
Wikihop Passage |Wikipedia| 51318 - OD Wikidata Wikipedia Generic
MCQ
|𝒜|𝒜|\mathcal{A}|| caligraphic_A |:19.8
QASC Sentence
Core: 928
Aux: 7672
9980 2 OD
Core: WorldTree
Aux: [facts]
WorldTree Science
MCQ
|𝒜|𝒜|\mathcal{A}|| caligraphic_A |: 8
OpenBookQA Sentence
Core: 1326
Aux: 6000
5947 2 OD WorldTree WorldTree Science
MCQ
|𝒜|𝒜|\mathcal{A}|| caligraphic_A |: 4

a10 for distractor setting and OD for Full-wiki setting
b Summary: Wikipedia; Stories: Gutenberg; Movies: http://www.imsdb.com/, http://www.dailyscript.com/, http://www.awesomefilm.com/
c News: CNN, WSJ, NYT; Wikipedia; Articles on society, law and justice; Articles on history and anthropology; Elementary school science books; Stories: Gutenberg project, MCTest; Movies: CMU movie summary corpus

3.2 Existing Datasets: Statistics, Comparisons and Examples

A comparison of the popular datasets used for MHQA is shown in Table 3.1. Some of these datasets have multiple settings, and different statistics for different settings. We describe these settings along with some additional details for three such datasets below:

  1. 1.

    HotpotQA test set has two settings i) Full-wiki setting which is open domain with the set of contexts being the first passages of all Wikipedia pages, and ii) Distractor setting which is closed domain with a set of 10 passages (2 gold + 8 distractors) provided with each question. The 8 distractors are collected by using a TF-IDF retriever with the question as the query. The dataset also evaluates an auxiliary task of predicting supporting facts. These are the sentences in the gold passages which were used by the annotator to create the question. Since many of the comparison questions in the dataset are of yes/no type, many models also use the answer type prediction as an auxiliary task. This involves a 3-way classification of the answer being ’yes’/’no’/the extracted span.
    The train set of HotpotQA is split into easy/medium/hard. The easy subset predominantly consists of single-hop answerable questions (over 70%) whereas distinction between medium and hard questions is determined by training multiple baselines and testing the answerability of the questions. Although the dev and test set contain only the hard questions, authors show that the easy questions are also useful while training the model.

  2. 2.

    QAngaroo datasets (MedHop and WikiHop) contain a masked version along with the original unmasked dataset for avoiding the candidate frequency imbalance. For instance, in the MedHop dataset, some drugs (such as Aspirin) interact with more drugs than others (such as Isotretinoin), which can lead to candidate frequency imbalance. To mitigate this, any candidate expression is randomly replaced by a unique placeholder token (e.g. “Mumbai is the most populous city in <MASK7>”). It is argued that doing this removes the answer frequency cues and also removes statistical correlations between frequent answer strings and relevant contexts.

  3. 3.

    NarrativeQA question-answer pairs are created using the summaries of movies or books whereas the model is asked to answer the question based on the original story (referred to as the story version). Another somewhat less challenging task of answering questions by directly using the summaries, referred to as the summary version is also provided.

3.3 Critiques and Challenges

Even with carefully designed datasets it remains to be doubtful whether the datasets in fact require the model to perform multi-step reasoning to conclude the answer. AP4 show that the questions formed by compositions of two contexts (as used by many datasets) are not the same as they do not generalize well to multi-hop questions generated in typical use cases. Consequently, there have been multiple insightful methodologies proposed to test this aspect.

AP3 design two baseline models to predict the sentence containing the answer and constrain them to score each sentence from each context independently without looking at other sentences. Thus, the models should ideally perform poorly when trying to answer multi-hop questions. However, the performance of these baselines is overwhelmingly closer to the state-of-the-art than to a random classifier. This is observed more so for multiple choice MHQA datasets (WikiHop and a multi-choice modification of HotpotQA) than for a span-based MHQA dataset (HotpotQA). Furthermore, a no-context baseline that predicts the answer only by looking at answer candidates performs almost as good as the baselines defined above even when the number of candidates is increased significantly (refer to Figure 3 in AP3). Thus, it is argued that multiple choice questions are easier to hack while testing and less helpful while training when compared to the span based questions.

AP4 train a single-paragraph BERT model [bert] that achieves comparable performance to the state-of-the-art on the distractor setting, while it lags behind on the open-domain setting indicating that the open-domain setting is more challenging for a single-hop model and is worthy of future study. To further verify the hypothesis that the distractor setting is majorly single-hop solvable, human evaluation is performed. Humans achieve an accuracy of 87.3787.3787.3787.37 F1 when using all the ten input paragraphs and that of 82.0682.0682.0682.06 when one of the gold paragraphs is missing. In order to improve the quality of these distractors, an adversarial set of distractors is collected by training a single-hop BERT model and picking the top scoring incorrect paragraphs. Although, the performance of the single-hop model drops significantly, it is recovered after fine-tuning the model on these distractors.

Another possible way to improve the quality of distractors is to add a large number of such distractors. However, it is observed that even with 500 distractors, the single hop model performance is significant [AP4]. For the open domain setting, the performance goes down significantly indicating the challenging nature of open-domain MHQA.
On manual analysis of single-hop solvable questions, it is found that 35%percent3535\%35 % of the questions in the HotpotQA dataset are solvable only by matching the entity type. These questions would require multi-hop reasoning in the open-domain setting. However, other 26%percent2626\%26 % of the questions are single-hop solvable even in the open-domain setting. These are questions whose answers can be derived by finding an entity that uniquely satisfies two properties (intersection-type questions) but a unique answer can also be found by using only one of these properties. Another 8%percent88\%8 % of the questions are non-compositional single-hop and only the remaining 27%percent2727\%27 % require multi-hop reasoning.

Similarly, SP14 split the HotpotQA dev set into single-hop solvable (3426) and single-hop non-solvable (3979) questions.

SP3 make a similar conclusion by observing that 1184 (20%) of the questions have the answer span mentioned in both of the supporting passages and the answer can be extracted by only considering one of them.

SP5 conduct an experiment that compares a QA model that has access to all the supporting passages in HotpotQA, to another model that has access only to the answer (or the second hop) passage and observe that the model with full access only gives a marginal improvement from 49.43 EM to 50.96 EM.

SP28 find that more than 60% of the dev questions in MultiRC have at least one adjacent relevant sentence pair making the multi-hop reasoning very easy.

In summary, there seems to be enough evidence that the existing datasets have some flaws and a model should be able to exploit these flaws and show an impressive performance without being actually good at multi-hop reasoning. At the same time, these experiments point out the potential issues and challenges relating to MHQA datasets, and motivate development of higher quality datasets.

Chapter 4 Existing Approaches for MHQA

In this chapter, we will be taking a look at the existing approaches used for solving multi-hop question answering. Since there is a very large number of works we aim to cover, we try to categorize them on many levels into categories and sub-categories. We hope this leads to a more structured study culminating into a taxonomy proposed in the Chapter 6. For each level of categorization, we briefly describe the category/sub-category followed by a deep dive into some of the representative methods for the category and finally, contrast the sub-categories and list some known pros and cons for each. To avoid over technicality, the readers can skip the deep dive into particular methods.

As discussed in Chapter 2, a large number of works divide the task of MHQA into two steps, a retrieval (IR) step that extracts all the relevant contexts from the corpus and a reading comprehension (MRC) step that reads the resulting contexts to find the answer. In general, the existing works have three basic units - Retriever, Reasoner (or Reader) and Answer Predictor111Although initial works have a single module for reasoning as well as answer prediction, more recent works recommend further segregating these two as different modules. Therefore, we consider these as separate modules in our discussion.. These units are often employed iteratively to be able to perform multiple hops. A coarse level classification of methods can be how these units interact with each other. One way is to complete all the iterations of one unit before moving to the next one, and the other is to perform two or three of the tasks in a single iteration and repeat for the corresponding hops. Thus, there are four possibilities that arise by considering the multi-step nature of the retrieval and reasoning modules. These four types of models are shown in Figure 4.1.

Refer to caption Refer to caption
(a) Type-I: RetrItr𝑅𝑒𝑡superscript𝑟𝐼𝑡𝑟Retr^{Itr}italic_R italic_e italic_t italic_r start_POSTSUPERSCRIPT italic_I italic_t italic_r end_POSTSUPERSCRIPT->ReasItr𝑅𝑒𝑎superscript𝑠𝐼𝑡𝑟Reas^{Itr}italic_R italic_e italic_a italic_s start_POSTSUPERSCRIPT italic_I italic_t italic_r end_POSTSUPERSCRIPT->Ans𝐴𝑛𝑠Ansitalic_A italic_n italic_s (b) Type-II: (Retr(Retr( italic_R italic_e italic_t italic_r->Reas)ItrReas)^{Itr}italic_R italic_e italic_a italic_s ) start_POSTSUPERSCRIPT italic_I italic_t italic_r end_POSTSUPERSCRIPT->Ans𝐴𝑛𝑠Ansitalic_A italic_n italic_s
Refer to caption Refer to caption
(c) Type-III: RetrItr𝑅𝑒𝑡superscript𝑟𝐼𝑡𝑟Retr^{Itr}italic_R italic_e italic_t italic_r start_POSTSUPERSCRIPT italic_I italic_t italic_r end_POSTSUPERSCRIPT->(Reas(Reas( italic_R italic_e italic_a italic_s->Ans)ItrAns)^{Itr}italic_A italic_n italic_s ) start_POSTSUPERSCRIPT italic_I italic_t italic_r end_POSTSUPERSCRIPT (d) Type-IV: (Retr(Retr( italic_R italic_e italic_t italic_r->Reas𝑅𝑒𝑎𝑠Reasitalic_R italic_e italic_a italic_s->Ans)ItrAns)^{Itr}italic_A italic_n italic_s ) start_POSTSUPERSCRIPT italic_I italic_t italic_r end_POSTSUPERSCRIPT
Figure 4.1: The four types of architectures used for MHQA. A self loop at a module indicates that that module is independent of the succeeding modules whereas an incoming connection from a succeeding module represents some kind of feedback from that block. a) The IR and reasoning modules perform multiple hops independent of each other as well as of the answering module. b) At each hop, the IR module sends its output to the reasoning module which then gives feedback to the IR module. Answering module then predicts the answer in a single step. c) IR module first iteratively retrieves all the relevant documents for all the hops. The reasoning module performs a hop and sends the output to the answering module. Answering module either answers the question or sends feedback to the reasoning module asking for another hop of reasoning. d) At each hop, the IR module sends its output to the reasoning module which further sends its output to the answering module. The answering module either predicts a final answer or provides feedback to the IR module indicating that some required information is missing.

A few models retrieve important sentences or entities from the contexts as an intermediate step for reasoning. Since the granularity of the context is sentences for some datasets like MultiRC and OpenBookQA, it can be difficult to determine what constitutes reasoning and what constitutes retrieving. To avoid such confusion, we refer back to our definition of the task in Section 2. If the granularity of the output of a step is the same as the granularity of the context, we refer to that step as part of the retrieval process. If the granularity is lower, we take it as part of the reasoning. We begin by describing the techniques used for these three units followed by some auxiliary tasks in practice.

Refer to caption
Figure 4.2: Retrieval Module. The process of retrieval can be decomposed into two steps: a) Preliminary retrieval which is a quick and high recall step to retrieve all the relevant context from the set of all contexts in the open domain setting. It can be performed either as a single pass or iteratively. b) Final retrieval which is a more thorough step to filter out all the irrelevant contexts. Because of a smaller number of input contexts, more complex re-ranking models can be used at this step. Some models directly pass the concatenation of the input documents to the reasoning module. Note that the closed domain setting of MHQA eliminates the need for preliminary retrieval.

4.1 Retrieval

The retrieval step can be a bottleneck when the set of available contexts for a question is large and becomes a particularly challenging task in case of Open Domain QA. Intuitively, multi-hop retrieval is significantly more challenging than a single-step retrieval since any retrieval error in a hop is accumulated with each subsequent hop of retrieval and leads to a well known problem of semantic drift [SP7]. SP3 verify the hypothesis by running a simple BM25 on ‘easy’ and ‘hard’ subsets of HotpotQA (which contain predominantly single-hop and multi-hop questions respectively) to find that the accuracy drops from 53.7% on the easy subset to 25.9% on the hard subset. Similarly, SP2 run a TF-IDF retriever and find that although it succeeds in retrieving at least one of the gold passages among the top 32 passages for more than 90% questions, it often fails to retrieve both the gold passages.

The existing methods for retrieval can be broadly classified into two categories as shown in Figure 4.2: open domain retrieval where the model has to search through the entire context set 𝒞𝒞\mathcal{C}caligraphic_C, and closed domain retrieval where the model is provided with a smaller set of relevant (and noisy) contexts C𝒞𝐶𝒞C\subset\mathcal{C}italic_C ⊂ caligraphic_C along with the question q𝑞qitalic_q. Many of the techniques working in the open domain setting use a two step strategy: a) the first step (referred in this text as preliminary retrieval) is a fast and high recall filtering to get an initial set of relevant contexts. b) the second step (referred in this text as final retrieval) is then reduced to the closed domain setting where more complex techniques can be used to further remove the noisy contexts. This two step approach combines the best of both worlds, getting the good time efficiency of coarse retrievers and the good performance of fine-grained retrievers.

4.1.1 Preliminary Retrieval

The first step of the open domain retrieval (referred to preliminary retrieval from hereon) can be a single shot retrieval as done in single hop question answering i.e., the model attempts to extract all the relevant contexts in a single retrieval step. We call this strategy single-pass. Another solution would be to retrieve the passages iteratively, where each iteration of retrieval can correspond to each hop in the reasoning. We describe in detail some of these approaches below.

Single-pass approach

As mentioned above, the single-pass approach performs the retrieval in one step. We list some of the representative methods of this approach below.

  • SP24 and DP6 follow a simple setting of the single-pass retrieval approach, calling the retrieval only once for each query.

  • For the multi-choice questions setting, SP4 append each candidate answer with the question to get multiple queries and BM25 is used on these queries to extract top n(=20)annotated𝑛absent20n(=20)italic_n ( = 20 ) contexts (sentences in case of the MultiRC dataset).

  • For the text and table hybrid setting, DP6 parse the passages linked to each cell in the given table and retrieve all the cells relevant to the question in one go.

Critique: This strategy works well for a few-hop case where the number of contexts to be retrieved is limited and the candidate answers are provided for the multi-choice scenario. However, for more than two hops, the retrieval or the ranking algorithm could fail to capture the terms relevant to the intermediate hops. For instance, in a three-hop question, the information in the second hop could be unrelated to both the question and the candidate answers. Furthermore, if the candidate answers are not provided, this strategy could also fail to capture the second hop well [SP1]. To validate this hypothesis, SP1, SP2 use a simple BM25 with the original question as the query to evaluate the second hop paragraph recall on HotpotQA and find the results to be indeed underwhelming.

Iterative approach

Many of the existing techniques, therefore, propose a multi-step retrieval. Two main classes of iterative retrieval are query reformulation and entity-linking, described below.

Query reformulation: Deriving a query for the current hop (qtsubscript𝑞𝑡q_{t}italic_q start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT) from the previous hop query (qt1subscript𝑞𝑡1q_{t-1}italic_q start_POSTSUBSCRIPT italic_t - 1 end_POSTSUBSCRIPT) is commonly known as query reformulation (sometimes also referred to as pseudo-relevance feedback). Based on the strategy used for query reformulation, these methods can be further classified into two subcategories: text space reformulation and hidden space reformulation.

Hidden space query reformulation: In this case, the query is reformulated in the embedding space. As a representative example for hidden space query reformulation, we take a detailed look at SP2. They first encode the question using a Bi-GRU layer on contextualized ELMo [elmo] embeddings and retrieve all the relevant passages using MIPS. To reduce the search space for MIPS, a TF-IDF based retriever [chen-etal-2017-reading] is employed to get top nisubscript𝑛𝑖n_{i}italic_n start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT passages. A supervised re-ranker scores the paragraphs and each of the top k paragraphs is used to modify the question hidden representation to give k new search vectors for the next step. The reformulation module uses a bi-directional attention [bidaf] on the paragraph and question encodings followed by a linear layer with ReLU activation. A residual connection is added with this output being passed to a Bi-GRU layer followed by another linear layer with ReLU activation. Max pooling is applied to the residual output to give the updated query vector. At every step, top k paragraphs are selected by the re-ranker. The paragraph encoding being independent of the question allows the encodings to be pre-computed for an efficient retrieval during training and inference.

Text space query reformulation: Some methods reformulate the question by adding to, modifying or re-weighting the text of the question. Changing the questions in the text space allows the intermediate questions to be interpretable. We dive a little deeper into some of the methods following this approach:

  • SP7 concatenate the question with each answer candidate to obtain initial queries. Justification sentences are retrieved using the unsupervised alignment method proposed by yadav-etal-2019-alignment which uses GloVe embeddings [glove]. They compute a matrix storing the cosine similarity of embeddings of the query tokens with the sentence tokens. Max pooling across sentence tokens is applied to get the most similar tokens for each query token. Dot product between this vector and a vector containing the IDF values of the query tokens is calculated to produce the overall alignment score. For MultiRC, these are selected from the sentences in all the relevant paragraphs. For QASC, relevant sentences are retrieved using heuristic IR approaches. The reformulation process only keeps the uncovered tokens and if the number of such tokens is <T(=24)absentannotated𝑇absent24<T(=2-4)< italic_T ( = 2 - 4 ), new tokens are added from the previously retrieved sentences. The process is repeated until either a) no new query tokens are retrieved or b) all tokens are discovered. 10.7% improvement is observed when the tokens are identified using soft matching over GloVe embeddings.

  • SP8 use TF-IDF with the question to get the first hop paragraphs. For each subsequent hop, the ALBERT based reader module is used as a span extractor on the previously retrieved documents to extract the text relevant to the question. The extracted span is concatenated with the query of the previous step for performing the next hop of retrieval. This is repeated until the reader module finds an answer or a maximum number of hops is reached.

  • SP24 follow a similar approach to SP8 with DrQA’s Document Reader model used as the span extractor. During training, heuristics are used to find the oracle query.

  • SP9 retrieve k justification sentences using an alignment technique similar to SP7. The question Q𝑄Qitalic_Q, is concatenated with each retrieved justification qksubscript𝑞𝑘q_{k}italic_q start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT, and the token weights are assigned as: For each token t𝑡titalic_t in original question, if qksubscript𝑞𝑘q_{k}italic_q start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT contains t𝑡titalic_t, weight for t𝑡titalic_t is 1, else it is 2. All terms in qksubscript𝑞𝑘q_{k}italic_q start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT have a weight of 1. This is expected to result a in higher coverage. The queries are used for second hop retrieval to get a final set of N𝑁Nitalic_N contexts. Then, (Np)binomial𝑁𝑝\binom{N}{p}( FRACOP start_ARG italic_N end_ARG start_ARG italic_p end_ARG ) evidence chains are generated and each evidence set is ranked by how many query terms are included (coverage) and top n𝑛nitalic_n are picked for the supervised reranking.

  • SP17 propose generating text based free-form follow-up questions for performing iterative retrieval. An IR model (BM25) retrieves the set of relevant contexts using the question. A BERT based three-way controller module predicts whether each context contains the final answer, contains some intermediate information or is irrelevant. A QG model is used for generating a follow up question for each passage that contains intermediate information. BERT is used for getting the answers from contexts containing the final answer. Irrelevant passages are ignored. The QG model by zhao-etal-2018-paragraph is trained on the reverse SQuAD. The controller model is trained with cross-entropy loss for ternary classification on the ground truth triplets.

Critique: SP3 argue that query reformulation methods do not necessarily use the information about entities present in the evidence as they might not be the most frequent/ salient terms in it. Therefore, many works have proposed using entity mentions in the retrieved contexts for performing the second hop retrieval.

Using entity links/hyperlinks: In this approach, entity mentions in the first hop retrieval are used to find Wikipedia passages with titles containing any of these entities. This is an efficient technique since the entities can be extracted as part of the pre-processing step. It can be noted that this technique is particularly effective for HotpotQA since the creation process of the HotpotQA uses the Wikipedia paragraph for a bridge entity as the second hop context. However, this also indicates a bias of dataset design when building models [SP6]. Trying to imitate (or benefit from the knowledge of) the creation process of some dataset while building the models for this dataset can improve accuracy on that dataset but is not guaranteed to perform well on the other datasets. On similar lines, SP3 even suggest not to use off-the-shelf entity linker as they are usually trained on Wikipedia and can lead to data leakage.

Below, we list some of the representative methods for this class of methods.

  • SP3 use BM25 for the first hop retrieval and then retrieve Wikipedia paragraphs for each mentioned entity. Since HotpotQA is known to contain both single-hop and multi-hop questions, a self-link is added for each entity retrieved in the first hop to deal with single hop questions.

  • SP5 use a Hybrid TF-IDF + BM25 for the first hop retrieval to get 10 documents. Span prediction and external entity linking is used to get the bridge entities from the first hop passages. A supervised re-ranker gives top 10 entities and Wikipedia passages for these entities are used as the second hop passages. A span loss is added for predicting answer passage title entities as an auxiliary task.

  • SP1, SP6 retrieve Wikipedia passages whose titles contain an entity mentioned in the question as the first hop passages. Hyperlinks from these passages are used to get the second hop passages.

  • SP10 extract key words and match them with the paragraphs title and select top N1subscript𝑁1N_{1}italic_N start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT paragraph with best TF-IDF scores. Apart from these, top N2subscript𝑁2N_{2}italic_N start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT paragraphs with best TF-IDF scores are added. For the second hop, add all the paragraphs having hyperlinks from and hyperlinks to the first hop paragraphs.

Critique: SP11 evaluate the performance of the two sub-categories of iterative retrieval approaches by evaluating the performance on each of the two hops on HotpotQA dataset. It is argued that entity based retrieval is limited by the availability of such hyperlinks and passages whereas the reformulation approach is limited by the performance of lexical term-based retrieval. They observe that while BM25 followed by BERT based reranking performs well on the first hop, it fails on the second hop retrieval (evaluated as the ability to retrieve second passage given the first passage). Similarly, although the model by SP51 has the best overall performance, it has some room for improvement when evaluated for the second hop retrieval. Hence, a hybrid technique is proposed where the re-rank model is used for the first hop and a single-hop dense passage retrieval model [SP30] is used for the second hop. Results show that the hybrid technique outperforms the existing techniques which calls for further study in this direction.

4.1.2 Final Retrieval

After getting an initial pool of retrieved contexts, many works suggest using a more fine-grained and more sophisticated retrieval on the retrieved contexts to get a better quality of contexts. Based on how the initial pool of retrieval output is processed, we can categorize the approaches into concatenation, supervised re-ranking and unsupervised re-ranking.

Concatenating/union Some of the methods do not filter the input contexts and directly pass a union or concatenation of the contexts to the reasoning model. For example:

  • SP7 maintain N-parallel reasoning chains in the preliminary retrieval step and a union of these chains is passed to the answer prediction module.

  • SP1, SP4 do not filter the passages and directly perform reasoning at a lower granularity.

Supervised re-ranking Majority of the methods use a supervised module to score and rank the input contexts, and then use some criterion to filter the less relevant documents before passing to the answer prediction module:

  • SP2 use a linear layer with sigmoid activation to get a relevance score of each sentence in a paragraph with the question. Max pooling across all sentences is applied to give a relevance score and top-k most relevant paragraphs are picked. Max pooling allows only one of the sentences in a paragraph to be relevant to the question with a high score.

  • SP3 use BERT to compute query-aware embeddings for every pair of the first hop and second hop paragraph. The two paragraphs are concatenated and fed to 2-layer Neural Network to get a score. Top k𝑘kitalic_k pairs are passed to the reader module.

  • SP5 use a bi-LSTM layer [lstm] to predict relevance of each second hop passage with the question.

  • SP6 use a RoBERTa encoder [roberta] followed by a fine tuning layer to get the top N paragraphs.

  • SP8 pass the node (document) representations to a binary classifier for predicting their relevance and keep the k𝑘kitalic_k highest scoring documents.

  • SP9 use RoBERTa [roberta] for reranking trained to predict the F-1 score of evidence chain.

  • SP16, SP20 concatenate paragraphs with the question and feed it to a BERT followed by a binary classifier and keep N(=3) paragraphs with the highest scores. SP25 follows a similar approach but set a threshold to retrieve a variable number of paragraphs.

  • SP10 use the gated memory flow network inspired by the Neural Turing Machine [graves2014neural] to model the probability of a paragraph being the next context in the reasoning chain, conditioned on the question and the previous paragraphs in the reasoning chain. At every time step t𝑡titalic_t BERT is used to compute the question aware embeddings of the paragraphs, xtsubscript𝑥𝑡x_{t}italic_x start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT. A KVMemNN architecture models the memory as a set of key-value pairs. The model passes the key vectors and xtsubscript𝑥𝑡x_{t}italic_x start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT to linear layers and applies Softmax to the output of WxxtWkkisubscript𝑊𝑥subscript𝑥𝑡subscript𝑊𝑘subscript𝑘𝑖W_{x}x_{t}\cdot W_{k}k_{i}italic_W start_POSTSUBSCRIPT italic_x end_POSTSUBSCRIPT italic_x start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT ⋅ italic_W start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT italic_k start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT. The output after Softmax multiplied with another matrix Wvsubscript𝑊𝑣W_{v}italic_W start_POSTSUBSCRIPT italic_v end_POSTSUBSCRIPT is then used as weights while summing the value vectors visubscript𝑣𝑖v_{i}italic_v start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT to give the readout vector otsubscript𝑜𝑡o_{t}italic_o start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT. The memory reading process is similar to computing self-attention [transformer] and the authors concatenate the outputs after computing otsubscript𝑜𝑡o_{t}italic_o start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT for the hhitalic_h attention heads. otsubscript𝑜𝑡o_{t}italic_o start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT and xtsubscript𝑥𝑡x_{t}italic_x start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT are passed to another linear layer with tanh and sigmoid activation to give the relevance score stsubscript𝑠𝑡s_{t}italic_s start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT. xtsubscript𝑥𝑡x_{t}italic_x start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT is written to the memory if st>gatesubscript𝑠𝑡𝑔𝑎𝑡𝑒s_{t}>gateitalic_s start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT > italic_g italic_a italic_t italic_e where gate𝑔𝑎𝑡𝑒gateitalic_g italic_a italic_t italic_e is a hyper-parameter. Hard negative examples are generated by training a BERT based model to predict the relevance score stsubscript𝑠𝑡s_{t}italic_s start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT and choosing the top-8 of the non-evidence paragraphs.

  • SP23 propose generative context selection that learns to predict how the question would have been formed. Mathematically, the model tries to learn p(a,q|C)𝑝𝑎conditional𝑞𝐶p(a,q|C)italic_p ( italic_a , italic_q | italic_C ) instead of p(a|q,C)𝑝conditional𝑎𝑞𝐶p(a|q,C)italic_p ( italic_a | italic_q , italic_C ) (as in discriminative models). This probability is modeled as

    p(a,q|C)=cijp(a|q,cij)p(q|cij)p(cij|C)𝑝𝑎conditional𝑞𝐶subscriptsubscript𝑐𝑖𝑗𝑝conditional𝑎𝑞subscript𝑐𝑖𝑗𝑝conditional𝑞subscript𝑐𝑖𝑗𝑝conditionalsubscript𝑐𝑖𝑗𝐶p(a,q|C)=\sum_{c_{ij}}p(a|q,c_{ij})\cdot p(q|c_{ij})\cdot p(c_{ij}|C)italic_p ( italic_a , italic_q | italic_C ) = ∑ start_POSTSUBSCRIPT italic_c start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT end_POSTSUBSCRIPT italic_p ( italic_a | italic_q , italic_c start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT ) ⋅ italic_p ( italic_q | italic_c start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT ) ⋅ italic_p ( italic_c start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT | italic_C ) (4.1)

    where p(cij|C)𝑝conditionalsubscript𝑐𝑖𝑗𝐶p(c_{ij}|C)italic_p ( italic_c start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT | italic_C ) is the prior that computes compatibility between any two contexts, p(q|cij)𝑝conditional𝑞subscript𝑐𝑖𝑗p(q|c_{ij})italic_p ( italic_q | italic_c start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT ) is the question generation model that predicts the probability of q𝑞qitalic_q being formed from the given contexts, and p(a|q,cij)𝑝conditional𝑎𝑞subscript𝑐𝑖𝑗p(a|q,c_{ij})italic_p ( italic_a | italic_q , italic_c start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT ) is the standard answering model. During inference, the model retrieves the contexts as cij=argmaxcijp(q|cij)p(cij|C).subscriptsuperscript𝑐𝑖𝑗𝑎𝑟𝑔𝑚𝑎subscript𝑥subscript𝑐𝑖𝑗𝑝conditional𝑞subscript𝑐𝑖𝑗𝑝conditionalsubscript𝑐𝑖𝑗𝐶c^{\ast}_{ij}=argmax_{c_{ij}}p(q|c_{ij})\cdot p(c_{ij}|C).italic_c start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT = italic_a italic_r italic_g italic_m italic_a italic_x start_POSTSUBSCRIPT italic_c start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT end_POSTSUBSCRIPT italic_p ( italic_q | italic_c start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT ) ⋅ italic_p ( italic_c start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT | italic_C ) . To model these probabilities, a pre-trained T5 is used for obtaining the contextual embeddings. The prior and generative models are trained together. Concatenation of every pair of contexts is passed to an encoder and a Pointer Generator Network (PGN) [pgn] decoder is used to predict the question. The training objective is to increase the likelihood of the question for gold context pairs and the unlikelihood [welleck2019neural] for a sample set of negative context pairs. T5 is used for answering using the best pair of contexts. The advantage of using a generative model is that it avoids the annotator biases in the dataset. This hypothesis is tested by running the model on the adversarial set of questions formed by SP32. A multi-label sentence classifier p(s|q,C)𝑝conditional𝑠𝑞𝐶p(s|q,C)italic_p ( italic_s | italic_q , italic_C ) that selects relevant sentences is found to have a better performance but at the same time, is more biased.

  • DP6 feed each cell along with its neighboring cells to the cell encoder to obtain their representations. The representations are aggregated and further fed to a feed-forward neural network to obtain a score.

  • SP22 perform the retrieval in two steps where the first step retrieves a paragraph, and the second step retrieves a sentence from these paragraphs. A weighted sum of paragraph and sentence retrieval scores is computed to find the best retrieved sentence. The retrieval score of the paragraph retrieved from the first hop is broadcast to the sentences in the paragraphs. The best retrieved sentence fed to BERT-large for extractive QA.

Unsupervised re-ranking Some of the methods for supervised re-ranking include:

  • SP4 consider all (nk)(k[2,5])binomial𝑛𝑘𝑘25\binom{n}{k}(k\in[2,5])( FRACOP start_ARG italic_n end_ARG start_ARG italic_k end_ARG ) ( italic_k ∈ [ 2 , 5 ] ) reasoning chains formed by the n𝑛nitalic_n retrieved passages and use a simple formula to compute the scores. They define Relevance as the average BM25 scores of the chain, Overlap as the word overlap between each sentence pair in the chain and Coverage as the product of word overlap of sentence with the question and with the answer. The final score is given by RCO𝑅𝐶𝑂\frac{R\cdot C}{O}divide start_ARG italic_R ⋅ italic_C end_ARG start_ARG italic_O end_ARG. By experiments, k=3,4𝑘34k=3,4italic_k = 3 , 4 are found to be the best values with the justification that getting two correct retrieved passages in a chain of size two is tough while a chain of size 5 will suffer from noise.

  • DP6 retrieve cells from the table in the HybridQA dataset in an unsupervised manner. A cell is selected if its value is either mentioned in the question, or is min/max of the corresponding column. A cell is also added if it hyperlinks to one of the passages that are retrieved by a TF-IDF retriever.

Critique: Supervised re-ranking can lead to a model that is more suited to the task at hand but requires some training signals which may not be available for certain tasks. On the other hand, unsupervised methods are more flexible but might not be optimized for a given task. In particular, SP4, SP7 experimentally verify that using a supervised re-ranking method has an implied shortcoming of resulting in a domain dependent performance. The performance for each domain depends on the portion of training data belonging to that domain. Thus, it is attempted to propose unsupervised re-ranking techniques that can lead to similar level of quality as supervised re-ranking.

Another parallel classification of the re-ranking approaches is based on whether the module scores each retrieved context independently or together as constituents of a possible reasoning chain. We call the two categories of methods Context re-ranking and Chain re-ranking respectively. Table 6 lists the methods belonging to the two categories. SP4 show that evaluating the reasoning chain as a whole leads to better performance than evaluating each passage independently.

4.2 Reading Comprehension

A reading comprehension module is responsible for reading the final set of retrieved contexts, combining the information across contexts and performing the reasoning steps or hops. The output of this module can either be an answer or some representation of the reasoning performed (for example, a reasoning chain, a semantic graph or some latent representation). A vast majority of approaches have used graphs or question decomposition to perform the reasoning, therefore we classify the reading comprehension techniques into graph-based, question decomposition based and miscellaneous categories.

4.2.1 Graph-based Techniques

The general flow of the graph based methods can be summarized in a three-step process: 1) A graph of one or more types of nodes (entity, sentence, paragraph, document nodes, etc.) is constructed and edges are added based on some lexical heuristics. 2) Contextual encodings of the nodes are passed to one or more layers of a Graph Neural Network [gnn] (or a Graph Attention network [gat] or a Graph Convolutional Network [gcn]). These layers update the representation of each node using the representation of each of its neighbouring nodes. In this way, after n𝑛nitalic_n such layers, nodes separated by a path of nabsent𝑛\leq n≤ italic_n edges have shared information with each other. Therefore, each layer is expected to perform one hop of the reasoning process. 3) The updated embeddings are passed to the answering module.

As can be expected, some methods slightly deviate from the proposed general flow. We describe these differences below along with some details on graph building and reasoning steps.

  • SP1 build an entity graph by starting with the entities extracted during the retrieval process. For each node, a BERT model takes its representation along with the question and a retrieved passage and extracts entities from the paragraph to be added to the graph. The process is repeated until either a) no new nodes can be added or b) a maximum number of nodes are extracted. Sentences containing the extracted entities are considered as ‘clues’ for the respective entities. Clues are then used for updating the node representations using a Graph Neural Network (GNN). Clues are also used later for the auxiliary task of supporting facts prediction.

  • SP6 propose constructing a hierarchical graph network with four types of nodes that represent question text, relevant paragraphs, sentences in these paragraphs and entities in these sentences. Bidirectional edges are introduced between the first hop source sentences and second hop target paragraphs. Edges are also introduced between paragraph and its sentences; sentence and the entities it contains; question and the entities it contains; between all paragraphs; between each sentence and its previous and next sentences. RoBERTa is used for encoding and a bi-attention and a Bi-LSTM layer are used for getting initial contextualized representations of the nodes. Graph Attention Network (GAT) [gat] is applied over the hierarchical graph and the updated representations are merged with the original contextual representations using a gated attention mechanism. The merged representations are passed to the answer prediction module. The proposed gated merging is supposed to be effective for dealing with smaller number of hops.

  • LL14 build a use abstract meaning representations (AMR) [amr] to build a semantic graph from a passage. Graphs across passages are connected by adding edges between the same concepts in different graphs. A non-parametrized method is employed for generating reasoning chains. A depth first search (DFS) is used to find all paths from the question nodes to the answer nodes and all the edges on the path are used to recover the facts from the context that form the reasoning chain. The reader reads these reasoning chains and the question to predict the answer. A reinforcement learning based chain-aware loss is proposed to boost the performance of the system.

  • Similar to LL14 ll13 and LL19 build a semantic graph. However, the entities and relations are extracted using GPT-3.5.

  • SP8 construct a graph of documents and add edges if the documents have a shared entity. Question aware embeddings of the document are generated by Albert and used as initial node representations. GAT is used to update the representations of each shared entity. To update the representations of non-entity tokens, they are fed to a transformer along with the updated representations for multi-document fusion. The updated representations are passed to the answer prediction module.

  • SP12 make entity graph of all entity mentions of the answer candidate in supporting documents. Cross-document edges are added between the mentions about the same entity and within-document edges are added between every node pair belonging to the same document. For initial representations, GloVe and ELMo are used for token-level and contextualized embeddings respectively. Contextualized embeddings are crucial since graph nodes only contain entity tokens. To deal with entities containing multiple words, average is taken over their embeddings. The two embeddings are passed to a 1 layer NN (replaced by Bi-LSTM for encoding the question) for getting the initial node representations which are concatenated with the NER and POS embeddings before feeding to a GCN layer.

  • SP13 compute similarity between GloVe embeddings of each word of the sentence with each word of the query and take the mean among m(=5) closest sentence words to get a sentence score and select top k(=25 or 30) sentences. A graph containing sentence nodes and document nodes is created with only the selected sentences. Edges are added between documents if they have a shared entity and between a paragraph and all its sentences. Adding edges among sentences adds complexity without much improvement. Initial representation of a node is computed by passing the matrix of GloVe embeddings of the entities contained in the sentence or paragraph to a bi-linear attention [kim2018bilinear] layer on nodes and query. To compress the representations into fixed size, self-attention is used. T(=3) layers of Gated Graph Neural Network is used to update the representations.

  • SP15 create an entity graph similar to SP12 but have some additional edge types: co-reference edges: between co-reference mentions of the same entity (separate type since these are less reliable) and complement edges which signify no connection between the two nodes. Co-reference edges is a separate edge type since these are less reliable owing to the error in the co-reference system. These are not required for the masked version. The query representations are formed by passing ELMo [elmo] to a Bidirectional RNN [rumelhart1985learning]. Initial query dependent node representations are formed by passing the ELMo contextual embeddings to a feed forward network. L layers of a gated relational-GCN [schlichtkrull2017modeling] R-GCN, a version of GCN are applied to get the final representations which are passed to the prediction module. Relational-GCN is able to accommodate different edge types by using different weight matrices for the neighbouring nodes connected by different edge types. An ablation experiment verifies that, although useful, co-reference edges have the least contribution to performance. Another experiment tries to predict the edge type by training a model but the performance is poor.

  • DP6 solve the text-table hybrid MHQA by using the retrieved cells from the previous stage to then decide which neighboring cell to hop to.

  • SP25 construct an entity graph and add edges between entities with the same mention text, between entities belonging to the same sentence, and between each entity in a paragraph and each entity in its title. Question and contexts are concatenated and passed to a BERT model followed by a bi-attention layer to get the contextual node representations. The following four steps are performed iteratively: 1) Mean-max pooling over tokens in an entity mention to update the entity embeddings. 2) Attention between query and entity is used to compute the mask weights which are multiplied to the entity representations before feeding to a GAT. 3) Updated entity representations are concatenated to entity tokens and representations of all tokens are updated using an LSTM layer. 4) Bi-directional attention between query and entity representations is used to update the query representation. Updating embeddings of each token is necessary since the answer might not be an entity.

  • SP16 create two different graphs: a) sentence graph with edges between sentences belonging to the same paragraph and between sentences that share an entity. b) entity graph with edges between entities appearing in the same sentence, between different mentions of same entities and between each entity in the paragraph to each entity in its title. The intuition is that humans first focus on question-related paragraphs, then sentences, and then the important words. BERT word embeddings are passed to a bidirectional attention layer to get the contextual embedding. They also propose a novel similarity matrix for the layer. Self attention is applied to the query and query aware node embeddings are passed to a GAT. Self attention is applied on the sentence node representations and the output is appended by the representation of each word in the sentence. An LSTM is applied to fuse the output of 2 graphs.

  • SP20 form a sentence graph and add an edge between sentences sisubscript𝑠𝑖s_{i}italic_s start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT and sjsubscript𝑠𝑗s_{j}italic_s start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT with the weight wijsubscript𝑤𝑖𝑗w_{ij}italic_w start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT given by:

    wij={11+en+K1si and sj have n>0 shared entities11+ed+K2si and sj belong to the same paragraphseparated by d sentences.subscript𝑤𝑖𝑗cases11superscript𝑒𝑛subscript𝐾1si and sj have n>0 shared entities11superscript𝑒𝑑subscript𝐾2si and sj belong to the same paragraphotherwiseseparated by d sentences.w_{ij}=\begin{cases}\frac{1}{1+e^{-n+K_{1}}}&\text{$s_{i}$ and $s_{j}$ have $n% >0$ shared entities}\\ \frac{1}{1+e^{d+K_{2}}}&\text{$s_{i}$ and $s_{j}$ belong to the same paragraph% }\\ &\text{separated by $d$ sentences.}\end{cases}italic_w start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT = { start_ROW start_CELL divide start_ARG 1 end_ARG start_ARG 1 + italic_e start_POSTSUPERSCRIPT - italic_n + italic_K start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT end_ARG end_CELL start_CELL italic_s start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT and italic_s start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT have italic_n > 0 shared entities end_CELL end_ROW start_ROW start_CELL divide start_ARG 1 end_ARG start_ARG 1 + italic_e start_POSTSUPERSCRIPT italic_d + italic_K start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT end_POSTSUPERSCRIPT end_ARG end_CELL start_CELL italic_s start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT and italic_s start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT belong to the same paragraph end_CELL end_ROW start_ROW start_CELL end_CELL start_CELL separated by italic_d sentences. end_CELL end_ROW (4.2)

    These weights allow the model to deal with the edge types in a novel way. The concatenated paragraphs along with the question are fed to a BERT followed by a bi-attention layer. Sentence representations are obtained by extracting token level embeddings from the paragraph encoding and a weighted addition of token embeddings where the weights are calculated using a two layer MLP (Multi Layer Perceptron). Most methods using GNN perform message passing for each node in parallel. This requires the representation of nodes to be updated exactly L𝐿Litalic_L times where L𝐿Litalic_L needs to be specified as a hyper-parameter. If L𝐿Litalic_L is large, it leads to over smoothing. If it is too small, it inhibits long-path reasoning. Moreover, this algorithm performs unnecessary updates leading to inefficiency. Thus, a novel message passing algorithm is proposed which performs a BFS starting from the question and passing the messages through every edge that is visited in the process.

Critique: SP13 argue that the advantage of using graph-structured representations lies in reducing the inference steps necessary to combine multiple pieces of information related in a path-like manner. The fact that the required graphs (or some parts of it) can be created offline gives it a computational advantage. However, graph structure also has certain limitation [SP10], particularly for comparison type questions in HotpotQA where the evidence paragraphs about the two entities are independent. Many of the techniques assume that the relation between nodes is directional which may not always be the case. For gated GNNs, computational efficiency as well as the learning ability of the model degrades with the increasing number of nodes and edge types in the graph used.

While the graph structure is prevalent for multi-hop reasoning, SP26 argue that it is not necessary and that graph attention can be considered as a special case of self-attention. Treating SP25 as the baseline, results are compared after removing the graph fusion module. It is observed that the performance gained by using the graph structure can be easily compensated for by fine-tuning the BERT based encoder. While the graph structure enables the model to focus only on adjacent nodes, a model without any prior knowledge can still learn this behaviour. This is verified by further experiments. When the graph fusion module is replaced by self-attention layers the results are very similar whereas replacing it by a transformer leads to a significant improvement. Graph attention reduces to self-attention for a fully connected graph making it a special case of self-attention. Attention patterns are visualized and observed similar to kovaleva-etal-2019-revealing. It is found that the pre-trained transformers are able to capture several types of attention patterns: a) between entities, b) between co-referenced entities, c) between an entity and its attribute, and d) between an entity and a sentence. Depending on the structure of the graph, these patterns may or may not be covered by graph attention. Therefore, self-attention can be said to be more general and flexible than graph attention.

4.2.2 Question Decomposition Techniques

The key idea here is to decompose the multi-hop question into multiple single hop questions and use a single-hop QA model to answer each of the questions. This approach is particularly effective for questions like the bridge questions in HotpotQA that are constructed using a bridge entity. These questions can be easily decomposed into two sub-questions by finding the bridge entity. LL2 manually label the decomposition for questions across multiple datasets and use GPT-3 and RoBERTa to answer the questions and observe that question decomposition can help fix 60%percent6060\%60 % of the errors made on the original multi-hop questions. However, this technique exploits the knowledge about the structure of question and thus, is difficult to adapt when the structure of the questions can be flexible. Below we list some representatives methods for this approach:

  • SP14 use the hypothesis that each sub-question can be formed from a multi-hop question by copying and lightly editing a key span from it. Questions in HotpotQA are categorized into four categories: bridge (47%), comparison (22%), intersection (23%)(questions asking for an entity that satisfy multiple properties) and others (8%). Editing methods are proposed to be dependent on the question type for the first three categories. Question text is segmented into several spans by training a pointer network that predicts pijsubscript𝑝𝑖𝑗p_{ij}italic_p start_POSTSUBSCRIPT italic_i italic_j end_POSTSUBSCRIPT, the probability of the ithsuperscript𝑖𝑡i^{th}italic_i start_POSTSUPERSCRIPT italic_t italic_h end_POSTSUPERSCRIPT word to be the jthsuperscript𝑗𝑡j^{th}italic_j start_POSTSUPERSCRIPT italic_t italic_h end_POSTSUPERSCRIPT index to split the question. 400 annotations are manually generated for training. For each question, three such indices for bridge questions, two indices for intersection and four indices for comparison questions are predicted by maximizing the joint probability of the decomposition. These spans are modified slightly depending on the reasoning type. Any single-hop QA model can be used for answering each single hop question. Concatenation of the question, the reasoning type, the answer, and the evidence is encoded using BERT and scored using 1 layer feed forward NN with sigmoid activation. The reasoning type is decided as the one resulting in the maximum score. An alternative way where the reasoning type is predicted before decomposing and answering is tried and found to be giving poor results. To verify the original hypothesis, same technique is tested with span-based questions replaced by human written questions. There is a little difference in model performance indicating that the span-based sub-questions are as effective as free-form sub-questions.

  • SP21 break down the task of MHQA into two components: Coarse grained decomposition and Fine grained interaction. The decomposition module is responsible for making the high dimensional vector distribution of entity nouns or pronouns more inclined to the intermediate answer to the question. The fine grained interaction module is a modified bidirectional attention module. The resulting context representations are passed to a self-attention layer and then used for supporting facts prediction by passing to a Bi-GRU layer.

  • SP22 propose MHQA methods for four different datasets: HybridQA, QASPER, HotpotQA-Long and ShARC-Long. QASPER is originally proposed as single hop QA over long documents whereas ShARC is proposed as a conversational QA task. The paper utilizes the fact that long documents are often structured into sections and subsections which can be used as separate contexts with limited dependence among them. A pre-trained ETC model [ainslie-etal-2020-etc] is used as the question encoder and the context encoder. ETC is a pre-trained Mask Language Model that employs a global-local attention mechanism. ETC assigns to each sentence a special global token that only attends to local tokens in the sentence, and its embedding is trained to summarize the information of local tokens in the sentence. ETC additionally adopts Contrastive Predictive Coding (CPC) [van2018representation] to train the embedding of global tokens to make them aware of other sentences in the context. It takes in a sequence of sentences and outputs the contextualized representations of each sentence. For conversational QA, the question is formed by concatenating the original question with a sentence formed by each pair of follow-up question and answer. ETC is again used to encode the question paragraph. For the 2-hop questions (HotpotQA, HybridQA), a null sentence is passed to ETC along with the question to get two question encodings. The paragraph embeddings are computed by a weighted sum of sentence embeddings, where weights are the attention score of the query vector to that sentence. At every step, each sentence and every paragraph in the document is attended to the query and the output is used to update the query representations. The updated query representation are then combined with the embedding of next query sentence to give the query vector for the next hop.

Critique: SP14 also find that some of the questions are not composed of two single-hop questions but require implicit multi-hop reasoning, hence cannot be decomposed. Secondly, for some questions, answer for each sub-question does not exist explicitly in the text and has to be inferred with commonsense reasoning.

4.2.3 Miscellaneous Techniques

In this section, we list some interesting approaches that do not fall into the above defined categories.

  • Question generation: LL18 propose multi-task training of a model to perform both multi-hop question answering and sub-questions generation. The motivation is that a model capable of asking good sub-questions corresponding to a complex question should perform well at MHQA. The system consists of a GNN based QA component and an LM based QG component that are trained together with a shared encoder.

  • Entailment based MHQA: Equation 2.1 presents MHQA roughly as an entailment task, where the premise consists of multiple contexts and the hypothesis is "a answers q" (referred as Haqsubscript𝐻𝑎𝑞H_{aq}italic_H start_POSTSUBSCRIPT italic_a italic_q end_POSTSUBSCRIPT henceforth). This indicates the utility of entailment models for the task. However, modelling MHQA as entailment faces three major challenges: a) A larger set of possible answers makes this method difficult to scale. b) MHQA requires aggregation of multiple contexts and single sentence based entailment models can not be used directly. c) Entailment models are usually not trained to filter irrelevant information. SP28 aim to tackle the two latter challenges on Multiple choice datasets, OpenBookQA and MultiRC. Two simple baselines are proposed: Concatenate that concatenates all sentences as the input to an entailment task, and Max of local decisions that uses entailment on each sentence independently and then aggregate the results with a max operation. The two baselines perform poorly validating the challenges mentioned above. Therefore, a novel method ‘Multee’ comprising of a sentence relevance module and a multi-level aggregation is proposed. The sentence relevance module uses a pre-trained entailment model to produce hypothesis aware representation of each sentence which are passed to a Bi-LSTM layer to give contextual representation of each sentence which is fed to a feed forward layer to get the relevance scores αisubscript𝛼𝑖\alpha_{i}italic_α start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT. The multi-level aggregation module pass each sentence along with the hypothesis to k𝑘kitalic_k ESIM [chen-etal-2017-enhanced] entailment stacks to generate k𝑘kitalic_k paragraph level vectors which are concatenated and passed to a feed forward layer to predict the entailment. Each entailment stack has m𝑚mitalic_m layers, l𝑙litalic_l of these layers process each sentence independently and the outputs are aggregated by using αisubscript𝛼𝑖\alpha_{i}italic_α start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT’s. Rest of the layers process this aggregated output to result in paragraph level embeddings. The aggregation is also done in the cross attention layer to produce a cross attention matrix containing attention between each hypothesis token and each paragraph token. The sentence relevance weights are used here as well. Each entailment stack used is pre-trained on SNLI [bowman2015large] and MultiNLI [williams-etal-2018-broad].

  • Commonsense knowledge for MHQA: SP27 argue that a pre-trained model may not be able to capture every grounded common-sense knowledge even with large corpora and propose using ConceptNet [speer2016conceptnet] for extracting the same and using it, form reasoning paths leading to the answer. A tree of various reasoning paths, all starting from the question concepts (c1ssuperscriptsubscript𝑐1𝑠c_{1}^{\prime}sitalic_c start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT italic_s) is formed by following four steps: a) Selecting relations r1ssuperscriptsubscript𝑟1𝑠r_{1}^{\prime}sitalic_r start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT italic_s from ConceptNet that link c1subscript𝑐1c_{1}italic_c start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT to another concept c2subscript𝑐2c_{2}italic_c start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT from the context. b) selecting relations r2ssuperscriptsubscript𝑟2𝑠r_{2}^{\prime}sitalic_r start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT italic_s that link c2subscript𝑐2c_{2}italic_c start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT to another concept c3subscript𝑐3c_{3}italic_c start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT from the context. c) Selecting all neighbouring concepts c4subscript𝑐4c_{4}italic_c start_POSTSUBSCRIPT 4 end_POSTSUBSCRIPT of c3subscript𝑐3c_{3}italic_c start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT connected by r3subscript𝑟3r_{3}italic_r start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT. d) Selecting relations r4subscript𝑟4r_{4}italic_r start_POSTSUBSCRIPT 4 end_POSTSUBSCRIPT that link c4subscript𝑐4c_{4}italic_c start_POSTSUBSCRIPT 4 end_POSTSUBSCRIPT to another concept c5subscript𝑐5c_{5}italic_c start_POSTSUBSCRIPT 5 end_POSTSUBSCRIPT from the context. This results in a large number of reasoning paths that are scored in two steps: a) nscore𝑛𝑠𝑐𝑜𝑟𝑒n-scoreitalic_n - italic_s italic_c italic_o italic_r italic_e is computed by term frequency of each of c2,c3,c5subscript𝑐2subscript𝑐3subscript𝑐5c_{2},c_{3},c_{5}italic_c start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , italic_c start_POSTSUBSCRIPT 3 end_POSTSUBSCRIPT , italic_c start_POSTSUBSCRIPT 5 end_POSTSUBSCRIPT in the context C𝐶Citalic_C. c4subscript𝑐4c_{4}italic_c start_POSTSUBSCRIPT 4 end_POSTSUBSCRIPT is scored with its Point-wise Mutual Information (PMI) [church-hanks-1990-word] with c13subscript𝑐13c_{1-3}italic_c start_POSTSUBSCRIPT 1 - 3 end_POSTSUBSCRIPT. Each node’s score is normalized across all its siblings in the tree using Softmax. b) cscore𝑐𝑠𝑐𝑜𝑟𝑒c-scoreitalic_c - italic_s italic_c italic_o italic_r italic_e The node scores are accumulated starting from the leaf node and updating each non-leaf node recursively.

    c_score(ci)={n_score(ci)ci is a leaf noden_score(ci)+c_score(ci+1)+c_score(ci+1′′)2otherwise𝑐_𝑠𝑐𝑜𝑟𝑒subscript𝑐𝑖cases𝑛_𝑠𝑐𝑜𝑟𝑒subscript𝑐𝑖subscript𝑐𝑖 is a leaf node𝑛_𝑠𝑐𝑜𝑟𝑒subscript𝑐𝑖𝑐_𝑠𝑐𝑜𝑟𝑒superscriptsubscript𝑐𝑖1𝑐_𝑠𝑐𝑜𝑟𝑒superscriptsubscript𝑐𝑖1′′2𝑜𝑡𝑒𝑟𝑤𝑖𝑠𝑒c\_score(c_{i})=\begin{cases}n\_score(c_{i})&c_{i}\text{ is a leaf node}\\ n\_score(c_{i})+\frac{c\_score(c_{i+1}^{\prime})+c\_score(c_{i+1}^{\prime% \prime})}{2}&otherwise\end{cases}italic_c _ italic_s italic_c italic_o italic_r italic_e ( italic_c start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) = { start_ROW start_CELL italic_n _ italic_s italic_c italic_o italic_r italic_e ( italic_c start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) end_CELL start_CELL italic_c start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT is a leaf node end_CELL end_ROW start_ROW start_CELL italic_n _ italic_s italic_c italic_o italic_r italic_e ( italic_c start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) + divide start_ARG italic_c _ italic_s italic_c italic_o italic_r italic_e ( italic_c start_POSTSUBSCRIPT italic_i + 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT ) + italic_c _ italic_s italic_c italic_o italic_r italic_e ( italic_c start_POSTSUBSCRIPT italic_i + 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ ′ end_POSTSUPERSCRIPT ) end_ARG start_ARG 2 end_ARG end_CELL start_CELL italic_o italic_t italic_h italic_e italic_r italic_w italic_i italic_s italic_e end_CELL end_ROW (4.3)

    where ci+1superscriptsubscript𝑐𝑖1c_{i+1}^{\prime}italic_c start_POSTSUBSCRIPT italic_i + 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ end_POSTSUPERSCRIPT and ci+1′′superscriptsubscript𝑐𝑖1′′c_{i+1}^{\prime\prime}italic_c start_POSTSUBSCRIPT italic_i + 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT ′ ′ end_POSTSUPERSCRIPT are the top two scoring children of cisubscript𝑐𝑖c_{i}italic_c start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT. At each level of the tree, for every node, only the two top scoring children are maintained and the rest are pruned resulting in a total of 24superscript242^{4}2 start_POSTSUPERSCRIPT 4 end_POSTSUPERSCRIPT reasoning paths. Context representation is attended to the commonsense representations formed by embedding the tokens in each of the reasoning paths. Updated context representation is combined with the original one using a sigmoid gate. The gate incorporates the fact that the commonsense might be optional. Hence, the unit is called NOIC (Necessary and Optional Information Cell).

  • Reasoning over tables: DP6 use BERT to encode a cell in a table where a cell is represented by its value, position, hyperlinks etc. Encoding of a cell along with the encodings of its neighbouring cells is fed to a feed forward model and a Softmax layer to find the cell for the next hop. The model can also hop to the same cell. The cell value is prepended to the hyperlinked passage and passed to the answer prediction module.

  • Pointer network for reasoning chain prediction: SP19 encode the question and obtain query dependent paragraph encoding by using BERT. Sentence encodings are extracted from the paragraph encoding similar to SP20. Alternative baselines are a) BERT-Sent that obtains query aware encoding of each sentence by using BERT and b) BiDAF-Para that uses BiDAF [bidaf] to encode paragraphs. Results show that BERT-para performs the best. An LSTM Pointer Network is trained to predict probability of each sentence being the tth𝑡𝑡t-{th}italic_t - italic_t italic_h sentence in the reasoning chain i.e., P(si=rct)𝑃subscript𝑠𝑖𝑟subscript𝑐𝑡P(s_{i}=rc_{t})italic_P ( italic_s start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT = italic_r italic_c start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT ). The ground truth reasoning chain is determined using a chain extractor model discussed in Section 4.4. The model is trained using both Negative Log Likelihood (NLL) and Reinforcement Learning (RL). However, RL does not improve the performance significantly. During test time, a beam of possible chains is maintained since the best chain may not be evident until it is entirely retrieved.

  • Bi-directional attention baseline: DP1 propose a baseline by modifying the architecture of SP45. Question and the concatenation of paragraphs is passed to an RNN for combining the character and word level embeddings. Bi-directional attention is applied across the question and context embeddings to get query aware context representations. A residual connection is added to the output of another RNN on these representations before passing to a self-attention layer.

4.3 Answer Prediction Module

After the reasoning module outputs a reasoning chain or some latent space representations of the reasoning, an answer prediction module predicts the final answer. This module can be directly categorized based on the type of answer required by the task at hand:

4.3.1 Candidate Answering

This category corresponds to the multi-choice setting of the MHQA task. Methods dealing with candidate answer prediction usually start the retrieval/reasoning process by using a candidate-aware embedding of the question, and output the representations for each candidate independently. We look at some of these methods below:

  • A Bi-directional attention layer on query and context [SP12], or a self-attention layer on the embeddings may also be employed.

  • Some of the methods use these representations to perform an independent binary classification for each candidate (for multiple-correct type questions such as MultiRC) [SP4, SP7, SP9, SP28].

  • On the other hand, some methods perform a multi-way classification for all candidates (for single-correct type questions such as OpenBookQA, WikiHop) [SP7, SP9, SP12, SP15, SP19].

  • SP15 use an ensemble of five models, each trained with a different weight initialization.

  • SP7 use both the answering methods for QASC and find that the multi-way classification results in an improvement of  5% accuracy.

4.3.2 Span Answering

For tasks requiring the answer as a text span from the contexts, the following methods have been proposed:

  • DP1 suggest a span answering approach where the output of the reasoning module is passed to another RNN for supporting facts prediction. Another RNN is used to predict the start and end token of the answer span. Finally, a three-way classifier layer is used to predict the answer type among ’yes’, ’no’ and the extracted span. Many methods focusing on the first two units use this baseline as the answer prediction unit [SP2, SP3, SP10, SP16, SP21, SP25, SP26].

  • SP24 make two changes to the above baseline: a) Concatenating passages before encoding makes the representations depend on the order while concatenating. Thus, a shared RNN encoder first encodes each passage independently and then concatenates the representations. b) All the attention layers are replaced by self-attention on the concatenated question and context representation.

  • SP1, SP6 replace the RNNs in the above baseline by MLPs and directly feed the node representations for answering. SP5 deal only with bridge question and hence use a single MLP for span prediction on entities. SP13 only deal with supporting facts prediction and use a single MLP for the same.

  • SP8 use an AlBERT model to predict the answer span among the K𝐾Kitalic_K identified passages. The model then predicts if the answer was found in the given passage. If not, the predicted span is used for iterative retrieval for the next hop.

  • SP14 use an off-the-shelf single-hop answering module to answer the sub-questions formed by the reasoner.

  • SP17 use a simple BERT model to answer the question from the paragraph identified as the answer paragraph. SP23 do the same from the concatenation of the two identified passages.

  • SP19 concatenate question and all sentences of all the retrieved reasoning chains and feed to BERT to perform the 4 tasks.

  • SP20 propose to use the output of the GNN model. Sentence scores are computed using MLPs on the sentence node representations. Paragraph scores are computed using MLPs on max pooling over the sentence representations. The two scores are combined with the span extraction score to predict the final answer. Separate MLPs are used for predicting the answer type and the supporting facts.

  • SP22 Concatenate the embeddings at all retrieved steps {k0,,k,,k0,,k}superscript𝑘0superscript𝑘superscript𝑘0superscript𝑘\{k^{0},\cdots,k^{\ast},\cdots,k^{0},\cdots,k^{\ast}\}{ italic_k start_POSTSUPERSCRIPT 0 end_POSTSUPERSCRIPT , ⋯ , italic_k start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT , ⋯ , italic_k start_POSTSUPERSCRIPT 0 end_POSTSUPERSCRIPT , ⋯ , italic_k start_POSTSUPERSCRIPT ∗ end_POSTSUPERSCRIPT } and perform a weighted sum to get 𝒦𝒦\mathcal{K}caligraphic_K that is used to make the final prediction. The Softmax weight 𝒴jsubscript𝒴𝑗\mathcal{Y}_{j}caligraphic_Y start_POSTSUBSCRIPT italic_j end_POSTSUBSCRIPT is computed across the retrieved sentences from all steps.

4.3.3 Generative Answering

Previously, generative answering models had a low prevalence because of the unsatisfactory performance of models to generate relevant texts as well as the lack of reliable evaluation techniques. As a representative of the earlier approaches, SP27 use a self-attention layer followed by a PGN decoder to get the final answer.

However, with the recent advancements relating to large language models (LLMs), generative answering approaches have become a lot more popular. We describe these methods in detail in Chapter 5 designated to LLMs for MHQA.

4.4 Auxiliary Tasks

A lot of existing approaches suggest using an auxiliary training task that can help the training of the model by providing an extra signal. Here are two of the commonly used auxiliary tasks:

4.4.1 Reasoning Chain Prediction

Reasoning chains are an integral part of explainable MHQA. HotpotQA contains the supporting facts that are required to answer the question, however these are not ordered. Several works have aimed to predict the order among these supporting facts by using simple lexical heuristics [AP6, AP5, AP2] so that the reasoning chain formed can be used to further train or evaluate a model. However, it is also crucial for the models to be able to predict the reasoning chains only by using the question and contexts.

  • SP18 propose a semi supervised reinforcement learning for two modules to recover the reasoning chain in a cooperative-game approach. Apart from predicting the reasoning chain, the model is also able to predict the relations among the sentences. The two modules are: a) Ranker module that, given k𝑘kitalic_k passages and a question, selects a reasoning chain. Question and passages are encoded by bi-GRU [cho2014learning] and a Match-LSTM [wang2016machine] model is used to get a probability for each passage containing a part of the reasoning chain. A passage is then sampled and used to update the question by passing to an MLP. The process is repeated with the updated question. The ranker module is rewarded for selecting the correct passage at the correct reasoning step. b) Reasoner module that predicts the entity from the current passage to the next passage. Given the first passage (called head) selected by the trained Ranker, the Reasoner uses a Math-LSTM model to predict the probability of each entity appearing in the second passage (called tail). While the ordering of the supporting facts is generated similar to DP1 for HotpotQA, the reasoning chains need to be manually annotated for MedHop. The manual annotation is done by extracting all valid paths such that the first sentence contains an entity in the second sentence and the second contains the answer. A chain is manually labelled as positive if the corresponding passage describes the drug-protein interaction. Reasoning chains extracted in this way may not be unique.

  • SP19 derive pseudo gold chains using NER and co-reference resolution. A sentence (only) graph is constructed with edges between sentences that belong to the same paragraph and between those that have a shared entity. Reasoning chains are collected by starting from the question node and finding all possible paths in the graph that lead to an answer containing sentence. These chains are then ranked by two heuristics: a) shorter chains are given higher scores. b) chains whose sentences have a high F-1 ROUGE overlap with the question are given higher scores. Experimental results indicate that b) is a good criteria for scoring chains. Human evaluation shows that the reasoning chains produced are of similar quality compared to the supporting facts present in the HotpotQA. A pointer network is then trained to predict each sentence in the reasoning chains.

4.4.2 QA with Partial Knowledge

SP29 propose a new sub task of MHQA where the model has to figure out and fill the knowledge gap for question answering. It is assumed that the first hop retrieval has been performed ideally and the task is to use the retrieved context to answer the question. A modified version of OpenBookQA is released where the core fact is part of the input and several relations have been modified.

4.5 Conclusion

In this chapter, we covered a large number of pre-LLM machine learning methods proposed to solve MHQA. While doing so, we provided some structural patters that many methods follow. We also provided various levels of classifications of the methods, with technical details for some representative methods pf each category or subcategory. In chapter 6, we build on this classification to propose a taxonomy covering most of the works discussed in this chapter. In the next chapter, we provide details for how LLMs have been incorporated for different stages of the task along with some challenges and their proposed solutions.

Chapter 5 LLMs for MHQA

Large Language Models (LLMs), including the multiple variants of GPT, BERT and T5 models, have achieved remarkable success in various natural language tasks. We present a comprehensive background of LLMs and various prompting techniques in the Appendix A.5. We also recommend llm-survey as an additional reading for a comprehensive survey on LLMs.

Since language models like T5, BERT have been used for multiple tasks in most methods we have discussed so far, we use the following distinction for LLM-based methods: A method is LLM-based if it makes use of the emergent abilities of the LLMs [llm-survey] which include in-context learning and instruction following111This distinction is made for the sole purpose of better structuring the discussion.. We categorize LLM based methods based on the sub-task the LLM performs.

5.1 Retrieval

LL20 explore using LLMs for retrieving relevant evidences from long documents. Major challenge in using LLMs for retrieval is their limited context window size. The performance decreases drastically as the input context becomes larger than the context window size. To deal with this challenge, each section in the document is independently summarized by an LLM. These summaries are concatenated together in another LLM prompt, where the instruction is to get a list of relevant sections. Once a set of relevant sections is obtained, the next step is to retrieve the relevant paragraphs from each of these sections. For this, each paragraph is summarized and passed to the LLM to get the set of relevant paragraphs. A bart-large [bart] trained over the CNN/Daily-Mail Corpus [cnn] is used for summarization, and GPT-3.5 is used for retrieval and answering.

5.2 Reasoning Chain Generation

Existing works have extensively explored GPT prompting for various QA tasks. Although few-shot prompting on LLMs for reasoning showed limited success [folio], chain of thought prompting (CoT) has shown better reasoning abilities. CoT is particularly useful for explainable MHQA since the generated chain of thought can be used as the reasoning chain [gpt-qa5, gpt-qa6]. [saparov] use synthetic data to evaluate GPT-3’s reasoning ability and measure the coherence of generated reasoning chains. Results indicate that GPT-3 can perform multiple steps of reasoning but may rely on background knowledge rather than explicit reasoning over the given context.

Below, we list a few works and describe in detail how the LLM was used for generating reasoning chains.

  • [LL13] evaluate T5 and Flan-T5 [flant5] models with and without fine-tuning on chain-of-thought explanations and in zero-shot, few-shot and CoT prompting settings on complex multi-hop queries. The results indicate the need for improvement in the existing methods.

  • [gpt-qa5, gpt-qa6] get promising results by directly using the chain-of-though explanations as reasoning chains.

  • PathFiD [LL15] was one of the first to use a large language model for modeling the task as a sequence generation problem. However, the task was not modelled as a free-text natural language generation. A pre-trained T5 model was fine-tuned to generate a ‘reasoning path’. A reasoning path is defined as a sequence of sentences from the context passage along with the corresponding passage title, followed by the answer to the question. The encoder independently encodes the ‘blocks’ (sentence and corresponding paragraph title) in the retrieved context and the decoder decodes the reasoning path by selecting the relevant blocks and deriving the answer.

  • LL16 extend the idea of PathFiD by proposing the LLM to generate parallel exploratory inference chains (EICs). They follow a multi-step generation process, prompting an LLM multiple times with different prompts in the process. During the first step, a LLM is prompted to generate some keywords from the question and the paragraph titles. These keywords are then processed independently in parallel. A keyword is matched lexically with available paragraph titles to retrieve the paragraphs for the next step, and the LLM is prompted with the retrieved passage to predict some structured facts about the keyword. The object in these generated fact is used as a keyword for the next reasoning step. Two independent LLMs are prompted to aggregate the facts for each keyword and to aggregate facts across keywords to generate a final answer. Impressively, the resulting system is able to significantly outperform a single chain-of-thought prompt.

  • [LL12] propose IRCoT which uses interleaving-retrieval with CoT reasoning to iteratively perform retrieval and reasoning together. For each iteration, 1) the CoT-guided retrieval step (“Retrieve”) uses the last generated CoT sentence as a query to retrieve more paragraphs and adds them to the accumulating set of the collected paragraphs, and 2)the retrieval-guided reasoning step generates the next sentence of the CoT using the previously generated sentences along with the retrieved contexts. Finally, another LLM derives the answer using the generated CoT and the retrieved paragraphs.

5.3 Hybrid Text-table Reasoning

The following methods for utilizing LLMs for solving hybrid MHQA have been proposed:

  • LL17 were one of the first to use LLMs for solving table-text hybrid MHQA. They train a sequence-to-sequence LLM similar to LL15, to encode the retrieved contexts and question. The decoder, however, performs auto-regressive generation to predict the answer sentence. They also compare a prompting based approach where the retrieved contexts are provided to GPT-3.5 along with few-shot and CoT prompts. The results showed promising performance of CoT but still the fine-tuned model outperformed all the prompting techniques.

  • finqa propose converting a table into text using template based transformation and then use a RoBERTa to retrieve sentences from the combined set of original text and converted text.

  • mavi test the GPT-3.5 and Llama2’s ability to parse tabular data by representing a table in text by using separators such as |||| and ||||| | to separate cells in a row and multiple rows respectively and observe promising performance on tabular reasoning.

  • LL25 explore using program generation and execution based framework for hybrid MHQA and get promising results.

5.4 Question Decomposition

Since GPT has shown remarkable language understanding, motivating its use as a decomposition module for decomposition based MHQA ([gpt-qa2, gpt-qa4]).

  • LL1 explore large-scale intermediate pre-training of a T5 model to perform question decomposition. For constructing a large enough dataset for pre-training, distant supervision from comparable texts is used. In particular, parallel news articles describing the same events are used. The hypothesis is that seeing multiple descriptions of the same facts will help the model make better educated guesses. The proposed model, called DecompEntail, first generates explicit question decomposition, then makes factual corrections on the decomposed statements with GPT-3. As a final step, an entailment model is used to derive the final answer with the generated decomposition as the premise and the question and candidate answer as the hypothesis.

  • LL35 perform question decomposition in the semantic space by using an AMR graph. They build an AMR graph from the question and add an additional ‘amr-unknown’ node denoting a concept that represents the answer. The AMR is segmented into sub-graphs using some heuristics and each sub-graph is passed to a pre-trained BART model that converts it into a sub-question. Finally, a single-hop QA model is used for answering the sub-questions.

  • LL26 fine-tune a sequence-to-sequence LLMs to generate sub-questions using the given multi-hop question. A set of retrieved context is also given as input during this step. The sub-questions are used for performing a second round of retrieval using a DeBERTa model [deberta]. Another DeBERTa model is used on the concatenation of the retrieved paragraphs and sub-questions to generate the final answer.

5.5 Graph Construction

LL19 prompt an LLM with a Wikipedia passage to build a semantic graph. This is done by prompting the LLM to extract all the entities in the document and then prompt it again to get all the relations among these entities. Finally, each passage and the corresponding semantic graphs are concatenated into a prompt for generating reasoning chain and the final answer.

5.6 Multi-hop Retrieval Augmented Generation

Retrieval Augmented Generation (RAG) is the term given to the general framework where a generative model (usually a LLM) performs generation by using a set of facts extracted by a retriever. In RAG, an external corpus containing multiple documents serves as the knowledge base. Each document within this corpus is segmented into a set of chunks. These chunks are then transformed into vector representations using an embedding model and stored in an embedding database. Given a user query, the system typically retrieves the top-K chunks that best match the query. The retrieved chunks, combined with the query and an optional prompt, are then fed into an LLM to generate a final answer.

[LL23] build a novel dataset for the development and benchmarking of multi-hop RAG models. The dataset contains a knowledge base for retrieval, a set of multi-hop queries along with their ground truth answers and corresponding supporting facts. The knowledge base is built from a set of news articles. GPT-4 is prompted to extract factual sentences from the news articles

5.7 Critique and Limitations

Despite the impressive linguistic and reasoning abilities of LLMs, they face certain limitations. In this section, we list these limitations and some attempts at resolving these.

5.7.1 Hallucinations

The biggest challenge that the LLMs currently face is that they are known to hallucinate at times, i.e., generating text that is factually incorrect or not derivable from the given information. This poses a threat to accountability of the resulting MHQA system and can produce incorrect results. A large number of works have tried to propose sophisticated and clever ways of overcoming this challenge. We describe few such interesting works in detail below:

  • Self-consistency: Self-consistency [LL33] is proposed as an alternative for the naive greedy decoding used in chain-of-thought prompting. Instead of only taking the greedy decoded reasoning path, a diverse set of reasoning paths are sampled, and then the most consistent answer across the reasoning paths is predicted by marginalizing out the sampled reasoning paths. Self-consistency is motivated by the intuition that a complex reasoning problem typically admits multiple different ways of thinking leading to its unique correct answer. Assuming that the hallucinations in the LLM output are random, self-consistency is more likely to lead to the correct answer since it is unlikely that majority of the reasoning paths with hallucinations lead to a common answer. Therefore, self-consistency has been adopted to mitigate hallucinations.

  • Self-refine: In self-refine [LL34], the LLM generates an initial response to the prompt, and then iteratively provides feedback for the output and refines it. The same LLM serves as the generator, feedback provider as well as the refiner. During self-refine, the LLM can also evaluate the response on factual correctness, thus fixing the hallucinations.

  • [LL21] extend self-consistency and self-refine by fine-tuning external LLMs for providing feedback on the generated reasoning chains. The authors collect labelled data for correctness, error types and descriptions, and the required corrections for each reasoning chain and answer pairs for 2361 examples. They use a weighted self-consistency approach where a fine-tuned Llama2 predicts a score for whether each answer and its corresponding reasoning path are correct or not. This score is used as the weight while voting for the correct answer. They also explore extending self-refine by using a fine-tuned Llama2 model to identify the errors in a reasoning path and refining the generated output.

  • [LL6] propose ‘Verify and Edit’ that combines self-consistency and self-refine. It follows a three-step process: finding uncertain predictions using self-consistency, editing their rationales by searching for supporting facts, and using the edited rationales to generate final answers. An answer is considered as uncertain, if none of the generated answers gets the majority agreement. For each of the predictions corresponding to the uncertain answer, each sentence in the reasoning chain is verified by generating corresponding questions. These questions are answered after retrieval and the answer is used to update the particular sentence in the original reasoning chain. Finally, the updated reasoning chain is used to generate the final corrected answer.

  • [LL3] propose a claim decomposition based technique for self-evaluation of the LLM generated answers. The complex question is broken down into a set of claims that a correct answer to the question must satisfy. The LLM then identifies which claims mention the same entities and include extra tags for them. For evaluating a generated answer, the answer is replaced in each of the claims and the LLM is prompted to answer true/false based on whether the answer satisfies the claim or not. The answer is then scored on the ratio of claims satisfied by it. Multiple answers are predicted by sampling based generation of the reasoning chains and the one with the highest score is predicted.

5.7.2 Knowledge Gaps

[LL24] argue that the challenge of hallucinations is difficult to overcome since the LLMs might always suffer from knowledge gaps. A knowledge gap here refers to some missing or outdated information. Since LLMs heavily rely on knowledge gained during the pre-training phase, outdated or incomplete information in the pre-training corpus can confuse the model, leading to generating factually incorrect text. Further, pre-training LLMs is extremely expensive in terms of time and compute. It is therefore ideal that the LLM is able to detect a knowledge gap and refrain from generating information in such a case. For identifying knowledge gaps, the following approaches can be followed:

  • Calibration-based: getting a probability score for an answer by either using token probabilities and temperature during generation [mtlearner, holisticeval] or directly asking the model to generate its confidence in its output [tian2023just].

  • Training based: training an extra layer [hidden], or an external module [cobbe2021training] to predict whether the answer produced has a high enough confidence. Another interesting way is to use identifying knowledge gaps as one of the instruction tuning tasks [instr].

  • Prompting based: techniques such as self-reflect [selfreflect], self-consistency [LL33] predicting none-of-the-above [selfreflect] or more information needed [moreinfo] instead of predicting the answer.

  • Multi-LLM collaboration: using two independently trained LLMs for either providing feedback to each other, or complementing each other to fill the knowledge gaps in both [LL24].

Chapter 6 MHQA Taxonomy

This chapter builds on the distinctions and classifications drawn in Chapter 4 and our taxonomy that covers the existing methods in a structured way. Creating a taxonomy of existing methods for multi-hop QA is key for sorting through research and making comparisons. It also helps spotting where the community needs to pay more attention. We summarize these in Table 6. The titles and acronyms used in the table are described below, and illustrated in Figure 6.1.

Refer to caption
Figure 6.1: Overview of Our Taxonomy.
  • General:

    • -

      Datasets used111Note that we do not include the datasets used in the proposed Taxonomy, but describe it in this section for the sake of completionstill add it in the Table 6 for the sake of completeness.: The datasets used for MHQA along with their acronyms in Table 6 are: HotpotQA [DP1] in the full-wiki (HP-F) and distractor (HP-D) settings. SP22 provide the modified versions of the ShARC [saeidi2018interpretation] and the HotpotQA datasets as ShARC-Long (Sh-L) and HotpotQA-Long (HP-L). Other datasets are referenced as: MultiRC [DP5] (MRC), ARC [clark2018think] (ARC), QAngaroo datasets [DP2] WikiHop (WH) and MedHop (MH), HybridQA [DP6] (Hy), QASPER [dasigi-etal-2021-dataset] (QSP), OpenBookQA [DP4] (OB), QASC[DP7] (QSC) and Nr [DP3].

    • -

      Hop Constraints: Some of the methods require the type of questions to be exactly two-hop questions (Two) or require the number of hops in the question to be provided as an input (N). Other methods are flexible for answering any-hop questions without any additional input (Any).

    • -

      Answer types: Whether the methods proposed work for MCQ type questions (MCQ), Span based questions (Span) and generative answers (Gen). Note that some methods focus on more than one of these answer types.

    • -

      Domain Specificity: Whether the works focus on domain specific (Specific) or domain generic techniques (Generic).

  • Retrieval:

    • -

      Retriever Type: Whether the preliminary retrieval step uses a dense (Dense) or a lexical (Lexical) retriever.

    • -

      No. of Retrieval Passes: Whether the preliminary step is single pass (Single) or iterative (Iter). In case it is iterative, whether it uses query reformulation (Iter-QR) or Entity-links/Hyperlinks (Iter-EL/H).

    • -

      Final Retrieval Strategy Whether the final retrieval step uses a simple concatenation/union (Concat) of the contexts or it is uses a re-ranking approach (RR). In case, it uses re-ranking, whether the re-ranking is supervised (RR-S-?) or unsupervised (RR-U-?), and whether the individual contexts (RR-?-X) or the entire chain candidates (RR-?-C) are scored during the re-ranking.

  • RC based:

    • -

      Node Granularity: In case the reasoner is a graph based model, what kinds of nodes it has: entity nodes (Ent), sentence nodes (Snt) or passage nodes (Psg). Note that the graph may have more than one type of nodes. (-) in case the reasoner is not graph based.

    • -

      Relational Edge: Whether the graph is a relational graph (Yes) (i.e., has multiple types of edges) or not (No) (i.e., has single edge type). (-) in case the reasoner is not graph based.

    • -

      Question Decomposition: Whether the reasoning module uses question decomposition (QuesD) or not (Other). The rows where both graph-based and decomposition-based columns are (-) are for the models that use other techniques like [bidaf].

By proposing the taxonomy, we hope to help the readers dive into these techniques, see what suits best to their needs or what needs more attention in the existing setup. This should help the research community keep pushing the boundaries for solving MHQA.

Table 6.1: Comprehensive study of existing work using the proposed taxonomy.
Allgemein Retrieval Reasoning
Datasets
Hop
Constraints
Answer
type
Domain
Specificity
Preliminary Final Graph based Ques Decomp
Typ Technique Technique Node types
Relational
graph?
SP1 HP-F N Span Generic Lexical Iter-EL/H Concat Ent Yes Other
SP2 HP-F N Span Generic Dense Iter-QR RR-S-X - - Other
SP3 HP-F Two MCQ Generic Lexical Iter-EL/H RR-S-C - - Other
SP4 ARC, MRC Any MCQ Generic Lexical Single RR-U-C - - Other
SP5 HP-F Two Span Specific Lexical Iter-EL/H RR-S-X - - Other
SP6 HP-F Two MCQ Generic Lexical Iter-EL/H RR-S-C Ent-Snt-Psg No Other
SP7 MRC, QSC Any MCQ Specific Lexical Iter-QR Concat - - Other
SP8 HP-F Any Span Generic Lexical Iter-QR RR-S-X Psg Yes Other
SP9 MRC, QSC Two MCQ Generic Dense Iter-QR RR-S-C - - Other
SP10 HP-F Two Span Generic Lexical Iter-EL/H RR-S-X - - Other
SP11 HP-F Two Span Generic Dense Single RR-S-X - - Other
SP12 WH N Span Generic - - Concat Ent-Snt-Psg No Other
SP13 HP-D N Span Generic - - Concat Snt-Psg No Other
SP14 HP-D Two Span Generic - - Concat - - QuesD
SP15 WH N Span Generic - - Concat Ent No Other
SP16 HP-D N Span Generic - - RR-S-X Ent-Snt No Other
SP17 HP-D Any Span Generic Lexical Iter-QR RR-S-X - - QuesD
SP18 MH, HP-D N Span Specific Dense Single RR-S-C - - Other
SP19 WH, HP-D N Span Generic - - Concat Snt No Other
SP20 HP-D Any Span Generic - - Concat Snt No Other
SP21 HP-D Any Span Generic - - Concat - - QuesD
SP22
HP-L, Sh-L
QSP, Hy
N Span Specific - - Concat - - QuesD
SP23 WH, HP-D Two Span Generic - - RR-S-C - - Other
SP24 HP-D N Span Generic Lexical Iter-QR Concat - - Other
SP25 HP-D N Span Generic - - RR-S-X Ent No Other
SP26 HP-D N Span Generic - - RR-S-X - - Other
SP27 Nr N Gen Specific - - RR-S-X Ent Yes Other
SP28 MRC, OB Any MCQ Generic - - Concat - - Other
SP29 OB - MCQ Specific Lexical Single Concat - - Other

Chapter 7 How to Evaluate MHQA Systems?

Having evaluation metrics suited to a task is crucial for grasping the task’s nuances and gauging the performance of the existing or proposed methods accurately. It ensures researchers assess systems effectively and compare results meaningfully. Future research should benefit clear metrics guide development, revealing where improvements are needed and facilitating advancements in techniques tailored to the intricacies of the task. In this chapter, we look at some commonly used evaluation metrics and potential limitations of using them. We follow our discussion with various sophisticated and clever experiments conducted by the community which shed further light on the intricacies of how the existing systems perform and suggest some directions where further research and development is required.

7.1 Evaluation Metrics

Diversity in multi-hop QA tasks and datasets engenders the need for different evaluation metrics. The general trend in multi-hop QA methods is to split the task into a retrieval (IR) component that finds the relevant contexts, and a reading (RC) component that produces the answer. Therefore, it makes sense to evaluate the two together as well as separately. We describe the methods used for the two evaluations below:

7.1.1 Retrieval Evaluation

As mentioned in Chapter 4, retrieval is often broken down into two steps. Different metrics can be used to evaluate the two steps:

Preliminary retrieval:

SP37 propose three evaluation metrics: P EM (Paragraph exact match) that measures the ability of the retriever to retrieve all the gold paragraphs in the reasoning chain; PR (Paragraph recall) that computes the recall of gold paragraphs among the retrieved paragraphs; and AR (answer recall) that checks if any of the retrieved paragraph contains the answer. SP3 propose acc@k𝑘kitalic_k which measures the fraction of cases where the model was able to retrieve all the supporting facts within top k𝑘kitalic_k retrieved documents. SP11 define the per-hop retrieval evaluation that treats each hop of retrieval independently. First hop retrieval performance is measured by fraction of cases where the first gold context is retrieved in the first hop of retrieval. For the second hop, the gold paragraph is added to the set of contexts retrieved in the first hop and the ability to retrieve the second hop gold paragraph is evaluated. Since the paper only deals with 2-hop questions, the definition is originally limited to 2 hops. However, we note that this might be extended to n𝑛nitalic_n hops where the nthsuperscript𝑛𝑡n^{th}italic_n start_POSTSUPERSCRIPT italic_t italic_h end_POSTSUPERSCRIPT retrieval step is evaluated by the ability to retrieve the nthsuperscript𝑛𝑡n^{th}italic_n start_POSTSUPERSCRIPT italic_t italic_h end_POSTSUPERSCRIPT gold paragraph pnsubscript𝑝𝑛p_{n}italic_p start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT given i=1n1({pi}Ri)superscriptsubscript𝑖1𝑛1subscript𝑝𝑖subscript𝑅𝑖\cup_{i=1}^{n-1}(\{p_{i}\}\cup R_{i})∪ start_POSTSUBSCRIPT italic_i = 1 end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_n - 1 end_POSTSUPERSCRIPT ( { italic_p start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT } ∪ italic_R start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) where Risubscript𝑅𝑖R_{i}italic_R start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT is the set of contexts retrieved during ithsuperscript𝑖𝑡i^{th}italic_i start_POSTSUPERSCRIPT italic_t italic_h end_POSTSUPERSCRIPT hop.

Re-ranking:

AP6 require the models to classify or rank several reasoning chains as valid explanations of the answer. Therefore, they use AUC-ROC [Melo2013] (area under the Receiver Operating Characteristics (ROC) curve) and F1 scores for classification, and P@1 and Normalized Discounted Cumulative Gain (NDCG) [10.1145/582415.582418] for ranking. P@1 measures the fraction of cases where the top ranked chain is valid, whereas NDCG is a commonly used metric for evaluating rankings. MRR [10.1145/582415.582418] (Mean Reciprocal Rank) is another ranking based metric used for evaluating ranking of reasoning chains [AP1, DP3]. SP3 also use Mean Average Precision (MAP) [liu2009mean] that considers the relative position of the relevant document in the ranked list [kadlec-etal-2017-knowledge].

7.1.2 Answer Evaluation

Based on the type of the answer, the following evaluation metrics have been used for large scale evaluation for the task:

Multi-choice questions:

MCQ questions are straight-forward to evaluate when there is a single correct answer, and classification accuracy over the answer choices is used. To deal with multiple correct answer candidates, DP5 propose F1a and F1m. Precision and Recall are computed by evaluating each predicted answer candidate. Macro harmonic mean of average precision and average recall is the F1m score. F1a uses micro harmonic mean of precision and recall values for all answer candidates.

Span based answers:

The most commonly adopted metrics are Exact Match (EM) and F1 scores on the predicted string tokens. AP8 argue that EM can often be too strict and propose an alternative Partial Match (PM) where a predicted answer apsubscript𝑎𝑝a_{p}italic_a start_POSTSUBSCRIPT italic_p end_POSTSUBSCRIPT is said to be a partial match with the ground truth answer agsubscript𝑎𝑔a_{g}italic_a start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT if either (a) F1(ap,ag)>0.8𝐹1subscript𝑎𝑝subscript𝑎𝑔0.8F1(a_{p},a_{g})>0.8italic_F 1 ( italic_a start_POSTSUBSCRIPT italic_p end_POSTSUBSCRIPT , italic_a start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT ) > 0.8 or (b) F1(ap,ag)>0.6𝐹1subscript𝑎𝑝subscript𝑎𝑔0.6F1(a_{p},a_{g})>0.6italic_F 1 ( italic_a start_POSTSUBSCRIPT italic_p end_POSTSUBSCRIPT , italic_a start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT ) > 0.6 and one of ap,agsubscript𝑎𝑝subscript𝑎𝑔a_{p},a_{g}italic_a start_POSTSUBSCRIPT italic_p end_POSTSUBSCRIPT , italic_a start_POSTSUBSCRIPT italic_g end_POSTSUBSCRIPT is a substring of the other. These evaluation metrics are known to work well when the answer spans are small (<10absent10<10< 10 tokens).

Auxiliary task evaluation: supporting facts:

DP1 propose to evaluate the reasoning chains by reporting EM and F1 on the supporting facts (note that this is different from reasoning chain as supporting facts are sentences and the contexts are passages). They also propose Joint-EM and Joint-F1 where the precision is defined as Pjoint=PansPsupsubscript𝑃𝑗𝑜𝑖𝑛𝑡subscript𝑃𝑎𝑛𝑠subscript𝑃𝑠𝑢𝑝P_{joint}=P_{ans}\cdot P_{sup}italic_P start_POSTSUBSCRIPT italic_j italic_o italic_i italic_n italic_t end_POSTSUBSCRIPT = italic_P start_POSTSUBSCRIPT italic_a italic_n italic_s end_POSTSUBSCRIPT ⋅ italic_P start_POSTSUBSCRIPT italic_s italic_u italic_p end_POSTSUBSCRIPT and the recall as Rjoint=RansRsupsubscript𝑅𝑗𝑜𝑖𝑛𝑡subscript𝑅𝑎𝑛𝑠subscript𝑅𝑠𝑢𝑝R_{joint}=R_{ans}\cdot R_{sup}italic_R start_POSTSUBSCRIPT italic_j italic_o italic_i italic_n italic_t end_POSTSUBSCRIPT = italic_R start_POSTSUBSCRIPT italic_a italic_n italic_s end_POSTSUBSCRIPT ⋅ italic_R start_POSTSUBSCRIPT italic_s italic_u italic_p end_POSTSUBSCRIPT. SP25 compute the score of a reasoning path in the entity graph by multiplying the corresponding soft masks and attention scores along the path and selecting the top-k scoring paths. If any entity in a supporting fact is reached by any of the k𝑘kitalic_k paths, that fact is said to be a hit. Entity-level Supporting fact Prediction (ESP) scores are reported as Exact Match (EM) and Recall values over these supporting facts.

Generative answers:

For longer sequences of texts, directly matching strings to give a binary score fails to tell which answers are closer to the gold answers. Thus, natural language generation (NLG) evaluation metrics are required. DP3 propose using Bleu-1, Bleu-4, Meteor [papineni2002bleu, banerjee-lavie-2005-meteor] and ROUGE-L [lin-2004-rouge] to evaluate predictions on their dataset. SP27 also use CIDer [vedantam2014cider] for evaluating long answers on NarrativeQA which emphasizes on annotator consensus.

The above discussed evaluation metrics serve the purpose of providing representative scores for large scale evaluation of methods and facilitating comparison among different techniques. However, multi-hop QA is a complex task and further evaluation experiments designed particularly for the task might be needed to capture nuances of the model. We discuss these in the next section.

7.2 Adversarial Evaluation

Adversarial evaluation is a commonly used evaluation technique for various types of models. It involves testing the models against intentionally crafted difficult examples to assess their robustness and expose potential weaknesses or vulnerabilities.

As indicated in Section 3.1, the particular choice of available contexts (C𝐶Citalic_C) for a question in the dataset can lead to ‘reasoning shortcuts’ where a model can correctly answer the question by using only a single context. To avoid such shortcuts in the HotpotQA’s distractor setting, the authors used TF-IDF for retrieving confusing contexts. SP14 collect a different set of distractor paragraphs for the HotpotQA dataset, to evaluate if the models are robust to this change. Same strategy as DP1 is used while making sure that there is no overlapping distractor paragraph with the original set. An adversarial set of comparison questions is also created by altering the original question so that the correct answer is inverted (for instance, replacing ’which is higher’ by ’which is lower’).

SP32 use a clever technique to add fake distractors that can fool a model which uses single hop reasoning shortcuts to answer the questions. A word in the final answer is replaced by another word having a similar GloVe embedding to create a fake answer. For instance, ‘Mumbai’ is replaced by ‘Delhi’. All occurrences of the word are replaced in the answer passage to get a confusing distractor passage. Since the bridge entity is mentioned in the title of the answer passage, all mentions of a word from the title are also replaced with a similar entity. This is done to break the connection between the fake distractor and the first gold context. This ensures that there is only a single reasoning chain and that a model cannot answer the question by only looking at the answer’s paragraph. Evaluation using the adversarial distractors shows a significant drop in the accuracy of a baseline model. Moreover, training using adversarial distractors leads to better performance on the original distractors as well. Therefore, more confusing distractors would lead to better training as well as testing of the MHQA models.

7.3 Verifying the Extent of Multi-Hop Reasoning

Despite the improved scores of models indicated by multiple evaluation metrics on various datasets, it remains doubtful whether the models are actually performing the multi-hop reasoning and following the expected reasoning path for reaching the correct answer. Therefore, different evaluation techniques and modifications of existing datasets are proposed as benchmarks for testing the multi-hop reasoning capabilities of a model. In this section, we list various experiments and benchmarks proposed for the same along with their outcomes and conclusions:

  • In order to evaluate the interpretability of a model, SP1 define the Logical rigor of a model as Joint EM/Ans EM. Intuitively, it tries to measure among the questions that were answered correctly, what fraction also had correct supporting facts prediction. Surprisingly, baselines have scores of only 30.3% and 7.9%.

  • AP2 modify and further annotate HotpotQA to provide three settings, where the models are provided (1) only the passage containing the answer, (2) both supporting passages in random order and (3) both supporting passages in the order of their occurrence in the reasoning chain, with the intuition that a model that employs multi-step reasoning to answer multi-hop questions should benefit from the supporting passages whereas a model that tries to guess the answer directly would instead be confused by the extra information given. Two common techniques, BERT and HotpotReader were tested after employing both query-reformulating and co-matching approaches (see Section 6 on taxonomy). It was observed that the models could gain very little performance (1%similar-toabsentpercent1\sim 1\%∼ 1 % and 4%percent44\%4 % accuracy with query reformulation and co-matching respectively) by using the reasoning chains provided. This highlights the inability of the existing techniques to incorporate multi-hop reasoning to perform MHQA. Further, it is found that BERT and co-matching show slightly higher improvements than their respective counter-parts.

  • AP8 use BERT and DecompRC [SP14] to generate single hop sub-questions comprising the 2-hop questions in the HotpotQA dataset and the answers to these questions. The claim is that if a model employs multi-hop reasoning to answer a question, it should trivially be able to answer the individual sub-questions. Surprisingly, for 5060%similar-toabsent50percent60\sim 50-60\%∼ 50 - 60 % of the questions correctly answered, at least 1 of their corresponding sub-questions could not be answered correctly. Further, of the questions where both the sub-questions were answered correctly, 10%similar-toabsentpercent10\sim 10\%∼ 10 % were incorrectly answered. This indicates that the models tend to jump directly to the answer instead of breaking down the questions into simpler questions.

  • AP6 propose three modifications of the QASC dataset that require the model to explicitly predict the reasoning chains along with the final answers (explainable MHQA). i) eQASC: For each question in QASC, up to 10 candidate reasoning chains are automatically generated and each candidate chain is annotated to be valid (if the chain can imply the answer) or invalid (otherwise). ii) eQASC-perturbed: In the candidate chains of QASC, one word/phrase that is likely to be a bridge entity among two facts, is replaced by a similar meaning word ensuring that the chain remains to be valid. This is done by crowd sourcing where workers were asked to replace one occurrence of the word that appears in different sentences of a candidate chain. iii) eOBQA: a small number of questions in OpenBookQA are used for generating candidate reasoning chains using sentences present in QASC and are annotated by crowd-sourcing. This is done to test the generalization of the model on an unseen dataset.

  • AP5 use the term Disconnected Reasoning (DiRe) for when the model is able to arrive at the correct answer using (possibly multiple independent) incomplete reasoning chains. To measure disconnected reasoning, a DiRe probe is created that checks if the output of h(q,C{p1})𝑞𝐶subscript𝑝1h(q,C\setminus\{p_{1}\})italic_h ( italic_q , italic_C ∖ { italic_p start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT } ) and h(q,C{p2})𝑞𝐶subscript𝑝2h(q,C\setminus\{p_{2}\})italic_h ( italic_q , italic_C ∖ { italic_p start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT } ) (refer to Chapter 2 for notations) can be trivially combined to answer q,C𝑞𝐶q,Citalic_q , italic_C (where ’\setminus’ denotes set difference). To discourage disconnected reasoning, the dataset is modified to include negative samples where the given C𝐶Citalic_C is not sufficient to answer the question i.e., CPqϕ𝐶subscript𝑃𝑞italic-ϕC\cap P_{q}\neq\phiitalic_C ∩ italic_P start_POSTSUBSCRIPT italic_q end_POSTSUBSCRIPT ≠ italic_ϕ and the model is required to identify these questions as unanswerable. When running the DiRe probe, disconnected reasoning is found to be reduced significantly after training using this modification.

  • AP7 argue that requiring the model to only output the supporting facts might not be enough to ensure the explainability of the model and the model should be required to also output the derivation steps. A derivation step is formalized as a triplet of the form dh,dr,dt, where dh,dtsuperscript𝑑superscript𝑑𝑟superscript𝑑𝑡 where superscript𝑑superscript𝑑𝑡\langle d^{h},d^{r},d^{t}\rangle,\text{ where }d^{h},d^{t}⟨ italic_d start_POSTSUPERSCRIPT italic_h end_POSTSUPERSCRIPT , italic_d start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT , italic_d start_POSTSUPERSCRIPT italic_t end_POSTSUPERSCRIPT ⟩ , where italic_d start_POSTSUPERSCRIPT italic_h end_POSTSUPERSCRIPT , italic_d start_POSTSUPERSCRIPT italic_t end_POSTSUPERSCRIPT are entities (noun phrases), and drsuperscript𝑑𝑟d^{r}italic_d start_POSTSUPERSCRIPT italic_r end_POSTSUPERSCRIPT is a verb phrase representing a relationship between the two entities. A small subset of the HotpotQA dataset is annotated by crowd-sourcing and released. Evaluating models on this set indicates the scope of improvement on this benchmark.

Results of these works are significant as they suggest that improved accuracy on existing datasets may not correlate well with the models’ ability to perform multi-hop reasoning. Furthermore, they highlight the inefficacy of existing models to perform multi-hop reasoning as well as the inefficacy of the datasets to evaluate the same. This implies a need for more carefully created datasets and challenging benchmarks that do not allow the models to score well without accurately following the required reasoning paths. Additionally, it is encouraged to formulate better and more such tests/probes that check and prevent the models from using loop-holes instead of doing multi-hop reasoning. Above all, it is fair to say that the task of MHQA is far from solved.

Chapter 8 Multi-Hop Question Generation

The task of Multi-Hop Question Generation (MHQG) is very closely related to MHQA and shares some of the required reasoning and natural language understanding abilities. The task has many applications and has also received a growing attention in the recent years. Therefore, we add a brief discussion of MHQG in this chapter.

The goal is to generate a multi-hop question given a set of contexts and optionally, an answer. In chapter 3, we already discussed the challenges of question generation while creating MHQA datasets. A lot of those challenges directly apply to the task of MHQG as well. MHQG has widespread applications in multiple domains including education, where generating questions that require multiple steps of reasoning can be very useful for inspiring critical thinking in students [qg4online]. QG also has a direct application for chat-bots e.g., in initiating conversations, asking and providing detailed information to the user by considering multiple sources of information. MHQG will enhance the ability of these chat-bots to ask useful questions [teachingqg]. It can also combine with question answering (QA) models as dual tasks to boost QA systems with reasoning ability [qaqgdual].

The task of traditional question generation (QG) has gained a lot of interest recently [qg4rc, maxout-qg, ansagnosticQG]. However, MHQG is a more challenging task than simple QG. It requires the model to first identify scattered pieces of information that can be aptly combined to form a valid reasoning path from the answer to the question, and then reason over these pieces of information to generate a factual and coherent question.

8.1 Datasets

The datasets for MHQA can also be used to train and evaluate MHQG models by modifying the input and the required output of the model [QG2, QG3]. Since HotpotQA has annotated supporting facts, it is able to provide stronger training supervision and hence, it is the most commonly used dataset for MHQG. QG1 use the DecompRC model [SP14] to decompose each question in HotpotQA into two sub questions and fine tune a GPT2-small model to rewrite the first question into the second. QG6 use HotpotQA as the labelled dataset and ComplexWebQuestions [complexwebques] and DROP [dua-etal-2019-drop] as large corpora for multi-hop questions.

8.2 Evaluation

Language generation metrics such as BLEU (BLEU1-4), ROUGE-L, METEOR are usually adopted for MHQG [QG1, QG2, QG3, QG4, QG6]. QBLEU4 [qbleu], a QG metric which was shown to correlate significantly better with human judgements, is also used for evaluating MHQG [QG1, QG2]. The task also often requires human evaluation of fluency, semantics, answerability etc of the generated questions. QG4 also use GLEU [gleu] for their experiments. Another method of evaluating MHQG is to measure the gain in performance of SOTA MHQA models when trained with data augmentation using the generated questions [QG1, QG5].

8.3 Methods

QG1 tackle the problem of difficulty controllable question generation (DQG)[dqg] by generating questions which require a particular number of reasoning hops. The assumption is that the difficulty of a question directly correlates to the number of inference steps required to answer it. The first step of the proposed algorithm builds a context graph in the same way as [localKGS2Smulti]. All sentences from the context are converted into triplets of the form {s(subject),r(relation),o(object)}𝑠𝑠𝑢𝑏𝑗𝑒𝑐𝑡𝑟𝑟𝑒𝑙𝑎𝑡𝑖𝑜𝑛𝑜𝑜𝑏𝑗𝑒𝑐𝑡\{s(subject),r(relation),o(object)\}{ italic_s ( italic_s italic_u italic_b italic_j italic_e italic_c italic_t ) , italic_r ( italic_r italic_e italic_l italic_a italic_t italic_i italic_o italic_n ) , italic_o ( italic_o italic_b italic_j italic_e italic_c italic_t ) } and a relational edge of type r𝑟ritalic_r is added from s𝑠sitalic_s to o𝑜oitalic_o. Co-reference resolution is used to merge the nodes referring to the same entity. Next, a node N0subscript𝑁0N_{0}italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT is sampled as the final answer and with N0subscript𝑁0N_{0}italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT as the root, a maximum spanning tree is extracted. For generating a question with difficulty (same as the number of hops) =dabsent𝑑=d= italic_d, the tree is pruned to have d+1𝑑1d+1italic_d + 1 nodes. A GPT2-small model is fine-tuned on HotpotQA and used to generate an initial question q0subscript𝑞0q_{0}italic_q start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT using N0subscript𝑁0N_{0}italic_N start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT, N1subscript𝑁1N_{1}italic_N start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT and the context sentence connecting the two nodes S1subscript𝑆1S_{1}italic_S start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT. Another GPT-2 model is used to rewrite the question iteratively and successively increase the difficulty. In simpler words, for generating a question qdsubscript𝑞𝑑q_{d}italic_q start_POSTSUBSCRIPT italic_d end_POSTSUBSCRIPT with difficulty d𝑑ditalic_d, the re-writer model is run on q0subscript𝑞0q_{0}italic_q start_POSTSUBSCRIPT 0 end_POSTSUBSCRIPT for d𝑑ditalic_d iterations. While the model performs well for up-to 3333 hops, the input to the re-writer model becomes too large for subsequent hops and results in questions with poor quality.

QG2 leverage a graph constructed similar to SP25 to generate multi-hop questions. Pre-trained GloVe embeddings and answer tagging embeddings [qg4online] are passed to two Bi-LSTM layers to get the initial contextual representations. An attention layer and another Bi-LSTM layer is used to get the answer aware context embeddings. An answer aware sub-graph is computed by masking the entities that are irrelevant to the answer and Graph Attention Network is applied to this sub-graph. The context encodings across the hops are combined via a gated fusion module. The Answer embeddings are updated using bi-attention and The Maxout Pointer [maxout-qg] framework is used on top of a Uni-directional LSTM decoder to generate the question. An additional BFS loss proposed by [SP25] is found to improve the performance.

QG3 exploit the presence of supporting facts in HotpotQA while training by adopting an RL reward of the auxiliary task of supporting facts prediction (SFP). Similar to QG2, answer tagging features are concatenated with the document word embeddings and fed to a Bi-LSTM encoder. The output of the encoder is shared by the MHQG and supporting fact prediction (SFP) models. The SFP model is a binary classifier trained on HotpotQA to output the probability of each sentence being a supporting fact. The F1 score between the predicted and ground truth supporting facts is added as a reward. The REINFORCE algorithm [reinforce] is used with the self-critical sequence training [scst] framework to avoid the high variance. In order to make the training more stable, a weight history similar to scst is added. The output probabilities of the SFP model are also used to update the answer aware encodings by another Bi-LSTM model. For generating the question, a LSTM decoder with global attention mechanism [attention4nmt] is used along with the copy mechanism [pgn, pgn2].

QG4 argue that using standard transformers instead of Graph networks should be enough to reason about the relations between entities for forming multi-hop questions. A transformer is extended with sentence id embeddings and answer token indicator embeddings and trained with an additional contrastive loss as regularization. The contrastive learning setup assumes supporting fact sentences as positive samples and others as negative samples and a binary classifier consisting of a MLP. A significant mismatch in the distribution of question length over train and dev set of HotpotQA is observed and mitigated by filtering out all the questions that are more than 30 words long. Most of the pruned questions are from the train-easy subset. Both data filtering and contrastive training are found to boost the performance significantly.

A novel graph-augmented transformer encoder (GATE) is proposed which has two additional layers than the standard transformer encoder (TE): a) Graph-attention sub-layer computes the similarity scores for attention using only the nodes that are connected in a dynamically created graph. The graph is a multi-relational graph with three types of nodes: named-entity mentions, co-referent-entities and sentence-ids. b) Fused attention sub-layer which uses a MLP with ReLU activation to aggregate the graph-attention embeddings and the TE embeddings. Experiments show that the added layers alone do not improve the performance significantly whereas an ensemble of TE and GATE does.

QG5 propose a question generation technique for the task of unsupervised MHQA. Following HotpotQA, their method generates two types of questions:

Bridge questions: Given two contexts as inputs, all entities common to the two contexts are considered as bridge entities. A Google T5 model [t5] is fine-tuned on SQuAD to generate two single hop questions using the answer entity and the bridge entity respectively. The latter question is converted to a declarative form, s𝑠sitalic_s following qa2nli. The bridge entity in the bridge entity question is replaced with "The [MASK] that {s}" and BERT-Large is used to fill the [MASK].

Comparison questions: Entities with NER types Nationality, Location, DateTime and Number are treated as potential comparative properties. Two single hop questions are generated on two entities of the same NER type and a pre-defined template is used to combine these into a multi-hop comparison question.
For generating questions using a table, a GPT-TabGen model [nlg-tablegen] is used to generate sentences that describe a given entity using information from the given table. These sentences are then used for generating either bridge or comparison type questions. We refer the reader to Figure 4 of the original paper [QG5] for a better understanding of the different types of generated questions. A pre-trained GPT-2 model is used to filter questions that are unnatural or dis-fluent. A BART model [bart] is also used to paraphrase the generated questions. The generated questions are then used to train the model resulting in a zero shot algorithm.

QG6 aim to tackle MHQG in a low resource setting. Specifically, the model uses a small amount of labelled data DLsubscript𝐷𝐿D_{L}italic_D start_POSTSUBSCRIPT italic_L end_POSTSUBSCRIPT, in the form of (context,answer,question)𝑐𝑜𝑛𝑡𝑒𝑥𝑡𝑎𝑛𝑠𝑤𝑒𝑟𝑞𝑢𝑒𝑠𝑡𝑖𝑜𝑛(context,answer,question)( italic_c italic_o italic_n italic_t italic_e italic_x italic_t , italic_a italic_n italic_s italic_w italic_e italic_r , italic_q italic_u italic_e italic_s italic_t italic_i italic_o italic_n ) triplets, and a large set of multi-hop questions DUsubscript𝐷𝑈D_{U}italic_D start_POSTSUBSCRIPT italic_U end_POSTSUBSCRIPT. The idea is to first learn the semantics of multi-hop questions by training a neural hidden semi-Markov model [semi-markov] on the unlabelled data DUsubscript𝐷𝑈D_{U}italic_D start_POSTSUBSCRIPT italic_U end_POSTSUBSCRIPT. The model uses two latent variables for parameterizing the similar segments in questions from DUsubscript𝐷𝑈D_{U}italic_D start_POSTSUBSCRIPT italic_U end_POSTSUBSCRIPT: a) a state variable ztsubscript𝑧𝑡z_{t}italic_z start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT, indicating which segment the tthsuperscript𝑡𝑡t^{th}italic_t start_POSTSUPERSCRIPT italic_t italic_h end_POSTSUPERSCRIPT term belongs to, and b) a length variable ltsubscript𝑙𝑡l_{t}italic_l start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT, specifying the length of the current segment. The term probabilities are computed using a GRU decoder followed by an attention layer.

The patterns learned in the first step are used as priors for the QG model for regularization. Prior is estimated by sampling a sequence of states ztsubscript𝑧𝑡z_{t}italic_z start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT having length ltsubscript𝑙𝑡l_{t}italic_l start_POSTSUBSCRIPT italic_t end_POSTSUBSCRIPT. The reasoning chain extraction is similar to as described in QG2. For encoding the textual input, BERT embeddings are passed to a bi-GRU followed by an attention layer. The decoder is another GRU with a copy mechanism [gu-incorporating-copy-s2s] which is regularized to fit the prior pattern. The training loss is the weighted sum of the cross entropy loss and RL policy gradient [adversarial-dialogue]. The reward function evaluates a) fluency (following sentence-deeprl), b) Answerability (using QBLEU4), and c) Semantics (using WMD).

Conclusion:

The task of multi-hop question generation has gained some attention of the community and has advanced at a rapid pace. Solving MHQA would go a long way in solving MHQA since we can use MHQG models to generate high quality large scale datasets for the development of powerful MHQA models. Further, by dynamically constructing intricate questions that traverse multiple pieces of information, we pave the way for more nuanced understanding and exploration of complex knowledge domains, ultimately driving the evolution of AI-driven information retrieval and comprehension.

Chapter 9 Future of MHQA

Multi-hop QA has been researched quite extensively in the recent years with multiple diverse models proposed that aim to model the multi-step retrieval-reasoning process and achieve promising improvements on existing datasets and benchmarks. Such systems capable of performing multi-step reasoning have a variety of applications ranging from chat-bot assistants that are capable of interactive conversations, to search engines that are capable to retrieve results that may be relevant but not reachable directly from the query text. At the same time the task of MHQA is significantly more challenging than its single hop counterpart. Since paragraphs multiple hops away from the question could share few common words and little semantic relation with the question [SP1], the task to retrieve such contexts is challenging and suffers from semantic drift. The ability of pre-LLM models to combine multiple contexts for reasoning is also limited. Further challenges for solving MHQA is the difficult process of creating datasets that require the models to perform multi-hop reasoning, as well as the task of evaluating the models’ abilities to do so without any hacks. Some challenging benchmarks and evaluation methods have been recently proposed that bring out some surprising and interesting observations. These results point out to several limitations of existing systems and call for further research.

Below, we list and discuss some of these directions for future research (including ones originating from the currently recognized shortcomings) which we believe could be promising to be explored.

9.1 Flexible Any-Hop Models

As discussed in Section 6, majority of the existing methods for MHQA are either limited to two hops or require the number of hops to be a hyper-parameter. Since natural questions can require any number of reasoning hops, this attribute of existing models is artificially limiting. QA systems should be flexible and robust to the number of hops in a question in order to be practically usable. In order to do so, methods following the type III and IV in Figure 4.1 should be explored with a greater interest since feedback from the answering module can serve as a useful stopping criteria.

9.2 Explainable Multi-Hop QA

Despite the impressive gains in performance on various multi-hop datasets, it is not evident whether the models are performing the multi-step reasoning or just guessing the answers. Therefore, following the release of HotpotQA, a large number of works have focused on explainable MHQA. Apart from the standard evaluation metrics, various evaluation methods and dataset benchmarks have been proposed to test the explainability of the models which have revealed several significant results. Further such benchmarks and evaluation strategies are encouraged to measure and reflect the true progress of models in performing multi-hop reasoning. While LLM prompting strategies such as CoT prompting make the task naturally explainable, LLMs suffer from hallucinations which lowers their trust for such applications.

9.3 Better Datasets

Many works have highlighted the limitations of existing MHQA datasets. AP3 show experimentally that multi-choice questions are easier to hack by models, regardless of number of answer candidates being small or very large. Similarly, SP14 show that the distractor setting, even with as many as 500 distractors, is easier to hack for single-hop QA models. DP1 and SP16 argue that datasets that are created using KBs suffer from lack of diversity in question and answer types. Following these observations, it is encouraged that the future datasets are in the open-domain setting, have questions with either span-based or generative answers, and do not rely completely on the structure of existing KBs.

SP3, SP5, SP14 and AP4 find that a significant portion of questions in the existing datasets are single-hop solvable due to a variety of reasons. One of these reasons is that the source of the questions is same as the set of contexts. Therefore datasets like [DP2, DP3, archival, newsqa, quac] that use separate sources for generating and answering questions are encouraged. However, attention needs to be given to the cases where there is a discrepancy between what is mentioned in the two sources [SP6].

Most of the existing works have focused on datasets with MCQ or questions with span answers and more focus on the more challenging problem of generative MHQA is desirable.

9.4 Better Evaluation Metrics

As discussed in Section 7, a variety of evaluation metrics have been used for evaluating MHQA models. However, existing metrics face some challenges and might not be sufficient for evaluating MHQA. Since MHQA is a more complex task compared to single-hop QA, more metrics specific to MHQA are encouraged. One promising direction is to perform per-hop evaluation and accumulate the per-hop scores to get a final score. This kind of evaluation would require the models to be explainable as well as interpretable.

Some challenges are common to both single-hop and multi-hop QA evaluation metrics. For instance, while evaluating span based answers, metrics based on lexical matching would mark U.S. as incorrect when the gold answer is United States [SP6]. Therefore, evaluation metrics should be able to deal with synonyms when matching the answers. Another issue might be a metric giving a score of 0 to the answer U.K. when the gold answer is London. These cases are frequent in datasets like WikiHop where the sources of question and the contexts are different [SP15] and might have answers mentioned with different granularity. Therefore, it might be useful to give some partial score for the answer being geographically close or for the answer having a coarser granularity. Similarly, answering January, 1989 should earn some score if the gold answer is December, 1988 due to the predicted answer being temporally close to the gold answer. Some partial score can also be rewarded to answers having a coarser granularity (December, 1988 vs 1988). On similar lines, using hypernym relations from ConceptNet or WordNet [10.1145/219717.219748] for evaluating the answer can be a possible direction.

Following a similar reasoning, the evaluation should match the semantics of the answer rather than the lexical overlap. Therefore, evaluation metrics like word mover similarity [kusner2015word] or sentence mover similarity [clark2019sentence] that perform soft matching over embeddings might be a promising direction. Since the evaluation of language generation tasks are widely known to have a scope of improvement, evaluation of generative MHQA is also an open problem and new evaluation techniques are encouraged.

9.5 Methods to Incorporate Commonsense

A hop in multi-hop reasoning can be performed using some retrieved context, where the context may either be retrieved from the corpus or from the commonsense knowledge. SP6 find that 16%percent1616\%16 % of the failures of their model were caused by missing commonsense background knowledge. SP27 propose a novel method for incorporating commonsense for MHQA that shows impressive results. More techniques for exploiting the rich commonsense knowledge bases to perform multi-step reasoning can be a promising direction to explore.

9.6 Arithmetic Questions

The inability of QA systems to perform arithmetic operations is well known [patel2021nlp, hendrycks2021measuring, schubotz2018introducing] and this inability is exacerbated in the multi-hop setting. AP4 observe that 45%percent4545\%45 % of the comparison questions in HotpotQA are numerical questions. SP25, SP6, SP14 find that their model is unable to give a correct answer when the query is a comparison between two dates “February 20, 1959” and “February 10, 1967”. Arithmetic calculation may also be required for non-comparison type questions. For example, answering “Who was the president of USA in 1994” from the context “Bill Clinton: 1993-2001” requires some arithmetic computation. wangIRJ21 approached this kind of temporal problems by computing the overlap of content time expressions that occur in text with the computed question’s time scope using kernel density estimate. Another example is [wangSIGIR21] that answers “when” type questions by predicting the event dates based on the analysis of multi-variate time series derived from underlying news collection. Even powerful LLMs have been shown to perform poorly with arithmetic reasoning [llm-arith-3, llm-arith-4] and multiple methods are being proposed for the same [llm-arith-1, llm-arith-2, llm-arith-4, llm-arith-3]

Multi-hop QA systems that are capable of solving arithmetic comparisons and computations would greatly enhance accuracy of MHQA.

Similarly, it is observed that some particular types of questions (temporal, geographical, count) are more challenging than others [SP1, SP8, SP14, SP15]. Figure 3 in SP8 shows the complexity and model performance on different types of questions in HotpotQA. Targeting the more challenging questions specifically could also lead to better MHQA systems.

9.7 Better Incorporation of Powerful LLMs

LLMs have been widely adopted due to their performance exceeding expectations for most tasks. Existing works employ LLMs for some components of the task to boost performance. The MHQA community would benefit from keeping up with the rapid developments of LLMs, incorporating the advancements in the models’ abilities and efficiency. Consequently, developing more robust and powerful LLMs suited to multi-step reasoning would greatly help the development of MHQA systems

9.8 Conclusion

As we conclude, acknowledging both the strengths and weaknesses of existing data, models, and evaluation methods in multi-hop QA provides a solid foundation for charting future research paths. By leveraging insights gained from these limitations, we can propel advancements towards more robust, adaptable, and comprehensive question answering systems, shaping the landscape of AI-driven knowledge exploration for years to come.

Appendix A Background

A.1 BM25

BM25 is a ranking function used to retrieve documents given a search query. BM25 stands stands for Best Match 25111BM25 is also known as Okapi BM25, which was used first by the Okapi information retrieval system implemented by London’s City University (https://en.wikipedia.org/wiki/Okapi_BM25).. It uses a bag-of-words mechanism to score proximity between the search query and the documents. Given a query Q=q1,q2,,qn𝑄subscript𝑞1subscript𝑞2subscript𝑞𝑛Q={q_{1},q_{2},...,q_{n}}italic_Q = italic_q start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT , italic_q start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT , … , italic_q start_POSTSUBSCRIPT italic_n end_POSTSUBSCRIPT, where qisubscript𝑞𝑖q_{i}italic_q start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT denotes a keyword in the query Q𝑄Qitalic_Q, the BM25 score of the document D𝐷Ditalic_D is defined as follows -

BM25(D,Q)=i=1nIDF(qi).freq(qi,D).(k1+1)freq(qi,D)+k1.(1b+b.|D|avg.doc.len.)BM25(D,Q)=\sum^{n}_{i=1}IDF(q_{i}).\frac{freq(q_{i},D).(k_{1}+1)}{freq(q_{i},D% )+k_{1}.(1-b+b.\frac{|D|}{avg.doc.len.})}italic_B italic_M 25 ( italic_D , italic_Q ) = ∑ start_POSTSUPERSCRIPT italic_n end_POSTSUPERSCRIPT start_POSTSUBSCRIPT italic_i = 1 end_POSTSUBSCRIPT italic_I italic_D italic_F ( italic_q start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) . divide start_ARG italic_f italic_r italic_e italic_q ( italic_q start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT , italic_D ) . ( italic_k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT + 1 ) end_ARG start_ARG italic_f italic_r italic_e italic_q ( italic_q start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT , italic_D ) + italic_k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT . ( 1 - italic_b + italic_b . divide start_ARG | italic_D | end_ARG start_ARG italic_a italic_v italic_g . italic_d italic_o italic_c . italic_l italic_e italic_n . end_ARG ) end_ARG (A.1)

where freq(qi,D)𝑓𝑟𝑒𝑞subscript𝑞𝑖𝐷freq(q_{i},D)italic_f italic_r italic_e italic_q ( italic_q start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT , italic_D ) is the number of times qisubscript𝑞𝑖q_{i}italic_q start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT occurs in D𝐷Ditalic_D, |.||.|| . | denotes the number of words in D, avg.doc.len.formulae-sequence𝑎𝑣𝑔𝑑𝑜𝑐𝑙𝑒𝑛avg.doc.len.italic_a italic_v italic_g . italic_d italic_o italic_c . italic_l italic_e italic_n . denotes the average number of words in the document, k1subscript𝑘1k_{1}italic_k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT and b𝑏bitalic_b are free parameters222Typically k1[1.2,2.0]subscript𝑘11.22.0k_{1}\in[1.2,2.0]italic_k start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT ∈ [ 1.2 , 2.0 ] and b=0.75𝑏0.75b=0.75italic_b = 0.75., and IDF(qi)𝐼𝐷𝐹subscript𝑞𝑖IDF(q_{i})italic_I italic_D italic_F ( italic_q start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) denotes the inverse document frequency weight of query term usually computed as follows -

IDF(qi)=ln(Nn(qi)+0.5n(qi)+0.5)+1𝐼𝐷𝐹subscript𝑞𝑖𝑙𝑛𝑁𝑛subscript𝑞𝑖0.5𝑛subscript𝑞𝑖0.51IDF(q_{i})=ln(\frac{N-n(q_{i})+0.5}{n(q_{i})+0.5})+1italic_I italic_D italic_F ( italic_q start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) = italic_l italic_n ( divide start_ARG italic_N - italic_n ( italic_q start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) + 0.5 end_ARG start_ARG italic_n ( italic_q start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) + 0.5 end_ARG ) + 1 (A.2)

where N𝑁Nitalic_N is the total number of documents in the collection, and n(qi)𝑛subscript𝑞𝑖n(q_{i})italic_n ( italic_q start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT ) is the number of documents containing qisubscript𝑞𝑖q_{i}italic_q start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT.

Even though the technique was devised in 1970s-80s, BM25 and its variations are still widely adopted for document retrieval, especially when the document corpus is very large and using dense retrievers333Dense retriever is a general umbrella term used to refer to the neural network based retrieval systems. has a big computational overhead.

A.2 Recurrent Neural Networks

Recurrent Neural Networks (RNNs) are a class of artificial neural networks that have loop connections that allow information propagation across time through the same neurons. Prior to transformer networks [vaswani2017attention], RNNs were the most popular framework class to process sequential information, and are still widely adopted in real-world systems. Most practical RNN-based architectures have additional stored states that allow the vanilla RNN architecture to overcome its shortcoming of short-term memory loss. Gated recurrent units (GRU) cells [cho2014learning] and long short term memory (LSTM) cells [hochreiter1997long] are two of the most popular stateful RNN cells that use gated mechanism to handle long term memory. [see2017get] proposed a pointer generator network to overcome the over-repetition of RNN generated output using coverage loss. We point the readers to the comprehensive survey of recurrent neural networks by [lipton2015critical] for extensive explanation on the topic.

A.3 Transformers for Language Modeling

Even the advanced RNN models like LSTMs and GRUs have a tough time dealing with long sequences. attention4nmt introduced the attention mechanism which allows the model to focus on certain parts of the input when predicting a particular output token. Doing so significantly helps with tasks like machine translation where certain words of the input sequence are directly related to a word in the output sequence. Many forms of attention have since been used effectively for various tasks.

transformer extended the idea of attention by removing the recurrent component of the model altogether and proposed the transformer model where both the encoder and the decoder consist of several self-attention and feed forward layers. The transformer model also introduced the multi-head attention. These components allows for very large models which can have a lot more parameters without comprising on the performance. Transformers are also proved to be very versatile, having great success in a large number of natural language applications.

While the original transformers model was trained using the next-token prediction task implying the unidirectionality of the encoder model, BERT [bert] was a bidirectional encoder based transformer which was trained using the masked language modeling task. BERT has proved to be a versatile model and the word representations learned using BERT have been used as embeddings for almost all natural language tasks.

Success of transformer models including BERT led to their use as large pre-training models and several models like AlBERT [albert], RoBERTa [roberta] and GPT were proposed. AlBERT uses parameter reduction techniques which allow for smaller and faster training of the BERT models while achieving a similar level of accuracy as BERT. RoBERTa is a much more robustly optimized version of BERT, trained with optimized design and hyperparameters choices, which could significantly outperform the originally trained BERT model.

Pre-training of large language models (LLMs) has become increasingly popular leading to larger and larger models trained on huge corpora of natural language. The different versions of the model follow the same principle, with GPT-1 having 117 million parameters and GPT-4 having about a 100 trillion parameters. GPTs are trained on huge corpora using the next token prediction task. An extensively detailed explanation of different architectures and training techniques for transformer based models is neither feasible nor in the scope for this work. Therefore, we point the readers to the comprehensive survey of transformers by [LIN2022111] for further details on the topic.

A.4 Graph Neural Networks

Graphs are a very simple and versatile method of representing data and its inherent structure. Neural Networks could be adapted to incorporate this structure leading to Graph Neural Networks (GNNs). GNNs can be adopted for various different types of data and tasks, leading to several improvements increasing their capabilities. The integral part of all these models is the message passing algorithm briefly explained below.

Given a graph G=(V,E)𝐺𝑉𝐸G=(V,E)italic_G = ( italic_V , italic_E ) having n=|V|𝑛𝑉n=|V|italic_n = | italic_V | nodes, the representation of each node is updated following the given steps:

  • Initialization: The representation of every node v𝑣vitalic_v is initialized as hv0=Xvsuperscriptsubscript𝑣0subscript𝑋𝑣h_{v}^{0}=X_{v}italic_h start_POSTSUBSCRIPT italic_v end_POSTSUBSCRIPT start_POSTSUPERSCRIPT 0 end_POSTSUPERSCRIPT = italic_X start_POSTSUBSCRIPT italic_v end_POSTSUBSCRIPT, where Xvsubscript𝑋𝑣X_{v}italic_X start_POSTSUBSCRIPT italic_v end_POSTSUBSCRIPT is the feature vector.

  • Update: For each layer i𝑖iitalic_i, the representations of each node v𝑣vitalic_v is updated as:

    hvi=σuϵN(v)(WiΣhui1N(v)+Uihvi1)superscriptsubscript𝑣𝑖subscript𝜎𝑢italic-ϵ𝑁𝑣subscript𝑊𝑖Σsuperscriptsubscript𝑢𝑖1𝑁𝑣subscript𝑈𝑖superscriptsubscript𝑣𝑖1h_{v}^{i}=\sigma_{u\epsilon N(v)}(W_{i}\Sigma\frac{h_{u}^{i-1}}{N(v)}+U_{i}h_{% v}^{i-1})italic_h start_POSTSUBSCRIPT italic_v end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_i end_POSTSUPERSCRIPT = italic_σ start_POSTSUBSCRIPT italic_u italic_ϵ italic_N ( italic_v ) end_POSTSUBSCRIPT ( italic_W start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT roman_Σ divide start_ARG italic_h start_POSTSUBSCRIPT italic_u end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_i - 1 end_POSTSUPERSCRIPT end_ARG start_ARG italic_N ( italic_v ) end_ARG + italic_U start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT italic_h start_POSTSUBSCRIPT italic_v end_POSTSUBSCRIPT start_POSTSUPERSCRIPT italic_i - 1 end_POSTSUPERSCRIPT ) (A.3)

    where σ𝜎\sigmaitalic_σ is the activation function, Wisubscript𝑊𝑖W_{i}italic_W start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT and Uisubscript𝑈𝑖U_{i}italic_U start_POSTSUBSCRIPT italic_i end_POSTSUBSCRIPT are the weight matrices corresponding to the layer i𝑖iitalic_i and N(v)𝑁𝑣N(v)italic_N ( italic_v ) is the set of neighbouring nodes of the node v𝑣vitalic_v.

  • Prediction: The representations after layer K𝐾Kitalic_K are passed to a linear network for the eventual prediction task.

At every layer, the representation of node v𝑣vitalic_v is updated with an activation applied to the weighted average of representations of the nodes directly connected to v𝑣vitalic_v. Therefore, after k𝑘kitalic_k layers, the node v𝑣vitalic_v is supposed to receive the ‘message’ from all nodes having a path to v𝑣vitalic_v of length kabsent𝑘\leq k≤ italic_k. The weighted average also ensures that the nodes that are closer to v𝑣vitalic_v in the graph end up affecting its representation more.

A layer of a Graph Convolutional Network (GCN) [gcn] consists of a GNN layer followed by a Linear layer. Relation GCN (R-GCN) [schlichtkrull2017modeling] allow for different kinds of edges by having different weight matrices for nodes connected to v𝑣vitalic_v via different kind of edges. Graph Attention Networks (GAN) [gat] incorporate self attention into GNNs by using the attention weights while performing the message passing algorithm. Several other modifications of GNNs are proposed for different tasks.

We point the readers to the comprehensive survey of graph neural networks by [wu2020comprehensive] for further reading on the topic.

A.5 Large Language models

Language models refer to a class of self-supervised NLP models that are trained on large unlabeled datasets to learn to predict the likelihood of a word or sequence of words occurring based on the context provided by the preceding words. This ability to estimate the probability of a word given its context forms the foundation of language modeling. These models undergo training on various tasks, such as next-word prediction [gpt], masked language modeling (the task of predicting randomly missing tokens), and next-sentence prediction [bert], without the need for labeled data. Due to their reliance on extensive training data, language models develop a strong grasp of underlying language patterns and concepts. Generally, language models are not designed for specific tasks and can be fine-tuned with minimal data for various downstream applications. Extensive research has shown that utilizing large language models (LLMs) pre-trained on vast amounts of data yields impressive results in language understanding and generation tasks [gpt-success-qa, gpt-success-entail, gpt-success-mt, gptsara]. The advent of transformer models has made it possible to train such highly advanced language models, resulting in popular models like BERT, T5, and GPT-3 [bert, t5, gpt].

A.5.1 Generative Pre-trained Transformer (GPT)

GPT, a series of generative pre-trained large language models [gpt], is characterized by its decoder-only transformer architecture. Unlike other transformer models that have both encoder and decoder blocks, GPT models consist solely of decoder blocks, eliminating the encoder-decoder cross-attention layer from each block. The different versions of GPT, namely GPT, GPT-2, GPT-3, and GPT-4, vary in terms of model size and training data. For example, GPT-3 has 175 billion model parameters and is trained on a massive corpus of 499 billion tokens, while GPT-2 has 1.5 billion parameters and is trained on a dataset of 10 billion tokens.

Refer to caption
Refer to caption
Refer to caption
Figure A.1: Example of zero-shot (top), few-shot (middle), and CoT (bottom) prompting for the same question.

A.5.2 Prompting GPT-3

GPT-3 has achieved remarkable success in various downstream natural language tasks, including question answering [gpt-success-qa], Machine Translation [gpt-success-mt] and Entailment prediction [gpt-success-entail], with minimal supervision required. During a typical run of the model, an incomplete piece of text is provided as a ‘prompt’, and the model iteratively generates the most likely tokens to complete the text. This prompting technique has demonstrated impressive performance in the zero-shot setting, where the model is not provided with any in-context examples and is expected to predict the correct output for the given question in the prompt (Figure A.1).
On the other hand, few-shot prompting [fewshot] involves including a small number of sample input-output pairs within the prompt as references for the model (Figure A.1). The inclusion of a few reference examples provides valuable guidance to the model, allowing it to generate more accurate and relevant responses.
In their work, cot introduced the concept of chain-of-thought (CoT) prompting, which goes a step beyond simply providing input-sample output pairs. CoT prompting includes a coherent sequence of reasoning steps that gradually build up to the correct answer. By presenting the model with a step-by-step thought process, CoT prompting offers explicit examples of how to arrive at the correct answer based on the given input facts. This method is particularly valuable for tackling complex tasks that demand multiple layers of reasoning including the task that this study focuses on. Figure A.1 shows examples of zero-shot, few-shot, and CoT prompts for an arithmetic question. Here, the prompt consists of 2 in-context examples is 2.

For further background and details, we refer the readers to the comprehensive survey on LLMs by llm-survey

\printbibliography