[Paper Review] Refining Language Models with Compositional Explanations
This paper proposes Remote, a framework that refines pre-trained language models using human-provided compositional explanations to reduce spurious patterns and improve fairness. By parsing explanations into executable logic rules and generalizing them to unlabeled data, Remote enhances regularization coverage and incorporates both feature attributions and interactions, leading to improved performance and reduced bias on hate speech and sentiment classification tasks.
Pre-trained language models have been successful on text classification tasks, but are prone to learning spurious correlations from biased datasets, and are thus vulnerable when making inferences in a new domain. Prior work reveals such spurious patterns via post-hoc explanation algorithms which compute the importance of input features. Further, the model is regularized to align the importance scores with human knowledge, so that the unintended model behaviors are eliminated. However, such a regularization technique lacks flexibility and coverage, since only importance scores towards a pre-defined list of features are adjusted, while more complex human knowledge such as feature interaction and pattern generalization can hardly be incorporated. In this work, we propose to refine a learned language model for a target domain by collecting human-provided compositional explanations regarding observed biases. By parsing these explanations into executable logic rules, the human-specified refinement advice from a small set of explanations can be generalized to more training examples. We additionally introduce a regularization term allowing adjustments for both importance and interaction of features to better rectify model behavior. We demonstrate the effectiveness of the proposed approach on two text classification tasks by showing improved performance in target domain as well as improved model fairness after refinement.
Motivation & Objective
- To address the limitations of existing model regularization methods that lack coverage and expressive power in capturing complex human feedback.
- To improve model robustness and fairness in low-resource or out-of-domain settings by refining models with human-provided compositional explanations.
- To generalize human-annotated feedback on a small set of examples to a broader set of unlabeled instances in the target domain.
- To extend regularization beyond individual feature attributions to include feature interactions, increasing the expressiveness of human feedback.
- To enable efficient, non-invasive model refinement without requiring access to upstream training data.
Proposed method
- Collect human-provided compositional explanations identifying spurious patterns, including feature attributions and interactions, from post-hoc explanation heat-maps.
- Parse these explanations into executable first-order logic rules that encode both feature importance and interaction constraints.
- Generalize the logic rules to unlabeled instances in the target domain using softened atomic operations to generate noisy but informative supervision.
- Introduce a differentiable regularization term that jointly optimizes for both feature attributions and feature interactions during fine-tuning.
- Use a soft-matching mechanism to identify relevant phrases in unlabeled sentences and assign target scores based on generalized logic rules.
- Train the model with a combined loss that includes standard cross-entropy and a regularization term based on the generalized human feedback.
Experimental results
Research questions
- RQ1Can compositional human explanations—beyond simple feature attributions—improve the generalization and robustness of language model fine-tuning?
- RQ2How effective is rule-based generalization of human feedback to unlabeled data in improving model performance on out-of-domain text classification?
- RQ3Does incorporating feature interactions in the regularization process lead to better mitigation of spurious correlations than attribution-only methods?
- RQ4How sensitive is the model refinement performance to the strength of the regularization term?
- RQ5Can the framework reduce unintended biases in models without access to upstream training data?
Key findings
- Remote improved the source model’s performance on the target domain, achieving 45.7% F1 on the HatEval → GHC hate speech classification task, compared to 42.1% for direct transfer.
- The combination of attribution and interaction regularization (Reg. with a.&i.) achieved the best performance with 45.7% F1 and reduced bias, outperforming methods that regularize only attributions or interactions.
- The framework demonstrated robustness to regularization strength, with performance stable across a wide range of hyperparameter values (α ∈ [0.003, 0.03]).
- Regularization using only hate-labeled rules outperformed using non-hate-labeled rules, suggesting that focusing on harmful patterns yields better model refinement.
- The time cost per training iteration increased by ~50s when using the soft regularization loss, but remained manageable due to sparse scoring on only a few phrases per instance.
- The approach significantly reduced unintended biases, as confirmed by lower fairness violations and improved generalization, especially in low-resource settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.