Abstract: Angli Liu, Jingfei Du, Veselin Stoyanov. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers).
2019.
Introduction
Standard language models (LMs) excel at predicting frequent vocabulary but often falter when encountering named entities—the "long tail" of natural language. While common nouns like "person" or "location" appear with high frequency, specific entities such as "Atherton" or "Zhouzhuang" are sparse, providing insufficient contextual data for models to learn their semantic behavior effectively. Furthermore, entities represent an "open class" where new names emerge constantly, making fixed-vocabulary approaches inadequate.
Existing solutions typically rely on entity "shortlists" or require expensive, manually labeled datasets to train entity-aware components. In this paper, the authors introduce KALM (Knowledge-Augmented Language Model), which integrates external knowledge bases (KBs) into a traditional RNN-based language model. By training solely on a predictive language modeling objective (perplexity), KALM remarkably learns to perform Named-Entity Recognition (NER) in a completely unsupervised fashion, achieving results comparable to supervised state-of-the-art systems.
The KALM Architecture
KALM extends the AWD-LSTM architecture by incorporating a latent gating mechanism that leverages a structured Knowledge Base. The KB partitions entities by type (e.g., Person, Organization, Location).
At each time step, the model does not simply predict the next word from a flat vocabulary. Instead, it employs a gating mechanism to decide whether the next token is a general word or an entity of a specific type. This "type" is treated as a latent variable; the model is never explicitly told which words are entities during training. It must learn to assign tokens to types to minimize its overall prediction error (perplexity). This structure allows the model to share "contextual strength" across a category; by learning the context for the category "Person," the model generalizes that knowledge to every individual name in that category, even those seen only once.
Experimental Results
The researchers evaluated KALM across two distinct domains: a Recipe Dataset (categorizing ingredients like dairy, fruits, and grains) and the CoNLL 2003 news benchmark (categorizing LOC, MISC, ORG, and PER).
KALM achieved lower perplexity than standard LMs and previous supervised knowledge-augmented models on both datasets. Most significantly, its performance on unsupervised NER was highly competitive. On the CoNLL 2003 task, KALM achieved an F1 score of 0.86.
As shown in the figure above, KALM's unsupervised performance (the horizontal green line) is equivalent to a supervised Bi-LSTM model trained on approximately 40% of the labeled training data. It remains only 0.03 points behind the best-performing fully supervised models of the era, despite never seeing a single labeled NER example during its training phase.
Insights and Future Work
The most striking insight of this research is that the structure of language itself provides sufficient signal for learning entity types. If a model recognizes that a "Location" is likely to follow the phrase "is traveling to," and it possesses a list of locations from a KB, it naturally learns to categorize those words to lower its prediction error. This allows the model to be "boosted" simply by feeding it more raw, unlabeled text, such as Wikipedia.
However, KALM is currently dependent on the quality and coverage of the provided Knowledge Base; it cannot identify entity types not defined in its KB. Future work aims to extend this latent modeling approach to other forms of world knowledge, such as relations or events, and to increase the model's robustness to noisy or corrupted knowledge bases.
Summary updated