RikiNet: Reading Wikipedia Pages for Natural Question Answering

Dayiheng Liu, Yeyun Gong, Jie Fu, Yu Yan, Jiusheng Chen, Daxin Jiang, Jiancheng Lv, Nan Duan

Abstract

The Natural Questions (NQ) benchmark presents a significant challenge for Machine Reading Comprehension (MRC) due to the requirement of extracting answers from entire Wikipedia pages. We present RikiNet, a model that integrates a Dynamic Paragraph Dual-Attention (DPDA) reader with a multi-level cascaded answer predictor. The DPDA reader employs dual-attention and dynamic masking to handle long-range dependencies and filter irrelevant information. The cascaded predictor exploits the hierarchical relationship between long and short answers. RikiNet is the first single model to exceed human performance on the NQ task, achieving state-of-the-art F1 scores for both long-form and short-form answers.

1. Introduction

Most Machine Reading Comprehension (MRC) models are trained on datasets like SQuAD, where the "context" is a single, relatively short paragraph. However, real-world information seeking is messier. Google’s Natural Questions (NQ) dataset reflects this by providing models with an entire Wikipedia page to find an answer. This presents two major hurdles:

  1. Context Length: Wikipedia pages are significantly longer than standard MRC snippets, making it harder to filter out irrelevant "noise."
  2. Answer Hierarchy: Models must identify both a Long Answer (the paragraph containing the information) and a Short Answer (the specific entity or phrase), or determine if the answer is a simple "Yes/No."

The authors address these by moving away from simple span-prediction and toward a model that understands the document's hierarchical structure (tokens $\rightarrow$ paragraphs $\rightarrow$ document).

2. Methodology

RikiNet consists of two primary components built on top of pre-trained language models like BERT or RoBERTa.

The architecture of RikiNet, featuring the Dynamic Paragraph Dual-Attention (DPDA) Reader and the Multi-level Cascade Answer Predictor.

2.1 Dynamic Paragraph Dual-Attention (DPDA) Reader

Standard self-attention in Transformers can be overwhelmed by long documents. The DPDA reader introduces two mechanisms to focus the model's attention:

  • Dual-Attention: It iteratively performs attention between the question and the document in both directions, ensuring the document representation is context-aware and the question representation is document-aware.
  • Dynamic Masks: To handle the length of Wikipedia pages, the reader uses two masks. The first forces tokens to only attend to others within the same paragraph. The second is a "top-K" scorer that identifies the most important tokens in a paragraph and masks out the rest, effectively "zooming in" on the most relevant content.

2.2 Multi-level Cascaded Answer Predictor

Instead of predicting the long and short answers independently, RikiNet uses a cascaded approach. It predicts answers in a specific order, using the output of one step as an input for the next:

  1. Long Answer: Identifies the correct paragraph.
  2. Short Answer Start/End: Uses the paragraph-level information to narrow down the specific span.
  3. Answer Type: Finally, it predicts if the answer is a span, a "Yes/No," or if no answer exists (NULL), using the question embedding as a prior.

3. Experiments and Results

The model is evaluated exclusively on the Natural Questions (NQ) dataset, which includes approximately 307k training examples and a blind test set of 7.8k examples. The authors also utilize synthetic self-training data to pre-train the BERT-large encoder.

Performance comparison of RikiNet against baseline models and human benchmarks on the Natural Questions dataset.

RikiNet achieved a significant breakthrough on the NQ leaderboard:

  • Single Model Performance: Achieved 74.3 F1 on long answers and 57.9 F1 on short answers. This outperformed the previous best single model by roughly 7.5 and 4.0 points, respectively, and surpassed the single-human performance benchmark.
  • Ensemble Performance: An ensemble of RikiNet models reached 76.1 F1 (Long) and 61.3 F1 (Short), taking the #1 spot on the official NQ leaderboard at the time of submission.

4. Discussion and Ablation

Ablation studies confirm the necessity of each component. Removing the DPDA reader caused a sharp drop in performance (from 73.9 to 70.7 LA F1), proving that the specialized attention mechanisms are doing the heavy lifting. Furthermore, the hierarchical logic—finding the paragraph first and then the span—drastically reduces the search space for short answers, leading to higher precision.

While RikiNet handles paragraphs well, the initial document splitting via a sliding window might still struggle with context that is split across window boundaries. Additionally, training is computationally intensive, requiring significant GPU resources. Future directions include pairing RikiNet with newer architectures like DeBERTa or incorporating more sophisticated data augmentation.

5. Conclusion

RikiNet demonstrates that hierarchical document understanding and dynamic attention are key to solving complex, long-form MRC tasks. By surpassing human performance on the NQ benchmark, it sets a new standard for document-level question answering.

Summary updated

BibTeX
@inproceedings{liu2020rikinet,
  author = {Dayiheng Liu and Yeyun Gong and Jie Fu and Yu Yan and Jiusheng Chen and Daxin Jiang and Jiancheng Lv and Nan Duan},
  title = {{RikiNet: Reading Wikipedia Pages for Natural Question Answering}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.604},
}
Figure