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

双曲空间中的BERT问题

Probing BERT in Hyperbolic Spaces

Alibaba Group(阿里巴巴集团);Beijing Jiaotong University(北京交通大学);University of Edinburgh(爱丁堡大学)

Boli Chen, Yao Fu, Guangwei Xu, Pengjun Xie, Chuanqi Tan, Mosha Chen, Liping Jing

摘要:

近年来,人们提出了多种探测任务来发现在语境化词嵌入中习得的语言特性。这些作品中的许多隐含地假设这些嵌入位于某些度量空间中,通常是欧几里得空间。这项工作考虑了一个家庭的几何特殊的空间,双曲空间,表现出更好的归纳偏见的层次结构,并可能更好地揭示语言层次编码的上下文表示。我们引入了一个庞加莱探针,这些嵌入到庞加莱子空间明确定义的层次结构投影的结构探针。我们专注于两个探测目标:(a)依赖树的层次结构被定义为头部依赖结构;(b)词汇情感的层次结构被定义为极性的话(积极和消极)。我们认为,一个探针的关键desideratum是它的存在的语言结构的敏感性。我们将我们的探测应用于BERT,一个典型的上下文嵌入模型。在一个句法子空间,我们的探针更好地恢复树结构比欧几里德探针,揭示了BERT语法的几何可能不一定是欧几里德的可能性。在情感子空间中,我们揭示了积极和消极情感的两种可能的元嵌入,并展示了词汇控制的语境化如何改变嵌入的几何定位。我们通过大量的实验和可视化展示了我们的庞加莱探针的发现。我们的结果可以在https://github.com/FranxYao/PoincareProbe上复制。

英文摘要:

Recently, a variety of probing tasks are proposed to discover linguistic properties learned in contextualized word embeddings. Many of these works implicitly assume these embeddings lay in certain metric spaces, typically the Euclidean space. This work considers a family of geometrically special spaces, the hyperbolic spaces, that exhibit better inductive biases for hierarchical structures and may better reveal linguistic hierarchies encoded in contextualized representations. We introduce a Poincare probe, a structural probe projecting these embeddings into a Poincare subspace with explicitly defined hierarchies. We focus on two probing objectives: (a) dependency trees where the hierarchy is defined as head-dependent structures; (b) lexical sentiments where the hierarchy is defined as the polarity of words (positivity and negativity). We argue that a key desideratum of a probe is its sensitivity to the existence of linguistic structures. We apply our probes on BERT, a typical contextualized embedding model. In a syntactic subspace, our probe better recovers tree structures than Euclidean probes, revealing the possibility that the geometry of BERT syntax may not necessarily be Euclidean. In a sentiment subspace, we reveal two possible meta-embeddings for positive and negative sentiments and show how lexically-controlled contextualization would change the geometric localization of embeddings. We demonstrate the findings with our Poincare probe via extensive experiments and visualization. Our results can be reproduced at https://github.com/FranxYao/PoincareProbe.

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

↑