Domain Incremental Lifelong Learning in an Open World

Yi Dai, Hao Lang, Yinhe Zheng, Bowen Yu, Fei Huang +1 more
5/11/2023
cs.CLcs.AIcs.LG

Official code: AlibabaResearch/DAMO-ConvAI (1,602 stars, MIT, last commit 2026-01-22).

Abstract

Lifelong learning (LL) is an important ability for NLP models to learn new tasks continuously. Architecture-based approaches are reported to be effective implementations for LL models. However, it is non-trivial to extend previous approaches to domain incremental LL scenarios since they either require access to task identities in the testing phase or cannot handle samples from unseen tasks. In this paper, we propose \textbf{Diana}: a \underline{d}ynam\underline{i}c \underline{a}rchitecture-based lifelo\underline{n}g le\underline{a}rning model that tries to learn a sequence of tasks with a prompt-enhanced language model. Four types of hierarchically organized prompts are used in Diana to capture 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 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 LL models, especially in handling unseen tasks. We release the code and data at \url{https://github.com/AlibabaResearch/DAMO-ConvAI/tree/main/diana}.

View on arXivView PDF

Code Implementations(1)

MIT

DAMO-ConvAI: The official repository which contains the codebase for Alibaba DAMO Conversational AI.

1,602252CSS, MDXJul 15, 20229 months agoMIT
conversational-aideep-learningdialognatural-language-processing

Similar Papers

Cite this paper

@article{dai2023domain,
  title  = {Domain Incremental Lifelong Learning in an Open World},
  author = {Yi Dai and Hao Lang and Yinhe Zheng and Bowen Yu and Fei Huang and Yongbin Li},
  year   = {2023},
  eprint = {2305.06555},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.06555v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.06555.svg)](https://codeofpaper.com/paper/2305.06555)

Discussion