Continual Sequence Generation with Adaptive Compositional Modules

Yanzhe Zhang, Xuezhi Wang, Diyi Yang
3/20/2022
58 citations
cs.CLcs.AI

Official code: SALT-NLP/Adaptive-Compositional-Modules (39 stars, Python, MIT, last commit 2022-04-04).

Abstract

Continual learning is essential for real-world deployment when there is a need to quickly adapt the model to new tasks without forgetting knowledge of old tasks. Existing work on continual sequence generation either always reuses existing parameters to learn new tasks, which is vulnerable to catastrophic forgetting on dissimilar tasks, or blindly adds new parameters for every new task, which could prevent knowledge sharing between similar tasks.

Show full abstract

To get the best of both worlds, in this work, we propose continual sequence generation with adaptive compositional modules to adaptively add modules in transformer architectures and compose both old and new modules for new tasks. We also incorporate pseudo experience replay to facilitate knowledge transfer in those shared modules. Experiment results on various sequences of generation tasks show that our framework can adaptively add modules or reuse modules based on task similarity, outperforming state-of-the-art baselines in terms of both performance and parameter efficiency. We make our code public at https://github.com/GT-SALT/Adaptive-Compositional-Modules.

View on arXivView PDF

Code Implementations(1)

MIT

Code for the ACL 2022 paper "Continual Sequence Generation with Adaptive Compositional Modules"

392Python, ShellMar 15, 20224 years agoMIT
adaptercontinual-learninglifelong-learningnatural-language-processingparameter-efficient-learning+2 more

Similar Papers

Cite this paper

@article{zhang2022continual,
  title  = {Continual Sequence Generation with Adaptive Compositional Modules},
  author = {Yanzhe Zhang and Xuezhi Wang and Diyi Yang},
  year   = {2022},
  eprint = {2203.10652},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.10652}
}

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/2203.10652.svg)](https://codeofpaper.com/paper/2203.10652)

Discussion