Temporal Relation Classification using Boolean Question Answering

Omer Cohen, Kfir BarACL 2023

Abstract

Temporal Relation Classification (TRC) involves determining the chronological order of events in text. While traditionally treated as a multi-class classification problem, this task remains challenging due to the deep logical reasoning required. This paper introduces a method that reframes TRC as a Boolean Question Answering (QA) task, mimicking the binary decision process of human annotators. By decomposing complex temporal relations into simple Yes/No questions, the proposed approach achieves new state-of-the-art results on the MATRES and TB-Dense benchmarks.

Introduction

Understanding the temporal flow of events is a fundamental component of natural language understanding. For instance, in the sentence "Before you put the cake in the oven, say a little prayer," a system must recognize that "say" occurs before "put" despite their textual order. Standard approaches treat this as a 4-way classification task (BEFORE, AFTER, EQUAL, VAGUE). However, even advanced Large Language Models (LLMs) often struggle with the nuanced reasoning required for these labels.

Methodology: Mimicking the Annotator

The core innovation of this research lies in aligning the model's reasoning path with the human annotation process. In datasets like MATRES, annotators arrive at labels by answering binary questions about the relative start times of events.

The researchers transformed each TRC instance into a pair of Boolean QA tasks. A RoBERTa model is fine-tuned to answer questions such as: "Is it possible that event A started before event B?" The final temporal label is then derived from the combination of these binary answers. For example, a (Yes, No) response pair maps to BEFORE, while (No, Yes) maps to AFTER.

Overview of the TRC to Boolean QA conversion process, showing how a document and events are transformed into binary questions.

To handle more complex datasets like TB-Dense, which include labels like INCLUDES and IS-INCLUDED, a third boolean question regarding event end times was introduced. The team also utilized data augmentation (AUG) by introducing character-level noise to improve model robustness against OCR-like errors.

Experimental Results

The Boolean QA approach was evaluated on two primary benchmarks: MATRES (news documents) and TB-Dense (complex temporal relations). The results demonstrate that reducing multi-class classification to binary sub-tasks significantly enhances performance.

On the MATRES dataset, the model achieved a micro-average F1 score of 87.7%, representing a 2.4% improvement over the previous state-of-the-art (RSGT). Similar gains were observed on TB-Dense, where the model reached an F1 of 74.34%.

Performance comparison of the proposed Boolean QA model against baselines and previous state-of-the-art methods on MATRES and TB-Dense.

As shown in the results table, the Boolean QA method consistently outperforms "Standard QA" (where the model picks a label from a list) and simple sentence classification baselines. This confirms that the binary decomposition is a more effective way to "guide" the model through temporal logic.

Discussion and Insights

Several key factors contributed to the success of this approach:

  • Prompt Engineering: The specific phrasing of the boolean question matters. The template "Is it possible that <EVENT1> started before <EVENT2>?" proved most effective.
  • Robustness through Noise: Introducing 30% character-level noise during training provided a ~1% F1 boost, suggesting that temporal reasoning benefits from training regimes that discourage over-reliance on exact surface patterns.
  • Logical Alignment: By forcing the model to answer the same questions as humans, the task becomes more interpretable and logically grounded.

Conclusion

Reframing Temporal Relation Classification as a Boolean QA task provides a simpler and more effective path to high-accuracy temporal reasoning. While the multi-pass nature of this approach increases inference time compared to single-pass classifiers, the significant accuracy gains suggest it is a powerful strategy for complex reasoning tasks. Future work may explore distilling this binary logic into more efficient architectures.

Summary updated

BibTeX
@inproceedings{cohen2023temporal,
  author = {Omer Cohen and Kfir Bar},
  title = {{Temporal Relation Classification using Boolean Question Answering}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.116},
}
Figure