[Paper Review] LFPT5: A Unified Framework for Lifelong Few-shot Language Learning Based on Prompt Tuning of T5
LFPT5 freezes a pre-trained T5 model and uses tunable prompt embeddings to solve lifelong few-shot NLP tasks across domains and task types, while generating pseudo samples and enforcing label consistency to mitigate forgetting; it achieves strong results across NER, classification, and summarization.
Existing approaches to lifelong language learning rely on plenty of labeled data for learning a new task, which is hard to obtain in most real scenarios. Considering that humans can continually learn new tasks from a handful of examples, we expect the models also to be able to generalize well on new few-shot tasks without forgetting the previous ones. In this work, we define this more challenging yet practical problem as Lifelong Few-shot Language Learning (LFLL) and propose a unified framework for it based on prompt tuning of T5. Our framework called LFPT5 takes full advantage of PT's strong few-shot learning ability, and simultaneously trains the model as a task solver and a data generator. Before learning a new domain of the same task type, LFPT5 generates pseudo (labeled) samples of previously learned domains, and later gets trained on those samples to alleviate forgetting of previous knowledge as it learns the new domain. In addition, a KL divergence loss is minimized to achieve label consistency between the previous and the current model. While adapting to a new task type, LFPT5 includes and tunes additional prompt embeddings for the new task. With extensive experiments, we demonstrate that LFPT5 can be applied to various different types of tasks and significantly outperform previous methods in different LFLL settings.
Motivation & Objective
- Define Lifelong Few-shot Language Learning (LFLL) as a practical, challenging setting combining domain (same task) and task-type (different tasks) variations.
- Propose LFPT5, a unified framework that uses prompt tuning of a frozen T5 backbone to act as both task solver and data generator.
- Mitigate catastrophic forgetting by replaying pseudo samples of previously learned domains and enforcing label consistency with KL divergence.
- Demonstrate LFPT5’s effectiveness across sequence labeling, text classification, and text generation in few-shot regimes.
- Open-source the LFPT5 codebase for reproducibility and broader use.
Proposed method
- Reframe all tasks into a text-to-text format using T5 as the frozen backbone.
- Employ prompt embeddings P that are learned per task or domain to adapt to new tasks while keeping T5 frozen.
- For learning new domains, generate pseudo labeled samples from previous domains and train on their combination with new-domain data to reduce forgetting.
- Minimize a KL divergence loss between previous and current model outputs to ensure label consistency on pseudo samples.
- When adapting to a new task type, add and train a new set of prompt embeddings for the new task while freezing previous ones, enabling dynamic expansion of task prompts.
- Use a TASK loss (Y given X) and a LM loss on generated pseudo samples, combined as L_phi = L_phi^{task} + lambda_lm * L_phi^{lm}, with KL regularization lambda_kl * L_phi^{KL}.
Experimental results
Research questions
- RQ1Can LFPT5 generalize to new few-shot tasks across both the same-domain domain shifts and across different task types without catastrophic forgetting?
- RQ2Do pseudo-sample generation and label-consistency KL divergence significantly improve retention of previous knowledge in LFLL?
- RQ3How does LFPT5 perform across NER, text classification, and text generation in few-shot settings compared to strong baselines?
- RQ4What is the impact of forward knowledge transfer between task types on learning new tasks within LFLL?
Key findings
- LFPT5 significantly outperforms prior lifelong learning baselines across NER, classification, and summarization in few-shot settings.
- Prompt tuning with LFPT5 achieves strong few-shot results and mitigates forgetting better than regularization-based baselines like EWC and MAS.
- Generating pseudo samples and applying a KL divergence label-consistency loss substantially improves retention of previously learned knowledge during domain expansion.
- LFPT5’s per-task prompt entries require only about 0.04% of T5’s parameters when learning a new task type, highlighting parameter efficiency.
- LFPT5 variants with forward knowledge transfer can help or hinder learning depending on task order, but overall LFPT5 outperforms competing methods in learning multiple task types.
- LFPT5’s pseudo data quality is high enough to support memory-like replay, though generated labels can be incorrect, suggesting room for improving pseudo-sample reliability.
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.