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

非线性结构探针

A Non-Linear Structural Probe

University of Cambridge(剑桥大学);University of Edinburgh(爱丁堡大学);ETH Zürich(苏黎世联邦理工学院)

Jennifer C. White, Tiago Pimentel, Naomi Saphra, Ryan Cotterell

摘要:

探测器是设计用于调查知识编码的模型-例如句法结构-在上下文表示中。探针通常设计得简单,这导致了对探针设计的限制,这些限制可能不允许充分利用编码信息的结构;其中一个限制是线性。我们研究了结构探针的情况(Hewitt和Manning,2019),其目的是通过只学习线性变换来研究上下文表示中句法结构的编码。通过观察结构探针学习一个度量,我们能够将其核化,并开发出一种具有相同数量参数的新型非线性变体。我们在6种语言上进行了测试,发现径向基函数(RBF)内核与正则化相结合,在所有语言中都比基线有了统计上的显着改进-这意味着至少部分语法知识是非线性编码的。最后,我们讨论了RBF核如何类似于BERT的自注意层,并推测这种相似性导致基于RBF的探测器的更强的性能。

英文摘要:

Probes are models devised to investigate the encoding of knowledge -- e.g. syntactic structure -- in contextual representations. Probes are often designed for simplicity, which has led to restrictions on probe design that may not allow for the full exploitation of the structure of encoded information; one such restriction is linearity. We examine the case of a structural probe (Hewitt and Manning, 2019), which aims to investigate the encoding of syntactic structure in contextual representations through learning only linear transformations. By observing that the structural probe learns a metric, we are able to kernelize it and develop a novel non-linear variant with an identical number of parameters. We test on 6 languages and find that the radial-basis function (RBF) kernel, in conjunction with regularization, achieves a statistically significant improvement over the baseline in all languages -- implying that at least part of the syntactic knowledge is encoded non-linearly. We conclude by discussing how the RBF kernel resembles BERT's self-attention layers and speculate that this resemblance leads to the RBF-based probe's stronger performance.

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

↑