Multi-Task Structural Learning using Local Task Similarity induced Neuron Creation and Removal

Naresh Kumar Gurulingan, Bahram Zonooz, Elahe Arani

TL;DR

Multi-Task Structural Learning (MTSL) is a novel framework that dynamically evolves a neural network's architecture during training by merging similar task-specific layers into shared "group layers." Inspired by the brain's ability to prune and create connections, MTSL automatically discovers the optimal balance between task specialization and shared representation. This results in models that are more robust, efficient, and better at generalizing than manually designed counterparts.

What Problem Does This Paper Address?

In Multi-Task Learning (MTL), the goal is to train a single model to perform multiple tasks simultaneously (e.g., segmenting a road, estimating depth, and detecting edges in a driving scene). While sharing layers between tasks can improve efficiency and help tasks "learn from each other," it often leads to task interference—where the requirements of one task degrade the performance of another.

Most existing solutions rely on static, hand-designed architectures or complex search algorithms to decide which layers to share. These methods are often computationally expensive or fail to adapt to the specific nuances of the data. The authors argue that architecture should not be a fixed prerequisite but a dynamic part of the learning process, much like how the human brain undergoes structural changes (neuron creation and removal) as it develops.

Methods

MTSL starts with a "dense" initial state: a separate, identical network for every task. Training then alternates between two main phases:

  1. Task-Learning Phase: Each network specializes in its assigned task. Crucially, the authors introduce a regularization term based on Centered Kernel Alignment (CKA). This forces the internal representations of different task networks to align, making them "compatible" for future merging.
  2. Structural-Learning Phase: This is where the "brain-inspired" structural evolution occurs:
  3. Grouping: The algorithm uses CKA to measure the similarity between layers across different tasks.
  4. Neuron Creation: If a group of task layers is sufficiently similar, a new "group layer" is created. Its weights are initialized by averaging the weights of the similar task layers.
  5. Knowledge Amalgamation: An attention-based distillation process transfers the specialized knowledge from the individual task layers into the new shared group layer.
  6. Neuron Removal: The original, redundant task-specific layers are removed and replaced by the shared group layer.

This cycle repeats layer-by-layer, moving from the input toward the output, gradually transforming the disparate networks into a streamlined, branching "tree" structure.

The MTSL cycle: Alignment, Grouping, Neuron Creation, and Neuron Removal.

Datasets

The authors evaluated MTSL on two standard computer vision benchmarks for multi-task scene understanding:

  • Cityscapes (CS): Outdoor urban driving scenes.
  • NYUv2: Indoor room scenes.

For both datasets, the model performed five tasks simultaneously: semantic segmentation, depth estimation, edge detection, surface normal estimation, and autoencoding.

Key Insights and Ideas

  • Architecture as a Result, Not a Given: MTSL treats the network structure as a learnable parameter that emerges from the data's inherent similarities, rather than a rigid constraint imposed before training begins.
  • The Power of CKA: Centered Kernel Alignment proves to be a robust metric for identifying when tasks are "thinking" similarly enough to share hardware. By actively regularizing for CKA similarity, the authors make the eventual merging process much more effective.
  • Starting Dense to End Sparse: By starting with separate networks and pruning them down, the model benefits from an initial "rich information pipeline" where tasks can specialize before being forced to compromise in shared layers.
  • Data-Driven Branching: The resulting architectures for Cityscapes and NYUv2 are notably different, proving that the "optimal" sharing strategy is highly dependent on the specific environment and dataset.
Converged MTSL architectures for Cityscapes and NYUv2 compared to a standard One-Net baseline.

Key Results

  • Superior Generalization: MTSL achieved higher multi-task performance scores than state-of-the-art automated branching methods like LTB and BMTAS.
  • Efficiency Gains: On the NYUv2 dataset, MTSL reduced the parameter count by nearly 45% and computation (GMACs) by 60% compared to the single-task network baseline, while actually improving performance across several metrics.
  • Robustness to Corruption: One of the most striking findings was MTSL's resilience. When tested on "naturally corrupted" data (images with added noise, blur, or weather effects), MTSL significantly outperformed standard shared-bottom architectures (One-Net), suggesting that its evolved structure is fundamentally more robust to out-of-distribution data.

Limitations and Future Work

  • Fixed Scheduling: Currently, the transitions between task-learning and structural-learning phases happen on a fixed epoch schedule. The authors suggest that future versions could automatically trigger these changes based on convergence metrics.
  • Local vs. Global Changes: The current neuron removal is "local" (layer-by-layer). Exploring more global structural changes might unlock even more efficient architectures.
  • Expanding the Toolkit: While MTSL handles merging (creation/removal), it doesn't yet support "synaptogenesis"—the creation of entirely new, arbitrary connections between distant parts of the network, which is another key feature of biological learning.

Summary updated

BibTeX
@inproceedings{gurulingan2023multi,
  author = {Naresh Kumar Gurulingan and Bahram Zonooz and Elahe Arani},
  title = {{Multi-Task Structural Learning using Local Task Similarity induced Neuron Creation and Removal}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=LZhwwe7j9l},
}
Figure