Abstract
In this study, we explore an emerging research area of Continual Learning for Temporal Sensitive Question Answering (CLTSQA). Previous research has primarily focused on Temporal Sensitive Question Answering (TSQA), often overlooking the unpredictable nature of future events. In real-world applications, it's crucial for models to continually acquire knowledge over time, rather than relying on a static, complete dataset. Our paper investigates strategies that enable models to adapt to the ever-evolving information landscape, thereby addressing the challenges inherent in CLTSQA. To support our research, we first create a novel dataset, divided into five subsets, designed specifically for various stages of continual learning. We then propose a training framework for CLTSQA that integrates temporal memory replay and temporal contrastive learning. Our experimental results highlight two significant insights: First, the CLTSQA task introduces unique challenges for existing models. Second, our proposed framework effectively navigates these challenges, resulting in improved performance.
Introduction
Traditional Question Answering (QA) models are typically evaluated on their ability to reason over static datasets. However, in the real world, knowledge is fluid. A question like "Who is the President of the United States?" requires a different answer depending on whether the temporal context is 2006 or 2024. While Temporal-Sensitive Question Answering (TSQA) has addressed how models handle dates, it often assumes the model has access to all data at once.
This paper introduces a more realistic and challenging paradigm: Continual Learning for Temporal-Sensitive Question Answering (CLTSQA). In this scenario, models must ingest new information over time without losing the ability to answer questions about the past—a phenomenon known as preventing "catastrophic forgetting."
The Challenges of CLTSQA
Transitioning from static QA to CLTSQA introduces two primary hurdles:
- Catastrophic Forgetting: As a model learns new facts (e.g., a player moving to a new sports team), it often overwrites its internal representations of previous facts, losing historical accuracy.
- Temporal Sensitivity: Models must become highly sensitive to specific dates within a query. Without this, they tend to default to the most frequent or most recent answer they have encountered, regardless of the year mentioned in the question.
The CLTSQA-Data Benchmark
To facilitate research in this area, the authors developed CLTSQA-Data, a benchmark built upon the TimeQA dataset. It consists of 50,000 questions and 5,000 contexts extracted from WikiData. To simulate the passage of time, the data is partitioned into five chronological subsets:
- Stage 1: 1900–1939
- Stage 2: 1940–1976
- Stage 3: 1977–1998
- Stage 4: 1999–2009
- Stage 5: 2010–Present
This structure requires models to learn sequentially, testing their ability to maintain a "timeline" of knowledge as they progress through the stages.
The Proposed Framework
The authors propose a model-agnostic framework designed to enhance temporal awareness and memory retention. The framework utilizes two core strategies:
1. Temporal Memory Replay (TMR)
To combat forgetting, the model periodically "rehearses" samples from previous time periods. However, the authors introduce a unique twist: they discard "hard samples" (those with the lowest evaluation scores) from the past. This "Hard Sample Paradox" suggests that focusing on stable, easily learnable historical knowledge is more effective than trying to memorize complex outliers that might interfere with new learning. Additionally, TMR uses "distractors"—questions with the same context but different time-based answers—to force the model to attend to dates rather than just keywords.
2. Temporal Contrastive Learning (TCL)
This technique employs a Triplet Margin Loss to refine the model's internal logic. For every question, the framework generates:
- Similar Questions: Different wording, but the same date and answer.
- Contrastive Questions: Same wording, but a different date and answer.
By training the model to keep the representations of similar questions close together while pushing contrastive questions further apart, the model develops a finer-grained understanding of how time impacts factual truth.
Key Insights and Results
The CLTSQA-Framework was tested on architectures like Fusion-in-Decoder (FiD) and BigBird, yielding several significant findings:
- Superior Retention: The framework achieved a 31.16% increase in Exact Match (EM) and a 23.20% increase in F1 score on the earliest subset (1900-1939) after the model had completed all five learning stages. This demonstrates a marked reduction in catastrophic forgetting.
- Improved Adaptability: The framework also improved performance on the most recent data (Stage 5), suggesting that better temporal sensitivity helps the model learn new facts more cleanly without being confused by historical data.
- Ablation Studies: Results confirmed that TMR is the primary driver for preventing forgetting, while TCL is essential for achieving high temporal accuracy.
Conclusion
As AI systems are increasingly deployed in dynamic, real-world environments, the ability to learn continually is essential. The CLTSQA-Framework provides a robust methodology for ensuring that models remain both current and historically accurate. Future work will look toward scaling these techniques to larger language models and exploring more unstructured data sources beyond the templates provided by WikiData.
Summary updated