Mapping Text to Knowledge Graph Entities using Multi-Sense LSTMs

Dimitri Kartsaklis, Mohammad Taher Pilehvar, Nigel Collier

Introduction

Text grounding—the process of mapping natural language phrases to specific entities in a structured Knowledge Base (KB)—is a critical task for information retrieval and specialized domains like medical informatics. This paper presents a novel framework that bridges the gap between fluid, sequential text and rigid, hierarchical Knowledge Graphs (KGs) by combining Multi-Sense LSTMs with a textually-enhanced graph embedding strategy.

Problem Statement

Mapping text to KGs faces two primary hurdles:

  1. Structural Disparity: Natural language is inherently unstructured and sequential, whereas KGs are structured as complex networks.
  2. Lexical Ambiguity: Polysemy, where a single word has multiple meanings, complicates mapping. In medical KBs like SNOMED CT, a term like "fever" can appear in numerous contexts, each representing a distinct clinical entity.

Proposed Methodology

The authors propose a two-stage approach to align text and graph representations into a single shared vector space.

The Anchor Strategy for Shared Vector Spaces

To create a unified representation, the authors enhance the KG by incorporating textual feature nodes—derived from entity definitions—directly into the graph. They introduce a sampling parameter, $\lambda$, to control random walks that transition between entities and these word-nodes.

Random walk sampling with varying $\lambda$ to bridge entities and textual features

By adjusting $\lambda$, the model can prioritize either structural connections ($\lambda=0$) or textual associations ($\lambda=1$). This "anchor" strategy forces the resulting vector space to align entity embeddings with the descriptive language used in the KB, creating a common coordinate system.

Multi-Sense LSTM (MS-LSTM)

For processing input text, the framework utilizes a Multi-Sense LSTM. Unlike standard LSTMs that assign a single fixed vector per word, the MS-LSTM maintains $k$ distinct "sense" embeddings.

Overall system architecture for mapping text to KB space

An attention mechanism dynamically selects the most relevant sense based on the surrounding context. These sense vectors are continuously updated during training to align with the target KB's specific semantics. The final model output is a point in the KB vector space; the nearest entity to this point is identified as the predicted match.

Experimental Evaluation

The model was evaluated on three distinct benchmarks:

  • SNOMED CT: A large-scale medical knowledge base. The model achieved a strict accuracy of 90% and a top-20 accuracy of 100%, significantly outperforming standard LSTMs (20% strict accuracy).
  • WordNet: In a "reverse dictionary" task, the model reached 0.95–0.96 top-10 accuracy, surpassing both previous supervised models and commercial systems.
  • Cora: On this citation network dataset, textually-enhanced vectors allowed a simple linear classifier to match the performance of complex Graph Attention Networks (GAT).

Key Insights

  • Words as Bridges: Integrating words as nodes in the KG allows for a shared coordinate system where "text-space" and "graph-space" are unified.
  • Handling Polysemy: By allowing the LSTM to choose between multiple senses, the model avoids the noise typical of single-vector word embeddings.
  • Topology vs. Context: While textual anchors improve mapping, excessive textual information can sometimes obscure the pure structural hierarchy of the graph in classification tasks.

Conclusion

By treating words as nodes within the knowledge graph and employing a multi-sense attention mechanism, this framework effectively resolves lexical ambiguity and aligns disparate data modalities. Future work may involve explicitly modeling relationship types and exploring the continuous vector space for entity discovery.

Summary updated

BibTeX
@inproceedings{kartsaklis2018mapping,
  author = {Dimitri Kartsaklis and Mohammad Taher Pilehvar and Nigel Collier},
  title = {{Mapping Text to Knowledge Graph Entities using Multi-Sense LSTMs}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1221},
}
Figure