An Understanding-oriented Robust Machine Reading Comprehension Model

Feiliang Ren, Yongkang Liu, Bochao Li, Shilei Liu, Bingchao Wang, Jiaqi Wang, Chunchao Liu, Qi Ma

Abstract

Modern Machine Reading Comprehension (MRC) models often exhibit brittleness when faced with minor linguistic variations. This paper introduces RobustMRC, an architecture designed to prioritize semantic understanding over surface-level pattern matching. By integrating a Natural Language Inference (NLI) module and a novel memory-guided attention mechanism, RobustMRC effectively addresses common robustness failures such as over-sensitivity and over-stability. The model achieves state-of-the-art performance on major benchmarks, including a No. 2 ranking on the DuReader (robust) leaderboard.

Introduction: The Robustness Gap

While large-scale pre-trained models have surpassed human performance on standard MRC benchmarks like SQuAD, they remain vulnerable to adversarial attacks and domain shifts. The authors identify two primary failure modes that highlight the lack of true linguistic understanding:

  1. Over-sensitivity: The model's prediction changes when a question is paraphrased without altering its meaning (e.g., "How old was Steve Jobs?" vs. "At what age did Steve Jobs die?").
  2. Over-stability: The model fails to update its answer when a critical word in the question changes its fundamental intent (e.g., asking for "width" vs. "thickness").
Examples of over-sensitivity and over-stability in MRC tasks.

Instead of relying solely on "data augmentation"—a strategy the authors compare to a game of whack-a-mole—RobustMRC seeks to bridge this gap by enforcing deeper semantic consistency between the question and the source document.

Proposed Methodology

The RobustMRC architecture incorporates three key innovations to enhance linguistic understanding through multi-task learning:

Natural Language Inference (NLI) Module

The model leverages NLI to determine the semantic relationship between different versions of a question. By training the model to recognize entailment and contradiction, it learns to distinguish between benign paraphrases and meaningful semantic shifts. This "semantic filter" prevents the model from being misled by superficial string similarities.

Memory-Guided Multi-Head Attention

In traditional deep Transformer architectures, the original input signal can degrade as it passes through multiple layers. RobustMRC introduces a static "memory cell" ($H$) that preserves the original question and passage embeddings. This memory guides the attention mechanism at every layer, ensuring the model's internal representation remains anchored to the source text throughout the decoding process.

The full architecture of RobustMRC, featuring the NLI module (left) and the memory-guided attention mechanism (right).

Multi-Language Learning

To improve generalization, the model is trained on a combination of Chinese and English datasets using a Bernoulli distribution-based sampling strategy. This approach forces the model to learn language-agnostic features, treating different languages as mutual adversarial examples to prevent overfitting to specific linguistic quirks.

Experimental Results

RobustMRC was evaluated against several strong baselines, including BERT, XLNet, and RoBERTa, across multiple benchmarks:

  • DuReader (robust): The model achieved an F1 score of 80.39 on the Test1 set, significantly outperforming the RoBERTa baseline (73.76). It secured the second position on the official 2020 Language and Intelligence Challenge leaderboard.
  • Adversarial Robustness: On SQuAD-related robustness sets, the model demonstrated superior performance when handling adversarial "distractor" sentences, even when faced with English tasks after primarily Chinese training.
  • Ablation Analysis: Removing the NLI module resulted in the most significant performance drop (from 80.39 to 76.26 F1), confirming that semantic understanding is the primary driver of its robustness.

Conclusion

RobustMRC demonstrates that true linguistic understanding is a more effective defense against adversarial perturbations than simple data-driven fixes. By anchoring the model's attention with a persistent memory and utilizing NLI for semantic verification, the architecture provides a scalable path toward more reliable and human-like machine reading comprehension. Future work will explore applying these principles to even more complex tasks, such as multi-hop reasoning and long-document summarization.

Summary updated

BibTeX
@article{ren2022understanding,
  author = {Feiliang Ren and Yongkang Liu and Bochao Li and Shilei Liu and Bingchao Wang and Jiaqi Wang and Chunchao Liu and Qi Ma},
  title = {{An Understanding-oriented Robust Machine Reading Comprehension Model}},
  journal = {ACM Trans. Asian low Resour. Lang. Inf. Process},
  year = {2022},
}
Figure