Introduction
Temporal reasoning—the ability to understand the chronological sequence of events within a text—is a cornerstone of natural language understanding. Traditional methods often rely on exhaustive pairwise labeling of events (e.g., determining if Event A occurred before Event B). However, as documents grow in length, the number of potential pairs increases quadratically, leading to computational inefficiency and logical inconsistencies.
Temporal Dependency Graphs (TDG) have emerged as a more scalable solution by linking events to specific time expressions (TIMEX) or reference events. Despite this progress, existing parsers frequently struggle with long-range dependencies and maintaining global consistency across entire documents. This is particularly problematic in domains like legal contracts, where the precise timing of clauses is critical. To address these challenges, the authors introduce DocTime, a state-of-the-art TDG parser, and the Time-Transformer, an application framework for downstream tasks.
Methodology
The proposed solution is bifurcated into a specialized parser for graph construction and a transformer-based framework for utilizing those graphs.
The DocTime Parser
DocTime utilizes a multi-layered approach to document representation, incorporating three distinct graph types: structural (document hierarchy), syntactic (grammatical dependencies), and semantic (complex roles via Hypergraph Convolutions). These features are processed through a Graph U-net architecture, which employs pooling and unpooling layers to capture high-level, long-range dependencies before refining specific predictions.
A primary innovation of DocTime is the Path Reconstruction Loss. Rather than evaluating isolated links, the model is trained to identify the shortest dependency path between nodes. This constraint forces the model to maintain global logical consistency, preventing the "hallucination" of contradictory temporal links.
Time-Transformer and TISA
To demonstrate the utility of these temporal graphs, the authors developed the Time-Transformer. This framework injects the parsed temporal structure directly into the self-attention layers of pre-trained models like BERT or RoBERTa. It utilizes Temporally-informed Self-Attention (TISA) and hyperbolic feed-forward layers to represent chronological distances. The researchers found that hyperbolic space is superior for modeling the branching, hierarchical temporal structures found in long documents, as standard Euclidean geometry tends to distort relationships between distant events.
Experimental Setup and Datasets
The performance of DocTime was evaluated across three major benchmarks:
- TDG Dataset: Comprising 500 Wikinews articles.
- TDT (Temporal Dependency Tree): Based on 183 documents from the classic TimeBank corpus.
- Contract-TDG: A novel dataset introduced in this work, consisting of 100 legal contracts. These documents average over 1,500 words, presenting a significantly greater challenge than the news snippets typically used in temporal reasoning research.
Key Results
DocTime achieved a significant performance boost, outperforming previous BERT-based state-of-the-art models by 4-8% across all tested datasets. Furthermore, integrating these graphs into the Time-Transformer improved performance on downstream tasks, such as Temporal Natural Language Inference (NLI) and Question Answering (QA), by 4-10%.
In evaluations on the "hard" sections of the TimeQA dataset—which require reasoning over long textual distances—the Time-Transformer maintained steady improvements. In contrast, standard long-context models like BigBird often experienced performance degradation in these scenarios, highlighting the value of explicit temporal structural awareness.
Conclusion
DocTime represents a significant advancement in document-level temporal reasoning. By combining graph-based neural architectures with global consistency constraints and hyperbolic attention mechanisms, the framework provides a robust method for mapping chronological flows in complex texts. While the current model relies on external tools for initial event identification, future work will focus on end-to-end temporal event mining and applying these techniques to high-stakes domains such as financial automation and clinical document review.
Summary updated