arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.02883cs.CLcs.LG
收藏

现成孪生 Transformer 的近似归因

Approximate Attributions for Off-the-Shelf Siamese Transformers

Institute for Natural Language Processing(自然语言处理研究所);University of Stuttgart(斯图加特大学);University of Manchester(曼彻斯特大学)

Lucas Möller, Dmitry Nikolaev, Sebastian Padó

AI总结:

针对孪生编码器归因方法需微调的限制,提出保持性能的精确归因模型与现成模型近似归因方法,并揭示其句法关注、忽略否定及词汇偏见等行为。

摘要:

孪生编码器(如句子 Transformer)是理解程度最低的深度模型之一。已有的归因方法无法处理这类模型,因为它比较两个输入而非处理单个输入。为弥补这一空白,我们最近提出了一种专门针对孪生编码器的归因方法(Möller 等人,2023)。然而,该方法要求对模型进行调整和微调,因此无法直接应用于现成模型。在本工作中,我们重新评估了这些限制,并提出了(i)一种具有精确归因能力且保持原始模型预测性能的模型,以及(ii)一种为现成模型计算近似归因的方法。我们广泛比较了近似归因与精确归因,并利用它们分析模型对不同语言方面的关注度。我们获得了孪生 Transformer 关注哪些句法角色的见解,确认它们大多忽略否定,探索它们如何判断语义相反的形容词,并发现它们表现出词汇偏见。

英文摘要:

Siamese encoders such as sentence transformers are among the least understood deep models. Established attribution methods cannot tackle this model class since it compares two inputs rather than processing a single one. To address this gap, we have recently proposed an attribution method specifically for Siamese encoders (Möller et al., 2023). However, it requires models to be adjusted and fine-tuned and therefore cannot be directly applied to off-the-shelf models. In this work, we reassess these restrictions and propose (i) a model with exact attribution ability that retains the original model's predictive performance and (ii) a way to compute approximate attributions for off-the-shelf models. We extensively compare approximate and exact attributions and use them to analyze the models' attendance to different linguistic aspects. We gain insights into which syntactic roles Siamese transformers attend to, confirm that they mostly ignore negation, explore how they judge semantically opposite adjectives, and find that they exhibit lexical bias.

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

↑