An Evolutionary Approach to Dynamic Introduction of Tasks in Large-scale Multitask Learning Systems

Andrea Gesmundo, Jeff Dean · DOI

Introduction

Traditional machine learning typically operates under a "one model, one task" paradigm. While multitask learning (MTL) and continual learning (CL) attempt to move beyond this, they are often hampered by three critical issues: catastrophic forgetting, where new learning overwrites old knowledge; negative transfer, where conflicting task gradients degrade overall performance; and scalability challenges related to computational costs and manual architecture engineering.

This paper introduces $μ$2Net (Mutant Multitask Network), a system designed by researchers at Google to scale multitask learning to an unprecedented number of tasks. By employing an evolutionary algorithm, $μ$2Net dynamically expands a sparsely activated model as new tasks are introduced, ensuring high performance without sacrificing efficiency or forgetting previously learned information.

Methodology: The Evolutionary Approach

The core of $μ$2Net is its ability to evolve a "root model" (such as a Vision Transformer) for each new active task. This evolution occurs through several key mechanisms:

Layer Cloning and Knowledge Isolation

The "secret sauce" of the system is Layer Cloning Mutations. When a new task is introduced, the system evaluates whether to reuse an existing frozen layer or to "clone" it. A cloned layer inherits the parent's weights but remains trainable for the new task. Crucially, the original parent layer stays frozen, ensuring that performance on previous tasks remains unchanged. This mechanism effectively eliminates catastrophic forgetting by design.

Hyperparameter and Routing Evolution

Beyond architectural changes, $μ$2Net evolves optimal hyperparameters, including learning rates and data augmentation settings. It even learns piecewise constant schedules for these parameters over time, removing the need for manual tuning. Each task follows a specific "path" through the network, resulting in a sparsely activated model where only a small fraction of total parameters are utilized for any single inference.

The $μ$2Net evolutionary mechanisms: layer cloning, hyperparameter evolution, and task-based routing.

Experimental Setup and Datasets

The authors evaluated $μ$2Net across a massive suite of 69 public image classification tasks. This benchmark includes core datasets like ImageNet-2012 and CIFAR-10/100, the 19-task VTAB-full suite, the 10-task Visual Domain Decathlon (VDD), and various character classification tasks including Indic scripts. This diverse range of data allows for a robust assessment of the system's transfer learning capabilities and scalability.

Key Results and Insights

$μ$2Net demonstrates significant performance gains and efficiency improvements over standard fine-tuning baselines.

Performance and Transfer Learning

The system achieved a new state-of-the-art (SOTA) accuracy of 99.49% on CIFAR-10, representing a 15% relative error reduction compared to previous best models trained on public data. On ImageNet-2012, it reached 86.74% accuracy, outperforming the 85.30% baseline. The evolutionary process acts as a powerful optimizer, often finding better configurations than human-engineered fine-tuning.

Performance comparison of $μ$2Net across various benchmarks, showing improvements over iterations and comparison to baselines.

Efficiency and the "Flywheel" Effect

A notable observation is the "flywheel" of knowledge: as the system learns more tasks, it becomes more efficient at solving subsequent ones. The number of newly added parameters per task decreased by 38% as the model grew. Furthermore, while the total parameter count reached over 13 billion, the compute cost per task remained constant because each task only activates approximately 2.3% of the total model.

Conclusion

$μ$2Net presents a scalable solution for large-scale multitask learning that avoids the pitfalls of catastrophic forgetting and negative transfer. By automating architecture and hyperparameter search through evolution, it reduces the manual effort required for complex MTL systems. Future work may extend this approach to cross-modality tasks and more complex vision problems like object detection and segmentation.

Summary updated

BibTeX
@inproceedings{gesmundo2023evolutionary,
  author = {Andrea Gesmundo and Jeff Dean},
  title = {{An Evolutionary Approach to Dynamic Introduction of Tasks in Large-scale Multitask Learning Systems}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=3Z-xKxKc-R},
}
Figure