Learning How to Correct a Knowledge Base from the Edit History

Thomas Pellissier Tanon, Camille Bourgaux, Fabian M. Suchanek

Abstract

Large-scale Knowledge Bases (KBs) such as Wikidata serve as critical infrastructure for the Semantic Web but are plagued by data inconsistencies and errors. While automated systems can detect these violations, the task of correcting them typically falls to human editors or simplistic heuristics that often result in data loss. This paper introduces CorHist, a novel framework that leverages the massive edit history of KBs to automatically learn correction rules. By mining millions of past human resolutions, CorHist identifies context-aware patterns to suggest high-quality modifications. Our evaluation on Wikidata demonstrates that CorHist significantly outperforms baseline methods, achieving an F1 score of 0.76 for type constraints and receiving up to 92% approval from human editors.

Introduction

Knowledge Bases (KBs) like Wikidata, YAGO, and DBpedia are foundational to modern AI, yet maintaining their integrity is an immense challenge. Due to their reliance on automated extraction and crowdsourced contributions, these KBs frequently contain "constraint violations"—logical inconsistencies such as a person being their own parent or missing mandatory attributes like a birth date.

Current quality control workflows are bottlenecked by the "correction gap." While we have robust tools for detecting errors, fixing them remains a manual, labor-intensive process. Existing automated cleaning tools often resort to blunt heuristics, such as deleting any fact that causes a conflict. This "delete-all" approach leads to significant data loss. This research explores a different path: can we learn how to fix errors by observing how human experts have fixed them in the past?

Methodology: Mining the Edit History

The authors propose CorHist, a two-step framework designed to transform a KB's edit history into a pedagogical resource.

1. Extracting Past Corrections

The first step involves scanning the entire history of a KB to identify "relevant past corrections." A correction is defined as a user edit that resolves a pre-existing constraint violation without being immediately reverted. For instance, if a user changes an entity's gender from an incorrect value to a correct one, this transition is captured as a training example.

Example of a relevant past correction extracted from Wikidata history, showing the transition from 'male' to 'masculine' for the entity Zeus.

2. Context-Aware Rule Mining

Using these extracted corrections, the system employs a rule-mining algorithm inspired by the AMIE framework. Rather than learning generic fixes, CorHist learns context-aware rules that take the surrounding facts of an entity into account. A typical rule follows the structure: [Constraint] : Context -> Modification

For example, if a "Single Value" constraint is violated because a person has two gender entries, the system might learn: If the entity is also a member of a "men's sports team," replace the conflicting value with "male." This contextual awareness allows the system to choose between adding, deleting, or replacing data with high precision.

Experimental Setup and Datasets

The study was conducted using Wikidata, processing its entire edit history of over 700 million edits.

  • PCDataset: The authors curated a new dataset of 67 million past corrections across 10 different Wikidata constraint types.
  • Evaluation: The system was tested on a 20% hold-out set and validated through a live user study involving 47 experienced Wikidata editors.

Results and Key Insights

The experiments revealed that historical data is indeed a "gold mine" for logic. Every human-corrected typo or logical fix serves as a labeled example of expert reasoning.

  • Accuracy: CorHist achieved an F1 score of 0.76 for "Type" constraints, vastly superior to the 0.07 F1 score of a simple deletion baseline.
  • Human Validation: In the live study, suggestions for Inverse and Symmetric relations achieved an approval rate of 92%.
  • Practicality: The system successfully suggested corrections for over 23,000 live violations, proving its viability for real-time KB curation.

A major takeaway is that "soft constraints"—violations that are flagged but not blocked in Wikidata—are beneficial for learning. They provide the "negative" examples and subsequent "positive" human corrections necessary to train the model.

Discussion and Future Work

While CorHist represents a significant step forward, it currently focuses on atomic edits (single changes). Future research is needed to address complex, multi-step corrections that require synchronized changes across multiple related triples. Additionally, because the system learns from human behavior, it can inherit societal biases present in the KB (e.g., gender representation biases). Integrating external knowledge sources, such as Wikipedia text, could further refine the precision of suggestions when internal context is insufficient.

Summary updated

BibTeX
@inproceedings{tanon2019learning,
  author = {Thomas Pellissier Tanon and Camille Bourgaux and Fabian M. Suchanek},
  title = {{Learning How to Correct a Knowledge Base from the Edit History}},
  booktitle = {The Web Conference},
  year = {2019},
  doi = {10.1145/3308558.3313584},
}
Figure