Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Refining Language Models with Compositional Explanations

About

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.

Huihan Yao, Ying Chen, Qinyuan Ye, Xisen Jin, Xiang Ren• 2021

Related benchmarks

TaskDatasetResultRank
Hate Speech DetectionStormfront -> GHC 94 mins annotation (test)
Source F157.6
14
Hate Speech DetectionHatEval → GHC (test)
Source F10.635
14
Sentiment AnalysisAmazon Music -> SST-2 15 mins annotation (test)
Source F192.7
14
Sentiment AnalysisAmazon Music → SST-2 (test)
Source F191.1
14
Hate Speech DetectionHatEval -> GHC 80 mins annotation (test)
Source F162
14
Hate Speech DetectionStormfront → GHC (test)
Source F149.9
14
Hate Speech DetectionHatEval -> GHC (target set)
Target F147.2
5
Hate Speech DetectionStormfront -> GHC (target set)
Target F1 Score51.1
5
Sentiment AnalysisAmazon -> SST-2 (target set)
Target F10.873
5
Showing 9 of 9 rows

Other info

Code

Follow for update