Introduction
Large-scale pre-trained language models like BERT and RoBERTa have significantly advanced natural language processing. However, these models often struggle with commonsense inference—the ability to reason using everyday knowledge that is typically unstated in text. For instance, while a human can easily infer that an adult needing help to dress likely has a physical disability, a model might fail to bridge this gap.
Two primary issues hinder performance in this domain:
- Overfitting: Massive models fine-tuned on small datasets tend to memorize specific patterns rather than learning generalizable reasoning.
- Brittleness: Models are often sensitive to minor input perturbations (adversarial attacks) that do not change the underlying meaning but lead to incorrect predictions.
To address these, we introduce ALICE (Adversarial Training for Commonsense InferenCE), a training algorithm designed to enhance robustness and generalization by injecting "smart" noise into word embeddings.
The ALICE Algorithm
ALICE leverages Adversarial Training (AT) to regularize the fine-tuning process. Unlike standard training on clean data, AT identifies "worst-case" perturbations to add to word embeddings and trains the model to remain accurate despite this noise.
The novelty of ALICE lies in its dual-objective approach for estimating perturbations:
- Label-based Perturbation: Minimizes risk relative to the ground-truth label, forcing the model to maintain accuracy under distortion.
- Prediction-based (Virtual) Perturbation: Minimizes the divergence between the model’s prediction on clean versus perturbed data. This enforces "smoothness" in the decision space, ensuring internal consistency.
By combining these objectives, ALICE encourages the model to be both robust to the target labels and stable across minor input variations.
Experimental Setup
We evaluated ALICE on three major commonsense reasoning benchmarks: CosmosQA, MCScript2.0, and MC-TACO. These datasets cover a range of tasks from everyday narrative reasoning to temporal script understanding.
Key Results
ALICE demonstrates consistent improvements over standard fine-tuning baselines and other adversarial methods across all benchmarks.
On the CosmosQA leaderboard, ALICE achieved a test accuracy of 84.57%, ranking first at the time of submission. Notably, it outperformed K-ADAPTER, which explicitly incorporates external knowledge bases. On MCScript2.0, ALICE reached 92.5% accuracy, a significant improvement over the RoBERTa baseline (88.8%). For temporal reasoning on MC-TACO, ALICE achieved an F1 score of 79.50, surpassing other robust training methods like SMART.
Discussion and Insights
The success of ALICE provides several key insights into commonsense reasoning:
- Synergy of Objectives: The combination of label-based and prediction-based perturbations is more effective than using either in isolation. They provide complementary regularization that protects both accuracy and decision-boundary smoothness.
- Knowledge-Free Generalization: ALICE achieves state-of-the-art results without relying on external knowledge graphs (e.g., ConceptNet). This suggests that pre-trained models may already contain sufficient latent knowledge, which can be effectively surfaced through robust training processes.
- Robustness and Generalization: The results confirm that increasing a model's resistance to adversarial noise directly correlates with better performance on unseen, real-world test data.
Limitations
The primary trade-off for ALICE's performance is computational efficiency. Finding optimal adversarial perturbations requires an "inner loop" of gradient steps during each training iteration, making ALICE approximately 4x slower to train than standard fine-tuning. Future work will explore extending this approach to a wider variety of NLP tasks, including natural language generation.
Summary updated