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

探究预训练语言模型中否定结构约束的探测研究

Probing structural constraints of negation in Pretrained Language Models

Université Paris Cité(巴黎城市大学);Université Sorbonne Nouvelle(新索邦大学);CNRS(法国国家科学研究中心);ENS-PSL(巴黎高等师范学院-PSL大学)

David Kletz, Marie Candito, Pascal Amsili

AI总结:

本文通过负极项许可现象使用探针方法研究预训练语言模型如何编码否定及其形式影响,发现模型嵌入能反映否定辖域并编码否定对NPI许可的作用,但对照实验表明模型可能仅捕捉到更一般的句法子句概念。

摘要:

近期关于预训练语言模型(PLMs)对否定语义影响编码的研究得出了相互矛盾的结论(例如 Kassner 和 Schütze(2020);Gubelmann 和 Handschuh(2022))。本文聚焦于 PLMs 编码否定及其形式影响的方式,具体通过英语中负极项(NPI)许可现象进行研究。更确切地说,我们使用探针来识别哪些上下文表示能够最好地编码:1)句子中否定的存在,以及 2)相邻被掩码极性项的极性。我们发现,否定辖域内词元的上下文表示确实允许:(i)与辖域外的词元相比,更好地预测 not 的存在;(ii)更好地预测由 not 许可的被掩码极性项的正确极性,尽管差异幅度因 PLM 而异。重要的是,在两种情况下,即使控制了与 not 的距离,这一趋势仍然成立。这倾向于表明这些模型的嵌入确实反映了否定辖域的概念,并且确实编码了否定对 NPI 许可的影响。然而,进一步的对照实验揭示,当使用同一句法子句内词元的上下文表示时,其他词汇项的存在也能被更好地捕捉到,而非子句外的表示,这表明 PLMs 可能只是捕捉到了更一般的句法子句概念。

英文摘要:

Contradictory results about the encoding of the semantic impact of negation in pretrained language models (PLMs). have been drawn recently (e.g. Kassner and Sch{ü}tze (2020); Gubelmann and Handschuh (2022)). In this paper we focus rather on the way PLMs encode negation and its formal impact, through the phenomenon of the Negative Polarity Item (NPI) licensing in English. More precisely, we use probes to identify which contextual representations best encode 1) the presence of negation in a sentence, and 2) the polarity of a neighboring masked polarity item. We find that contextual representations of tokens inside the negation scope do allow for (i) a better prediction of the presence of not compared to those outside the scope and (ii) a better prediction of the right polarity of a masked polarity item licensed by not, although the magnitude of the difference varies from PLM to PLM. Importantly, in both cases the trend holds even when controlling for distance to not. This tends to indicate that the embeddings of these models do reflect the notion of negation scope, and do encode the impact of negation on NPI licensing. Yet, further control experiments reveal that the presence of other lexical items is also better captured when using the contextual representation of a token within the same syntactic clause than outside from it, suggesting that PLMs simply capture the more general notion of syntactic clause.

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

↑