Skip to main content
QUICK REVIEW

[Paper Review] Multi-Task Zipping via Layer-wise Neuron Sharing

Xiaoxi He, Zimu Zhou|arXiv (Cornell University)|May 24, 2018
Advanced Neural Network ApplicationsComputer Science30 references24 citations
TL;DR

This paper proposes Multi-Task Zipping (MTZ), a framework that compresses multiple pre-trained deep neural networks by sharing neurons layer-wise across models, minimizing accuracy loss through light retraining. MTZ achieves up to 39.61% parameter sharing between two VGG-16 networks with less than 0.5% test error increase and reduces retraining iterations by at least 17.9× compared to training from scratch.

ABSTRACT

Future mobile devices are anticipated to perceive, understand and react to the world on their own by running multiple correlated deep neural networks on-device. Yet the complexity of these neural networks needs to be trimmed down both within-model and cross-model to fit in mobile storage and memory. Previous studies focus on squeezing the redundancy within a single neural network. In this work, we aim to reduce the redundancy across multiple models. We propose Multi-Task Zipping (MTZ), a framework to automatically merge correlated, pre-trained deep neural networks for cross-model compression. Central in MTZ is a layer-wise neuron sharing and incoming weight updating scheme that induces a minimal change in the error function. MTZ inherits information from each model and demands light retraining to re-boost the accuracy of individual tasks. Evaluations show that MTZ is able to fully merge the hidden layers of two VGG-16 networks with a 3.18% increase in the test error averaged on ImageNet and CelebA, or share 39.61% parameters between the two networks with <0.5% increase in the test errors for both tasks. The number of iterations to retrain the combined network is at least 17.8 times lower than that of training a single VGG-16 network. Moreover, experiments show that MTZ is also able to effectively merge multiple residual networks.

Motivation & Objective

  • To address the challenge of deploying multiple large, pre-trained deep neural networks on resource-constrained mobile devices due to storage and memory limitations.
  • To reduce cross-model redundancy in multiple correlated deep neural networks without significant accuracy degradation.
  • To develop an efficient compression method that inherits pre-trained weights and requires only light retraining to restore task accuracy.
  • To enable effective parameter sharing across diverse architectures like VGG-16 and ResNet, even when models are pre-trained for different tasks.

Proposed method

  • MTZ performs layer-wise neuron sharing between pre-trained models, selecting optimal pairs of neurons to share based on minimizing error increase.
  • It updates incoming weights to shared neurons to preserve task-specific performance, using a differentiable optimization scheme that minimizes error in the error function.
  • The framework operates on a layer-by-layer basis, enabling selective merging of hidden layers while preserving task-specific classification heads.
  • MTZ uses a lightweight retraining phase to recover accuracy after merging, significantly reducing training iterations compared to end-to-end training.
  • The method supports both full merging of all hidden layers and adaptive merging with controlled compression ratios.
  • It is compatible with existing single-model compression techniques like pruning and quantization for further size reduction.

Experimental results

Research questions

  • RQ1Can multiple pre-trained deep neural networks be effectively merged to reduce model size while preserving task accuracy?
  • RQ2How can neuron sharing across models be optimized to minimize error increase in each individual task?
  • RQ3What is the trade-off between compression ratio and accuracy loss when merging multiple models via layer-wise sharing?
  • RQ4Can MTZ achieve significant training efficiency gains compared to training a joint model from scratch?
  • RQ5Does MTZ scale effectively across deeper architectures like ResNets and multiple tasks?

Key findings

  • MTZ fully merges all hidden layers of two VGG-16 networks (for ImageNet and CelebA) with a 3.18% average test error increase across both tasks.
  • When sharing 39.61% of parameters between two VGG-16 models, MTZ induces less than 0.5% increase in test error for both ImageNet and CelebA tasks.
  • The retraining process for the merged model requires at least 17.9× fewer iterations than training a single VGG-16 network from scratch.
  • MTZ successfully shares 90% of parameters across five ResNet-28 models trained on five different visual recognition tasks, with only a 0.25% average accuracy decrease.
  • The joint model constructed by MTZ outperforms a fully shared multi-task VGG-16 with identical architecture and parameter count, indicating better knowledge transfer.
  • Preliminary results show MTZ is applicable to sparse networks, suggesting potential for integration with weight pruning techniques.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.