arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.02622cs.CL
收藏

估计基于 Transformer 的 NLI 模型中自然逻辑特征的因果效应

Estimating the Causal Effects of Natural Logic Features in Transformer-Based NLI Models

University of Manchester(曼彻斯特大学);National Biomarker Centre, CRUK-MI, University of Manchester(曼彻斯特大学国家生物标志物中心,英国癌症研究中心曼彻斯特研究所);Idiap Research Institute(Idiap 研究所)

Julia Rozanova, Marco Valentino, André Freitas

AI总结:

本文针对基于 Transformer 的 NLI 模型,利用因果效应估计和干预实验分析自然逻辑特征,揭示相近基准准确率背后的行为差异及单调性、否定相关偏差。

摘要:

对于自然语言推理问题,严格评估语义特征对语言模型预测的因果效应可能很难实现。然而,从可解释性和模型评估两个角度来看,这都是一种非常理想的分析形式,因此有必要以足够的结构性和规律性研究特定推理模式,从而识别并量化广泛使用模型中的系统性推理失败。沿着这一思路,我们选取 NLI 任务中可以系统构建显式因果图的一部分:即在两个句子(前提和假设)中,两个相关词或术语出现在共享上下文中的情形。在本研究中,我们应用因果效应估计策略来测量上下文干预(其对蕴含标签的效应由语义单调性特征中介)以及对插入词对的干预(其对蕴含标签的效应由这些词之间的关系中介)。我们扩展了不同设置下 NLP 模型因果分析的相关工作,对 NLI 任务开展了广泛的干预研究,以考察 Transformer 对无关变化的鲁棒性和对有影响变化的敏感性。结果有力地支持了这样一个事实:表现出非常不同行为的模型,可能会观察到相似的基准准确率分数。此外,我们的方法从因果角度强化了此前被怀疑存在的偏差,包括偏好向上单调上下文以及忽略否定标记效应的偏差。

英文摘要:

Rigorous evaluation of the causal effects of semantic features on language model predictions can be hard to achieve for natural language reasoning problems. However, this is such a desirable form of analysis from both an interpretability and model evaluation perspective, that it is valuable to investigate specific patterns of reasoning with enough structure and regularity to identify and quantify systematic reasoning failures in widely-used models. In this vein, we pick a portion of the NLI task for which an explicit causal diagram can be systematically constructed: the case where across two sentences (the premise and hypothesis), two related words/terms occur in a shared context. In this work, we apply causal effect estimation strategies to measure the effect of context interventions (whose effect on the entailment label is mediated by the semantic monotonicity characteristic) and interventions on the inserted word-pair (whose effect on the entailment label is mediated by the relation between these words). Extending related work on causal analysis of NLP models in different settings, we perform an extensive interventional study on the NLI task to investigate robustness to irrelevant changes and sensitivity to impactful changes of Transformers. The results strongly bolster the fact that similar benchmark accuracy scores may be observed for models that exhibit very different behaviour. Moreover, our methodology reinforces previously suspected biases from a causal perspective, including biases in favour of upward-monotone contexts and ignoring the effects of negation markers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