Abstract
Temporal tagging—the identification and normalization of time-related phrases—is a critical component of natural language understanding. While extraction has benefited from deep learning, normalization has historically relied on brittle, language-specific rule-based systems. We present a novel neural-network-based approach that leverages Masked Language Modeling (MLM) to predict "slots" in a standardized temporal format. Our method enables multilingual normalization across dozens of languages, outperforming traditional rule-based systems by up to 33 F1 points in low-resource settings.
Introduction
Temporal tagging consists of two primary tasks: Extraction, identifying phrases like "last Tuesday" or "May," and Normalization, converting these phrases into machine-readable formats such as 2023-10-27. While modern sequence taggers excel at extraction, normalization remains dominated by rule-based systems like HeidelTime. These systems require extensive manual engineering for every new language, creating a "rule-based bottleneck" that leaves many languages underserved.
This research aims to replace manual rules with a single, multilingual neural model capable of learning temporal logic from context.
Methodology: The Slot-Based MLM Approach
The proposed system follows a three-step pipeline to transform raw text into precise temporal values.
- Extraction: A standard sequence tagger identifies temporal expressions (TEs) within the text.
- Normalization to Context-Independent Representation (CIR): Instead of direct date prediction, the model generates a CIR. For instance, "May" is represented as
UNDEF-year-05. This abstracts away the complexity of relative dates. - Anchoring: The final step uses document creation time and basic logic to resolve the CIR into a specific date (e.g.,
2022-05).
The MLM "Slot" Trick
To handle the vast space of possible dates, the authors treat normalization as a "fill-in-the-blanks" task. They define 11 slots representing components like year, month, and day. By masking these slots in a <TIMEX3> tag, the model learns to predict values based on the surrounding context. Training is enhanced via Curriculum Learning, where the model starts by predicting a single masked slot and gradually progresses to predicting all 11 slots simultaneously.
Evaluation and Results
The model was trained using weakly-supervised data from Wikipedia and GlobalVoices across 87 languages and evaluated on gold-standard corpora in 17 languages.
Key Findings
- Low-Resource Breakthrough: In languages with weak or non-existent rule sets (e.g., Greek, Ukrainian), the neural model improved normalization performance by an average of 33 F1 points over state-of-the-art baselines.
- The Multilingual Advantage: A single model trained on multiple languages outperformed monolingual counterparts, suggesting that the model learns a universal "logic of time" that transfers across linguistic boundaries.
- Competitive High-Resource Performance: In languages like English and German, the neural approach performed nearly as well as hand-crafted rules developed over decades.
- Ablation Insights: The slot-based representation was found to be critical; standard tokenization led to "hallucinations" and incorrect date formats.
Discussion and Future Work
By using CIRs as a "universal language" for time, this approach bypasses the need for complex relative-time logic during the neural phase. However, limitations remain. The current study focuses primarily on Indo-European languages, and the zero-shot transfer to diverse language families like Basque or Vietnamese requires further investigation. Additionally, while rule-based systems are computationally light, this neural approach requires GPU resources for inference. Future work may explore joint modeling of extraction and normalization to further reduce error propagation.
Summary updated