Abstract
TempTabQA is a novel benchmark designed to evaluate the temporal reasoning capabilities of NLP models on semi-structured tables, such as Wikipedia Infoboxes. Despite the advancements in Large Language Models (LLMs), a significant "temporal reasoning gap" remains. Our study shows that even top-tier models like GPT-4 lag behind human performance by over 13.5 F1 points, especially when navigating rare domains or implicit temporal cues.
Introduction: The Challenge of Temporal Reasoning
While Large Language Models (LLMs) have demonstrated remarkable general reasoning abilities, they frequently struggle when facts are anchored to specific time intervals or sequences within a table. For instance, a table might provide a person's birth and retirement dates; a model must then infer the duration of their career or their age during a specific event.
Existing table-based datasets, such as WikiTableQuestions, primarily focus on numerical or lookup tasks, often overlooking the nuances of temporal logic—including concepts like "before," "after," "during," or calculating durations. As factual information is inherently dynamic and often distributed across semi-structured formats, there is a critical need for benchmarks that push models toward better temporal literacy.
The TempTabQA Dataset
The researchers developed the TempTabQA dataset, consisting of 11,454 QA pairs derived from 1,208 Wikipedia Infoboxes across more than 90 domains. The dataset is strategically split into two parts:
- Head Set: Contains common, frequent domains.
- Tail Set: Focuses on rare domains to test out-of-distribution generalization.
This structure allows for a rigorous evaluation of how models handle both familiar and unfamiliar contexts.
Methodology
The creation and evaluation of TempTabQA involved a multi-stage pipeline:
- Curation: Extraction of temporal-rich Wikipedia Infoboxes (dates, years, ages).
- Annotation: Human-in-the-loop collection via Amazon Mechanical Turk, where annotators were tasked with creating "complex" questions requiring at least two temporal reasoning steps.
- Evaluation: Testing a range of models, including fine-tuned versions (BART, T5, Flan-T5) and large-scale LLMs (LLaMA-2, GPT-3.5, GPT-4, PaLM 2). The study also explored Chain-of-Thought (CoT) prompting and Knowledge Graph (+KG) conversions.
Analysis of Temporal Reasoning
A key finding of the study is the difficulty models face with different types of temporal logic.
- Implicit vs. Explicit Reasoning: Approximately 63% of the questions require implicit temporal reasoning (e.g., identifying a "predecessor"). Interestingly, GPT-4 performed slightly better on implicit questions in certain settings, likely due to the prevalence of these terms in its training data.
- The "Tail" Domain Gap: Models show a significant performance drop on the "Tail" set compared to the "Head" set. In contrast, human performance remains consistent across both, indicating that models may be over-relying on domain-specific patterns rather than generalizable temporal logic.
- Arithmetic Bottlenecks: Operations involving time differences or summations (e.g., "How many years elapsed between her first and last medal?") remain the most challenging for current models.
Key Results and Performance Gap
The evaluation revealed a substantial gap between AI and human capabilities:
- Human Baseline: Humans achieved an average F1 score of approximately 87.5.
- Model Performance: GPT-4 with Chain-of-Thought emerged as the top performer but only reached an F1 of 74.3 on the Head set and 67.2 on the Tail set.
- The 13.5 Point Gap: The best-performing models still trail humans by over 13.5 F1 points, highlighting TempTabQA as a challenging frontier for AI.
- Effectiveness of Fine-tuning: Smaller, fine-tuned models like Flan-T5-XL can outperform much larger zero-shot models like GPT-3.5, suggesting that task-specific temporal training is highly beneficial.
Conclusion and Future Work
While TempTabQA provides a robust framework for temporal reasoning, several avenues for future research remain. The current dataset is limited to English Wikipedia; expanding to other languages and diverse table structures (e.g., financial or medical records) is a logical next step. Additionally, investigating "evolving tables"—where information changes over time—and incorporating multimodal contexts (text, tables, and images) could further enhance model robustness in dynamic, real-world scenarios.
Summary updated