Skip to main content
QUICK REVIEW

[Paper Review] Unifying and Merging Well-trained Deep Neural Networks for Inference Stage

Yi-Min Chou, Yi-Ming Chan|arXiv (Cornell University)|May 14, 2018
Advanced Neural Network ApplicationsComputer Science17 references6 citations
TL;DR

This paper proposes NeuralMerger, a method to unify and merge well-trained deep neural networks into a single compact model for efficient inference on resource-limited devices. By aligning network layers and sharing representative weight codes through encoding, the merged model preserves original architectures, reduces redundancy, and enables fine-tuning to maintain or improve performance, achieving up to 20× compression with minimal accuracy drop.

ABSTRACT

We propose a novel method to merge convolutional neural-nets for the inference stage. Given two well-trained networks that may have different architectures that handle different tasks, our method aligns the layers of the original networks and merges them into a unified model by sharing the representative codes of weights. The shared weights are further re-trained to fine-tune the performance of the merged model. The proposed method effectively produces a compact model that may run original tasks simultaneously on resource-limited devices. As it preserves the general architectures and leverages the co-used weights of well-trained networks, a substantial training overhead can be reduced to shorten the system development time. Experimental results demonstrate a satisfactory performance and validate the effectiveness of the method.

Motivation & Objective

  • To address the challenge of deploying multiple deep neural networks on resource-constrained devices by merging them into a single, compact model.
  • To eliminate redundant filters and weights across independently trained networks without retraining from scratch.
  • To preserve the original architectures of well-trained models while enabling joint inference for multiple tasks.
  • To reduce system development time by avoiding costly trial-and-error architecture design and joint training.
  • To enable efficient multi-task inference on edge devices through weight sharing and fine-tuning.

Proposed method

  • Aligning corresponding layers (e.g., convolutional and fully-connected) of different pre-trained networks into paired structures.
  • Encoding shared weights using a representative codebook to enable weight sharing across merged networks.
  • Applying a joint encoding scheme to map filters and weights from different networks into a common, shared representation.
  • Fine-tuning the merged model using knowledge distillation principles to restore or enhance performance.
  • Using a two-phase process: (1) alignment and encoding of weights, and (2) end-to-end back-propagation-based fine-tuning.
  • Supporting incremental merging of more than two models by extending the shared codebook structure.

Experimental results

Research questions

  • RQ1Can multiple well-trained deep neural networks with different architectures be unified into a single compact model without retraining from scratch?
  • RQ2How effectively can redundancy across pre-trained networks be removed while preserving or improving performance?
  • RQ3To what extent can the merged model achieve compression while maintaining accuracy across multiple tasks?
  • RQ4Can the unified model support multiple inference tasks simultaneously on low-end devices?
  • RQ5How does the performance of the merged model compare to individual models when compressed under identical constraints?

Key findings

  • The merged model achieved up to 20× compression ratio in the 'LIGHT' setting with only 0.25% accuracy drop on sound recognition and acceptable drops on other tasks.
  • In the 'ACCU' setting, the merged model achieved over 12× compression with a slight improvement in average accuracy (0.28% drop, but 1.8× speedup).
  • The merged model for clothing and gender classification achieved a 1.5× speedup and 0.27% accuracy drop on gender recognition, with 2.8× compression.
  • When merging three models (clothing, gender, and sound), the accuracy drops were negligible (0.38% on clothing, 1.11% on gender, 0.25% on sound), demonstrating scalability.
  • The method successfully exploited both intra-model and inter-model redundancies, enabling efficient representation across diverse networks.
  • The merged model maintained high performance with minimal accuracy degradation, even when compressing models that were larger than LeNet.

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.