Learning to Explain Entity Relationships in Knowledge Graphs

Nikos Voskarides, Edgar Meij, Manos Tsagkias, Maarten de Rijke, Wouter Weerkamp

Abstract

Knowledge Graphs (KGs) are efficient at storing structured facts but often lack the natural language context necessary for human-centric applications like search engine recommendations. This paper presents a method to automatically generate human-readable explanations for entity relationships by extracting and ranking sentences from a large corpus. By employing a "learning to rank" framework with semantic features and relationship-specific models, the proposed approach significantly outperforms traditional information retrieval baselines.

Introduction: The Gap Between Data and Description

Modern search engines rely heavily on Knowledge Graphs such as DBpedia or Freebase to provide structured information about entities. While these graphs excel at representing facts (e.g., Barack_Obama → isSpouseOf → Michelle_Obama), the raw labels are often "dry" and lack engagement. When a user encounters a recommended related entity, a simple label like "Spouse" provides minimal context.

The challenge is to bridge the gap between structured data and natural language by identifying "evidence" sentences in a corpus like Wikipedia that explain how and why two entities are related. This task is difficult because the selected sentence must be self-contained, relevant to the specific relationship type, and easily understood out of context.

Example of a Knowledge Graph interface where a natural language explanation provides context for a relationship.

Methodology

The authors propose a two-stage pipeline to transform structured relationships into descriptive sentences.

1. Extraction and Enrichment

The process begins by identifying candidate sentences from Wikipedia where both entities (or their known aliases) appear. To ensure these sentences are readable in isolation, the system performs contextual enrichment:

  • Coreference Resolution: Simple heuristics replace pronouns (e.g., "he", "she") with the actual entity names.
  • Entity Linking: All mentioned entities are grounded to ensure clarity.

2. Learning to Rank (LTR)

Rather than relying on simple keyword matching, the authors utilize a Random Forest classifier to rank candidate sentences. The model incorporates 46 features across four key categories:

  • Textual Features: Sentence length, lexical density, and part-of-speech (POS) distributions.
  • Entity Features: The number of entities present, the physical distance between target entities in the text, and shared Wikipedia in-links.
  • Relationship Features: This "secret sauce" involves checking for terms related to the KG relation. Since exact matches are rare, the system uses WordNet for synonyms and word2vec for semantic similarity (e.g., mapping "isSpouseOf" to "married").
  • Source Features: The sentence's position within the original document.

3. Relationship-Dependent Modeling

The authors observed that linguistic patterns vary significantly across relationship types (e.g., "spouse" vs. "co-star"). Training specialized models for specific domains or relationship types further improved ranking accuracy.

Datasets and Evaluation

The primary corpus used was a July 2013 English Wikipedia dump containing approximately 4 million articles. To evaluate the system, the authors released a new benchmark dataset consisting of 1,476 entity pairs across 9 relationship types (e.g., isChildOf, CoCastsWith, PlaysSameSportTeamAs). Five human annotators judged 5,689 sentences on a 5-level scale, providing a robust ground truth for the ranking task.

Key Results

The Learning to Rank approach demonstrated a clear advantage over standard information retrieval methods:

  • Superior Ranking: The best LTR model achieved an NDCG@1 of 0.8489, significantly higher than the 0.7801 achieved by the strongest baseline (BM25/TF-IDF).
  • Precision: In cases where a "perfect" explanation existed in the candidate pool, the LTR model placed it at the top of the results approximately 72% of the time.
  • Feature Impact: Semantic expansion (WordNet/word2vec) and entity-based features were identified as the most influential factors in successful ranking.

Conclusion and Future Directions

While the current system effectively handles relationships between people, several avenues for improvement remain. The authors suggest that future work could expand the scope to non-human entities (e.g., corporate acquisitions) and address relationship ambiguity when entities share multiple links. Furthermore, moving beyond extraction toward abstractive summarization or sentence compression could produce even more concise and "polished" explanations for user interfaces.

Summary updated

BibTeX
@inproceedings{voskarides2015learning,
  author = {Nikos Voskarides and Edgar Meij and Manos Tsagkias and Maarten de Rijke and Wouter Weerkamp},
  title = {{Learning to Explain Entity Relationships in Knowledge Graphs}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2015},
  doi = {10.3115/v1/p15-1055},
}
Figure