Abstract
This paper introduces Entity Insertion (EI), a novel NLP task focused on identifying the optimal location within a document to insert a link to a target entity, even in the absence of an existing mention. We present a large-scale multilingual benchmark across 105 languages and propose XLOCEI, a transformer-based ranking model that leverages dynamic context removal and cross-lingual transfer to outperform strong baselines and large language models like GPT-4.
Introduction: Beyond Entity Linking
In the context of linked data like Wikipedia, "Entity Linking" (EL) is the established process of mapping a specific text mention (e.g., "the capital of France") to its corresponding knowledge base entry (e.g., the article for France). However, empirical analysis of Wikipedia's revision history reveals a significant gap: approximately 60–70% of links added by human editors involve the insertion of entirely new text. In these instances, the target entity is not yet mentioned, meaning there is no "anchor" to link.
To address this, we formalize the task of Entity Insertion (EI). Given a source article and a target entity, the goal is to identify the specific text span where new information about that entity most naturally belongs. This task reduces the cognitive load on editors by suggesting precise locations for knowledge integration.
Methodology: The LocEI Framework
We propose LocEI (Localized Entity Insertion) and its multilingual extension XLOCEI. The core architecture utilizes a transformer-based encoder (specifically XLM-RoBERTa) to jointly process the target entity's metadata and candidate text spans from the source article.
Two-Stage Training Strategy
To train a model capable of predicting link locations without explicit mentions, we employ a two-stage approach:
- Dynamic Context Removal: We utilize existing linked data but "break" the links by removing the mention, the containing sentence, or the surrounding span. This forces the model to learn the semantic relationship between the entity and the surrounding context.
- Expansion Fine-tuning: The model is further refined on a high-quality dataset of actual "added links" harvested from Wikipedia’s revision history, capturing real-world editorial patterns.
Knowledge Injection
Performance is enhanced by providing the model with "local" context, including the section title of the candidate span and a list of common aliases (mentions) for the target entity.
Multilingual Benchmarking
We compiled a massive benchmark encompassing 958 million links across 49 million articles in 105 languages. This dataset spans from high-resource languages like English (166M links) to low-resource ones like Xhosa (2.8K links). To ensure real-world relevance, we specifically tracked links added between October and November 2023, creating a "gold standard" test set of human editorial decisions.
Key Results and Insights
Our experiments yield several critical findings:
- Superior Ranking Performance: XLOCEI achieved a macro-average Hits@1 of 0.726 across 20 languages, significantly outperforming traditional retrieval baselines like BM25 (0.508).
- Outperforming LLMs: In English-specific evaluations, XLOCEI (0.677 Hits@1) surpassed a GPT-4 based pairwise ranking approach (0.370), demonstrating that specialized models can be more effective for this niche task.
- Cross-Lingual Synergy: XLOCEI, trained on 20 languages, outperformed single-language models. It maintained over 95% of its performance in zero-shot scenarios on languages it was never trained on, highlighting its utility for smaller Wikipedia editions.
- Handling Missing Mentions: In the most challenging scenarios where the entity mention was completely absent, XLOCEI maintained a Hits@1 of 0.579, while string-matching baselines dropped to 0.270.
Limitations and Future Directions
While effective, the current approach faces computational challenges when ranking every span in long articles; hierarchical searching (section-level then span-level) is a proposed optimization. Additionally, the model currently focuses on inserting links into existing sections. Future work could explore generative approaches for creating entirely new sections or integrating link recommendation systems to suggest which entities to insert.
Summary updated