Skip to main content
QUICK REVIEW

[Paper Review] LAMOL: LAnguage MOdeling for Lifelong Language Learning

Fan-Keng Sun, Cheng-Hao Ho|arXiv (Cornell University)|Sep 7, 2019
Multimodal Machine Learning ApplicationsComputer Science32 references83 citations
TL;DR

LAMOL trains a single language model to both perform NLP tasks and generate pseudo-samples from previous tasks, enabling lifelong language learning without extra memory and reducing forgetting to near the multitasking upper bound (within 2-3%).

ABSTRACT

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.

Motivation & Objective

  • Motivate lifelong language learning for NLP tasks beyond the same-task domain.
  • Propose a memory-efficient method that prevents catastrophic forgetting in sequential NLP tasks.
  • Demonstrate that a single LM can solve and generate data for multiple tasks.
  • Show that task-specific tokens stabilize learning when many tasks are involved.
  • Provide open-source code for reproducibility and further research.

Proposed method

  • Frame all tasks in a QA/LM-friendly format to enable unified training.
  • Use a single LM to solve tasks and generate pseudo-samples of past tasks.
  • During training on a new task, generate top-k pseudo-samples from previous tasks and mix them with new-task data.
  • Train on both QA-format and LM-format objectives in a joint loss L = L_QA + lambda L_LM.
  • Optionally use task-specific tokens (GEN replaced with TASK) to balance pseudo-sample generation across tasks.
  • Investigate the effect of sampling ratio gamma and the use of task-specific tokens on stability and forgetting.

Experimental results

Research questions

  • RQ1Can a single language model learn a stream of diverse NLP tasks without access to old data or increasing model capacity?
  • RQ2Does generating pseudo-samples from past tasks alleviate catastrophic forgetting in lifelong language learning?
  • RQ3How do pseudo-sample quantity (gamma) and task-specific tokens affect performance and stability across tasks?
  • RQ4How close can LAMOL approach multitask performance across a spectrum of NLP tasks?

Key findings

  • LAMOL outperforms baselines and many prior continual learning methods across multiple NLP tasks.
  • Across five decaNLP tasks, LAMOL approaches the multitasking upper bound within 2–3%.
  • Using gamma > 0 and task-specific tokens generally stabilizes learning and reduces forgetting compared to gamma = 0.
  • LAMOL with pseudo-samples retains knowledge of earlier tasks with little to no sign of intransigence.
  • Replacing real old samples with pseudo-samples is feasible but real data yields stronger performance in a sample-efficient regime.
  • The method requires no extra memory or model capacity beyond the base LM and can add new tasks on demand.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.