Memory Augmented Sequential Paragraph Retrieval for Multi-hop Question Answering

Nan Shao, Yiming Cui, Ting Liu, Shijin Wang, Guoping HuarXiv 2021

Abstract

Multi-hop question answering (QA) requires models to synthesize information across multiple documents. Traditional graph-based approaches often suffer from missing links, fixed reasoning directions, and high computational costs. This paper introduces the Gated Memory Flow (GMF) architecture, which treats multi-hop QA as a sequential retrieval task. By utilizing a rewritable external memory and a threshold gate to filter noise, GMF achieves state-of-the-art results on the HotpotQA benchmark, significantly improving both retrieval accuracy and answer quality.

Introduction: The Challenge of Multi-Hop Reasoning

Open-domain Question Answering (QA) is relatively straightforward when the answer resides within a single paragraph. However, "multi-hop" QA requires a model to find and connect disparate pieces of information across multiple documents. For instance, answering "Where was the hotel located where Rand Paul announced his 2016 campaign?" requires identifying the campaign announcement event, finding the hotel name (Galt House), and then locating that hotel's geographical details.

An example of multi-hop reasoning where information from Paragraph A (Rand Paul's campaign) must be linked to Paragraph B (Galt House) to answer the question.

The current mainstream approach models paragraphs as nodes in a graph, connected by hyperlinks or shared entities. However, the authors identify three "intrinsic defects" in this graph-based inductive bias:

  1. Missing Links: Comparison questions often involve independent paragraphs with no direct hyperlinks or shared entities.
  2. Directionality: Graph methods often assume a fixed reasoning path, leading to low recall if the path is ambiguous.
  3. Efficiency: Processing all adjacent nodes simultaneously is computationally and memory-intensive.

Methodology: Gated Memory Flow

To address these issues, the researchers propose a three-stage pipeline: Term-Based Retrieval, Gated Memory Flow (GMF), and a Reader Model.

The three-stage pipeline: Term-Based Retrieval narrows the search space, Gated Memory Flow performs sequential reasoning with external memory, and the Reader Model extracts the final answer.

1. Term-Based Retrieval

A heuristic first pass uses keyword matching, TF-IDF, and hyperlinks to narrow the massive Wikipedia corpus down to a manageable set of candidate paragraphs ($P_{cand}$).

2. Gated Memory Flow (GMF)

The core innovation is treating candidates as a sequence rather than a graph.

  • Rewritable External Memory: Inspired by Neural Turing Machines, the model maintains a memory buffer. As it iterates through paragraphs, it "reads" from memory to decide if the current paragraph is relevant based on previous findings.
  • Threshold Gate: To prevent "memory poisoning" from irrelevant paragraphs, the model only "writes" to memory if a paragraph’s relevance score exceeds a specific threshold.
  • Hard Negative Sampling: Training utilizes a BERT-based ranker to find "hard" negatives—paragraphs that appear relevant but are not—forcing the model to learn finer distinctions.

3. Reader Model

Retrieved paragraphs are fed into a pre-trained language model (e.g., RoBERTa or ALBERT) with a "cascade prediction layer" that identifies the answer type, specific answer span, and supporting facts.

Evaluation and Results

The model was evaluated on the HotpotQA benchmark in both the "Distractor" and "Full Wiki" settings. The GMF model set new performance standards:

  • Retrieval Performance: It achieved a Paragraph Exact Match (P EM) of 86.3% in the Full Wiki setting, a significant leap over the previous state-of-the-art (72.7%).
  • Downstream QA: On the Full Wiki leaderboard, it reached an Answer F1 of 76.5, outperforming all previously published methods.
  • Ablation Study: Removing the rewritable memory caused a 6.6% drop in precision, confirming that maintaining a reasoning path is essential for multi-hop tasks.

Discussion and Conclusion

By treating retrieval as a sequence labeling task with memory, the GMF model offers greater flexibility than graph-based methods, handling both "bridge" and "comparison" questions within a unified framework. The threshold gate proves vital for maintaining signal integrity in noisy candidate sets. Furthermore, the sequential approach is significantly more memory-efficient, as it only requires holding one paragraph and the memory state in the GPU at a time.

Future work may involve more sophisticated memory structures for complex reasoning chains and further optimization of the hard negative selection process to improve robustness against deceptive distractor paragraphs.

Summary updated

BibTeX
@misc{shao2021memory,
  author = {Nan Shao and Yiming Cui and Ting Liu and Shijin Wang and Guoping Hu},
  title = {{Memory Augmented Sequential Paragraph Retrieval for Multi-hop Question Answering}},
  year = {2021},
  eprint = {2102.03741},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.03741},
}
Figure