Skip to main content
QUICK REVIEW

[Paper Review] Robust Machine Comprehension Models via Adversarial Training

Yicheng Wang, Mohit Bansal|arXiv (Cornell University)|Apr 17, 2018
Topic ModelingComputer Science12 references20 citations
TL;DR

This paper proposes AddSentDiverse, a novel adversarial training method that increases diversity in adversarial examples by varying distractor placement and fake answer generation, significantly improving robustness of machine comprehension models. Combined with semantic relationship features (e.g., synonymy/antonymy), the approach boosts F1 scores by 36.5% on adversarial SQuAD evaluations while maintaining performance on the original task.

ABSTRACT

It is shown that many published models for the Stanford Question Answering Dataset (Rajpurkar et al., 2016) lack robustness, suffering an over 50% decrease in F1 score during adversarial evaluation based on the AddSent (Jia and Liang, 2017) algorithm. It has also been shown that retraining models on data generated by AddSent has limited effect on their robustness. We propose a novel alternative adversary-generation algorithm, AddSentDiverse, that significantly increases the variance within the adversarial training data by providing effective examples that punish the model for making certain superficial assumptions. Further, in order to improve robustness to AddSent's semantic perturbations (e.g., antonyms), we jointly improve the model's semantic-relationship learning capabilities in addition to our AddSentDiverse-based adversarial training data augmentation. With these additions, we show that we can make a state-of-the-art model significantly more robust, achieving a 36.5% increase in F1 score under many different types of adversarial evaluation while maintaining performance on the regular SQuAD task.

Motivation & Objective

  • To address the fragility of state-of-the-art machine comprehension models under adversarial evaluation, particularly on the SQuAD dataset.
  • To overcome the limitations of prior adversarial training methods that fail due to low variance and exploitable statistical correlations in adversarial data.
  • To improve model robustness against AddSent-style attacks, especially semantic perturbations like antonyms.
  • To investigate whether joint enhancement of model capabilities (e.g., semantic relationship learning) with diverse adversarial training improves robustness.
  • To demonstrate the generalizability of the proposed method to other insertion-based adversarial attacks in question answering.

Proposed method

  • Proposes AddSentDiverse, an adversarial example generation algorithm that increases variance by randomizing distractor sentence placement and dynamically generating diverse fake answers.
  • Uses a combination of fixed and dynamic fake answer sets to prevent models from learning superficial patterns in answer selection.
  • Introduces WordNet-based synonymy and antonymy features as input enhancements to improve the model’s semantic reasoning capabilities.
  • Trains models on both regular SQuAD data and AddSentDiverse-generated adversarial data to improve robustness through diverse negative examples.
  • Employs a dual training strategy: adversarial fine-tuning with diverse examples followed by integration of semantic relationship features to enhance generalization.
  • Evaluates models on multiple adversarial test sets (AddSent, AddSentPrepend, AddSentMod) to measure robustness across different perturbation types.

Experimental results

Research questions

  • RQ1Can increasing the variance in adversarial training data through diverse distractor placement and fake answer generation significantly improve model robustness?
  • RQ2Does joint training with semantic relationship features (e.g., synonymy/antonymy) enhance model performance on semantic perturbations like antonymy?
  • RQ3Why does adversarial training alone fail to improve robustness on semantic perturbations, and how can model capabilities be enhanced to address this?
  • RQ4Can the proposed method generalize to other insertion-based adversarial attacks in question answering tasks?
  • RQ5Does the inclusion of semantic features improve performance on the original SQuAD task when combined with adversarial training?

Key findings

  • The AddSentDiverse-based adversarially trained model achieves a 24.22% average improvement in F1 score across three adversarial test sets compared to AddSent-based training.
  • The model trained with AddSentDiverse and dynamic fake answers generalizes better, showing no performance drop when tested on datasets with different fake answer sets.
  • Adding semantic relationship features (synonymy/antonymy) to the model increases its F1 score on adversarial evaluation by 36.46% compared to the baseline.
  • The BSAE+SA model trained adversarially maintains performance on the original SQuAD dev set (84.49 F1), unlike the BSAE model which drops by 1% under adversarial training.
  • Error analysis shows 63.7% of remaining errors occur on questions already misclassified in the original SQuAD dev set, indicating that robustness improvements are primarily effective on adversarial perturbations.
  • The model still struggles with named-entity replacement-based distractors and malformed distractors that accidentally answer the question, highlighting remaining challenges.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.