CLSep 21, 2021

Distilling Relation Embeddings from Pre-trained Language Models

arXiv:2110.15705v128 citationsHas Code
Originality Incremental advance
AI Analysis

This work addresses the need for fine-grained relational representations in NLP, offering a novel method that is incremental in leveraging existing language models.

The paper tackled the problem of distilling relation embeddings from pre-trained language models to encode relational knowledge more finely than knowledge graphs, achieving highly competitive results on analogy and relation classification benchmarks without task-specific fine-tuning.

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

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes