arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2405.06604cs.CLcs.LG
收藏

解释 Transformer 模型中的文本相似性

Explaining Text Similarity in Transformer Models

Technische Universität Berlin(柏林工业大学);BIFOLD – Berlin Institute for the Foundations of Learning and Data(BIFOLD——柏林学习与数据基础研究所)

Alexandros Vasileiou, Oliver Eberle

AI总结:

本文使用 BiLRP 对基于 Transformer 的双线性文本相似性模型进行二阶相关性解释,并通过语法、多语言语义和生物医学检索三类语料库级分析验证其效用。

摘要:

随着 Transformer 已成为自然语言处理(NLP)任务的最先进模型,理解并解释其预测的需求正变得日益明显。尤其是在信息检索任务等无监督应用中,建立在基础模型表示之上的相似性模型已得到广泛应用。然而,其内部预测机制在很大程度上仍然不透明。可解释人工智能的最新进展使得通过逐层相关性传播(LRP)改进对 Transformer 的解释,从而缓解这些局限成为可能。我们利用 BiLRP——一种为计算双线性相似性模型中的二阶解释而开发的扩展方法——研究哪些特征交互驱动 NLP 模型中的相似性。我们验证了所得解释,并在三个语料库级用例中展示了其实用性,分析语法交互、多语言语义以及生物医学文本检索。我们的发现有助于更深入地理解不同的语义相似性任务和模型,并突显出新颖的可解释人工智能方法如何实现深入分析和语料库级洞见。

英文摘要:

As Transformers have become state-of-the-art models for natural language processing (NLP) tasks, the need to understand and explain their predictions is increasingly apparent. Especially in unsupervised applications, such as information retrieval tasks, similarity models built on top of foundation model representations have been widely applied. However, their inner prediction mechanisms have mostly remained opaque. Recent advances in explainable AI have made it possible to mitigate these limitations by leveraging improved explanations for Transformers through layer-wise relevance propagation (LRP). Using BiLRP, an extension developed for computing second-order explanations in bilinear similarity models, we investigate which feature interactions drive similarity in NLP models. We validate the resulting explanations and demonstrate their utility in three corpus-level use cases, analyzing grammatical interactions, multilingual semantics, and biomedical text retrieval. Our findings contribute to a deeper understanding of different semantic similarity tasks and models, highlighting how novel explainable AI methods enable in-depth analyses and corpus-level insights.

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

↑