Towards Robust Extractive Question Answering Models: Rethinking the Training Methodology

Son Tran, Matt KretchmarEMNLP 2024

Introduction

Extractive Question Answering (EQA) has seen remarkable progress with the advent of Transformer-based models like BERT and RoBERTa. However, these models often exhibit significant "brittleness" when faced with real-world scenarios that deviate from their training distributions. This paper proposes a fundamental rethinking of the EQA training methodology to address these vulnerabilities, focusing on how models handle unanswerable questions and adversarial distractors.

The Brittleness of EQA Models

Current EQA models struggle with two primary challenges:

  1. Distribution Shifts: Models trained on human-written adversarial unanswerable questions (like those in SQuAD 2.0) often fail to generalize to "information-seeking" unanswerable questions—natural queries where the answer simply does not exist in the provided text.
  2. Adversarial Attacks: Models frequently rely on "shortcuts," such as assuming every question has exactly one answer. Attackers can exploit this by inserting "distractor" sentences that mimic the structure of an answer, leading the model to confidently select the wrong span or fail to identify the question as unanswerable.

The authors argue that the standard practice of using the [CLS] token as a catch-all for unanswerable questions is logically flawed. It treats the lack of an answer as a specific coordinate rather than a lack of evidence across the entire sequence.

Proposed Methodology: Rethinking Training

The researchers introduce a two-pronged approach to enhance model robustness:

1. A New Loss Function ($L_{Ours}$)

Instead of forcing the model to point to the [CLS] token for unanswerable questions, the proposed QA loss assigns a uniform probability ($1/n$) to every token in the sequence. This signals to the model that no specific token is a valid start or end point. Additionally, a sequence tagging layer is introduced; if the maximum possible span score across the sequence is negative, the model naturally rejects the candidates as unanswerable.

2. Synthetic Answer Augmentation

To break the "single-answer" shortcut, the authors use LLMs (e.g., GPT-3.5) to generate plausible but synthetic answers that are inserted into the context. This forces the model to move beyond simple pattern matching and develop a deeper contextual understanding to distinguish between a legitimate answer and a high-relevance distractor.

Key Results

The proposed methodology was evaluated across BERT, RoBERTa, and SpanBERT using benchmarks including SQuAD 2.0, SQuAD AGent, and ACE-whQA. The results demonstrate a significant leap in both generalizability and robustness.

Table 1: Performance comparison of the proposed method (Ours) against the standard training (Default) across various datasets.

As shown in Table 1, the proposed method achieved an average F1-score improvement of 18.4 points on the SQuAD AGent dataset (information-seeking unanswerable questions) compared to the default training. Across all domains, the methodology resulted in a 5.7 point F1-score improvement overall, indicating that robustness does not come at the cost of standard performance.

Table 2: Robustness against adversarial attacks, showing the performance drop (Δ) under AddOneSent (AOS) and Negation attacks.

In adversarial settings (Table 2), the default models were highly vulnerable, with performance dropping by an average of 40.7 points under "AddOneSent" and "Negation" attacks. In contrast, models trained with the new methodology were far more resilient, with an average drop of only 13.2 points.

Conclusion

By redesigning the loss function to treat unanswerability more naturally and using synthetic data to challenge the single-answer assumption, this work provides a path toward more reliable EQA systems. The decoupling of robustness—where the loss function handles distribution shifts and synthetic data handles adversarial attacks—offers a modular framework for future improvements in NLP reliability.

Summary updated

BibTeX
@inproceedings{tran2024towards,
  author = {Son Tran and Matt Kretchmar},
  title = {{Towards Robust Extractive Question Answering Models: Rethinking the Training Methodology}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.121},
}
Figure