Introduction
Standard Pre-trained Language Models (PLMs) such as BERT excel at capturing linguistic patterns but often struggle with "world knowledge"—the factual relationships typically found in structured Knowledge Graphs (KGs). Knowledge-Enhanced Pre-trained Language Models (KEPLMs) aim to bridge this gap by integrating factual triples into the pre-training process. However, existing KEPLMs face two significant hurdles: knowledge noise, where irrelevant or redundant information degrades performance, and computational inefficiency, where updating the entire model for every fact leads to prohibitively high training costs.
TRELM (Towards Robust and Efficient Pre-training) is a novel framework designed to address these challenges. By implementing a surgical approach to knowledge injection and a sparse update mechanism, TRELM achieves state-of-the-art performance on factual benchmarks while reducing pre-training time by more than 50%.
The Challenges of Knowledge Integration
Most current KEPLMs suffer from an "indiscriminate injection" problem. They attempt to force knowledge into every entity mention within a corpus, regardless of its relevance to the context. This introduces noise, as many entities are either redundant or contribute little to the sentence's core meaning. Furthermore, real-world entities follow a long-tail distribution; rare entities are often neglected during training, leading to gaps in the model's factual memory.
From a computational perspective, the standard practice of updating all model parameters during knowledge injection is inefficient. Since factual knowledge is often localized within specific components of the model architecture, global updates are an expensive overkill that slows down the convergence of the pre-training process.
The TRELM Framework
TRELM introduces a three-pronged strategy to make knowledge pre-training more precise and efficient:
1. Noise-aware Knowledge Injection
To combat noise, TRELM utilizes a Semantic Importance (SI) score. This metric identifies which entities and long-tail words are most critical to a sentence's meaning, ensuring the model focuses its learning capacity where it matters most. Additionally, a Contrastive Knowledge Assessing (CKA) task is employed to verify that the model accurately understands the relationship between head and tail entities, rather than just memorizing co-occurrences.
2. Knowledge-augmented Memory Bank (KMB)
To stabilize the representation of rare and long-tail entities, TRELM maintains a dual-structured memory bank:
- Local Memory: Captures how an entity appears in a specific context.
- Global Memory: Maintains a moving-average representation of an entity across all contexts. This mechanism ensures consistent entity representations throughout the pre-training phase, preventing the model from "forgetting" rare facts.
3. Dynamic Knowledge Routing (DKR)
Dynamic Knowledge Routing is the core efficiency engine of TRELM. Based on the theory that factual knowledge is primarily stored within Feed-Forward Networks (FFNs), TRELM uses integrated gradients to identify specific "knowledge paths"—the neurons responsible for a particular fact. During back-propagation, TRELM only updates these identified paths. This sparse update strategy drastically reduces the computational overhead without sacrificing the model's ability to acquire new information.
Experimental Setup
TRELM was pre-trained using the English Wikipedia (2020 version) aligned with Wikidata5M, a knowledge graph containing approximately 3 million entities and 822 relation types. The model was evaluated across several dimensions:
- Factual Recall: LAMA and LAMA-UHN benchmarks.
- Downstream Tasks: Open Entity (Entity Typing) and TACRED (Relation Extraction).
- General Language Ability: The GLUE benchmark, to ensure that knowledge injection does not compromise general linguistic performance.
Key Results and Insights
Unprecedented Efficiency
TRELM demonstrates a significant leap in training efficiency, reducing pre-training time by at least 50% compared to strong baselines like DKPLM. While competing models often require multiple days to reach convergence, TRELM achieves comparable or superior results in roughly 24 hours.
Superior Factual Accuracy
On the LAMA knowledge probing tasks, TRELM outperformed existing KEPLMs, achieving a +0.7% absolute improvement on the T-REx dataset over the previous state-of-the-art. This confirms that surgical, noise-aware injection is more effective than global, indiscriminate methods.
Robust Downstream Performance
The model's efficiency does not come at the cost of quality. TRELM achieved state-of-the-art results on both TACRED and Open Entity. Crucially, performance on the GLUE benchmark remained stable or slightly improved, indicating that TRELM avoids "catastrophic forgetting" and remains a robust general-purpose language model.
Conclusion and Future Work
TRELM proves that sparse, targeted updates are sufficient—and often superior—for factual acquisition in language models. By treating attribution (integrated gradients) as an optimization tool rather than just an explainability metric, TRELM sets a new standard for efficient KEPLM development.
Future research directions include expanding the framework to multi-hop reasoning, adapting the routing logic for Decoder-only architectures (NLG tasks), and testing the framework's efficacy on low-resource languages where knowledge graphs are less dense.
Summary updated