Time Masking for Temporal Language Models

Guy D. Rosin, Ido Guy, Kira Radinsky
10/12/2021
94 citations
cs.CL

Official code: guyrosin/tempobert (21 stars, Python, MIT, last commit 2023-04-23).

Abstract

Our world is constantly evolving, and so is the content on the web. Consequently, our languages, often said to mirror the world, are dynamic in nature.

Show full abstract

However, most current contextual language models are static and cannot adapt to changes over time. In this work, we propose a temporal contextual language model called TempoBERT, which uses time as an additional context of texts. Our technique is based on modifying texts with temporal information and performing time masking - specific masking for the supplementary time information. We leverage our approach for the tasks of semantic change detection and sentence time prediction, experimenting on diverse datasets in terms of time, size, genre, and language. Our extensive evaluation shows that both tasks benefit from exploiting time masking.

View on arXivView PDF

Code Implementations(1)

guyrosin/tempobertOfficial100%
MIT

Code & Data for the Paper "Time Masking for Temporal Language Models", WSDM 2022

213PythonOct 14, 20213 years agoMIT

Similar Papers

Cite this paper

@article{rosin2021time,
  title  = {Time Masking for Temporal Language Models},
  author = {Guy D. Rosin and Ido Guy and Kira Radinsky},
  year   = {2021},
  eprint = {2110.06366},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.06366}
}

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

Discussion