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

利用对比学习在语言模型嵌入中施加关系结构

Imposing Relation Structure in Language-Model Embeddings Using Contrastive Learning

KU Leuven(鲁汶大学);Idiap Research Institute(Idiap研究所);EPFL(洛桑联邦理工学院)

Christos Theodoropoulos, James Henderson, Andrei C. Coman, Marie-Francine Moens

AI总结:

针对语言模型嵌入捕捉实体关系等高层语义能力不足的问题,提出基于对比学习的框架,在CharacterBERT词元表征上施加关系结构,所得关系感知嵌入用简单KNN即达关系抽取SOTA,还可融合实体识别表征空间用于实体关系任务。

摘要:

尽管语言模型文本嵌入已为NLP研究带来革命性变革,但其捕捉高层语义信息(如文本中实体间关系)的能力仍存在局限。本文提出一种新颖的对比学习框架,训练句子嵌入以图结构编码关系。给定一个句子(非结构化文本)及其对应的图,我们利用对比学习,在通过CharacterBERT(El Boukkouri等人,2020)模型得到的句子词元级表征上施加与关系相关的结构。所得的关系感知句子嵌入仅使用简单的KNN分类器,就在关系抽取任务上取得了state-of-the-art结果,证明了所提方法的有效性。通过tSNE分析进行的额外可视化显示,与基线模型相比,所学习的表征空间更具优势。此外,我们证明同样可以借助对比学习目标,为命名实体识别学习一个不同的表征空间,并展示了如何在实体-关系任务中成功融合这两个表征空间。

英文摘要:

Though language model text embeddings have revolutionized NLP research, their ability to capture high-level semantic information, such as relations between entities in text, is limited. In this paper, we propose a novel contrastive learning framework that trains sentence embeddings to encode the relations in a graph structure. Given a sentence (unstructured text) and its graph, we use contrastive learning to impose relation-related structure on the token-level representations of the sentence obtained with a CharacterBERT (El Boukkouri et al.,2020) model. The resulting relation-aware sentence embeddings achieve state-of-the-art results on the relation extraction task using only a simple KNN classifier, thereby demonstrating the success of the proposed method. Additional visualization by a tSNE analysis shows the effectiveness of the learned representation space compared to baselines. Furthermore, we show that we can learn a different space for named entity recognition, again using a contrastive learning objective, and demonstrate how to successfully combine both representation spaces in an entity-relation task.

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

↑