Abstract
This review systematizes the methodologies by which contextual language models (LMs) internalize and represent relational world knowledge. By organizing the field into a clear taxonomy, the authors explore the spectrum from implicit learning during unsupervised pretraining to explicit supervision using structured Knowledge Bases (KBs). The paper evaluates whether LMs can reliably serve as "soft" knowledge bases and identifies current gaps in reasoning and factual consistency.
Introduction
For decades, Knowledge Bases (KBs) such as Wikidata and ConceptNet have served as the primary repositories for structured factual information (e.g., "Paris" is the "capital" of "France"). While these systems offer high precision and interpretability, they are notoriously difficult to maintain, requiring significant human effort to engineer schemas and update entries.
The advent of Contextual Language Models (LMs) like BERT and GPT-3 has introduced a new paradigm. Trained on massive corpora, these models appear to "absorb" factual knowledge implicitly. However, this knowledge is "soft"—encoded within millions of parameters and often difficult to extract reliably. This review addresses how we can measure what an LM knows and how structured data can be leveraged to make that knowledge more robust.
Taxonomy of KB Supervision
The authors propose a systematic taxonomy based on the level of KB supervision provided to the model during its training or evaluation phases.
- Word-level supervision (§3): The model is trained on raw text without explicit KB signals. Knowledge is probed using "cloze prompts" (e.g., "The capital of France is [MASK]").
- Entity-level supervision (§4): The model is explicitly taught about entities. This ranges from masking names of people or places to "fusion" techniques that inject symbolic entity embeddings directly into neural layers.
- Relation-level supervision (§5): The model is trained on KB triples (Subject-Relation-Object) by linearizing structured data into natural language sentences or training specifically on relationship types.
Probing Implicit Knowledge
A significant portion of research focuses on "probing" pretrained LMs to see what they learned during standard word-level pretraining. Benchmarks like LAMA (Language Model Analysis) have become the gold standard for this, testing if models can fill in the blanks for factual triples. While large models like T5 can act as "closed-book" encyclopedias, they exhibit extreme prompt sensitivity. For instance, changing a query from "X was born in Y" to "The birthplace of X is Y" can yield different results, suggesting that LMs rely more on surface-level pattern matching than deep semantic understanding.
Explicit KB Supervision and Fusion
To move beyond implicit learning, researchers employ explicit supervision strategies. These methods aim to ground the LM's representations in structured data.
As shown in Figure 4, these strategies include:
- Mention-span masking: Forcing the model to predict entire entity names rather than individual sub-words.
- Contrastive learning: Training the model to distinguish between true factual statements and corrupted versions.
- Fusion (Early and Late): Integrating pre-computed entity embeddings from KBs directly into the LM's architecture. "Early fusion" allows the model to attend to entity information throughout its layers, which is particularly effective for "long-tail" knowledge—rare facts that seldom appear in general text.
Key Insights and Results
- The Reasoning Gap: While LMs excel at recalling facts, they struggle with reasoning (e.g., transitive relations). They can emulate "soft reasoning" but lack the robust logic of symbolic AI.
- Efficiency Gains: Models that integrate external entity data (e.g., LUKE, ERNIE) consistently outperform standard BERT on entity-heavy tasks while requiring significantly less training data.
- The "Unlearning" Problem: Unlike traditional databases where a row can be deleted, updating or removing a fact in an LM is difficult without expensive retraining.
Conclusion
The future of relational knowledge representation lies in the synergy between LMs and KBs. Rather than viewing them as competitors, the authors envision a framework where LMs assist in building and cleaning KBs, while KBs provide the factual grounding and interpretability that LMs currently lack.
Summary updated