Generating Temporally-ordered Event Sequences via Event Optimal Transport

Bo Zhou, Yubo Chen, Kang Liu, Jun Zhao, Jiexin Xu, Xiaojian Jiang, Qiuxia LiCOLING 2022

Abstract

Generating temporally-ordered event sequences in texts is important to natural language processing. Two emerging tasks in this direction are temporal event ordering (rearranging the set of events to correct order) and event infilling (generating an event at a specified position). To tackle the two related tasks, the existing method adopts a vanilla sequence-to-sequence model via maximum likelihood estimation (MLE). However, applying this approach to these tasks will cause two issues. One issue is that the MLE loss emphasizes strict local alignment and ignores the global semantics of the event. The other issue is that the model adopts a word-level objective to model events in texts, failing to evaluate the predicted results of the model from the perspective of event sequence. To alleviate these issues, we present a novel model to tackle the generation of temporally-ordered event sequences via Event Optimal Transport (EOT). First, we treat the events in the sequence as modeling units and explicitly extract the semantics of the events. Second, to provide event sequence-level evaluation of the predicted results of the model, we directly match events in sequences. Extensive experimental results show that our approach outperforms previous models on all evaluation datasets. In particular, the accuracy is improved by 7.7%, and the Macro F1 is improved by 7.2% on one of the datasets.

Introduction

Understanding the chronological flow of narratives is a fundamental challenge in Natural Language Processing (NLP). This research focuses on two primary tasks: temporal event ordering, which involves rearranging a jumbled set of events into their correct chronological sequence, and event infilling, which requires predicting a missing event within an existing sequence.

Overview of temporal event ordering and infilling tasks within a unified model framework.

Traditional approaches typically utilize Sequence-to-Sequence (Seq2Seq) models trained with Maximum Likelihood Estimation (MLE). However, MLE-based training suffers from two significant drawbacks in this context. First, it enforces strict local alignment; for instance, if a model predicts "The investors sold shares" instead of the ground truth "Investors sold stocks," MLE penalizes the model heavily despite the semantic equivalence. Second, word-level objectives lack a global perspective, failing to reward sequences that are logically sound but slightly shifted in position.

Methodology: Event Optimal Transport (EOT)

To address these limitations, we propose a novel framework based on the BART architecture, enhanced with an Event Optimal Transport (EOT) training objective.

Event-as-Unit Modeling

Rather than treating sentences as simple strings of words, our model treats events as discrete modeling units. We use special tokens ([Ei]) to demarcate event boundaries and extract "Event Features" by averaging the word embeddings within these segments. This allows the model to capture the core semantics of each event.

Sequence-Level Evaluation via Optimal Transport

We employ the Inexact Proximal Optimal Transport (IPOT) algorithm to compare predicted sequences with ground truth. By calculating the "transport cost" required to transform the predicted event distribution into the actual distribution, the model can evaluate the global semantic similarity of the sequences. This approach prioritizes the meaning and logical order of events over exact word-for-word matching.

Hybrid Loss Function

The final training objective is a hybrid loss that combines standard word-level MLE with the EOT loss. The EOT component acts as a sequence-level regularizer, ensuring the model maintains global narrative coherence while the MLE component preserves local syntactic accuracy.

Experimental Results

The model was pre-trained on EventsNarratives, a corpus of 200,000 event sequences. To test generalization, we evaluated the model on two out-of-domain datasets: CaTeRS (causal/temporal relations in stories) and MCTaco (temporal commonsense).

Quantitative Performance

The EOT model demonstrated significant improvements over existing benchmarks:

  • MCTaco Dataset: Accuracy improved by 7.7% and Macro F1 by 7.2% compared to the previous state-of-the-art (TemporalBART-indexed).
  • Generalization: The model showed robust performance across different narrative styles, indicating that semantic-level transport is a powerful signal for temporal reasoning.

Human Evaluation

In blind qualitative tests, human raters consistently preferred the outputs of the EOT model over GPT-2 and standard BART baselines. The generated events were judged to be more coherent and logically consistent with the surrounding narrative context.

Discussion and Insights

A key finding of this work is the importance of semantics over syntax. By focusing on the core meaning of events, the model avoids the "blindness" of cross-entropy loss to distant relationships. However, we observed a "conflict of granularity": combining Word Optimal Transport (WOT) with Event Optimal Transport actually degraded performance. This suggests that for temporal tasks, event-level semantics are the most effective abstraction.

While the IPOT algorithm is efficient, it does introduce more computational overhead than standard cross-entropy. Future research will focus on scaling this approach to longer, more complex documents and exploring ways to harmonize word-level and event-level objectives.

Conclusion

Event Optimal Transport provides a robust mechanism for teaching AI models the nuances of temporal logic. By shifting the focus from local word matching to global event semantics, we achieve state-of-the-art performance in narrative understanding and generation.

Summary updated

BibTeX
@inproceedings{zhou2022generating,
  author = {Bo Zhou and Yubo Chen and Kang Liu and Jun Zhao and Jiexin Xu and Xiaojian Jiang and Qiuxia Li},
  title = {{Generating Temporally-ordered Event Sequences via Event Optimal Transport}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=EmN2pRud3r},
}
Figure