Salient Span Masking for Temporal Understanding

Jeremy R. Cole, Aditi Chaudhary, Bhuwan Dhingra, Partha Talukdar

Abstract

Understanding temporal relationships—such as durations, frequencies, and relative timing—remains a significant challenge for Large Language Models (LLMs). While Salient Span Masking (SSM) has improved factual recall by targeting named entities, it often overlooks the nuances of temporal logic. This paper introduces Temporal Span Masking (TSM), an intermediate pretraining strategy that specifically targets complex temporal expressions. By training on spans identified by a rule-based temporal parser, the proposed method achieves new state-of-the-art results on temporal reasoning benchmarks without sacrificing general knowledge performance.

1. Introduction

Large Language Models have demonstrated remarkable proficiency in memorizing static facts, yet they frequently falter when tasked with "temporal commonsense." Tasks involving the estimation of event durations, the frequency of periodic occurrences, or the validity of time-sensitive information require a deeper understanding of temporal context than standard pretraining typically provides.

Traditional Salient Span Masking (SSM) focuses on masking named entities (e.g., "Barack Obama") or specific dates (e.g., "1961"). While effective for general knowledge, these strategies do not explicitly teach the model the underlying logic of time. This research addresses this gap by proposing Temporal Span Masking (TSM), which focuses on a broader range of temporal expressions, including durations and sets.

2. Methodology

The core of the approach is an intermediate training phase using the T5-1.1-XXL encoder-decoder architecture. The process involves three primary stages:

2.1 Identification

Rather than relying on simple regular expressions, the authors utilize SUTIME, a rule-based temporal parser. This allows for the categorization of temporal expressions into four distinct types:

  • Time: Specific points (e.g., "next Monday").
  • Duration: Length of time (e.g., "3 days").
  • Set: Periodic events (e.g., "every 4 years").
  • Date: Calendar dates (e.g., "January 1").

2.2 Masking and Training

The training data is sourced from English Wikipedia. For each example containing a temporal expression, exactly one span is masked. The model is then tasked with reconstructing this span based on the surrounding context. To explore the synergy between factual and temporal knowledge, the researchers also evaluated a hybrid ENTITIES+TSM approach, combining traditional entity masking with temporal masking.

3. Evaluation Framework

The models were evaluated across four diverse benchmarks:

  • MC-TACO: Focuses on temporal commonsense (e.g., assessing the plausibility of an event's duration).
  • TimeDIAL: A multi-turn dialogue dataset requiring temporal reasoning within conversation.
  • SituatedQA: Questions where the correct answer is dependent on the temporal or geographic context.
  • Natural Questions (NQ): A general-purpose QA benchmark used to monitor for catastrophic forgetting of general knowledge.

4. Results and Discussion

The experimental results demonstrate that TSM significantly enhances a model's temporal awareness.

4.1 State-of-the-Art Performance

The hybrid ENTITIES+TSM model achieved an overall score of 59.09, a substantial improvement over the previous best-reported average of 52.74. The gains were particularly pronounced in the SituatedQA and MC-TACO datasets, highlighting the model's improved ability to handle context-dependent and commonsense temporal queries.

4.2 The Relationship Between Entities and Time

An intriguing finding of the study is that standard SSM already provides a 5.8-point boost to temporal tasks. Analysis revealed that 45% of sentences containing named entities also contain temporal expressions. This suggests that models trained on entities inadvertently learn some temporal context, but TSM provides the explicit supervision needed to master more complex concepts like durations and frequencies.

4.3 Generalization and Zero-Shot Capabilities

TSM showed strong performance in zero-shot settings, indicating that the model develops a robust internal representation of time that generalizes beyond the specific training examples. Furthermore, the specialization in temporal reasoning did not degrade performance on general QA tasks; the ENTITIES+TSM model slightly outperformed the standard SSM model on Natural Questions.

5. Conclusion and Future Work

Temporal Span Masking provides a targeted and effective method for improving the temporal reasoning capabilities of language models. By moving beyond simple date masking to include durations and sets, TSM allows models to capture the logic of time more effectively.

Future research directions include testing TSM on decoder-only architectures, implementing more advanced masking strategies like PMI-masking to prevent reliance on local linguistic cues, and extending evaluation to complex narrative or causal reasoning datasets.

Summary updated

BibTeX
@inproceedings{cole2023salient,
  author = {Jeremy R. Cole and Aditi Chaudhary and Bhuwan Dhingra and Partha Talukdar},
  title = {{Salient Span Masking for Temporal Understanding}},
  booktitle = {EACL},
  year = {2023},
  doi = {10.18653/v1/2023.eacl-main.222},
}
Figure