A Multi-Type Multi-Span Network for Reading Comprehension that Requires Discrete Reasoning

Minghao Hu, Yuxing Peng, Zhen Huang, Dongsheng Li

Abstract

Standard reading comprehension models often struggle when questions require discrete reasoning, such as counting, addition, or extracting multiple distinct text spans. We present the Multi-Type Multi-Span Network (MTMSN), a BERT-based architecture enhanced with specialized prediction heads for logical negation and multi-span extraction. MTMSN achieves state-of-the-art performance on the DROP dataset, significantly outperforming previous models by a 32.9% absolute F1 score.

Introduction

Traditional reading comprehension benchmarks, like SQuAD, primarily focus on extracting a single continuous text span as an answer. However, real-world comprehension often involves complex operations over text. The DROP (Discrete Reasoning Over Paragraphs) dataset highlights these challenges, requiring models to perform arithmetic, handle logical negation, and identify multiple non-contiguous spans.

Examples of discrete reasoning tasks in the DROP dataset, including comparison, multi-span extraction, and arithmetic.

For instance, a model might need to calculate the percentage of a population that is not a specific group or identify all ancestral groups below a certain threshold. Existing models typically struggle with these tasks, either failing to capture logical negation or producing mathematically inconsistent results.

Methodology: The MTMSN Architecture

The Multi-Type Multi-Span Network (MTMSN) extends a BERT encoder with several specialized components designed for discrete reasoning.

The MTMSN architecture featuring the Multi-Type Answer Predictor, Multi-Span Extraction module, and Arithmetic Expression Reranking.

Multi-Type Answer Predictor

The model first classifies the question to determine the required answer type. It routes the prediction to one of four heads:

  1. Span: For standard single-span extraction.
  2. Arithmetic Expression: For addition and subtraction tasks.
  3. Count: For questions requiring a numerical count.
  4. Negation: A novel head specifically for "100 - X" scenarios, which are common in percentage-based reasoning.

Multi-Span Extraction via NMS

To handle questions requiring multiple distinct answers, MTMSN predicts the total number of target spans. It extracts candidate spans and applies Non-Maximum Suppression (NMS)—a technique adapted from computer vision—to prune overlapping spans until the predicted count is reached.

Arithmetic Expression Reranking

Rather than predicting signs for numbers in isolation, MTMSN uses beam search to generate candidate arithmetic expressions. These expressions are then evaluated by a reranking module that considers the full context of the numbers, ensuring mathematical and contextual coherence.

Experimental Results

The model was evaluated on the DROP dataset, which contains approximately 96,000 QA pairs based on Wikipedia. MTMSN achieved a state-of-the-art 79.88 F1 and 75.85 Exact Match (EM) on the DROP test set. This represents a massive 32.9% absolute F1 improvement over the previous best published model, NAQANet.

Ablation studies confirmed the importance of the specialized modules: removing the arithmetic module caused a 20-point F1 drop, while removing the negation module resulted in a 9-point drop. Even when compared to a custom baseline using the same BERT-Large encoder (NABERT), MTMSN outperformed it by approximately 13 F1 points, proving the architectural gains.

Conclusion

MTMSN demonstrates that incorporating explicit inductive biases for logical and arithmetic operations significantly enhances reading comprehension performance. While the model sets a new benchmark, a gap remains compared to human performance (95.98 F1). Future work will focus on more complex operations such as sorting, multiplication, and division to further bridge this gap.

Summary updated

BibTeX
@inproceedings{hu2019multi,
  author = {Minghao Hu and Yuxing Peng and Zhen Huang and Dongsheng Li},
  title = {{A Multi-Type Multi-Span Network for Reading Comprehension that Requires Discrete Reasoning}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2019},
  doi = {10.18653/v1/d19-1170},
}
Figure