Formulation Comparison for Timeline Construction using LLMs

Kimihiro Hasegawa, Nikhil Kandukuri, Susan Holm, Yukari Yamakawa, Teruko MitamuraarXiv 2024

Abstract

Constructing a timeline requires identifying the chronological order of events in an article. In prior timeline construction datasets, temporal orders are typically annotated by either event-to-time anchoring or event-to-event pairwise ordering, both of which suffer from missing temporal information. To mitigate the issue, we develop a new evaluation dataset, TimeSET, consisting of single-document timelines with document-level order annotation. TimeSET features saliency-based event selection and partial ordering, which enable a practical annotation workload. Aiming to build better automatic timeline construction systems, we propose a novel evaluation framework to compare multiple task formulations with TimeSET by prompting open LLMs, i.e., Llama 2 and Flan-T5. Considering that identifying temporal orders of events is a core subtask in timeline construction, we further benchmark open LLMs on existing event temporal ordering datasets to gain a robust understanding of their capabilities. Our experiments show that (1) NLI formulation with Flan-T5 demonstrates a strong performance among others, while (2) timeline construction and event temporal ordering are still challenging tasks for few-shot LLMs.

Introduction

Extracting a chronological timeline from a news article is a complex task. Events are frequently presented out of order for narrative effect (e.g., "The athlete was banned after testing positive"). Traditionally, researchers have relied on two primary methods: time-anchoring, which links events to specific dates, and pairwise ordering, which compares every event to every other event.

However, both methods have significant drawbacks. Time-anchoring can be too coarse—multiple events might occur on the same day without their relative order being specified. Pairwise ordering, while precise, becomes prohibitively expensive to annotate as the number of events increases. As Large Language Models (LLMs) become the standard tool for natural language tasks, determining the most effective way to prompt them for timeline construction is crucial.

Task Formulations

The researchers propose a novel evaluation framework that recasts timeline construction into four distinct task formulations to determine which approach best leverages LLM capabilities:

  1. NLI (Natural Language Inference): The model treats the text as a premise and a proposed temporal relation (e.g., "Event A happened after Event B") as a hypothesis, labeling it as "Positive" (Entailment) or "Negative".
  2. Pairwise: The model is directly asked to identify the relationship between two events (e.g., Before, After, or Coexistent).
  3. MRC (Machine Reading Comprehension): A question-answering format, such as "Which events happened after Event X?"
  4. Timeline: The model is prompted to generate the entire chronological sequence in a single output.
Overview of the four task formulations for timeline construction: NLI, Pairwise, MRC, and Timeline.

These formulations were tested using two major model families: the decoder-only Llama 2 and the encoder-decoder Flan-T5.

The TimeSET Dataset

To evaluate these methods, the authors introduced TimeSET (Timeline for Salient EvenTs), a dataset comprising 50 Wikinews articles. TimeSET differentiates itself by focusing on salient events—the core events central to the story—and utilizing partial ordering to maintain a manageable annotation workload while capturing essential temporal flow.

The study also benchmarked models on existing datasets including MATRES (local pairwise), TDDiscourse (document-level relations), TemporalNLI (NLI-based reasoning), and TORQUE (reading comprehension).

Results and Discussion

The experiments revealed a "Prompting Paradox": a model's performance varies drastically based on how the task is formulated.

Performance comparison (F1 score) of different LLMs across the four task formulations on the TimeSET dataset.

Key Findings:

  • NLI as the Optimal Formulation: Breaking the timeline into binary logic checks (NLI) consistently yielded the best results. This likely stems from the extensive NLI-based multi-task training many LLMs undergo.
  • Flan-T5 Superiority: Despite being smaller in parameter count, the Flan-T5 (3B) model outperformed larger Llama 2 models in the NLI setup, achieving a median F1 score of approximately 0.6. This suggests that encoder-decoder architectures may have inherent advantages for these types of reasoning tasks.
  • LLMs vs. Specialized Models: Few-shot LLMs, including Llama 2 (70B), generally underperformed compared to smaller, specialized fine-tuned models like DeBERTa-v3 (440M). This indicates that temporal ordering remains a significant challenge for general-purpose LLMs without specific fine-tuning.
  • Efficiency vs. Accuracy: While the direct "Timeline" generation is computationally efficient (requiring only one prompt), it is significantly less reliable than the NLI approach, which requires $O(n^2)$ prompts to compare all event pairs.

Conclusion

While NLI with Flan-T5 shows promise, timeline construction remains a difficult task for few-shot LLMs. Performance tends to degrade as document length and event count increase. Future work should address current limitations, such as the focus on English news and the exclusion of coreference and subevent relations. Combining the accuracy of NLI with the efficiency of direct generation remains a key area for future exploration.

Summary updated

BibTeX
@misc{hasegawa2024formulation,
  author = {Kimihiro Hasegawa and Nikhil Kandukuri and Susan Holm and Yukari Yamakawa and Teruko Mitamura},
  title = {{Formulation Comparison for Timeline Construction using LLMs}},
  year = {2024},
  eprint = {2403.00990},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.00990},
}
Figure