TL;DR
This paper investigates how well pre-trained language models (PLMs) like BERT store factual knowledge from unstructured text. They discover PLMs struggle with "knowledge-baring" tokens and pay them less attention. To address this, they propose novel self-supervised methods, "Salient Span Mask" (SSM) and a "Visibility Matrix," to guide PLMs towards better knowledge acquisition during continual pre-training.
What Problem Does This Paper Address?
Pre-trained language models (PLMs) have revolutionized NLP, but a key challenge remains: how effectively do they truly learn and retain factual knowledge embedded within the vast amounts of unstructured text they are trained on? While PLMs excel at many tasks, studies show they falter when asked to recall specific factual information. This paper aims to bridge this gap by understanding why PLMs struggle with knowledge acquisition and proposing methods to improve it. The authors hypothesize that not all tokens in a sentence are equally important for conveying factual knowledge, and PLMs might be overlooking or misinterpreting these crucial "knowledge-baring" tokens.
Methods
The core of this work lies in understanding and then improving PLM knowledge acquisition.
- Identifying Knowledge-Baring (K-B) Tokens: The authors first define "knowledge-baring" tokens as those essential for understanding factual information in a sentence, contrasting them with "knowledge-free" tokens that are less critical. They manually annotated samples to identify these tokens.
- Probing PLM Behavior: They then analyzed how PLMs (specifically RoBERTa) perform on these K-B vs. K-F tokens. They found PLMs make more prediction errors on K-B tokens and, crucially, pay them less attention in their self-attention mechanisms.
- Salient Span Mask (SSM) Policies: Based on these observations, they propose two novel mask policies for continual pre-training, aiming to make PLMs focus on K-B tokens:
- ROBERTa-Sel-I: This policy identifies K-B tokens by selecting those that the model struggles to predict correctly during a preliminary masking phase.
- ROBERTa-Sel-A: This policy leverages the attention mechanism, identifying K-B tokens as those that receive less attention.
- Visibility Matrix: To further enhance knowledge retention, they introduce a "visibility matrix" mechanism. This mechanism can make "knowledge-free" tokens "invisible" to other tokens during self-attention, preventing them from negatively influencing the learning of K-B tokens.
Datasets
The paper utilizes several datasets for their experiments:
- LAMA SQUAD and LAMA Google RE: These datasets are used for manual annotation of knowledge-baring and knowledge-free tokens and for probing experiments.
- LAMA Probing, Closed-book QA, and Knowledge Graph (KG) Reasoning: These are standard downstream tasks used to evaluate the effectiveness of their proposed methods. The training data for these tasks consists of unstructured text, and the validation/test data uses prompt-style queries requiring factual recall.
Key Insights and Ideas
- Not all tokens are created equal: The paper provides strong evidence that factual knowledge in text is not uniformly distributed across tokens. Some tokens are significantly more important for knowledge retention than others.
- PLMs have a "knowledge blind spot": The finding that PLMs perform worse on and pay less attention to knowledge-baring tokens is a critical insight. This suggests a fundamental limitation in how current pre-training objectives encourage knowledge acquisition.
- Self-supervised learning is key: The proposed methods are entirely self-supervised, meaning they don't require external labeled data for knowledge identification. This is a significant advantage for scaling knowledge acquisition to massive unlabeled text corpora.
- Attention is a double-edged sword: While attention is crucial for PLMs, the paper shows that less attention on K-B tokens is a problem. Their methods aim to rebalance this attention.
- Special tokens matter: The paper notes that tokens like "<s>" and "</s>" are crucial for general knowledge, even if not directly "knowledge-baring" in the factual sense.
Key Results
- The proposed methods, particularly the combination of ROBERTa-Sel-I-VM (Salient Span Mask policy I with Visibility Matrix), significantly outperform baseline models on knowledge-intensive tasks.
- Improvements are substantial: up to 6.1 points on LAMA Probing, 6.7 points on Closed-book QA, and 2.6 points on KG Reasoning compared to a continually pre-trained RoBERTa with random masking.
- The models trained with their methods show better comprehension of knowledge-baring tokens, as evidenced by improved probing accuracy on these tokens.
- The visibility matrix mechanism alone also provides significant gains, demonstrating the importance of mitigating the influence of knowledge-free tokens.
Limitations and Future Work
- Manual Annotation Dependency: While the proposed methods are self-supervised for training, the initial identification of K-B tokens relies on manual annotation. Future work could explore fully automated methods for K-B token identification.
- Scope of Knowledge: The paper focuses on factual knowledge. It would be interesting to explore how these methods apply to other types of knowledge, such as commonsense reasoning or procedural knowledge.
- Efficiency: While the methods improve performance, the computational cost of the additional masking and attention mechanisms during continual pre-training could be a consideration for very large-scale models.
- Generalizability: Further research could investigate the generalizability of these findings and methods across different PLM architectures and a wider range of downstream tasks.
Summary updated