Abstract
Deep learning models frequently exploit spurious correlations—background patterns that happen to correlate with labels in training data but lack causal relevance. This behavior leads to catastrophic failure when models are deployed in out-of-distribution (OOD) environments. While Counterfactual Augmented Data (CAD) can mitigate this, manual data rewriting is prohibitively expensive. We present Rationales-centric Double-robustness Learning (RDL), a human-in-the-loop framework that utilizes human-highlighted "rationales" to generate semi-factual training data and dynamically correct model biases. RDL demonstrates superior OOD generalization, outperforming traditional CAD methods while requiring significantly fewer labeled instances and less human effort.
Introduction
In few-shot learning scenarios, neural networks are notorious for "cheating." Instead of learning the underlying logic of a task, they often latch onto dataset artifacts. For instance, a sentiment analysis model might associate the phrase "acting and plot" with negative reviews simply because that phrase appeared frequently in a small set of negative training examples. When this model encounters the same phrase in a positive context in the real world, it fails.
To address this, researchers have historically turned to Counterfactual Augmented Data (CAD). In CAD, humans rewrite existing examples to flip the label (e.g., changing a negative review to a positive one by altering key adjectives). However, manual CAD is labor-intensive and expensive, often costing upwards of $10,000 for a small dataset of 2,500 instances. Fully automated alternatives exist but are frequently brittle and domain-specific. RDL offers a task-agnostic, cost-effective alternative by shifting the focus from rewriting text to identifying causal rationales.
The RDL Framework
Rationales-centric Double-robustness Learning (RDL) introduces a two-stage process designed to decouple spurious background words from target labels using "semi-factuals"—examples where the background text changes but the label remains the same.
1. Static Semi-factual Generation
Rather than asking humans to rewrite sentences, RDL asks annotators to highlight "rationales"—the specific words or phrases that justify a label (e.g., "masterpiece" or "waste of time"). A language model (RoBERTa) then automatically replaces a portion of the non-rationale (background) words with synonyms. This process creates new training examples that preserve the causal signal while varying the noise, forcing the model to ignore the background context.
2. Dynamic Human-intervened Correction
Static augmentation alone is often insufficient, as models may still pick up new artifacts from the augmented data. RDL incorporates a dynamic feedback loop using Contextual Decomposition (SCD) to identify which words the model is currently prioritizing. Humans review these model-identified features:
- False Rationales: If the model relies on a non-causal word, the system replaces that word with synonyms to break the association.
- Missed Rationales: If the model ignores a true causal word, the system extracts the relevant sentence to serve as a high-priority training example.
Experimental Results
The authors evaluated RDL on binary sentiment classification, training on IMDb movie reviews and testing across diverse OOD datasets, including Amazon reviews, Yelp, SST-2, and SemEval-2017 Twitter data.
Efficiency and Performance
RDL demonstrated remarkable efficiency gains over traditional methods. A model trained with RDL using only 100 human-labeled examples outperformed models trained on 3,414 manually generated counterfactuals.
In terms of human labor, RDL annotators spent approximately 183 seconds per review highlighting rationales, compared to the 300 seconds required for manual rewriting in CAD. When combined with the drastically smaller dataset size required, RDL is estimated to be 27.8x more efficient than manual CAD. Accuracy gains were also significant; the full dynamic method achieved 82.40% on SST-2 and 93.19% on Yelp, surpassing standard active learning and CAD baselines.
Discussion and Limitations
A key finding of the study is that "more data" is not always beneficial. Generating excessive static semi-factuals (e.g., 1,150 vs. 350) actually degraded performance, as the language models used for synonym replacement eventually introduced their own spurious patterns. This highlights the necessity of the dynamic correction phase as a targeted "debugging" session for the model.
Despite its efficiency, RDL still requires human intervention, which limits its scalability compared to fully autonomous systems. Additionally, the synonym replacement strategy requires careful calibration to avoid introducing excessive noise into the training set.
Conclusion
RDL provides a robust framework for building models that generalize better by focusing on the true causal drivers of a label. By making human-in-the-loop intervention significantly more efficient through rationale highlighting and dynamic correction, RDL paves the way for high-performance NLP models in data-scarce and OOD environments. Future work will explore applying this framework to more complex tasks such as Named Entity Recognition (NER) and question answering.
Summary updated