Abstract
We propose the width-resolution mutual learning method (MutualNet) to train a network that is executable at dynamic resource constraints to achieve adaptive accuracy-efficiency trade-offs at runtime. Our method trains a cohort of sub-networks with different widths (i.e., number of channels in a layer) using different input resolutions to mutually learn multi-scale representations for each sub-network. It achieves consistently better ImageNet top-1 accuracy over the state-of-the-art adaptive network US-Net under different computation constraints, and outperforms the best compound scaled MobileNet in EfficientNet by 1.5%. The superiority of our method is also validated on COCO object detection and instance segmentation as well as transfer learning. Surprisingly, the training strategy of MutualNet can also boost the performance of a single network, which substantially outperforms the powerful AutoAugmentation in both efficiency (GPU search hours: 15000 vs. 0) and accuracy (ImageNet: 77.6% vs. 78.6%).
Introduction
Deploying deep neural networks on mobile and embedded devices requires a delicate balance between performance and resource consumption. A model optimized for a high-end server may be unusable on a budget smartphone or may drain its battery excessively. Current solutions typically fall into two categories: static scaling (e.g., designing multiple versions of MobileNet) or slimmable networks that adjust their width at runtime.
However, existing adaptive models like US-Net primarily focus on adjusting network width, often neglecting the impact of input resolution. Computational cost is a function of both architecture (width/depth) and the input data (resolution). By ignoring resolution, current methods often suffer from significant accuracy degradation at lower resource levels. MutualNet addresses this by treating network width and input resolution as a joint optimization problem, enabling truly adaptive accuracy-efficiency trade-offs.
Methodology: Width-Resolution Mutual Learning
The core innovation of MutualNet is the Width-Resolution Mutual Learning strategy. Instead of training a single static model, it trains a cohort of sub-networks within a weight-sharing structure.
The training process follows several key principles:
- The Sandwich Rule: In each iteration, the model samples four sub-networks: the full-width network, the smallest-width network, and two intermediate widths.
- Dynamic Resolution: While the full-width network receives the highest resolution (e.g., 224x224), smaller sub-networks are fed randomly sampled lower resolutions (e.g., 192, 160, or 128).
- Inplace Distillation: The full-width, full-resolution network serves as a "teacher." Smaller "student" sub-networks are trained to match the teacher's predicted probability distributions using Kullback-Leibler (KL) divergence.
- Weight Sharing: All sub-networks share the same weights, allowing the model to learn "multi-scale representations." Knowledge from low-resolution inputs benefits high-resolution sub-networks and vice versa.
This approach recognizes that for a fixed FLOP budget, a slightly wider network with lower resolution often outperforms a very thin network with high resolution. MutualNet identifies these optimal configurations automatically.
Experimental Results
The authors validated MutualNet across several benchmarks, including ImageNet classification, COCO object detection, and various transfer learning tasks.
Key Findings:
- ImageNet Performance: MutualNet consistently outperforms US-Net across all computation constraints. On a MobileNet v1 backbone, it achieved 72.4% top-1 accuracy at its peak, compared to 71.7% for US-Net. When scaled to 2.3B FLOPs, it reached 77.1% accuracy, surpassing EfficientNet's compound scaling by 1.5%.
- Single Network Boost: Even for non-adaptive networks, MutualNet acts as a powerful regularizer. It improved ResNet-50 accuracy to 78.6%, outperforming AutoAugmentation (77.6%) without the massive 15,000 GPU-hour search cost.
- Object Detection: MutualNet is the first to benchmark arbitrary-constraint adaptive networks on COCO, showing significant gains (e.g., +1.6 mAP for VGG-16) over standard slimmable approaches due to its improved robustness to scale variations.
Conclusion
MutualNet provides a robust framework for training adaptive networks that excel across varying resource constraints. By jointly optimizing width and resolution, it achieves superior trade-offs compared to width-only scaling. While current work focuses on width and resolution, future research could explore dynamic depth adjustment or automated configuration selection for specific hardware. Nonetheless, MutualNet represents a significant step toward making deep learning models truly versatile for real-world deployment.
Summary updated