Abstract
A deep residual network, built by stacking a sequence of residual blocks, is easy to train because identity mappings skip residual branches and thus improve information flow. To further reduce the training difficulty, we present a simple network architecture: deep merge-and-run neural networks (DMRNets). The novelty lies in a modularized building block, the merge-and-run block, which assembles residual branches in parallel through a merge-and-run mapping: average the inputs of these residual branches (Merge), and add the average to the output of each residual branch as the input of the subsequent residual branch (Run), respectively. We show that the merge-and-run mapping is a linear idempotent function in which the transformation matrix is idempotent, and thus improves information flow, making training easy. In comparison to residual networks, our networks enjoy compelling advantages: they contain much shorter paths, and the width (number of channels) is increased. Our approach demonstrates consistent improvements over ResNets with comparable setups, achieving competitive results such as 3.57% testing error on CIFAR-10, 19.00% on CIFAR-100, and 1.51% on SVHN.
Introduction
Residual Networks (ResNets) revolutionized deep learning by introducing identity mappings (skip connections) that allow gradients to bypass layers. This architectural innovation mitigated the vanishing gradient problem, enabling the training of networks with hundreds or even thousands of layers. However, as depth increases, the sequential stacking of these blocks still creates extremely long effective paths that can be difficult to optimize.
The authors of this paper address this challenge by rethinking how residual blocks are assembled. They propose restructuring the network to shorten the effective path length and improve information flow without sacrificing representational power, leading to the development of Deep Merge-and-Run Neural Networks (DMRNets).
The Merge-and-Run Architecture
Instead of stacking residual blocks sequentially or simply concatenating parallel branches, DMRNets utilize a unique merge-and-run block. This block assembles two residual branches in parallel using a specific routing mechanism:
- Merge: The network calculates the average of the inputs to the parallel residual branches.
- Run: This average is then added to the output of each individual residual branch, serving as the input for the subsequent blocks.
Mathematically, this mapping is a linear idempotent function. An idempotent matrix $M$ satisfies $M^2 = M$, meaning repeated applications of the transformation yield the same result. This property allows information from early blocks to flow more directly to later blocks, acting as a sophisticated alternative to the standard identity skip connection. Furthermore, because the outputs of the parallel branches are maintained separately, the intermediate representation width is effectively doubled, allowing for richer feature learning.
Path Length Analysis
A key insight of the DMRNet architecture is the reduction of the "effective" path length. In a standard ResNet, the number of paths grows exponentially with depth, but many of these paths are extremely long. By placing residual branches in parallel and using the merge-and-run mapping, the average path length from input to output is drastically reduced compared to a sequential ResNet of the same depth.
Empirical evidence suggests that shorter average path lengths correlate with lower testing errors in very deep networks. DMRNets leverage this by design, ensuring that even in deep configurations, the network remains easy to optimize.
Experimental Results
DMRNets were evaluated on standard image classification benchmarks, consistently outperforming baseline ResNets with comparable parameter counts:
- CIFAR & SVHN: The "DMRNet-Wide" variant (50 layers, 24.8M parameters) achieved state-of-the-art results: 3.57% error on CIFAR-10 and 19.00% on CIFAR-100. On the SVHN dataset, a 32-layer variant reached 1.51% error.
- ImageNet: A 44-layer DMRNet (43.3M parameters) achieved a top-1 validation error of 23.66% and a top-5 error of 6.81%. This outperformed a standard ResNet-101 (which recorded an 8.50% top-5 error in the authors' tests) despite the DMRNet being significantly shallower.
- Efficiency: DMRNets proved more parameter-efficient than other parallel architectures like FractalNet, achieving better performance on CIFAR with roughly 35% fewer parameters.
Conclusion
Deep Merge-and-Run Neural Networks offer a powerful alternative to sequential residual stacking. By utilizing idempotent mappings to connect parallel branches, DMRNets improve gradient flow, increase effective network width, and significantly shorten the paths information must travel. These structural advantages translate into superior performance across a variety of competitive image recognition benchmarks.
Summary updated