Optimal Task Order for Continual Learning of Multiple Tasks

Ziyan Li, Naoki Hiratani

Introduction

In the field of continual learning (CL), neural networks are tasked with learning a sequence of distinct objectives. A persistent challenge in this paradigm is catastrophic forgetting, where the acquisition of new information leads to the abrupt loss of previously learned knowledge. While significant research has focused on architectural constraints and replay buffers to mitigate this effect, the impact of the task order itself has remained largely under-theorized. This paper provides a rigorous theoretical and empirical framework to transform task-order selection from an empirical "black art" into a predictable science.

Theoretical Framework

The authors investigate the dynamics of forgetting using a linear teacher-student model with latent factors. In this framework, "teacher" matrices generate data based on hidden factors, allowing for an analytical derivation of the final error as a function of task similarity and sequence.

Through linear perturbation analysis, the researchers decompose the effect of task ordering into two primary components:

  1. Absolute Order Dependence: How a task's specific position (e.g., being the first vs. the last task) affects the total error.
  2. Relative Order Dependence: How the similarity (or distance) between two tasks learned back-to-back influences interference.

To bridge the gap between theory and deep learning practice, task similarity is estimated via zero-shot transfer performance. If a model trained on Task A performs well on Task B without additional training, the tasks are considered highly similar.

The Two Rules for Optimal Ordering

The study derives two robust rules for minimizing forgetting and maximizing knowledge transfer:

1. The "Periphery-to-Core" Rule

When tasks are generally positively correlated, the optimal strategy is to learn the "outliers" (the least representative tasks) first and the "typical" (the most representative) tasks last. By ending the sequence with "core" tasks, the model uses the most central information as a final anchor, which stabilizes the overall knowledge representation.

2. The "Max-Path" Rule

While traditional "curriculum learning" often suggests grouping similar items together to ease initial learning, this paper finds the opposite is true for continual learning. To minimize interference, adjacent tasks should be as dissimilar as possible. The goal is to maximize the "distance" traveled in task-space between each step, a strategy referred to as the longest Hamiltonian path through a task-dissimilarity graph.

Empirical Validation

The researchers validated these rules across synthetic data and standard benchmarks, including Fashion-MNIST, CIFAR-10, and CIFAR-100. They also utilized graph-structured tasks (chains, rings, and trees) to test the limits of these ordering principles.

Key Findings: * Significant Performance Gains: In graph-structured experiments, the best task order performed up to seven times better than the worst possible order. * Data Efficiency: One of the most practical findings is that the optimal order can be estimated using only 1% of the available data (approximately 10 images per task). This allows for efficient planning without requiring full training cycles to test different sequences. * Architecture Agnostic: The rules held true across various architectures, including Multilayer Perceptrons (MLPs) and Convolutional Neural Networks (CNNs).

Limitations and Future Work

While the results are robust, the theoretical foundation relies on linear models. Although these findings generalized well to non-linear CNNs in this study, further research is required to determine their applicability to highly complex domains such as Large Language Models (LLMs) or Deep Reinforcement Learning. Additionally, the current model assumes a static set of tasks known upfront and trained to convergence; future work may address "strictly online" settings where tasks appear unexpectedly or are only partially learned.

Summary updated

BibTeX
@inproceedings{li2025optimal,
  author = {Ziyan Li and Naoki Hiratani},
  title = {{Optimal Task Order for Continual Learning of Multiple Tasks}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=145So0OrGC},
}
Figure