arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2212.10696cs.CLcs.LG
收藏

通过问答中的输入干预分析语言模型的语义忠实性

Analyzing Semantic Faithfulness of Language Models via Input Intervention on Question Answering

IRIT(图卢兹计算机科学研究所);Université Paul Sabatier(保罗·萨巴蒂埃大学);Indian Statistical Institute(印度统计研究所)

Akshay Chaturvedi, Swarnadeep Bhar, Soumadeep Saha, Utpal Garain, Nicholas Asher

AI总结:

本文通过删除和否定两种输入干预,发现BERT、RoBERTa、XLNet及InstructGPT在问答中缺乏语义忠实性,并提出基于干预的训练将删除干预失败率从约50%降至约6%,但该训练无法解决否定干预和谓词-论元结构问题。

摘要:

基于Transformer的语言模型已被证明在多个自然语言处理任务上非常有效。在本文中,我们考虑三种Transformer模型——BERT、RoBERTa和XLNet,均包含小版本和大版本,并研究它们对文本语义内容的表示在多大程度上是忠实的。我们形式化了一种语义忠实性的概念,即文本的语义内容应当在因果意义上参与模型在问答中的推理。随后,我们通过执行两种新颖的语义干预——删除干预和否定干预——并观察模型在回答关于故事的问题时的行为来检验这一概念。虽然Transformer模型在标准问答任务上取得了很高的性能,但我们表明,在执行这些干预后,它们在大量情况下未能保持语义忠实(删除干预约50%的情况失败,否定干预准确率下降约20%)。我们随后提出了一种基于干预的训练机制,该机制能够以显著幅度减轻删除干预带来的不良影响(从约50%降至约6%)。我们分析了模型的内部工作机制,以更好地理解基于干预的训练对删除干预的有效性。但我们表明,这种训练并未减弱语义不忠实的其他方面,例如模型无法处理否定干预或无法捕捉文本的谓词-论元结构。我们还通过提示测试了InstructGPT处理这两种干预以及捕捉谓词-论元结构的能力。虽然InstructGPT模型在谓词-论元结构任务上确实取得了非常高的性能,但它们未能对我们的删除和否定干预作出充分响应。

英文摘要:

Transformer-based language models have been shown to be highly effective for several NLP tasks. In this paper, we consider three transformer models, BERT, RoBERTa, and XLNet, in both small and large versions, and investigate how faithful their representations are with respect to the semantic content of texts. We formalize a notion of semantic faithfulness, in which the semantic content of a text should causally figure in a model's inferences in question answering. We then test this notion by observing a model's behavior on answering questions about a story after performing two novel semantic interventions: deletion intervention and negation intervention. While transformer models achieve high performance on standard question answering tasks, we show that they fail to be semantically faithful once we perform these interventions for a significant number of cases (~50% for deletion intervention, and ~20% drop in accuracy for negation intervention). We then propose an intervention-based training regime that can mitigate the undesirable effects for deletion intervention by a significant margin (from ~ 50% to ~6%). We analyze the inner-workings of the models to better understand the effectiveness of intervention-based training for deletion intervention. But we show that this training does not attenuate other aspects of semantic unfaithfulness such as the models' inability to deal with negation intervention or to capture the predicate-argument structure of texts. We also test InstructGPT, via prompting, for its ability to handle the two interventions and to capture predicate-argument structure. While InstructGPT models do achieve very high performance on predicate-argument structure task, they fail to respond adequately to our deletion and negation interventions.

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

↑