[Paper Review] Continuous QA Learning with Structured Prompts
Diana is a dynamic architecture-based lifelong question-answering model that uses four hierarchically organized prompts—General, Format, Task, and Meta—to capture knowledge at multiple granularities. By combining task-level and instance-level components with learnable key vectors for knowledge sharing, Diana achieves state-of-the-art performance, especially in generalizing to unseen tasks, outperforming prior methods by up to 42.12% on unseen task benchmarks.
QA models with lifelong learning (LL) abilities are important for practical QA applications, and architecture-based LL methods are reported to be an effective implementation for these models. However, it is non-trivial to extend previous approaches to QA tasks since they either require access to task identities in the testing phase or do not explicitly model samples from unseen tasks. In this paper, we propose Diana: a dynamic architecture-based lifelong QA model that tries to learn a sequence of QA tasks with a prompt enhanced language model. Four types of hierarchically organized prompts are used in Diana to capture QA knowledge from different granularities. Specifically, we dedicate task-level prompts to capture task-specific knowledge to retain high LL performances and maintain instance-level prompts to learn knowledge shared across different input samples to improve the model's generalization performance. Moreover, we dedicate separate prompts to explicitly model unseen tasks and introduce a set of prompt key vectors to facilitate knowledge sharing between tasks. Extensive experiments demonstrate that Diana outperforms state-of-the-art lifelong QA models, especially in handling unseen tasks.
Motivation & Objective
- Address the limitations of existing lifelong learning (LL) models in QA, which either require task identity at inference or fail to generalize to unseen tasks.
- Overcome catastrophic forgetting in sequential QA task learning without retraining.
- Enable effective knowledge transfer and generalization to unseen QA tasks by combining task-specific and instance-specific modeling.
- Design a prompt-based architecture that dynamically integrates knowledge across tasks using key vectors and hierarchical prompt organization.
Proposed method
- Convert all QA tasks into a unified sequence generation format using prompt-enhanced pre-trained language models (PLMs).
- Introduce four hierarchical prompt types: General (shared across all tasks), Format (shared within QA format groups), Task (dedicated per task), and Meta (a dynamic pool for instance-level adaptation).
- Use a set of learnable prompt key vectors to dynamically combine meta prompts during inference, enabling adaptive routing of input samples.
- Incorporate distance-based regularization and diversity constraints (e.g., ADB) to ensure meta prompt keys balance locality and coverage in the embedding space.
- Allocate separate task prompts for unseen tasks and use key vectors to facilitate cross-task knowledge sharing.
- Apply scheduled sampling and negative sampling strategies to improve prompt learning and identity detection performance.
Experimental results
Research questions
- RQ1Can a lifelong QA model generalize effectively to unseen tasks without requiring task identity at inference time?
- RQ2How does hierarchical prompt organization at multiple granularities affect knowledge retention and generalization in lifelong QA?
- RQ3To what extent do dynamically combined meta prompts with regularized key vectors improve performance on both seen and unseen tasks?
- RQ4How does the integration of dedicated components for unseen tasks impact model robustness and generalization?
- RQ5What is the contribution of key vector diversity and locality to the model’s ability to detect and adapt to new task identities?
Key findings
- Diana achieves a test accuracy of 55.93% on unseen tasks, significantly outperforming the next-best baseline (54.16%) in the ablation study.
- The ablation study confirms that removing the meta prompt component causes the largest performance drop, indicating its critical role in lifelong learning.
- The use of ADB (Adversarial Diversity Regularization) improves performance on unseen tasks ($A_{N'}$) by a large margin, demonstrating its effectiveness in enhancing generalization.
- The model’s task identity detection accuracy reaches 66.97%, surpassing baseline detectors (59.84% to 63.43%), validating the effectiveness of learned prompt key vectors.
- Quantitative analysis shows that the meta prompt key distribution achieves high diversity (1.00 at Z=2) and strong locality (0.74 at Z=2), indicating balanced coverage and clustering in the embedding space.
- The scheduled sampling strategy improves task prompt learning, contributing to better overall lifelong performance, especially on seen tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.