Abstract
Knowledge Bases (KBs) are essential for modern AI applications but suffer from incompleteness. Traditional relation extraction pipelines often fail due to error propagation between extraction and entity linking stages. This paper presents an end-to-end neural model that extracts facts from text and maps them directly to KB identifiers. By employing a novel n-gram attention mechanism and jointly learned word-entity embeddings, the system achieves significant performance gains over state-of-the-art baselines.
Introduction
Knowledge Bases like Wikidata and DBpedia power critical technologies, from search engines to virtual assistants. However, keeping these repositories up-to-date is a monumental task. Relation Extraction (RE) is the primary method for discovering new facts within unstructured text.
Historically, RE has been treated as a two-stage pipeline: first, identifying relationships as text strings (e.g., "NYU" is a "private university"), and second, performing Named Entity Disambiguation (NED) to map these strings to unique identifiers (e.g., Q49210). This approach is inherently brittle; errors in the first stage inevitably cascade into the second. Furthermore, standard neural models often fail to capture multi-word entities because their attention mechanisms operate on individual tokens rather than semantic phrases.
Methodology
The proposed framework treats KB enrichment as a direct translation task, converting natural language sentences into sequences of KB identifiers.
Technical Innovations
- N-gram Based Attention: To better handle multi-word entities like "New York University," the model computes attention over n-grams (up to $N=3$). This allows the encoder to focus on cohesive phrases rather than isolated words, preventing the model from getting "distracted" by common words like "University."
- Jointly Learned Embeddings: The system utilizes a shared vector space for words and KB entities. Words are trained via Skip-gram, while entities and relations are trained via TransE. This alignment ensures that semantic concepts in text are mathematically close to their corresponding KB identifiers.
- Distant Supervision and Refinement: Training data is generated by aligning Wikipedia articles with Wikidata triples. To mitigate noise, the authors employed co-reference resolution and paraphrase detection to filter out irrelevant sentence-triple pairs.
- Inference and Validation: During the generation of triples, a modified beam search re-ranks candidates based on lexical similarity to KB labels. A final Triple Classifier uses the learned TransE embeddings to filter out logically inconsistent or improbable relationships.
Experimental Setup
The model was evaluated on two distinct datasets:
- WIKI: A large-scale dataset containing over 255,000 sentence-triple pairs from Wikipedia.
- GEO: A 1,000-pair "stress test" dataset derived from travel reviews of Australian landmarks, designed to evaluate the model's robustness across different domains and writing styles.
Results and Discussion
The proposed model demonstrates a substantial improvement over existing models, including CNN-based extractors and unsupervised tools like MinIE and ClausIE paired with state-of-the-art NED systems.
On the WIKI dataset, the N-gram attention model with a triple classifier achieved an F1 score of 75.21%, representing a 15.51% absolute improvement over the strongest baseline. On the GEO dataset, it achieved 72.08%, an 8.38% improvement. The use of pre-trained joint embeddings also significantly improved efficiency, with the model converging in 20 epochs compared to 40 for models without them.
Conclusion
By merging extraction and disambiguation into a single end-to-end process, this research effectively addresses the problem of error propagation in KB enrichment. The combination of n-gram attention and joint embeddings allows the model to leverage both local lexical context and global KB structure. Future work will focus on improving disambiguation for entities sharing identical names by incorporating broader context-based similarity measures.
Summary updated