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

NareshKumar Gurulingan, Bahram Zonooz, Elahe Arani

TL;DR

This paper introduces Multi-Task Structural Learning (MTSL), a novel approach that dynamically learns and adapts the neural network architecture for multi-task learning, mimicking the brain's structural plasticity. By creating and removing neurons based on local task similarity, MTSL achieves improved generalization and robustness without requiring manual architecture design.

What Problem Does This Paper Address?

Multi-task learning (MTL) aims to improve model performance by training a single model on multiple tasks simultaneously, leveraging positive transfer and reducing interference. However, a major bottleneck is the reliance on static, manually designed network architectures. These architectures, often fixed during training, fail to adapt to the evolving relationships between tasks, potentially leading to suboptimal performance and hindering generalization. The authors draw inspiration from the brain, where structural changes occur alongside synaptic strength adjustments, suggesting that dynamic architectural learning is key to effective multi-task learning.

Methods

MTSL tackles this by proposing a framework that learns both the multi-task architecture and its parameters concurrently. The core idea is to alternate between two phases:

  1. Task Learning Phase: Each task network specializes in its respective task, minimizing individual task losses. Crucially, this phase also incorporates a Centered Kernel Alignment (CKA) regularization term. CKA measures the similarity between feature representations of different task nodes, encouraging them to learn similar concepts and thus facilitating later grouping.
  2. Structural Learning Phase: This phase involves two key operations inspired by neural development:
  3. Neuron Creation (Grouping): Based on the local task similarity (measured by CKA) between task nodes in a layer, similar tasks are grouped. A new "group node" is created to represent this group.
  4. Neuron Removal: Once task nodes have transferred their learned knowledge to the newly created group node, they become redundant and are removed. The task branch is then reconnected to the group node.

This process of alternating task learning and structural learning (creation/removal) iteratively refines the network architecture, moving from an initial dense set of single-task networks towards a sparser, more efficient multi-task architecture. A final fine-tuning phase solidifies the learned structure.

Datasets

The authors evaluate MTSL on two widely used datasets for dense prediction tasks:

  • Cityscapes: An outdoor driving scenes dataset.
  • NYUv2: An indoor scenes dataset.

Both datasets are used for training and evaluation across five dense prediction tasks: semantic segmentation (S), depth estimation (D), edge detection (E), surface normals (N), and autoencoder (A).

Key Insights and Ideas

  • Brain-Inspired Dynamic Architecture: The core innovation is treating neural network architecture as a learning entity, mirroring the brain's ability to structurally adapt. This moves beyond static architectures and offers a more biologically plausible learning mechanism.
  • Local Task Similarity as a Driver: Using CKA to measure local task similarity is a clever way to identify tasks that can benefit from shared representations, guiding the grouping and removal process effectively.
  • Dense-to-Sparse Evolution: Starting with individual networks and progressively merging them into a shared structure (moving from dense to sparse) is a promising strategy for efficient MTL, potentially avoiding the pitfalls of premature parameter sharing.
  • Synergy of Creation and Removal: The simultaneous use of neuron creation (grouping) and removal is crucial. Creation allows for the formation of shared representations, while removal prunes redundant task-specific pathways, leading to efficiency.

Key Results

  • Improved Generalization: MTSL consistently achieves competitive or superior generalization performance compared to various state-of-the-art baselines (e.g., Cross-stitch, MTAN, LTB, BMTAS) across both Cityscapes and NYUv2 datasets. For instance, in the ASPL metric, MTSL outperforms LTB and BMTAS by significant margins.
  • Robustness: MTSL demonstrates improved robustness to natural corruptions (noise, blur, weather, digital) compared to baselines like One-Net, suggesting its learned architecture is more resilient to out-of-distribution data.
  • Inference Efficiency: While the training time is slightly higher due to additional epochs for knowledge amalgamation, MTSL achieves inference efficiency comparable to or better than many baselines, often with fewer parameters and lower GMacs.
  • Learned Architectures Vary: The paper highlights that the converged architectures are dataset-dependent, indicating that MTSL adapts to the specific task relationships present in the data.

Limitations and Future Work

  • Fixed Epoch Schedule: The transition between task learning and structural learning phases is governed by a fixed epoch schedule. The authors suggest that future work could explore automatically determining these transition periods, potentially by drawing inspiration from local inter-neuron activity in the brain.
  • Explicit CKA Enforcement: Local similarity is currently explicitly enforced via CKA. Future research could investigate if this similarity can emerge more naturally from inter-neuron activity.
  • Limited Synaptic Plasticity: MTSL currently lacks mechanisms for synaptogenesis and synaptic pruning, which are crucial for connection learning in biological systems.
  • Retraining vs. Structural Learning: While MTSL-R (retraining the learned architecture) shows improvements, the authors emphasize that MTSL's strength lies in learning the architecture during training, not just retraining a learned one.

The paper concludes by suggesting that extending simplified notions from neuroscience into multi-task learning holds significant promise for developing more effective and efficient AI systems.

Summary updated

BibTeX
@inproceedings{gurulingan2023multi,
  author = {NareshKumar 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