Adversarial Training for Commonsense Inference

Lis Pereira, Xiaodong Liu, Fei Cheng, Masayuki Asahara, Ichiro Kobayashi

Introduction

Large-scale pre-trained language models, such as RoBERTa, have demonstrated remarkable proficiency in linguistic pattern matching. However, they frequently struggle with commonsense inference—the ability to reason about everyday situations by "reading between the lines." For instance, a human understands that a person needing help dressing likely has a physical limitation, whereas a model might fail to make this leap if it only relies on surface-level text statistics.

The authors identify two primary challenges in this domain:

  1. Overfitting: Commonsense datasets are typically small. Fine-tuning complex models on limited data often leads to memorization of specific examples rather than the acquisition of generalized reasoning capabilities.
  2. Fragility: These models are notoriously vulnerable to adversarial attacks, where minor input perturbations that do not affect human understanding can significantly degrade model performance.

Methodology: The ALICE Algorithm

To address these issues, the authors propose ALICE (AdversariaL training algorithm for commonsense InferenCE). ALICE utilizes Adversarial Training (AT) as a regularization technique, applying small, calculated perturbations to word embeddings in the hidden space during the training process.

The novelty of ALICE lies in its objective function, which integrates two complementary adversarial strategies:

  • Label-based Perturbation: The model minimizes the error between its prediction on a perturbed input and the ground-truth label. This forces the model to remain accurate even when the input is slightly distorted.
  • Prediction-based Perturbation: The model minimizes the divergence between its prediction on a perturbed input and its original prediction (a "virtual label"). This enforces "smoothness" in the output space, ensuring consistent logic across minor variations.

By balancing these two losses with a hyperparameter $\alpha$, ALICE learns more robust representations without relying on external knowledge bases or additional datasets.

Experimental Setup

The effectiveness of ALICE was evaluated across three diverse commonsense benchmarks: CosmosQA (everyday narratives), MCScript2.0 (daily activities), and MC-TACO (temporal reasoning).

Statistics of the evaluated datasets, including training, development, and test set sizes.

Key Results

ALICE consistently outperformed the standard RoBERTa-Large baseline and other adversarial methods like SMART across all evaluated benchmarks.

Comprehensive performance results for ALICE and baseline models across development and test sets.

On CosmosQA, ALICE achieved a test accuracy of 84.57%, which ranked first on the official leaderboard at the time of submission. In the MC-TACO benchmark, the model showed a dramatic improvement in "Exact Match" (EM) scores, rising from 44.12 (RoBERTa) to 58.02 on the development set. Furthermore, ALICE demonstrated superior performance on "out-of-domain" questions in MCScript2.0, indicating enhanced generalization capabilities compared to standard fine-tuning.

Discussion and Future Work

A significant advantage of ALICE is its data efficiency; it achieves state-of-the-art results purely through algorithmic improvements during training, rather than by incorporating massive external knowledge graphs like ConceptNet.

However, this robustness comes at a computational cost. The authors note that ALICE takes approximately four times longer to train than standard fine-tuning due to the additional gradient steps required to calculate adversarial perturbations. Future research may explore the application of ALICE to other NLP tasks, such as natural language generation, and investigate the sensitivity of the loss-balancing hyperparameter across different data distributions.

Summary updated

BibTeX
@inproceedings{pereira2020adversarial,
  author = {Lis Pereira and Xiaodong Liu and Fei Cheng and Masayuki Asahara and Ichiro Kobayashi},
  title = {{Adversarial Training for Commonsense Inference}},
  booktitle = {RepL4NLP @ ACL},
  year = {2020},
  doi = {10.18653/v1/2020.repl4nlp-1.8},
}
Figure