Abstract
Script event prediction aims to predict the next likely event in a narrative sequence. Traditional methods often struggle with the flexible ordering of events and the varying importance of historical context. This paper introduces MemNet, a neural architecture that integrates sequential modeling with pairwise event relations using a Dynamic Memory Network. By intelligently weighting past events based on their relevance to a candidate next event, MemNet achieves state-of-the-art performance on standard benchmarks.
The Challenge of Script Event Prediction
In natural language processing, "scripts" represent stereotypical sequences of events describing common scenarios, such as visiting a restaurant. AI systems must understand these scripts to fill in gaps left by human writers who often omit obvious steps.
Predicting the next event is difficult due to two primary factors:
- Flexible Ordering: Events in a script do not always follow a rigid linear sequence. For instance, in a restaurant, a customer might pay before or after eating, depending on the establishment type.
- Varying Importance: Not all preceding events are equally predictive of the future. While "ordering food" strongly suggests "eating food" or "paying," "walking to the restaurant" provides less specific predictive value for the final steps of the script.
Previous models typically relied on either event-pair models, which handle flexible ordering but lack long-range context, or LSTMs, which capture sequences but can overfit to specific training orders.
The MemNet Architecture
To address these limitations, the researchers proposed MemNet, a hybrid model that combines the strengths of sequential and relational modeling. The architecture consists of three core components:
1. Event Representation
Events are represented as tuples containing a verb and its arguments (subject, object, and prepositional object). These components are transformed into vectors using pre-trained word embeddings and a composition layer to create a unified event embedding.
2. Temporal Order Modeling
The sequence of event embeddings is processed by a Long Short-Term Memory (LSTM) network. Unlike standard approaches that use the LSTM for direct prediction, MemNet utilizes the LSTM's hidden states as context-aware features. This ensures that the representation of an event like "ordering" reflects its specific narrative context (e.g., a restaurant vs. a military setting).
3. Dynamic Memory Network (DMN)
The "secret sauce" of MemNet is the integration of a Dynamic Memory Network. Instead of treating the entire history as a single fixed vector, the DMN uses an attention mechanism to calculate a "relatedness score" between a candidate next event and each previous event in the sequence.
By performing multiple "hops" of reasoning, the model can iteratively refine these weights, allowing it to focus on the most informative historical events while ignoring irrelevant "distractor" events.
Experimental Results
MemNet was evaluated using the Multi-Choice Narrative Cloze (MCNC) test on two major benchmarks: the large-scale G&C16 dataset (1.5 million chains) and the classic C&J08 dataset.
The model achieved a new state-of-the-art accuracy of 55.12% on the G&C16 dataset, a significant improvement over previous bests like Event-Comp (49.57%) and standard RNNs (45.74%). On the smaller C&J08 dataset, it also led with 46.67% accuracy.
Ablation studies confirmed the importance of each component:
- LSTM Layer: Removing the LSTM layer reduced accuracy to 51.72%.
- Attention Mechanism: Removing the DMN reduced accuracy to 50.76%.
- Event Arguments: Excluding subject/object arguments led to a noticeable drop in performance, highlighting that "who" does "what" is vital for script logic.
Conclusion
MemNet demonstrates that integrating temporal order with dynamic relational modeling is a powerful approach for script event prediction. By using LSTMs to contextualize events and a Dynamic Memory Network to weight their historical importance, the model effectively navigates the complexities of flexible narrative structures. Future work may involve incorporating deeper semantic information or exploring more complex memory structures to further enhance common-sense reasoning in AI.
Summary updated