[Paper Review] Lifelong Language Knowledge Distillation
This paper proposes Lifelong Language Knowledge Distillation (L2KD), a method that enhances lifelong language learning (LLL) by training a task-specific teacher model to distill knowledge into the main LLL model during each new task's training. By applying knowledge distillation with a disposable teacher per task, L2KD reduces catastrophic forgetting and achieves performance within 2%-3% of multi-task learning baselines across sequence generation and text classification tasks, with minimal memory overhead.
It is challenging to perform lifelong language learning (LLL) on a stream of different tasks without any performance degradation comparing to the multi-task counterparts. To address this issue, we present Lifelong Language Knowledge Distillation (L2KD), a simple but efficient method that can be easily applied to existing LLL architectures in order to mitigate the degradation. Specifically, when the LLL model is trained on a new task, we assign a teacher model to first learn the new task, and pass the knowledge to the LLL model via knowledge distillation. Therefore, the LLL model can better adapt to the new task while keeping the previously learned knowledge. Experiments show that the proposed L2KD consistently improves previous state-of-the-art models, and the degradation comparing to multi-task models in LLL tasks is well mitigated for both sequence generation and text classification tasks.
Motivation & Objective
- To address catastrophic forgetting in lifelong language learning (LLL) when sequentially learning diverse NLP tasks.
- To improve upon existing LLL methods like LAMOL by reducing performance degradation compared to multi-task learning.
- To develop a memory-efficient method that does not require storing previous models or increasing model capacity.
- To explore knowledge distillation in LLL using a new, task-specific teacher model per incoming task.
- To evaluate the effectiveness of different distillation strategies (word-level and sequence-level) in preserving knowledge across tasks.
Proposed method
- A new task-specific teacher model is trained from scratch on each incoming task to serve as a knowledge source.
- The main LLL model (student) performs knowledge distillation by mimicking the teacher's predictions during training.
- Knowledge distillation is applied using both word-level (cross-entropy loss between soft labels) and sequence-level (perplexity-based) objectives.
- The teacher model is discarded after distillation, requiring no persistent storage or additional model capacity.
- The method is integrated into the LAMOL framework, which unifies NLP tasks into a question-answering and language modeling format.
- Distillation is applied during both the QA and language modeling training phases to improve generalization and retention.
Experimental results
Research questions
- RQ1Can knowledge distillation from a new, task-specific teacher model reduce catastrophic forgetting in lifelong language learning?
- RQ2How does L2KD compare to multi-task learning and prior LLL methods in terms of performance and forgetting mitigation?
- RQ3Which distillation strategy—word-level or sequence-level—yields the best performance and generalization in LLL?
- RQ4Does the LLL model fully copy the teacher’s behavior, or does it retain transferability to unseen examples?
- RQ5Can L2KD be applied efficiently without increasing memory or model capacity?
Key findings
- L2KD consistently improves performance across all evaluated settings, reducing the gap to multi-task learning by up to 2%-3%.
- On sequence generation tasks, L2KD with word-level distillation achieved 99.2% accuracy on the Yelp dataset, outperforming the base LAMOL model.
- For text classification, L2KD with word-level distillation improved accuracy from 75.48% (LAMOL) to 77.11%, with significant gains on correctly answered teacher examples (group A).
- The LLL model did not fully copy the teacher’s behavior, as performance on incorrectly answered teacher examples (group B) remained stable or slightly improved, indicating robust knowledge integration.
- Sequence-level distillation (Seq-KD) showed comparable results to word-level distillation, with soft-label sequence distillation achieving 76.8% accuracy on the TC benchmark.
- The method requires only minimal additional training time for the teacher model and no extra memory, making it practical for real-world deployment.
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.