Are Greedy Task Orderings Better Than Random in Continual Linear Regression?

Matan Tsipory, Ran Levinstein, Itay Evron, Mark Kong, Deanna Needell, Daniel Soudry

Introduction

In the field of continual learning (CL), models are tasked with learning a sequence of objectives one after another. While significant research has focused on algorithmic interventions to mitigate "catastrophic forgetting," the influence of the task sequence itself is often overlooked. This paper investigates whether the order in which tasks are presented can inherently reduce forgetting and accelerate convergence. Specifically, it explores "greedy" strategies that prioritize learning the most dissimilar tasks first, comparing them against the standard practice of random ordering.

The Geometry of Task Ordering

The authors frame continual linear regression through a projection-based lens, drawing on the Kaczmarz method for solving linear systems. In this framework, each task is represented as a subspace within the parameter space. Learning a task corresponds to projecting the current model parameters onto that task's solution space.

Geometric projection of parameters onto a task subspace.

Two primary greedy strategies are formalized:

  1. Maximum Distance (MD): Selecting the task that maximizes the distance the model parameters must move.
  2. Maximum Residual (MR): Selecting the task with the highest current error (loss).

Geometrically, these strategies aim to take the largest possible steps toward the intersection of all task subspaces, thereby reaching a joint solution more efficiently.

Empirical Evaluation

The theoretical benefits of greedy ordering were tested on both synthetic regression tasks and the CIFAR-100 image classification dataset. For CIFAR-100, the researchers used a domain-incremental setup, partitioning 100 classes into 50 binary classification tasks and performing linear probing on a pretrained ResNet-20 backbone.

Test accuracy comparison between greedy and random task orderings on CIFAR-100.

The results consistently showed that Greedy MD and MR converged significantly faster than random ordering. Notably, the MR strategy—which is computationally cheaper as it only requires a forward pass—performed nearly as well as the more theoretically complex MD strategy.

Discussion: Risks and Robustness

While greedy strategies offer a "fast start," they are not without risks. In "single-pass" scenarios where each task is seen only once, the authors identified adversarial task sequences that can trap a greedy learner in a cycle of forgetting, leading to stagnant error rates.

To counter this, two solutions were proposed:

  • Repetition: Allowing the learner to revisit tasks greedily. This was shown to eliminate failure modes and provide a dimensionality-independent convergence rate.
  • Hybrid Strategies: Starting with greedy selection to capture major gains early, then switching to random ordering to ensure robust final convergence.

A key insight is that "typical" tasks—those similar to many others—are best learned later. Greedy strategies naturally defer these tasks, contributing to their superior performance in the later stages of training.

Conclusion and Future Work

This research highlights task ordering as a potent lever in continual learning. While the current study assumes joint linear realizability, it provides a foundational geometric understanding that can be extended. Future work will explore relaxing these assumptions to handle label noise, applying the framework to non-linear models, and integrating task ordering with established CL techniques like experience replay.

Summary updated

BibTeX
@inproceedings{tsipory2025are,
  author = {Matan Tsipory and Ran Levinstein and Itay Evron and Mark Kong and Deanna Needell and Daniel Soudry},
  title = {{Are Greedy Task Orderings Better Than Random in Continual Linear Regression?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=8JdPqAMpi4},
}
Figure