TAME: Task Agnostic Continual Learning using Multiple Experts

Haoran Zhu, Maryam Majzoubi, Arihant Jain, Anna ChoromanskaWorkshops @ CVPR 2024 · DOI

Abstract

In real-world scenarios, data streams are often non-stationary, and models are rarely provided with explicit task boundaries. TAME (Task-Agnostic continual learning using Multiple Experts) addresses this challenge by monitoring loss spikes to detect distribution shifts and employing a pruned ensemble of experts. This approach allows the model to master new tasks without external supervision, outperforming state-of-the-art methods while maintaining a compact memory footprint.

The Challenge of Task-Agnostic Learning

Most Continual Learning (CL) research assumes an idealistic setting where models receive "Task ID" labels indicating when a task begins or ends. However, real-world AI agents encounter continuous information streams where underlying tasks change—such as a robot moving from indoor to outdoor environments—without manual resets.

TAME tackles the two core challenges of this task-agnostic setting:

  1. Detection: Identifying when the data distribution has shifted.
  2. Routing: Ensuring test samples are processed by the relevant expert knowledge without being told which task they belong to.

Methodology: Loss Spikes and Expert Management

TAME utilizes a dynamic ensemble of "expert" networks coordinated by a single "selector" network.

Task Boundary Detection

The framework monitors training loss using an Exponentially Weighted Moving Average (EWMA) to filter out noise. By applying a 3-sigma rule, TAME flags a task shift when the smoothed loss deviates significantly. This "loss as a sensor" approach avoids the need for complex generative models to detect novelty.

The necessity of smoothing: Without EWMA, the system over-detects task shifts, leading to an unnecessary explosion of experts.

Expert Management and Routing

Upon detecting a shift, TAME evaluates if any existing expert can handle the new data. If not, a new expert is instantiated. To handle inference, a small selector network is trained on a tiny, randomly sampled buffer to predict the correct expert ID for any given input. This enables the model to handle recurring tasks naturally by switching back to previously established experts.

Aggressive Pruning

To prevent the model size from exploding, TAME employs L1 unstructured pruning. Experts are pruned by up to 98%, and the selector by 50%. This ensures that an ensemble of specialized, sparse experts remains more efficient than a single dense model.

Experimental Results

The researchers evaluated TAME against standard benchmarks including Permuted MNIST, Split MNIST, and Split CIFAR-10/100.

TAME consistently outperforms both task-agnostic and task-aware baselines across multiple benchmarks as the number of tasks increases.

Performance and Efficiency

  • Accuracy: On Split MNIST, TAME achieved 98.63% accuracy, significantly higher than the previous best task-agnostic method (CN-DPM at 94.19%). On the complex Split CIFAR-100 (20 tasks), it reached 62.39%, while competitors struggled to exceed 21%.
  • Model Size: Despite the multi-expert architecture, TAME’s total parameter count for Permuted MNIST was 55.53K, which is lower than the 61.7K used by standard single-model baselines like EWC or SI.

Conclusion and Future Work

TAME demonstrates that a statistically grounded approach to loss monitoring, combined with aggressive pruning, provides a robust solution for task-agnostic continual learning. While the model currently relies on a small data buffer for the selector network, future work may explore "memory-less" routing and adaptive smoothing factors to handle even more volatile environments.

Summary updated

BibTeX
@inproceedings{zhu2024tame,
  author = {Haoran Zhu and Maryam Majzoubi and Arihant Jain and Anna Choromanska},
  title = {{TAME: Task Agnostic Continual Learning using Multiple Experts}},
  booktitle = {Workshops @ CVPR},
  year = {2024},
  doi = {10.1109/cvprw63382.2024.00417},
}
Figure