Skip to main content
QUICK REVIEW

[Paper Review] RMNet: Equivalently Removing Residual Connection from Networks

Fanxu Meng, Hao Cheng|arXiv (Cornell University)|Nov 1, 2021
Advanced Neural Network ApplicationsComputer Science9 citations
TL;DR

This paper proposes RMNet, a method to equivalently remove residual connections from deep networks like ResNet and MobileNetV2 by introducing a reserving and merging (RM) operation that preserves input feature maps and merges them with block outputs, enabling a single-branch, VGG-like architecture without accuracy loss. RMNet achieves state-of-the-art accuracy-speed trade-offs, with RMNet 152×6_32 reaching 80.36% top-1 accuracy on ImageNet—surpassing ResNet-101 and RepVGG B2—while being highly amenable to pruning and inference optimization.

ABSTRACT

Although residual connection enables training very deep neural networks, it is not friendly for online inference due to its multi-branch topology. This encourages many researchers to work on designing DNNs without residual connections at inference. For example, RepVGG re-parameterizes multi-branch topology to a VGG-like (single-branch) model when deploying, showing great performance when the network is relatively shallow. However, RepVGG can not transform ResNet to VGG equivalently because re-parameterizing methods can only be applied to linear blocks and the non-linear layers (ReLU) have to be put outside of the residual connection which results in limited representation ability, especially for deeper networks. In this paper, we aim to remedy this problem and propose to remove the residual connection in a vanilla ResNet equivalently by a reserving and merging (RM) operation on ResBlock. Specifically, the RM operation allows input feature maps to pass through the block while reserving their information and merges all the information at the end of each block, which can remove residual connections without changing the original output. As a plug-in method, RM Operation basically has three advantages: 1) its implementation makes it naturally friendly for high ratio network pruning. 2) it helps break the depth limitation of RepVGG. 3) it leads to better accuracy-speed trade-off network (RMNet) compared to ResNet and RepVGG. We believe the ideology of RM Operation can inspire many insights on model design for the community in the future. Code is available at: https://github.com/fxmeng/RMNet.

Motivation & Objective

  • To address the inefficiency of residual connections in online inference due to their multi-branch topology.
  • To overcome the limitations of re-parameterization methods like RepVGG, which fail to handle non-linear layers inside residual blocks in deeper networks.
  • To enable the conversion of pre-trained ResNet and MobileNetV2 models into plain, single-branch architectures without accuracy degradation.
  • To improve the speed-accuracy trade-off and enhance compatibility with network pruning and high-ratio model compression.
  • To explore the potential of removing residual connections in deeper networks while maintaining or improving performance.

Proposed method

  • Proposes the RM operation, which reserves the input feature map via the first convolution, batch normalization, and ReLU in a ResBlock.
  • Merges the reserved input feature map with the output of the residual block's final convolution, effectively removing the skip connection.
  • Applies the RM operation to each ResBlock, transforming the multi-branch residual structure into a single-branch, VGG-like architecture.
  • Uses group-wise and point-wise convolutions to minimize parameter and FLOP overhead during the reserving and merging process.
  • Designs RMNet by replacing the initial stem of ResNet with two stacks of 3×3 convolutions, BN, and ReLU, and maintaining the same head and block structure.
  • Employs a width-multiplier and group-channel setting (e.g., RMNet 50×6_32) to control model capacity and efficiency.

Experimental results

Research questions

  • RQ1Can residual connections be removed from deep networks like ResNet without changing the original model output?
  • RQ2Why do re-parameterization methods like RepVGG fail to scale effectively to deeper networks?
  • RQ3Can a single-branch, plain network architecture achieve better accuracy-speed trade-offs than ResNet and RepVGG?
  • RQ4Does removing residual connections improve compatibility with high-ratio network pruning?
  • RQ5Can the RM operation be generalized to other architectures like MobileNetV2?

Key findings

  • RMNet 50×6_32 achieves 79.57% top-1 accuracy on ImageNet, outperforming ResNet-101 (77.21%) and RepVGG B2 (78.78%) with comparable inference speed.
  • RMNet 101×6_16 reaches 80.07% top-1 accuracy on ImageNet—first plain model to exceed 80% without architectural tricks.
  • RMNet 152×6_32 achieves 80.36% top-1 accuracy on ImageNet, demonstrating that deeper plain networks remain effective with the RM operation.
  • RMNet 26×3_32 achieves 95.81% accuracy on CIFAR-10 with only 8.8M parameters and 0.51 GFLOPs, outperforming RepVGG A2 in both accuracy and speed.
  • The RM operation increases parameters and FLOPs by only 1/T for point-wise convolutions and is parameter-efficient with group-wise convolutions.
  • RMNet is highly amenable to pruning due to the absence of residual connections, enabling high-ratio compression without accuracy drop.

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.