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

利用语言间的类型学分类探索单语 BERT 的语言属性

Exploring Linguistic Properties of Monolingual BERTs with Typological Classification among Languages

University of Rome Tor Vergata(罗马第二大学);University for foreigners of Siena(锡耶纳外国人大学);Campus Bio-Medico University of Rome(罗马校园生物医学大学);Idiap Research Institute(伊迪亚普研究所)

Elena Sofia Ruzzetti, Federico Ranaldi, Felicia Logozzo, Michele Mastromattei, Leonardo Ranaldi, Fabio Massimo Zanzotto

AI总结:

本文提出利用语言类型学相似性逐层比较单语 BERT,并借助 Centered Kernel Alignment 分析权重矩阵,发现句法相似性反映在中间层,且语义等价文本上的领域自适应会增强该相似性。

摘要:

Transformer 所取得的令人瞩目的成就促使 NLP 研究人员深入探究这些模型如何表征自然语言的底层结构。在本文中,我们提出了一个研究上述问题的新颖视角:利用语言之间的类型学相似性,观察它们各自的单语模型如何编码结构信息。我们的目标是对类型学上相似语言的 Transformer 进行逐层比较,以观察这些相似性是否会在特定层显现。为开展这一研究,我们提出使用 Centered Kernel Alignment(中心化核对齐)来度量权重矩阵之间的相似性。我们发现,句法类型学相似性与中间层权重之间的相似性相一致,而这些中间层正是通常被认为承担句法编码的预训练 BERT 层。此外,我们观察到,在语义等价文本上进行领域自适应会增强权重矩阵之间的这种相似性。

英文摘要:

The impressive achievements of transformers force NLP researchers to delve into how these models represent the underlying structure of natural language. In this paper, we propose a novel standpoint to investigate the above issue: using typological similarities among languages to observe how their respective monolingual models encode structural information. We aim to layer-wise compare transformers for typologically similar languages to observe whether these similarities emerge for particular layers. For this investigation, we propose to use Centered Kernel Alignment to measure similarity among weight matrices. We found that syntactic typological similarity is consistent with the similarity between the weights in the middle layers, which are the pretrained BERT layers to which syntax encoding is generally attributed. Moreover, we observe that a domain adaptation on semantically equivalent texts enhances this similarity among weight matrices.

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

↑