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

从栏杆到皮埃尔·文肯:寻找Transformer自我关注中的自我

From Balustrades to Pierre Vinken: Looking for Syntax in Transformer Self-Attentions

Charles University(查理大学);Faculty of Mathematics and Physics(数学与物理学院);Institute of Formal and Applied Linguistics(形式与应用语言学研究所)

David Mareček, Rudolf Rosa

摘要:

我们检查了三种源语言的Transformer NMT编码器中的多头自注意,寻找可能具有语法解释的模式。在许多注意中心语中,我们经常发现关注同一位置的连续状态序列,这类似于句法短语。我们提出了一个透明的确定性的方法,量化的句法信息量存在于自我注意力,基于自动构建和评估短语结构树的短语序列。我们将得到的树与现有的选区树库进行比较,手动和计算精度和召回。

英文摘要:

We inspect the multi-head self-attention in Transformer NMT encoders for three source languages, looking for patterns that could have a syntactic interpretation. In many of the attention heads, we frequently find sequences of consecutive states attending to the same position, which resemble syntactic phrases. We propose a transparent deterministic method of quantifying the amount of syntactic information present in the self-attentions, based on automatically building and evaluating phrase-structure trees from the phrase-like sequences. We compare the resulting trees to existing constituency treebanks, both manually and by computing precision and recall.

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

↑