ConTinTin: Continual Learning from Task Instructions

Wenpeng Yin, Jia Li, Caiming Xiong

Abstract

Modern NLP systems typically rely on large-scale labeled datasets for static tasks, leading to high annotation costs and "catastrophic forgetting" during sequential learning. This paper explores ConTinTin (Continual Learning from Task Instructions), a framework where models learn a stream of diverse tasks via natural language instructions and minimal examples. We propose InstructionSpeak, a system that utilizes negative constraints for task initialization and instruction-based replay for knowledge retention. Our findings indicate that instructions can effectively substitute for large data buffers, facilitating significant forward and backward knowledge transfer across 61 diverse NLP tasks.

1. Introduction

The prevailing paradigm in Natural Language Processing (NLP) involves training specialized models on vast amounts of task-specific data. While successful, this approach is limited by its data-intensive nature and its inability to adapt to new tasks without erasing previously acquired knowledge. In contrast, humans can perform new tasks by simply reading a set of instructions, drawing upon a lifetime of linguistic and procedural knowledge.

To bridge this gap, we introduce the ConTinTin framework. ConTinTin shifts the focus from data-heavy fine-tuning to instruction-based continual learning. By treating instructions as the primary source of task information, models can potentially learn more efficiently and maintain a broader range of capabilities over time.

2. The InstructionSpeak System

Built upon the BART architecture, InstructionSpeak addresses the dual challenges of task grounding and memory retention through two primary mechanisms:

2.1 Negative Training for Task Grounding

Natural language instructions often include "negative constraints"—explicit descriptions of what a model should avoid or examples of incorrect outputs. While traditionally difficult for models to process, InstructionSpeak utilizes these negative instances during a dedicated pre-training phase. By learning to identify and avoid incorrect outputs before seeing positive examples, the model establishes clearer task boundaries, a process termed "negative grounding."

2.2 History Training via Instruction Replay

To mitigate catastrophic forgetting, continual learning models often use "experience replay," which involves storing and re-training on samples from previous tasks. However, this is memory-intensive. InstructionSpeak introduces History Training, where the model periodically revisits the instructions of past tasks rather than their full datasets. This approach treats high-level task definitions as a "memory jogger," keeping the model’s parameters aligned with previous task logic at a fraction of the storage cost.

3. Experimental Framework

The study utilizes a restructured version of the NATURAL-INSTRUCTIONS benchmark, comprising 61 distinct NLP tasks. These tasks are categorized into six functional groups:

  • Question Generation (QG)
  • Answer Generation (AG)
  • Classification (CF)
  • Incorrect Answer Generation (IAG)
  • Minimal Modification (MM)
  • Verification (VF)

Each task is accompanied by a comprehensive instruction set, including a title, definition, cautions, and "things to avoid."

4. Results and Analysis

InstructionSpeak was evaluated against standard sequential fine-tuning (Seq-finetune) and state-of-the-art lifelong learning models like LAMOL.

4.1 Forward and Backward Transfer

A key finding of this research is the prevalence of Positive Backward Transfer. Unlike many systems that merely aim to minimize performance degradation on old tasks, InstructionSpeak often improved its performance on Task A after being trained on Task B. This suggests that learning new instructions can refine the model's understanding of underlying linguistic structures applicable to previous tasks. In several categories, the model achieved double-digit improvements in ROUGE-L scores compared to sequential baselines.

4.2 Efficiency of Instructions as Memory

The experiments demonstrate that instructions can serve as a viable proxy for data. Re-training on task definitions proved nearly as effective for knowledge maintenance as re-training on the data itself. This allows InstructionSpeak to maintain a fixed parameter size and avoid the need for massive external memory buffers, making it significantly more scalable than traditional replay methods.

5. Discussion and Limitations

While InstructionSpeak shows promise, certain challenges remain:

  • Classification Sensitivity: The model showed lower performance in backward transfer for Classification (CF) tasks. This is likely due to the specific label spaces in classification being more susceptible to interference from subsequent generative tasks.
  • Task Ordering: Performance in continual learning is often sensitive to the sequence of tasks. Future work should investigate "curriculum learning" to determine if an optimized task order can further enhance transfer.
  • Scaling: While 61 tasks provide a robust benchmark, scaling to the full 1,700+ tasks in newer versions of NATURAL-INSTRUCTIONS will be essential to test the limits of instruction-based memory.

6. Conclusion

ConTinTin and the InstructionSpeak system represent a step toward more human-like AI. By leveraging the rich information contained in natural language instructions—including negative constraints—models can learn more flexibly and retain knowledge more efficiently. This research highlights the potential of instructions not just as a guide for current tasks, but as a compact and powerful medium for long-term memory maintenance.

Summary updated

BibTeX
@inproceedings{yin2022contintin,
  author = {Wenpeng Yin and Jia Li and Caiming Xiong},
  title = {{ConTinTin: Continual Learning from Task Instructions}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.218},
}
Figure