Frustratingly Easy Natural Question Answering

Lin Pan, Rishav Chakravarti, Anthony Ferritto, Michael R. Glass, Alfio Gliozzo, Salim Roukos, Radu Florian, Avirup SilarXiv 2019

Abstract: Existing literature on Question Answering (QA) mostly focuses on algorithmic novelty, data augmentation, or increasingly large pre-trained language models like XLNet and RoBERTa. Additionally, a lot of systems on the QA leaderboards do not have associated research documentation in order to successfully replicate their experiments. In this paper, we outline these algorithmic components such as Attention-over-Attention, coupled with data augmentation and ensembling strategies that have shown to yield state-of-the-art results on benchmark datasets like SQuAD, even achieving super-human performance. Contrary to these prior results, when we evaluate on the recently proposed Natural Questions benchmark dataset, we find that an incredibly simple approach of transfer learning from BERT outperforms the previous state-of-the-art system trained on 4 million more examples than ours by 1.9 F1 points. Adding ensembling strategies further improves that number by 2.3 F1 points.

Introduction

Recent progress in Machine Reading Comprehension (MRC) has been driven by an arms race of complex architectures and massive synthetic datasets. However, much of this research is centered on the SQuAD dataset, which suffers from a significant "observational bias": annotators typically see a paragraph before writing a question, leading to high linguistic overlap between the query and the answer.

The Natural Questions (NQ) benchmark was introduced to address this by using real, anonymized Google search queries. NQ requires models to identify both a "long answer" (the relevant paragraph) and a "short answer" (the specific phrase). Many top-performing models on the NQ leaderboard remain "black boxes" with undocumented techniques. This work serves as a reality check, demonstrating that a principled, back-to-basics approach using BERT can outperform significantly more complex systems.

Methodology

Our system is built upon BERT-for-QA, enhanced with several targeted improvements designed to maximize the utility of existing data:

  1. The "SQuAD Sandwich" (Transfer Learning): The most effective strategy involves a sequential training pipeline. We begin with a BERT model pre-trained with Whole Word Masking (WWM), finetune it on SQuAD 2.0, and subsequently finetune it on the NQ dataset. This leverages the general QA "domain knowledge" found in SQuAD before specializing in the nuances of natural search queries.
  2. Attention-over-Attention (AoA): We integrated an AoA layer on top of BERT to capture the mutual influence between the query and the document, effectively weighting document segments based on their relevance to specific query terms.
  3. Sentence Order Shuffling (SOS): To combat "early bias"—the tendency for models to find answers at the beginning of Wikipedia paragraphs—we employed a simple data augmentation technique where the order of sentences in training paragraphs is shuffled.
  4. Greedy Ensembling: Rather than simple averaging, we utilized a greedy search strategy to select an optimal subset of models from a pool of 41 candidates, maximizing collective performance.

Key Insights and Optimization

Beyond architectural changes, we found that hyperparameter tuning provided significant gains. Specifically, the "stride" (the overlap between text chunks when processing long documents) is often overlooked. While most BERT implementations default to a stride of 128 tokens, our experiments showed that increasing this to 192 tokens provided a notable performance boost.

Impact of stride length on Short Answer F1 performance on the NQ development set.

Furthermore, our results suggest that transfer learning from high-quality datasets like SQuAD 2.0 is more valuable than sheer data volume. Our model outperformed a previous state-of-the-art system that relied on 4 million synthetically generated questions, proving that the training pipeline's quality often outweighs noisy data augmentation.

Results

Our empirical evaluation shows that the combination of BERT-WWM, SQuAD pre-training, and AoA achieves superior performance. Our best single model reached 57.22 F1 on short answers, a significant improvement over the previous SOTA of 55.1.

Comparison of the proposed BERT-based models against prior state-of-the-art systems on the Natural Questions benchmark.

When applying our greedy ensembling strategy, the performance further increased to 59.71 F1 for short answers and 70.84 F1 for long answers. These results demonstrate that even without the massive synthetic datasets used by competitors, a well-tuned BERT-based model remains highly competitive.

Conclusion

