Introduction
While standard Pretrained Language Models (PLMs) like BERT and GPT-3 are masters of linguistic patterns, they often lack "knowledge awareness," leading to logical inconsistencies and factual errors. This survey categorizes the emerging field of Knowledge Enhanced PLMs (KE-PLMs), which explicitly integrate structured data—such as knowledge graphs and linguistic rules—to create AI that is not just fluent, but factually grounded and capable of reasoning.
The Need for Knowledge Awareness
Large-scale PLMs have revolutionized NLP by learning from massive text corpora. However, they possess a "shallow" understanding of the world, characterized by two major limitations:
- NLU Fragility: In Natural Language Understanding, models often rely on superficial statistical cues. They can be easily fooled by simple negation or fail at basic reasoning tasks.
- NLG Illogic: In Natural Language Generation, models can produce grammatically perfect but nonsensical sentences (e.g., "A dog throws a frisbee") because they lack the commonsense knowledge regarding physical anatomy and social norms.
The challenge lies in moving from models that simply predict the next word to models that understand the underlying entities, relations, and facts described by those words.
Taxonomy of KE-PLMs
The paper organizes the landscape of KE-PLMs into three distinct taxonomies: Knowledge Source, Knowledge Granularity, and Application.
1. Knowledge Source
- Linguistic Knowledge: Incorporating WordNet senses, part-of-speech tags, or dependency trees (e.g., Syntax-BERT, LIBERT).
- Encyclopedia Knowledge: Using massive factual databases like Wikidata or Freebase (e.g., ERNIE, LUKE).
- Commonsense Knowledge: Integrating "if-then" reasoning and social norms from graphs like ConceptNet and ATOMIC.
- Domain-Specific: Tailoring models for specialized fields like Medicine (UMLS) or E-commerce product graphs.
2. Knowledge Granularity
- Text-based: Retrieving relevant text chunks from a memory bank (e.g., RAG).
- Entity-based: Focusing on specific "nodes" in a graph using Entity Linking losses.
- Relation-based: Teaching the model the "edges" between nodes (Subject-Relation-Object triples).
- Subgraph-based: Using Graph Neural Networks (GNNs) to process local neighborhoods of a knowledge graph to understand context (e.g., CokeBERT, KG-BART).
3. Integration Strategies
Knowledge is typically injected via auxiliary training tasks (like predicting a masked entity) or architectural changes (like adding "adapters" that act as specialized knowledge modules without overwriting the base model's linguistic skills).
Key Insights and Results
- Performance Gains: KE-PLMs consistently outperform vanilla BERT/RoBERTa on knowledge-heavy tasks. For instance, LUKE achieved state-of-the-art results on entity-related tasks by treating entities as independent tokens with their own embeddings.
- Factual Consistency: In summarization and dialogue, KE-PLMs show a marked reduction in "hallucinations" (making up false facts) compared to standard GPT-style models. Integrating commonsense subgraphs significantly improves the logical flow of generated text.
- Mitigating Catastrophic Forgetting: The use of Adapters (e.g., K-Adapter) allows researchers to train separate modules for different types of knowledge, preventing the model from losing its general language ability while learning new facts.
- Visibility Matrices: Models like K-BERT use a "visible matrix" to control which tokens can "see" the injected knowledge, preventing injected facts from distorting the original sentence's meaning.
Benchmarks
The paper references a wide array of benchmarks used to evaluate KE-PLMs:
- Knowledge Probing: LAMA and LAMA-UHN, testing factual triple completion.
- Entity/Relation Tasks: Open Entity and FIGER (typing); TACRED and FewRel (classification).
- Reasoning & QA: SQuAD, CommonsenseQA, and CosmosQA.
- Generation: ROCStories and CommonGen.
Limitations and Future Work
Despite their success, KE-PLMs face several hurdles. Knowledge retrieval (as in RAG) is computationally expensive and memory-intensive. Furthermore, automated entity linkers can introduce "noise" that propagates into the model. A significant challenge remains in handling temporal knowledge—updating facts as they change over time without expensive retraining. Finally, scaling KE-PLMs to the size of massive models like GPT-3 while effectively integrating all types of structured knowledge remains an open research area.
Summary updated