Deep Convolutional Neural Networks with Merge-and-Run Mappings

Liming Zhao, Mingjie Li, Depu Meng, Xi Li, Zhaoxiang Zhang, Yueting Zhuang, Zhuowen Tu, Jingdong Wang

Introduction

Deep Residual Networks (ResNets) have significantly advanced computer vision by utilizing identity shortcuts to facilitate the training of very deep architectures. However, as depth increases into the hundreds or thousands of layers, optimization becomes increasingly challenging. Recent research suggests that ResNets function as an ensemble of relatively shallow networks. This paper introduces the Merge-and-Run (MR) block, an architectural unit designed to explicitly leverage this "shallow ensemble" property by arranging residual branches in parallel rather than sequentially.

The Merge-and-Run Architecture

The core innovation of this work is the transition from sequential information flow to a parallelized "merge-and-run" structure. In a standard ResNet, blocks are stacked linearly, forcing information to pass through every layer in sequence.

In contrast, the MR block processes data through multiple parallel residual branches. The "Merge" step calculates the average of the inputs to these branches, while the "Run" step adds this average back to the output of each individual branch. This resulting sum serves as the input for the subsequent set of parallel branches.

The proposed Merge-and-Run (MR) block architecture showing parallel branches and the idempotent mapping.

By parallelizing these branches, the network effectively becomes wider and shallower. This reduces the "average path length" from input to output, significantly easing the optimization process compared to purely sequential models of equivalent depth.

Theoretical Foundation: Idempotency

The effectiveness of the MR block is rooted in the mathematical property of idempotency. The "average and add" operation can be modeled as a linear idempotent function (where $M^n = M$). This property ensures that the transformation does not lead to signal decay or explosion as it propagates through numerous blocks. It creates efficient "quick paths" for both forward information flow and backward gradient propagation, maintaining strong gradient signals even in the earliest layers of the network.

Experimental Results

The authors evaluated Deep Merge-and-Run Networks (DMRNets) across several standard benchmarks, including CIFAR-10/100, SVHN, and ImageNet.

  • Efficiency and Performance: On ImageNet, a 50-layer DMRNet outperformed a 98-layer ResNet despite having a similar parameter count, demonstrating superior parameter efficiency.
  • State-of-the-Art Accuracy: The DMRNeXt variant (combining MR logic with ResNeXt) achieved a testing error of 3.06% on CIFAR-10 and 17.55% on CIFAR-100.
  • Robustness: The architecture achieved a remarkably low 1.51% error on the SVHN digit recognition task.
  • Versatility: The MR logic is "plug-and-play," showing performance gains when integrated with other advanced architectures like Xception.

Conclusion

Merge-and-Run mappings offer a powerful alternative to sequential residual stacking. By utilizing idempotent transformations to share information across parallel branches, DMRNets achieve better gradient flow and higher accuracy with fewer layers. While the current study focuses on image classification, the architectural benefits of shorter information paths and increased effective width hold significant promise for other complex computer vision tasks.

Summary updated

BibTeX
@inproceedings{zhao2018deep,
  author = {Liming Zhao and Mingjie Li and Depu Meng and Xi Li and Zhaoxiang Zhang and Yueting Zhuang and Zhuowen Tu and Jingdong Wang},
  title = {{Deep Convolutional Neural Networks with Merge-and-Run Mappings}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.24963/ijcai.2018/440},
}
Figure