TL;DR
This paper identifies that Pre-trained Language Models (PLMs) struggle to learn factual knowledge because they naturally pay less attention to "knowledge-baring" tokens (like nouns and numbers) compared to "knowledge-free" ones (like prepositions). The authors propose a fully self-supervised continual pre-training approach that uses selective masking and a "visibility matrix" to force the model to focus on these critical information-carrying spans, significantly boosting its performance as a standalone knowledge base.
What Problem Does This Paper Address?
While models like BERT and RoBERTa are incredibly versatile, their ability to act as reliable "knowledge bases"—retrieving specific facts from their parameters—remains limited. Previous research showed that PLMs often fail simple cloze-style factual tests.
The authors dig deeper into the why. They categorize tokens into two types: Knowledge-Baring (K-B), which are essential for humans to understand a fact (e.g., "Gay-Lussac", "hydrogen", "twice"), and Knowledge-Free (K-F), which provide grammatical structure but little factual content (e.g., "the", "that", "in").
Their probing experiments revealed a striking irony: PLMs are significantly worse at predicting K-B tokens and, crucially, they assign them much lower attention weights during the self-attention process compared to K-F tokens. Essentially, the models are "looking" at the wrong parts of the sentence when trying to learn facts.
Methods
To fix this, the authors propose two main self-supervised strategies for continual pre-training:
- Selective Masking Policies: Instead of random masking, the model identifies K-B tokens to mask using two methods:
- RoBERTa-Sel-I (Inaccuracy-based): The model performs a trial run; tokens it fails to predict correctly are deemed K-B and masked for the actual training step.
- RoBERTa-Sel-A (Attention-based): Tokens that receive the least attention are flagged as likely K-B and prioritized for masking.
- Visibility Matrix (VM): To reduce the "noise" from K-F tokens, the authors developed an automated algorithm to identify "harmful" tokens—those whose presence actually decreases model accuracy on factual tasks. During training, these tokens are made "invisible" to others in the self-attention mechanism, preventing them from distracting the model from the K-B spans.
Unlike previous methods like Salient Span Masking (SSM), which rely on external tools like NER taggers, these approaches are fully self-supervised and can detect any kind of knowledge-carrying token, not just named entities.
Datasets
The researchers evaluated their methods on three knowledge-intensive tasks across four datasets:
- LAMA Probing: A standard cloze-style test using variants of SQuAD and Google RE.
- Closed-book QA: Answering questions without external context, using a SQuAD-linked dataset.
- Knowledge Graph (KG) Reasoning: Predicting missing objects in factual triples, based on Google RE.
Key Insights and Ideas
- The Attention Gap: The most profound insight is the negative correlation between a token's factual importance and the attention it receives from standard PLMs. Models naturally drift toward "easier" linguistic patterns rather than hard factual content.
- Beyond Entities: While many "knowledge-enhancing" methods focus strictly on Named Entity Recognition (NER), this paper shows that verbs, numbers, and adjectives are also critical K-B tokens that models often overlook.
- Self-Supervised Discovery: The model's own failures (prediction errors) and internal states (attention weights) are excellent proxies for identifying what it needs to learn, eliminating the need for expensive manual labeling or brittle rule-based systems.
Key Results
The proposed methods consistently outperformed both the original RoBERTa-Large and a version continually pre-trained with standard random masking.
- LAMA Probing: Achieved up to 6.1 points absolute improvement on SQuAD and 5.5 points on Google RE.
- Closed-book QA: Saw a significant jump of up to 6.7 points.
- KG Reasoning: Improved by 2.6 points.
- Efficiency: The selective masking approach allowed the model to reach higher accuracy levels in fewer training iterations compared to random masking.
Limitations and Future Work
The authors note that while their visibility matrix is effective, some tokens like <s>, </s>, and . receive high attention and are crucial for general language understanding, even if they aren't "knowledge-baring." Making them invisible can actually hurt performance, suggesting a delicate balance between factual focus and linguistic coherence.
Future work could explore more complex forms of knowledge beyond simple triples and how these self-supervised signals might be integrated directly into the initial pre-training phase.
Summary updated