LAMOL: LAnguage MOdeling for Lifelong Language Learning
About
Most research on lifelong learning applies to images or games, but not language. We present LAMOL, a simple yet effective method for lifelong language learning (LLL) based on language modeling. LAMOL replays pseudo-samples of previous tasks while requiring no extra memory or model capacity. Specifically, LAMOL is a language model that simultaneously learns to solve the tasks and generate training samples. When the model is trained for a new task, it generates pseudo-samples of previous tasks for training alongside data for the new task. The results show that LAMOL prevents catastrophic forgetting without any sign of intransigence and can perform five very different language tasks sequentially with only one model. Overall, LAMOL outperforms previous methods by a considerable margin and is only 2-3% worse than multitasking, which is usually considered the LLL upper bound. The source code is available at https://github.com/jojotenya/LAMOL.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Text Classification | Yahoo! Answers (test) | -- | 133 | |
| Question Answering | SQuAD (test) | -- | 111 | |
| Text Classification | AGNews, Amazon, DBPedia, Yahoo, and Yelp (test) | Exact Match (EM)78.6 | 55 | |
| Text Classification | Yelp (test) | -- | 55 | |
| Lifelong Learning | SST, QA-SRL, and WOZ Permuted Sequences GPT-2 models (test) | Accuracy (SRL WOZ SST)81.2 | 28 | |
| Semantic Parsing | WikiSQL (test) | -- | 27 | |
| Continual Learning | SelfRC, TweetQA, and SST sequence SQuAD format (test) | Average EM76.3 | 16 | |
| Text Classification | AGNews, Yelp, Amazon, DBPedia, Yahoo (last epoch of last task) | EM Score77.2 | 15 | |
| End-to-End Dialogue Modeling | ToDs (test) | Intent Accuracy2.68 | 11 | |
| Multitask Natural Language Processing | DecaNLP SQuAD 2.0, WikiSQL, SST, QA-SRL, WOZ (test) | Average Score74.1 | 11 |