Papers › Time Masking for Temporal Language Models

Time Masking for Temporal Language Models

12 Oct 2021arXiv:2110.06366archive 2025-07-28

Guy D. Rosin, Ido Guy, Kira Radinsky

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. 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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2110.06366")

Code

Syntology Ran 3 of 12 code samples harvested from 2 repositories linked to this paper; 9 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · our draft was wrong.

By repository: official repository: 3 samples from 1 repository, 3 ran; community (archive-listed): 9 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

guyrosin/tempobert officialmentioned in papermentioned on GitHubpytorch report
guyrosin/temporal_attention mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 3 ran; 1 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · our draft was wrong
9unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_embedding guyrosin/tempobert/semantic_change_detection.py official repository ran · honoured contract MIT (permissive) · f5f8f6ed8c77fc76 · report
tokenize_dataset_concat guyrosin/tempobert/train_tempobert.py official repository ran · our draft was wrong MIT (permissive) · ac64b4860d21447a · report
tokenize_dataset_line_by_line guyrosin/tempobert/train_tempobert.py official repository ran · our draft was wrong MIT (permissive) · e3702536b9a34fea · report
calc_change_score_cosine_dist guyrosin/temporal_attention/semantic_change_detection.py community (archive-listed) unverified MIT (permissive) · 4675a84ab7a3e543 · report
config_to_temporal guyrosin/temporal_attention/hf_utils.py community (archive-listed) unverified MIT (permissive) · 441f6740f7809dfb · report
get_embedding guyrosin/temporal_attention/semantic_change_detection.py community (archive-listed) unverified MIT (permissive) · ccd9731bc1c63e5c · report
lazyconfig_getitem guyrosin/temporal_attention/hf_utils.py community (archive-listed) unverified MIT (permissive) · 182620e7a1d9acc4 · report
millify guyrosin/temporal_attention/utils.py community (archive-listed) unverified MIT (permissive) · 4948b19066b3d98c · report
noop guyrosin/temporal_attention/tokenization_utils_fast.py community (archive-listed) unverified MIT (permissive) · 7dc7a4c0ec126f86 · report
prepend guyrosin/temporal_attention/tokenization_utils_fast.py community (archive-listed) unverified MIT (permissive) · 6bcecd4cd8678430 · report
prepend_tuples guyrosin/temporal_attention/tokenization_utils_fast.py community (archive-listed) unverified MIT (permissive) · ffe2a285827399df · report
search_sequence_numpy guyrosin/temporal_attention/utils.py community (archive-listed) unverified MIT (permissive) · 7bbcb9444f86f876 · report

Tasks

Change DetectionLanguage ModelingLanguage ModellingSentence

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections