UNMASK:发现并因果验证文本分类器中的虚假捷径

·

研究论文 · 2026/08/17

神经语言模型在大型众包语料上训练时,常利用与目标标签相关的虚假表面模式,而非真正的语言或因果关联,从而提升基准性能但在对抗性或分布外输入上失败。现有方法要么需要手动指定特征词汇,要么仅部分自动化发现,未能解决数据集层面相关性与模型层面利用之间的差距。我们提出UNMASK,一个全自动流水线,无需额外人工标注即可发现、因果验证并缓解文本分类器中的虚假相关性。给定未标注训练样本,UNMASK生成可执行的布尔表达式作为候选表面模式,通过独立重复的统计验证协议过滤,并通过验证的反事实干预建立因果模型依赖。因果确认的特征随后作为深度特征重加权的无标注组定义,消除了标准DFR所需的组标签。应用于在MNLI上训练的BERT和RoBERTa,我们的流水线独立重新发现了已建立的词汇重叠和否定偏差,在BERT上验证了10个特征中的9个,在RoBERTa上验证了6个,并将HANS准确率提高了最多12.58个百分点。在CivilComments-WILDS上,程序化组匹配了手工标注DFR的70.1%最差组准确率,而无需人口统计标注。我们进一步证明发现和验证阶段可推广到奖励模型偏好数据,在RewardBench2中浮现出可解释的虚假相关性。

该论文提出了一种全自动、无需人工标注的虚假相关性发现与验证方法,解决了现有方法依赖手动特征或部分自动化的问题,并在多个基准上显著提升鲁棒性,具有重要的理论价值和实际应用前景。

Neural language models trained on large crowdsourced corpora frequently exploit spurious surface patterns tied to target labels without true linguistic or causal relevance, boosting benchmark performance while failing on adversarial or out-of-distribution inputs. Existing approaches either require manual specification of the feature vocabulary or automate discovery only partially, leaving the gap between dataset-level correlation and model-level exploitation unaddressed. We present U N M ASK, a fully automated pipeline that discovers, causally verifies, and mitigates spurious correlations in text classifiers without additional human annotation. Given unlabeled training examples, U N M ASK generates candidate surface patterns as executable boolean expressions, filters them through a statistical validation protocol with independent replication, and establishes causal model dependence via verified counterfactual interventions. Causally confirmed features then serve as annotation-free group definitions for Deep Feature Reweighting, eliminating the group labels that standard DFR requires. Applied to BERT and RoBERTa trained on MNLI, our pipeline independently rediscovers established lexical-overlap and negation biases, verifying 9 of 10 features on BERT and 6 on RoBERTa, and improving HANS accuracy by up to 12.58 pp. On CivilComments-WILDS, programmatic groups match the 70.1% worst- group accuracy of hand-labeled DFR (Kirichenko et al., 2023) without demographic annotation. We further demonstrate that the discovery and validation stages generalize to reward model preference data, surfacing interpretable spurious correlations in RewardBench2.

阅读原文

参与讨论