Abstract
Traditional Question Answering (QA) models rely on static, human-labeled datasets, leading to issues with stale knowledge and domain shift. We present Test-Time Learning (TTL), a self-supervised approach where models learn to answer questions about a specific text passage at inference time by generating and training on synthetic question-answer pairs. Our method significantly outperforms previous unsupervised techniques, achieving an 80.4% F1 score on SQuAD 1.1 and showing strong performance even with minimal human-labeled data.
Introduction
Question Answering (QA) systems often struggle when faced with information outside their training distribution. Models trained on Wikipedia may fail on medical or news texts (domain shift) or provide outdated answers based on memorized training data (stale knowledge). Furthermore, the high cost of creating human-labeled (context, question, answer) triplets limits the scalability of supervised approaches. To address these challenges, we propose a "distribution-blind" approach that enables models to adapt to any specific passage at the moment of inquiry.
Methodology: Test-Time Learning (TTL)
The core of our approach is Test-Time Learning (TTL). Instead of a standard forward pass, the model undergoes a localized fine-tuning process for each new context passage.
The process involves three main steps:
- Synthetic QA Generation: Using automated techniques such as Semantic Role Labeling (QA-SRL) and dependency parsing, the system generates a "practice test" of synthetic QA pairs derived directly from the input passage.
- Self-Supervised Training: The base model (e.g., BERT-Large) is fine-tuned on these synthetic pairs to adapt its parameters to the specific linguistic and factual nuances of the context.
- Inference: The "warmed-up" model then predicts the answer span for the actual user question.
Variations include Single-Context learning, K-neighbor retrieval (using similar passages for diversity), and Online TTL, which continuously updates weights to retain meta-knowledge across a stream of questions.
Key Results
Our evaluation on SQuAD 1.1 and NewsQA benchmarks demonstrates that TTL provides a substantial performance boost over existing unsupervised methods.
Key findings include:
- State-of-the-Art Unsupervised Performance: On SQuAD 1.1, BERT-Large with TTL achieved an 80.4% F1 score, surpassing the previous best unsupervised result of 72.6%.
- Robustness Across Domains: TTL improved NewsQA performance by 6.9% F1, proving its effectiveness on more challenging news-based contexts.
- Efficiency in Data-Scarce Scenarios: With only 100 human-labeled examples, the TTL-Online model reached an 81.6% F1 score on SQuAD, highlighting its potential as a "warm-start" mechanism.
- Model Scalability: Even smaller models like DistilBERT became competitive with much larger unsupervised baselines when using the TTL framework.
Discussion and Limitations
While TTL offers significant accuracy gains, it introduces a "time tax" due to the per-context training phase. Inference for BERT-Large can take several minutes, though optimizations like RAM-based storage can mitigate this. Additionally, current synthetic generators favor named entities, making abstract "why" or "how" questions more difficult for the model. Future work will focus on generating more complex "hard negative" practice questions and improving inference speed.
Summary updated