TL;DR
This paper introduces MAARS, a simple, model-agnostic system that reranks candidate answers for question answering (QA) models by focusing on named entity overlap between the question and potential answers. MAARS significantly improves robustness against adversarial attacks, outperforming more complex defense mechanisms and questioning the current adversarial QA benchmarks' ability to truly assess model robustness.
What Problem Does This Paper Address?
The field of question answering (QA) has seen rapid advancements, but a critical challenge remains: robustness. Many QA models, while performing well on standard datasets, are easily fooled by adversarial examples. These examples often involve adding irrelevant "distractor" sentences to the context, which can confuse even sophisticated models. Existing defenses are often model-specific, require extensive retraining, and offer only marginal improvements. This paper tackles the problem of making QA models more robust to these adversarial attacks in a way that is easy to implement and broadly applicable.
Methods
The core contribution of this paper is the Model Agnostic Answer Reranking System (MAARS). This system operates post-hoc, meaning it can be applied to any existing QA model without needing to retrain it. Here's how it works:
- Candidate Generation: First, a base QA model generates a set of the top-N most probable answer spans for a given question and context.
- Named Entity Extraction: For each candidate answer's containing sentence and for the question itself, named entities are extracted using an off-the-shelf Named Entity Recognition (NER) model.
- Content Overlap Scoring: MAARS then calculates a score for each candidate sentence based on the overlap of words within named entities between the question and the sentence. The intuition is that answers whose surrounding context shares more named entities with the question are more likely to be correct, especially in adversarial settings where distractors might not share these entities.
- Reranking and Prediction: Candidate answer spans are then reranked based on the scores of their containing sentences. The span with the highest rank after this reranking is chosen as the final answer.
The key novelty lies in its simplicity and model-agnostic nature. It leverages readily available NER tools and a straightforward heuristic, avoiding the complexity and retraining burden of many prior adversarial defense methods.
Datasets
The paper evaluates MAARS on two adversarial QA datasets built on top of SQuAD v1.1:
- Adversarial SQuAD (Jia and Liang, 2017): This dataset introduces adversarial distractors to standard SQuAD examples.
- Universal Adversarial Triggers (Wallace et al., 2019): This dataset uses specific trigger phrases to create adversarial instances.
The authors do not introduce new datasets but focus on evaluating existing adversarial benchmarks.
Key Insights and Ideas
- Simplicity Can Be Powerful: The most striking insight is that a simple, model-agnostic reranking mechanism based on named entity overlap can significantly improve robustness against adversarial attacks, even outperforming more complex, end-to-end trained defenses.
- Questioning Current Benchmarks: The effectiveness of MAARS raises questions about the true robustness of current QA models and the adequacy of existing adversarial datasets. If a straightforward heuristic can achieve such gains, it suggests that current adversarial examples might not be challenging enough for a wide range of QA methods.
- Model Agnosticism is a Major Advantage: The ability to apply MAARS to any QA model without retraining makes it highly practical and broadly applicable, a significant advantage over model-specific defenses.
Key Results
MAARS demonstrates substantial performance gains on adversarial datasets:
- Adversarial SQuAD: When tested with BERT, MAARS improved F1 scores by approximately 20 points on AddSent and 16 points on AddOneSent compared to QAInfoMax, a state-of-the-art defense. With BiDAF, MAARS achieved a 24-point F1 increase over the vanilla model and 22 points over the SLN baseline on AddSent.
- Universal Adversarial Triggers: While the gains were smaller compared to Adversarial SQuAD, MAARS still showed improvements over the vanilla BiDAF model for most adversary types.
- Performance Drop on Clean Data: For BERT, MAARS showed a slight drop in performance on clean (non-adversarial) data. The authors attribute this to the heuristic sometimes assigning higher scores to sentences with good entity overlap but not necessarily the correct answer. This drop was less pronounced with BiDAF.
Limitations and Future Work
The authors acknowledge several limitations and suggest future directions:
- Failure Cases: MAARS can sometimes fail when:
- The primary error is picking a wrong top candidate (Fig. 2a).
- It struggles to attend to the question type (e.g., picking a "Scottish devolution referendum" for a "How" question, Fig. 2b).
- Ambiguity arises from multiple similar span types within the same candidate sentence (Fig. 2c).
- Adversarial Dataset Strength: The paper strongly suggests that current adversarial QA datasets may not be sufficiently challenging to truly test the limits of advanced QA models and defenses. Broader and more rigorous evaluation settings are needed.
- Future Work: The authors propose that better base QA models or more powerful rerankers could address some of the identified failure cases. However, they caution that end-to-end learned rerankers might suffer from similar overfitting issues as BERT and require additional engineering. They emphasize the need for more comprehensive evaluation methodologies to gauge true progress in adversarial QA research.
Summary updated