Evolutionary architecture search for deep multitask networks

Jason Zhi Liang, Elliot Meyerson, Risto Miikkulainen

Abstract

This paper introduces a family of evolutionary algorithms designed to automate the complex task of designing deep multitask learning (MTL) architectures. By coevolving both the internal structure of neural modules and the task-specific "routing" between them, the authors achieved a significant performance jump on the Omniglot benchmark, moving from a 61% baseline to nearly 88% accuracy. The proposed Coevolution of Modules and Task Routing (CMTR) method demonstrates that discovering a diverse "toolbox" of modules and optimizing their connectivity is key to effective multitask generalization.

Introduction

Multitask learning (MTL) involves training a single neural network to perform multiple related tasks simultaneously, such as recognizing different alphabets or identifying both objects and their colors. Ideally, tasks should benefit from shared "knowledge" in the network's layers. However, designing these architectures is a significant challenge for researchers. Determining whether tasks should share all layers, specific early layers, or follow entirely different paths creates a combinatorially explosive search space.

Most existing research relies on "soft ordering" (learning weights to blend shared layers) or hand-designed split points, which are rarely optimal. This paper addresses these limitations by using Evolutionary Architecture Search (NAS) to discover how tasks should share components and what the internal structure of those components should be.

Methods

The authors propose four increasingly sophisticated evolutionary approaches, building upon a baseline of Soft Ordering:

  1. CM (Coevolution of Modules): Uses the CoDeepNEAT algorithm to evolve the internal architecture of modules (hyperparameters, layers, etc.) while maintaining a fixed grid-like routing structure.
  2. CMSR (Coevolution of Modules/Shared Routing): Evolves both the modules and a single "blueprint" routing topology that all tasks must follow.
  3. CTR (Coevolution of Task Routing): Keeps modules fixed but evolves a unique, task-specific routing for every individual task during training using a (1+1) evolutionary strategy.
  4. CMTR (Coevolution of Modules and Task Routing): The capstone method. It uses CoDeepNEAT in an outer loop to evolve modules and CTR in an inner loop to evolve custom routings for each task.
The hierarchy of evolutionary methods proposed, showing the progression from fixed modules/routing to evolved modules and task-specific routing.

The key innovation is the synergy between these levels: the network discovers a diverse library of modules and then evolves the optimal way to "wire" them together for each specific task.

Experimental Setup

The primary benchmark for this research is the Omniglot dataset, which consists of character recognition across 50 different handwritten alphabets. In this MTL setup, each alphabet is treated as a separate task. To manage computational costs, the authors used a subset of 20 alphabets with a 50/20/30 split for training, validation, and testing.

Key Insights and Results

The results show a clear progression in performance as evolutionary complexity increases. The CMTR approach fundamentally shifted the performance ceiling for the Omniglot multitask domain.

Method Test Accuracy
Single Task (Baseline) 60.81%
Soft Ordering (Prior SOTA) 66.59%
CM (Evolved Modules) 81.33%
CTR (Evolved Routing) 82.36%
CMTR (The Full Package) 87.82%
Comparison of fitness (mean validation accuracy) over mutations for the CTR and CMTR methods, illustrating the superior final performance of the coevolved approach.

Several key ideas emerged from this study:

  • Ecological Perspective: CTR can be viewed as an artificial ecology where shared modules are "environmental resources." Tasks (species) compete for and alter these resources. Even when a new routing fails to outperform the current champion, the training process refines the shared modules for all tasks.
  • Diversity and Topology: Evolution discovered that a mix of simple and complex modules works best, unlike hand-designed networks that often use uniform layers. Furthermore, allowing each task to have its own unique path through those modules (CMTR) was the primary breakthrough for state-of-the-art results.
  • Evolvable Weight Sharing: The paper found that "forced" sharing can hurt performance. Making the decision to share weights an evolvable trait allowed the network to find the optimal balance between generalization and task-specific specialization.

Conclusion and Future Work

While the CMTR process is computationally intensive—requiring significant GPU resources—it demonstrates the power of coevolving structure and routing. Future work may involve scaling this approach to hundreds of tasks or applying it to multimodal domains, such as sharing modules between image recognition and natural language processing, where evolution can find non-obvious synergies between disparate data types.

Summary updated

BibTeX
@inproceedings{liang2018evolutionary,
  author = {Jason Zhi Liang and Elliot Meyerson and Risto Miikkulainen},
  title = {{Evolutionary architecture search for deep multitask networks}},
  booktitle = {GECCO},
  year = {2018},
  doi = {10.1145/3205455.3205489},
}
Figure