Entity or Relation Embeddings? An Analysis of Encoding Strategies for Relation Extraction

Frank Mtumbuka, Steven Schockaert
12/18/2023
cs.CL

No official code found. Best implementation: fmtumbuka/RelationEmbeddings (2 stars, BSD-2-Clause, last commit 2024-12-30).

Abstract

Relation extraction is essentially a text classification problem, which can be tackled by fine-tuning a pre-trained language model (LM). However, a key challenge arises from the fact that relation extraction cannot straightforwardly be reduced to sequence or token classification. Existing approaches therefore solve the problem in an indirect way: they fine-tune an LM to learn embeddings of the head and tail entities, and then predict the relationship from these entity embeddings. Our hypothesis in this paper is that relation extraction models can be improved by capturing relationships in a more direct way. In particular, we experiment with appending a prompt with a [MASK] token, whose contextualised representation is treated as a relation embedding. While, on its own, this strategy significantly underperforms the aforementioned approach, we find that the resulting relation embeddings are highly complementary to what is captured by embeddings of the head and tail entity. By jointly considering both types of representations, we end up with a simple model that outperforms the state-of-the-art across several relation extraction benchmarks.

View on arXivView PDF

Code Implementations(1)

BSD-2-Clause
22Shell, PythonOct 2, 20241 years agoBSD-2-Clause

Similar Papers

Cite this paper

@article{mtumbuka2023entity,
  title  = {Entity or Relation Embeddings? An Analysis of Encoding Strategies for Relation Extraction},
  author = {Frank Mtumbuka and Steven Schockaert},
  year   = {2023},
  eprint = {2312.11062},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.11062v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.11062.svg)](https://codeofpaper.com/paper/2312.11062)

Discussion