This work demonstrates that "frustratingly easy" techniques—smart transfer learning, minor architectural additions like AoA, and transparent ensembling—can leapfrog complex, data-heavy systems. By focusing on the fundamentals of how models process context and learn from related tasks, we achieve state-of-the-art results on the challenging Natural Questions benchmark while maintaining a more reproducible and principled approach to MRC.

Summary updated

Abstract

Existing literature on Question Answering (QA) mostly focuses on algorithmic novelty, data augmentation, or increasingly large pre-trained language models like XLNet and RoBERTa. Additionally, a lot of systems on the QA leaderboards do not have associated research documentation in order to successfully replicate their experiments. In this paper, we outline these algorithmic components such as Attention-over-Attention, coupled with data augmentation and ensembling strategies that have shown to yield state-of-the-art results on benchmark datasets like SQuAD, even achieving super-human performance. Contrary to these prior results, when we evaluate on the recently proposed Natural Questions benchmark dataset, we find that an incredibly simple approach of transfer learning from BERT outperforms the previous state-of-the-art system trained on 4 million more examples than ours by 1.9 F1 points. Adding ensembling strategies further improves that number by 2.3 F1 points.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Natural Questions · NQ dev-testGreedy (Long Answer)SA F159.71split: dev-test · backbone=BERT-Large · ensemble-size=4 · candidate-models=41
Source quote
L309: with Random Seeds │ Exhaustive Search (Short Answer) │ 59.64 │ 69.98 Exhaustive Search (Long Answer) │ 59.64 │ 70.49 Greedy (Short Answer) │ 59.07 │ 69.81 Greedy (Long Answer) │ 59.71 │ 70.84
Natural Questions · NQ dev-testGreedy (Long Answer)LA F170.84+2.6 vs baselinesplit: dev-test · backbone=BERT-Large · ensemble-size=4 · candidate-models=41
Source quote
L309: with Random Seeds │ Exhaustive Search (Short Answer) │ 59.64 │ 69.98 Exhaustive Search (Long Answer) │ 59.64 │ 70.49 Greedy (Short Answer) │ 59.07 │ 69.81 Greedy (Long Answer) │ 59.71 │ 70.84
Reported baseline / comparator measurements (4)
BenchmarkMethodMetricScoreProtocol / Evidence
Natural Questions · NQ devBERT w/ 4M Synthetic Data Augmentation baselineSA F155.1split: val · params=4M · training-data=4M synthetic examples
Source quote
L281: \cite{alberti2019bert} BERT w/ 4M Synthetic Data │ 55.1 │ 65.9
Natural Questions · NQ devBERT w/ 4M Synthetic Data Augmentation baselineLA F165.9split: val · params=4M · training-data=4M synthetic examples
Source quote
L281: \cite{alberti2019bert} BERT w/ 4M Synthetic Data │ 55.1 │ 65.9
Natural Questions · NQ devBERT_WWM + SQuAD 2 PT + AoA baselineSA F157.22split: val · fine-tuned · backbone=BERT-WWM · pretraining=SQuAD 2.0
Source quote
L283: + Layer Combo BERT-WWM + SQuAD 2 PT + AoA │ 57.22 │ 68.24 This Work (Data Augmentation) BERT-WWM w/ SOS │ 55.81 │ 66.67 BERT-WWM w/ ~21K Random │ 54.05 │ 66.23
Natural Questions · NQ devBERT_WWM + SQuAD 2 PT + AoA baselineLA F168.24split: val · fine-tuned · backbone=BERT-WWM · pretraining=SQuAD 2.0
Source quote
L283: + Layer Combo BERT-WWM + SQuAD 2 PT + AoA │ 57.22 │ 68.24 This Work (Data Augmentation) BERT-WWM w/ SOS │ 55.81 │ 66.67 BERT-WWM w/ ~21K Random │ 54.05 │ 66.23
BibTeX
@misc{pan2019frustratingly,
  author = {Lin Pan and Rishav Chakravarti and Anthony Ferritto and Michael R. Glass and Alfio Gliozzo and Salim Roukos and Radu Florian and Avirup Sil},
  title = {{Frustratingly Easy Natural Question Answering}},
  year = {2019},
  eprint = {1909.05286},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.05286},
}
Figure