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

从预训练的语言模型中提取关系嵌入

Distilling Relation Embeddings from Pre-trained Language Models

Cardiff University(卡迪夫大学)

Asahi Ushio, Jose Camacho-Collados, Steven Schockaert

摘要:

已经发现预训练的语言模型捕获了惊人丰富的词汇知识,从日常概念的常识属性到关于命名实体的详细事实知识。其中,这使得可以从预训练的语言模型中提取高质量的词向量。然而,目前还不清楚在多大程度上可以提取关系嵌入,即表征两个词之间关系的向量。这样的关系嵌入很有吸引力,因为原则上,它们可以以比知识图谱更细粒度的方式编码关系知识。为了从预训练的语言模型中获得关系嵌入,我们使用(手动或自动生成的)提示对单词对进行编码,并微调语言模型,以便关系相似的单词对产生相似的输出向量。我们发现,由此产生的关系嵌入在类比(无监督)和关系分类(监督)基准上具有很强的竞争力,即使没有任何特定于任务的微调。可以在以下存储库中获得再现我们的实验结果和模型检查点的源代码:https://github.com/asahi417/relbert

英文摘要:

Pre-trained language models have been found to capture a surprisingly rich amount of lexical knowledge, ranging from commonsense properties of everyday concepts to detailed factual knowledge about named entities. Among others, this makes it possible to distill high-quality word vectors from pre-trained language models. However, it is currently unclear to what extent it is possible to distill relation embeddings, i.e. vectors that characterize the relationship between two words. Such relation embeddings are appealing because they can, in principle, encode relational knowledge in a more fine-grained way than is possible with knowledge graphs. To obtain relation embeddings from a pre-trained language model, we encode word pairs using a (manually or automatically generated) prompt, and we fine-tune the language model such that relationally similar word pairs yield similar output vectors. We find that the resulting relation embeddings are highly competitive on analogy (unsupervised) and relation classification (supervised) benchmarks, even without any task-specific fine-tuning. Source code to reproduce our experimental results and the model checkpoints are available in the following repository: https://github.com/asahi417/relbert

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

↑