Once Upon a $\textit{Time}$ in $\textit{Graph}$: Relative-Time Pretraining for Complex Temporal Reasoning

Sen Yang, Xin Li, Lidong Bing, Wai Lam
10/23/2023
cs.CL

Official code: DAMO-NLP-SG/RemeMo (17 stars, MIT, last commit 2023-10-31).

Abstract

Our physical world is constantly evolving over time, rendering challenges for pre-trained language models to understand and reason over the temporal contexts of texts. Existing work focuses on strengthening the direct association between a piece of text and its time-stamp. However, the knowledge-time association is usually insufficient for the downstream tasks that require reasoning over temporal dependencies between knowledge. In this work, we make use of the underlying nature of time, all temporally-scoped sentences are strung together through a one-dimensional time axis, and suggest creating a graph structure based on the relative placements of events along the time axis. Inspired by the graph view, we propose RemeMo ($\underline{Re}$lative Ti$\underline{me}$ $\underline{Mo}$deling), which explicitly connects all temporally-scoped facts by modeling the time relations between any two sentences. Experimental results show that RemeMo outperforms the baseline T5 on multiple temporal question answering datasets under various settings. Further analysis suggests that RemeMo is especially good at modeling long-range complex temporal dependencies. We release our code and pre-trained checkpoints at $\href{https://github.com/DAMO-NLP-SG/RemeMo}{\text{this url}}$.

View on arXivView PDF

Code Implementations(1)

DAMO-NLP-SG/RemeMoOfficial100%
MIT

[EMNLP 2023] Once Upon a *Time* in *Graph*: Relative-Time Pretraining for Complex Temporal Reasoning

171Shell, PythonOct 25, 20232 years agoMIT

Similar Papers

Cite this paper

@article{yang2023once,
  title  = {Once Upon a $\textit{Time}$ in $\textit{Graph}$: Relative-Time Pretraining for Complex Temporal Reasoning},
  author = {Sen Yang and Xin Li and Lidong Bing and Wai Lam},
  year   = {2023},
  eprint = {2310.14709},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.14709v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.14709.svg)](https://codeofpaper.com/paper/2310.14709)

Discussion