Abstract
Extracting temporal relations (e.g., before, after, and simultaneous) among events is crucial to natural language understanding. One of the key challenges of this problem is that when the events of interest are far away in text, the context in-between often becomes complicated, making it challenging to resolve the temporal relationship between them. This paper thus proposes a new Syntax-guided Graph Transformer network (SGT) to mitigate this issue, by (1) explicitly exploiting the connection between two events based on their dependency parsing trees, and (2) automatically locating temporal cues between two events via a novel syntax-guided attention mechanism. Experiments on two benchmark datasets, MATRES and TB-DENSE, show that our approach significantly outperforms previous state-of-the-art methods on both end-to-end temporal relation extraction and temporal relation classification with up to 7.9% absolute F-score gain; This improvement also proves to be robust on the contrast set of MATRES.
Introduction
Understanding the chronological order of events—determining if event A happened before, after, or simultaneously with event B—is a cornerstone of natural language understanding. It is essential for downstream tasks such as document summarization and dialogue systems. However, Temporal Relation Extraction (TRE) remains notoriously difficult, particularly when events are separated by significant textual distance.
In complex sentences, "temporal cues"—words or structures like "after," "while," or specific verb tenses—can be buried under layers of irrelevant information. While large language models like BERT capture general context well, they often struggle to pinpoint the specific syntactic "bridge" linking two distant events. Research indicates that over 50% of these temporal cues reside directly in the syntactic connection between events, a resource underutilized by standard sequence-based models.
Methodology: The Syntax-guided Graph Transformer (SGT)
To address these challenges, the researchers propose the Syntax-guided Graph Transformer (SGT). Unlike models that treat text as a simple sequence, SGT leverages the structural properties of language through a multi-step process.
Graph Construction and Encoding
The model first constructs a dependency tree for the input sentences. To handle events spanning adjacent sentences, a "cross-sentence" edge is created between the roots of the respective trees, maintaining a continuous path between any two events in the window.
Dual Attention Mechanism
The core of SGT is its specialized encoder stack, which employs a dual attention mechanism to capture both local and global syntactic information:
- Graph Multi-Head Attention: This allows each node (word) to attend to its immediate neighbors in the dependency graph, capturing local syntactic context.
- Syntax-guided Attention: This novel mechanism uses the combined representation of the two target events as a query to scan the dependency path between them. It effectively filters out noise and highlights critical temporal cues relevant to that specific event pair.
Fusion and Prediction
The representations from both attention mechanisms are fused. The final event representations are concatenated and passed through a linear classifier to predict the temporal relation (e.g., Before, After, Simultaneous).
Experimental Evaluation
The SGT model was evaluated on two primary benchmarks: MATRES (focusing on verb-based events) and TB-DENSE (featuring dense event pair annotations). Additionally, a MATRES Contrast Set—containing manually perturbed sentences where a single word change flips the temporal order—was used to test the model's robustness and true linguistic understanding.
Key Results
SGT established new state-of-the-art records across all tested metrics:
- Performance Gains: On the MATRES dataset, SGT achieved a 7.9% absolute F1-score improvement in joint event and relation extraction over previous best methods.
- Efficiency: SGT with a standard BERT-Base backbone outperformed several models using the much larger RoBERTa-Large, demonstrating that architectural innovation can be more impactful than raw parameter count.
- Robustness: On the MATRES contrast set, SGT achieved a consistency score of 49.8%, significantly higher than the previous best of 40.6%, indicating it is less likely to be "fooled" by small changes in phrasing.
Discussion and Insights
The primary insight of this work is that the dependency path is the key to resolving temporal ambiguity. By focusing on structural links like prepositional phrases or subordinate clauses, the model ignores "fluff" and mimics linguistic analysis. Furthermore, the "pair-aware" nature of the syntax-guided attention ensures that the model finds cues specifically relevant to the events in question, rather than relying on generic word patterns or memorization.
Limitations and Future Work
Despite its success, several challenges remain. Approximately 54% of remaining errors occur in extremely ambiguous or complex contexts where even human annotators might struggle. The model also continues to struggle with the "Simultaneous" relation due to its rarity in training data (only ~1.5% to 3.7% of labels). Currently, the model is limited to events in the same or adjacent sentences; scaling to document-level extraction remains a significant future goal. Finally, the authors suggest this syntax-guided approach could be adapted for other relation extraction tasks, such as causal or coreference relations.
Summary updated