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

通过定向稀疏化追踪基于Transformer的句子嵌入中的语言信息

Tracking linguistic information in transformer-based sentence embeddings through targeted sparsification

Idiap Research Institute(伊迪亚普研究所);University of Geneva(日内瓦大学)

Vivi Nastase, Paola Merlo

AI总结:

本研究通过定向稀疏化方法,探究了基于Transformer的句子嵌入中语言信息的分布情况,发现语法数和语义角色等信息并非均匀分布,而是集中在特定区域,有助于理解和构建可解释的神经模型。

摘要:

对基于Transformer的模型的分析表明,它们从文本输入中编码了各种语言信息。虽然这些分析揭示了语言信息与内部架构和参数之间的关系,但仍有一个问题未得到解答:这种语言信息是如何反映在句子嵌入中的?使用由已知结构的句子组成的数据集,我们测试了关于语块(特别是名词、动词或介词短语)的信息,如语法数或语义角色,在多大程度上可以在句子嵌入中被定位。我们的结果表明,这些信息并没有分布在整个句子嵌入中,而是被编码在特定区域。理解输入文本的信息如何被压缩到句子嵌入中有助于理解当前的Transformer模型,并有助于构建未来可解释的神经模型。

英文摘要:

Analyses of transformer-based models have shown that they encode a variety of linguistic information from their textual input. While these analyses have shed a light on the relation between linguistic information on one side, and internal architecture and parameters on the other, a question remains unanswered: how is this linguistic information reflected in sentence embeddings? Using datasets consisting of sentences with known structure, we test to what degree information about chunks (in particular noun, verb or prepositional phrases), such as grammatical number, or semantic role, can be localized in sentence embeddings. Our results show that such information is not distributed over the entire sentence embedding, but rather it is encoded in specific regions. Understanding how the information from an input text is compressed into sentence embeddings helps understand current transformer models and help build future explainable neural models.

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

↑