NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Inductive Entity Representations from Text via Link Prediction

Daniel Daza, Michael Cochez, Paul Groth

TL;DR

This paper introduces a novel approach to learning entity representations for knowledge graphs (KGs) by leveraging their textual descriptions and a link prediction objective. Their method, using a pre-trained language model like BERT, demonstrates strong generalization capabilities, outperforming existing methods on inductive link prediction, entity classification, and information retrieval tasks without requiring task-specific fine-tuning.

What Problem Does This Paper Address?

Knowledge graphs (KGs) are crucial for many web applications, but they are often incomplete. A common approach to address this is "link prediction," where machine learning models learn to infer missing relationships between entities. While recent work has explored using textual descriptions within KGs to learn entity representations, a key question remains: how well do these representations generalize to tasks beyond link prediction, especially for entities not seen during training? Learning these representations can be costly, so ideally, we want representations that can be reused across different tasks without needing to be retrained. This paper tackles the challenge of evaluating and improving the inductive generalization capabilities of entity representations learned from text.

Methods

The core of the proposed method involves using a pre-trained language model, specifically BERT, as an "entity encoder." This encoder takes an entity's textual description as input and outputs a fixed-size vector representation (embedding). This encoder is then trained using a link prediction objective. The idea is that by predicting links (relationships between entities) based on their descriptions, the encoder learns to capture the semantic essence of entities.

Crucially, the authors propose a holistic evaluation framework that goes beyond just link prediction. They evaluate the learned representations on three key tasks:

  1. Inductive Link Prediction: Predicting links for entities not seen during training.
  2. Entity Classification: Assigning entities to predefined categories.
  3. Information Retrieval: Finding relevant entity descriptions based on natural language queries.

They also explore the impact of different relational models (e.g., TransE, DistMult, ComplEx, SimplE) when combined with their BERT encoder.

Datasets

The paper uses several standard datasets for evaluation:

  • WN18RR and FB15k-237: Used for inductive link prediction and entity classification. These datasets are derived from WordNet and Freebase, respectively, and entity descriptions are sourced from Wikipedia.
  • Wikidata5M: Used for transfer evaluation in link prediction, featuring a larger scale of entities and descriptions from Wikipedia.
  • DBpedia-Entity v2: Used for information retrieval, containing queries and ranked lists of entity descriptions.

The authors implement a dynamic evaluation scenario for WN18RR and FB15k-237, where a portion of entities and their associated triples are held out for testing, ensuring the inductive setting.

Key Insights and Ideas

  • Textual descriptions are a rich source for inductive learning: By leveraging entity descriptions with powerful pre-trained language models like BERT, we can learn representations that are not tied to specific entities seen during training.
  • Link prediction is a surprisingly effective pre-training task for generalization: Training an entity encoder solely on link prediction, using textual descriptions, yields representations that generalize well to other tasks like classification and retrieval.
  • BERT's contextual understanding is key: Using BERT's raw text input (without stop-word removal) allows it to capture more nuanced semantics, leading to better entity representations compared to simpler methods.
  • A holistic evaluation is essential: Evaluating representations across multiple tasks (link prediction, classification, retrieval) provides a more complete picture of their generalization capabilities than focusing on a single task.
  • Pre-trained models offer significant parameter efficiency: BERT-based models, despite their power, can be more parameter-efficient than traditional GloVe embeddings when used for entity representation.

Key Results

  • Link Prediction: The proposed BLP-TransE model achieved up to a 22% MRR improvement on average over state-of-the-art baselines in inductive link prediction tasks.
  • Entity Classification: BLP models achieved an average improvement of 16% in accuracy compared to baselines that also used pre-trained models, and significantly outperformed non-pre-trained baselines. Balanced accuracy improvements were particularly striking, indicating better performance on under-represented classes.
  • Information Retrieval: The models achieved significant improvements, with up to 8.8% NDCG@10 increase for natural language queries, demonstrating their utility in entity-oriented search.
  • Description Length: Using more than 32 tokens for entity descriptions provided diminishing returns in performance while significantly increasing training time.
  • Transductive vs. Inductive: While transductive methods still outperform inductive methods in pure link prediction, the inductive approach offers broader applicability to unseen entities.

Limitations and Future Work

  • Unseen Relations: The current work focuses on inductive entities. Extending the approach to handle unseen relations is a promising avenue for future research.
  • Hyperbolic Spaces: The authors suggest exploring hyperbolic spaces, which might be better suited for representing hierarchical data often found in KGs.
  • Independent Factors of Variation: Investigating methods to enforce independent factors of variation within the learned representations could further enhance their interpretability and utility.
  • Fine-tuning vs. No Fine-tuning: While the paper demonstrates strong generalization without fine-tuning, exploring the benefits of minimal fine-tuning for specific downstream tasks could be valuable.

Summary updated

BibTeX
@inproceedings{daza2021inductive,
  author = {Daniel Daza and Michael Cochez and Paul Groth},
  title = {{Inductive Entity Representations from Text via Link Prediction}},
  booktitle = {The Web Conference},
  year = {2021},
  url = {https://openreview.net/forum?id=CZkaZ_TwdtT},
}
Figure