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

Canonicalizing Knowledge Base Literals

Jiaoyan Chen, Ernesto Jiménez-Ruiz, Ian Horrocks

Abstract

Knowledge Bases (KBs) often store information as flat string literals rather than semantically typed entities, limiting their utility for automated reasoning. This paper presents a framework for literal canonicalization—the process of mapping these strings to semantic types and existing entities. By leveraging an attentive bidirectional RNN (AttBiRNN) combined with symbolic reasoning and knowledge-based sampling, the proposed method significantly outperforms existing lexical-matching baselines.

Introduction

Knowledge Bases like DBpedia are rich sources of structured data but frequently suffer from the "literal" problem. Many properties that should point to specific entities instead point to simple strings. For example, a triple might state that the River Thames passesArea "Port Meadow, Oxford". To a machine, "Port Meadow" is merely a sequence of characters. Canonicalization aims to automatically identify the correct semantic classes for these strings (e.g., Wetland, Park) and match them to existing entities, thereby enhancing the KB's utility for data analysis and natural language understanding.

Methodology

The authors propose a multi-stage framework to transform literals into structured entities.

Overview of the multi-stage literal canonicalization framework.
  1. Candidate Class Extraction: The system uses SPARQL queries and lexical matching to identify likely classes based on the property and literal tokens.
  2. Knowledge-Based Sampling: Training data is generated automatically by sampling "General" (common entities) and "Particular" (lexically matching entities) samples from the KB.
  3. Sample Refinement: External sources like Wikidata are used to validate and clean noisy training data.
  4. Typing Strategies: The framework supports both independent and hierarchical typing, the latter of which utilizes ontology relationships like subclassing.

The AttBiRNN Model

The core neural component is an Attentive Bidirectional RNN (AttBiRNN) that processes the subject, property, and literal as a sequence.

Detailed architecture of the Attentive Bidirectional RNN (AttBiRNN).

The model captures semantic meaning through word embeddings and context via bidirectional GRUs. An attention layer identifies the most informative tokens, such as "War" for the class MilitaryConflict, providing both performance gains and model explainability.

Experimental Setup and Results

The framework was evaluated on two datasets: S-Lite (synthetic ground truth) and R-Lite (real-world literals).

The AttBiRNN framework demonstrated superior performance:

  • Typing Accuracy: On S-Lite, it achieved an F1 score of 0.7708, significantly higher than the 0.4600 achieved by previous state-of-the-art methods.
  • Entity Matching: On R-Lite, the system improved both the number of correct matches (from 396 to 404) and precision (from 0.6781 to 0.7194) by using predicted types to filter results.
  • Noise Reduction: Sample refinement via Wikidata improved F1 scores on real-world data by over 4%.

Discussion

The research highlights that context is critical; the subject and property provide essential clues for disambiguating literals (e.g., "Oxford" as a University vs. a City). Furthermore, the hybrid approach of combining neural networks with symbolic logic and domain adaptation (fine-tuning on "Particular" samples) proved highly effective for handling the variability of literal strings.

Conclusion

While the current system relies on lexical lookups for initial entity matching, future work will explore Graph Convolutional Networks (GCNs) to exploit wider graph context and move toward direct entity prediction via semantic embeddings.

Summary updated

BibTeX
@inproceedings{chen2019canonicalizing,
  author = {Jiaoyan Chen and Ernesto Jiménez-Ruiz and Ian Horrocks},
  title = {{Canonicalizing Knowledge Base Literals}},
  booktitle = {ISWC},
  year = {2019},
  doi = {10.1007/978-3-030-30793-6\_7},
}
Figure