Abstract
End-to-end models in NLP rarely encode external world knowledge about length of time. We introduce two effective models for duration prediction, which incorporate external knowledge by reading temporal-related news sentences (time-aware pre-training). Specifically, one model predicts the range/unit where the duration value falls in (R-pred); and the other predicts the exact duration value E-pred. Our best model -- E-pred, substantially outperforms previous work, and captures duration information more accurately than R-pred. We also demonstrate our models are capable of duration prediction in the unsupervised setting, outperforming the baselines.
Introduction
Estimating the duration of events is a fundamental aspect of human common sense. For instance, humans intuitively know that "watching a movie" typically spans hours, while "watching a bird fly" lasts only seconds. However, standard NLP models often lack this "temporal common sense." The difficulty lies in the fact that event duration is highly context-dependent—relying on the entire event composition rather than just the verb—and human-annotated data for these durations is scarce.
Previous attempts to solve this problem often relied on manual feature engineering or simple web-count statistics. These methods struggle to capture the nuanced, contextualized understanding required for complex natural language.
Methodology
To address data scarcity, we propose a framework centered on "time-aware pre-training."
Automated Data Collection
We extracted approximately 287,000 duration-related sentences from a large news corpus (CNN/Daily Mail) using pattern-based rules (e.g., "lasted for," "spent"). These durations were normalized into a common "seconds" space to create a large-scale, automatically labeled dataset.
Model Architecture
We developed two end-to-end models based on BERT:
- R-PRED (Range Predictor): Formulates duration prediction as a classification task, predicting the most likely temporal unit or range.
- E-PRED (Exact Predictor): Formulates the task as a regression problem, predicting exact duration values in log-space.
During inference, we insert a "duration pattern" into the input sentence (e.g., "I watched, lasting [MASK] [MASK], a movie") and use the model to predict the masked tokens.
Experiments
The models were evaluated on two primary benchmarks:
- TimeBank: A classic temporal reasoning dataset containing news articles with annotated event durations, featuring both Coarse-Grained and Fine-Grained tasks.
- McTACO: A challenging multi-choice QA dataset focused on temporal common sense.
Results
Our experiments yielded several key insights into temporal modeling.
Regression vs. Classification
A significant finding is that E-PRED (regression) consistently outperforms R-PRED (classification). Regression allows the model to capture finer nuances; while a classification model might only identify a "minute" unit, the regression model can distinguish between 1 minute and 40 minutes.
Performance Benchmarks
As shown in the table below, E-PRED achieved state-of-the-art results on the TimeBank Fine-Grained test set with 82.52% accuracy, significantly surpassing previous LSTM and Maximum Entropy baselines.
Unsupervised Capabilities
In unsupervised settings—training only on automatically collected news data—E-PRED outperformed a supervised BERT baseline on McTACO by over 10 points in F1 score. This demonstrates that "cheap" labels from web-scale data can effectively substitute for expensive human annotations.
Discussion and Conclusion
While successful, the models face challenges such as "reporting bias," where mundane, short-lived events are rarely documented in text corpora compared to significant, long-lasting news events. Additionally, there is a domain mismatch between the concrete events in news and abstract events in benchmarks like TimeBank.
Future research will focus on expanding data sources beyond news to include more "everyday" text, helping models better grasp the durations of mundane activities and mitigating the effects of reporting bias.
Summary updated