Abstract
Traditional language models often fail to capture the logical progression of events in narratives, relying instead on local statistical co-occurrences. We present KnowSemLM, a semantic language model that infuses global common-sense knowledge regarding event causality into a recurrent neural network framework. By utilizing a curated knowledge base of cause-and-effect pairs and a specialized attention-copy mechanism, KnowSemLM demonstrates superior performance in predicting narrative outcomes and identifying entity referents across multiple benchmarks, including ROCStories and the InScript corpus.
Introduction: The Gap Between Local and Global Context
Standard language models excel at capturing local context—the statistical likelihood of words appearing together within a specific corpus. However, they frequently struggle with global context, which encompasses the "common sense" humans naturally apply to understand story progression.
For instance, a narrative might describe checking in at an airport counter followed by waiting for a plane. While a human understands the causal link between these events, they may appear infrequently in the same training window. Consequently, a standard model might erroneously predict a more frequent but irrelevant event, such as "going to work," based purely on word frequency. KnowSemLM addresses this by explicitly modeling event causality (e.g., Event A likely leads to Event B) and injecting this knowledge into the language generation process.
Methodology
KnowSemLM is built upon the FES-RNNLM base model, which represents events through three semantic units: disambiguated semantic frames (actions), entities (subjects/objects), and sentiment. The architecture introduces two primary components to integrate external knowledge:
- Knowledge Selection Model: This component employs a "bi-focal attention" mechanism. It monitors the current narrative state and queries a Knowledge Base of Event Causality ($KB_{EC}$) to identify potential "effect" events triggered by the current "cause" event.
- Sequence Generation Model: This model utilizes a "copying mechanism" to predict the next event. It calculates two probability distributions: one from the standard vocabulary (local context) and another from the causal outcomes identified in the $KB_{EC}$ (global context). A learned scaling parameter, $\lambda$, dynamically determines whether to generate a standard event or "copy" a logically causal event from the knowledge base.
The underlying knowledge base is populated through two distinct methods:
- Statistical Mining: Automated extraction of event pairs from the New York Times corpus, focusing on discourse connectives such as "because," "due to," or "in order to."
- Declarative Input: Manual encoding of human knowledge for specific, well-defined scenarios, such as "taking a flight."
Evaluation and Results
The model was evaluated using several benchmarks, including the New York Times (NYT) Corpus for training, the Multiple Choice Narrative Cloze (MCNC) for event chain testing, ROCStories for story ending prediction, and the InScript Corpus for referent prediction.
KnowSemLM consistently outperformed state-of-the-art baselines:
- Event Cloze Task: Achieved an accuracy of 56.27%, surpassing the previous benchmark of 55.12%.
- Story Prediction: On the ROCStories dataset, the model reached 66.5% accuracy in an unsupervised setting, a significant improvement over the 62.3% achieved by the base FES-LM.
- Referent Prediction: On the InScript corpus, it achieved 76.15% accuracy, outperforming the specialized EntityNLM (74.23%).
- Language Modeling Efficiency: The model demonstrated lower perplexity (120.4 vs. 121.8) and higher recall, indicating that the infusion of knowledge enhances the model's fundamental understanding of text.
Discussion and Future Work
A key insight of this research is the distinction between causality and co-occurrence. By treating causality as a separate signal, the model can make logical "leaps" that purely statistical models cannot. Furthermore, semantic abstraction via frames and entities allows for better generalization across different contexts. The authors also explored "transitivity expansion"—inferring that if A leads to B and B leads to C, then A leads to C—which nearly doubled the knowledge base size, though it requires careful filtering to mitigate noise.
Despite its success, KnowSemLM faces limitations. The "Declarative Way" of knowledge acquisition is labor-intensive, and transitivity can introduce logical errors if the initial links are weak. Additionally, as a frame-based model, it is not directly compatible with modern word-level pre-trained models like BERT or GPT. Future research should focus on scaling semantic models to massive corpora to combine structured knowledge with the power of large-scale pre-training.
Summary updated