Abstract
In recent years, Pre-trained Language Models (PLMs) have shown their superiority by pre-training on unstructured text corpus and then fine-tuning on downstream tasks. On entity-rich textual resources like Wikipedia, Knowledge-Enhanced PLMs (KEPLMs) incorporate the interactions between tokens and mentioned entities in pre-training, and are thus more effective on entity-centric tasks such as entity linking and relation classification. Although exploiting Wikipedia’s rich structures to some extent, conventional KEPLMs still neglect a unique layout of the corpus where each Wikipedia page is around a topic entity (identified by the page URL and shown in the page title). In this paper, we demonstrate that KEPLMs without incorporating the topic entities will lead to insufficient entity interaction and biased (relation) word semantics. We thus propose KEPLET, a novel Knowledge-Enhanced Pre-trained LanguagE model with Topic entity awareness. In an end-to-end manner, KEPLET identifies where to add the topic entity’s information in a Wikipedia sentence, fuses such information into token and mentioned entities representations, and supervises the network learning, through which it takes topic entities back into consideration. Experiments demonstrated the generality and superiority of KEPLET which was applied to two representative KEPLMs, achieving significant improvements on four entity-centric tasks.
Introduction: The Missing Context in KEPLMs
Knowledge-Enhanced Pretrained Language Models (KEPLMs), such as LUKE and ERNIE, have significantly advanced the state-of-the-art by integrating entity-level information into standard language models. These models typically learn from the interactions between words and entities mentioned within a sentence, often identified through hyperlinks. However, a critical structural element of the training data—the topic entity—is frequently overlooked.
In structured resources like Wikipedia, every sentence is contextually anchored to the page's title. For instance, on a page dedicated to "Beyoncé," a sentence stating "She released Crazy in Love" implies a direct connection between the pronoun "She" and the topic entity "Beyoncé." Current KEPLMs might link "Crazy in Love" to its specific entity entry but often fail to explicitly model the global context provided by the topic entity. This neglect results in biased word semantics and missed opportunities for deeper entity interaction.
Methodology: Integrating Topic Entity Awareness
To address this gap, we propose KEPLET (Knowledge-Enhanced Pretrained LanguagE model with Topic entity awareness). KEPLET is designed as a modular "plug-in" that can be integrated into existing KEPLMs through a brief additional pre-training phase. The model introduces three core components:
- Entity Fusing Position Identification: Rather than uniform injection, KEPLET employs a gated neural network to identify "fusing positions." These are specific tokens, such as pronouns or ambiguous mentions, where the topic entity's information provides the most significant disambiguation.
- Entity Feature Fusion: An adapter module integrates the topic entity’s embedding into the hidden representations of the identified tokens. Experimental results indicate that attention-based selection for fusion outperforms simple concatenation.
- Topic-Entity-Aware Contrastive Loss: A novel pre-training objective is introduced to supervise the learning of these relationships. This contrastive loss encourages the model to cluster representations of sentences belonging to the same topic entity while distancing those from different entities.
Experimental Setup and Results
KEPLET was pre-trained on English Wikipedia and evaluated across four entity-centric benchmarks: Open Entity (entity typing), TACRED (relation classification), SQuAD 1.1 (question answering), and CoNLL-2003 (NER).
Key Findings
- Performance Gains: KEPLET consistently outperformed base models like LUKE and ERNIE. Notably, on the TACRED relation classification task, KEPLET improved LUKE-base by 0.6% and ERNIE by over 2% in F1 score.
- Optimal Fusion Layer: Analysis revealed that injecting topic entity information at the first layer of the transformer stack is most effective. This suggests that topic context serves as a foundational semantic anchor for subsequent layers.
- Efficiency: KEPLET achieves these gains with minimal additional training—approximately 128 GPU hours for one epoch—leveraging the weights of existing pre-trained models.
Conclusion
KEPLET demonstrates that explicitly modeling the relationship between a document's topic and its internal mentions significantly enhances the semantic understanding of language models. By identifying critical fusion points and employing contrastive learning, KEPLET provides a robust framework for improving performance on entity-rich tasks. Future work will explore multi-lingual extensions and applications in domains like fact-checking, where global context is paramount.
Summary updated