TL;DR
Pre-trained language models often learn spurious correlations from biased training data, causing them to fail or exhibit unfair biases when deployed in new domains. This paper introduces REMOTE, a framework that allows humans to correct these biases by providing natural language "compositional explanations." These explanations are parsed into logic rules, generalized to unlabeled target data using neural soft-matching, and used to regularize the model's feature attributions and interactions. This approach leads to massive improvements in both target domain accuracy and model fairness.
What Problem Does This Paper Address?
When a language model is trained on a source dataset (e.g., news articles) and deployed to a target domain (e.g., tweets), it often suffers a performance drop. This happens because the model learns "spurious correlations"—shortcuts or biases specific to the source data. For example, a hate speech classifier might learn that the word "Sweden" is highly predictive of hate speech simply because of the specific distribution of its training data.
Post-hoc explanation tools (like Integrated Gradients) can highlight these spurious patterns using heatmaps. While prior work has tried to fix models by asking humans to adjust the importance scores of specific words, these methods are rigid. They only look at individual features (ignoring how words interact) and require a massive amount of human labeling because the feedback is only applied to the specific instances the human reviewed. The authors tackle this gap by asking: How can we take complex, multi-word human reasoning about model mistakes and efficiently generalize it to fix the model across an entire unlabeled target dataset?
Methods
The authors propose REMOTE (Refining Language Model with Compositional Explanation), a human-in-the-loop framework designed to capture and generalize human feedback.
The framework operates in four main steps:
- Explanation Solicitation: Humans are shown a target-domain sentence and a heatmap of the model's feature attributions. If they spot a spurious pattern, they write a compositional explanation in natural language (e.g., "The word 'distressing' is negative. Its attribution score should be increased.").
- Explanation Parsing: A semantic parser translates these natural language explanations into executable first-order logic rules.
- Explanation Generalization (Soft Matching): To avoid needing thousands of human explanations, the system applies these logic rules to unlabeled data in the target domain. Crucially, it uses soft matching via BERT embeddings. If a human wrote a rule about the word "distressing," the system will automatically apply that same rule to sentences containing synonyms like "depressing."
- Model Regularization: The model is updated using a custom loss function. It doesn't just train on the pseudo-labels generated by the rules; it explicitly penalizes the model if its feature attributions (importance of a word) and feature interactions (how the importance of a word changes when another word is present) don't align with the human's advice.
Datasets
The authors evaluated REMOTE on domain adaptation setups for two NLP tasks:
- Hate Speech Detection: Adapting from Stormfront (white supremacist forum) and HatEval to the Gab Hate Corpus (GHC).
- Sentiment Analysis: Adapting from AmazonMusic reviews to the Stanford Sentiment Treebank-2 (SST-2).
- Fairness Evaluation: They used the Identity Phrase Templates Test Set (IPTTS) to measure unintended bias against specific demographic groups using the False Positive Rate Difference (FPRD) metric.
Key Insights and Ideas
- Interactions Matter: Previous explanation-based regularization only adjusted the weight of individual words. By borrowing concepts from cooperative game theory, REMOTE regularizes feature interactions. This allows the model to understand context (e.g., word X only matters if it modifies word Y), making human feedback much more expressive.
- Soft Matching is a Superpower for Coverage: Strict keyword matching is brittle. By using contextualized embeddings to find synonyms and similar syntactic structures, a single human explanation can be generalized to hundreds of unlabeled examples, drastically amplifying the regularization strength.
- "Why" is Better Than "What": Providing feature-level supervision (explaining why a prediction is wrong and how to fix the internal logic) is vastly more label-efficient than traditional fine-tuning (just providing the correct label).
Key Results
REMOTE demonstrates significant improvements over traditional fine-tuning and distillation baselines, particularly in target domain adaptation and fairness.
- Massive Target Domain Improvements: Using a BERT-Large model, adapting from HatEval to GHC using standard fine-tuning (with a matched time budget) yielded a target F1 score of 40.7. REMOTE achieved a target F1 of 46.1.
- Drastic Bias Reduction: On the HatEval to GHC task, the baseline source model had a terrible fairness score (FPRD of 124.3). REMOTE slashed this bias down to an FPRD of 15.3, proving that explicitly telling the model to ignore spurious identity terms works exceptionally well.
- Extreme Label Efficiency: It took annotators an average of only 15 to 90 minutes to write the compositional explanations used in these experiments. REMOTE consistently outperformed traditional distillation and fine-tuning baselines that were given the exact same human time budget.
Limitations and Future Work
- Computational Overhead: Calculating feature attributions and interactions during the training loop is computationally expensive. The authors note that a single training iteration with their soft-regularization loss takes about 50 seconds, compared to 30 seconds without it.
- Future Directions: The authors suggest expanding this framework beyond text classification to more complex tasks like reading comprehension and natural language generation. They also propose integrating this into an active learning setup, where the model and human interact in multiple turns to iteratively squash bugs.
Summary updated