Time-Stamped Language Model: Teaching Language Models to Understand the Flow of Events

Hossein Rajaby Faghihi, Parisa Kordjamshidi
4/15/2021
cs.CLcs.AIcs.LG
transformer-attention

Official code: HLR/TSLM (11 stars, Python, last commit 2021-05-06).

Abstract

Tracking entities throughout a procedure described in a text is challenging due to the dynamic nature of the world described in the process. Firstly, we propose to formulate this task as a question answering problem.

Show full abstract

This enables us to use pre-trained transformer-based language models on other QA benchmarks by adapting those to the procedural text understanding. Secondly, since the transformer-based language models cannot encode the flow of events by themselves, we propose a Time-Stamped Language Model~(TSLM model) to encode event information in LMs architecture by introducing the timestamp encoding. Our model evaluated on the Propara dataset shows improvements on the published state-of-the-art results with a $3.1\%$ increase in F1 score. Moreover, our model yields better results on the location prediction task on the NPN-Cooking dataset. This result indicates that our approach is effective for procedural text understanding in general.

View on arXivView PDF

Code Implementations(1)

HLR/TSLMOfficial100%

The Implementation for the Paper "Time-Stamped Language Model: Teaching Language Models toUnderstand The Flow of Events"

113Python, ShellApr 6, 20215 years ago

Similar Papers

Cite this paper

@article{faghihi2021timestamped,
  title  = {Time-Stamped Language Model: Teaching Language Models to Understand the Flow of Events},
  author = {Hossein Rajaby Faghihi and Parisa Kordjamshidi},
  year   = {2021},
  eprint = {2104.07635},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.07635}
}

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/2104.07635.svg)](https://codeofpaper.com/paper/2104.07635)

Discussion