RoR: Read-over-Read for Long Document Machine Reading Comprehension

Jing Zhao, Junwei Bao, Yifan Wang, Yongwei Zhou, Youzheng Wu, Xiaodong He, Bowen Zhou

Introduction

Transformer-based models, such as BERT and ELECTRA, have revolutionized Machine Reading Comprehension (MRC). However, these models are typically constrained by a rigid input limit of 512 tokens. Real-world documents, such as legal texts or Wikipedia articles, often far exceed this capacity. The standard solution—splitting documents into overlapping chunks—suffers from a lack of contextual collaboration and incomparable confidence scores across chunks.

To address these limitations, we introduce Read-over-Read (RoR), a novel pipeline that enables models to maintain a global perspective. RoR identifies regional answer candidates in chunks and compresses them into a single "condensed" document for a second global reading pass. This approach allows standard models to overcome their short-sightedness and achieve state-of-the-art results on major benchmarks.

Methodology: The Read-over-Read Framework

The RoR framework consists of a two-stage process designed to filter and then judge information globally.

The RoR architecture pipeline, illustrating the flow from Chunk Reader to Document Reader and final Voting.
  1. Chunk Reader & Answer Calibration: The document is first processed in 512-token chunks. Instead of selecting a single answer, the model predicts a set of "regional answers." A multi-head self-attention layer performs Answer Calibration, reranking these candidates to ensure high-quality inputs for the next stage.
  2. Minimum Span Coverage (MSC): This compression algorithm extracts the top regional answers and their surrounding context, packing them into a new document guaranteed to be under 512 tokens.
  3. Document Reader: A second reader processes this condensed document. Since the most relevant spans from the entire original text are now in a single sequence, the model can perform global normalization and direct comparison.
  4. Voting Strategy: A final heuristic aggregates regional and global answers. Spans that appear across multiple "views" of the document receive higher final scores.

Experimental Results

RoR was evaluated on two primary long-document benchmarks: QuAC (Question Answering in Context) and TriviaQA. The framework consistently improves performance across various base models, including BERT, ELECTRA, and even the long-context Longformer.

Comparison of ELECTRA-RoR against other models on the QuAC leaderboard, showing its top-ranking performance.

Key findings include:

  • State-of-the-Art Performance: At the time of submission, ELECTRA-RoR ranked 1st on the QuAC leaderboard, outperforming specialized models like EL-QA.
  • Generalizability: On TriviaQA, RoR improved the F1 score of Longformer-large from 77.8 to 80.0, demonstrating that even models with 4,096-token windows benefit from a global second pass.
  • The Power of Condensation: The success of RoR suggests that high-resolution encoding of an entire long document is unnecessary. Treating the first pass as a filter allows the second pass to act as an effective global judge.

Discussion and Limitations

While effective, RoR has certain constraints. The Document Reader's performance is strictly bounded by the Chunk Reader's ability to identify the correct region. Additionally, the current MSC algorithm is tailored for extractive QA; its applicability to generative tasks remains to be explored. Finally, the two-pass nature of the pipeline introduces higher inference latency compared to single-pass models, suggesting a need for more efficient first-pass architectures in future iterations.

Summary updated

BibTeX
@inproceedings{zhao2021ror,
  author = {Jing Zhao and Junwei Bao and Yifan Wang and Yongwei Zhou and Youzheng Wu and Xiaodong He and Bowen Zhou},
  title = {{RoR: Read-over-Read for Long Document Machine Reading Comprehension}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.160},
}
Figure