MutualNet: Adaptive ConvNet via Mutual Learning From Different Model Configurations

Taojiannan Yang, Sijie Zhu, Matías Mendieta, Pu Wang, Ravikumar Balakrishnan, Minwoo Lee, Tao Han, Mubarak Shah, Chen Chen

TL;DR

MutualNet is a training framework that allows a single convolutional neural network (ConvNet) to run efficiently across a wide range of resource constraints by dynamically adjusting its width and input resolution. By forcing different model configurations to "mutually learn" from one another, the authors produce a single set of weights that outperforms both specialized static models and previous adaptive scaling techniques.

What Problem Does This Paper Address?

Deep learning models are typically "static"—they are trained for a specific computational budget (FLOPs). However, real-world deployment is messy. A model might run on a high-end GPU one moment and a battery-constrained mobile device the next.

The traditional solution is to train multiple versions of a model (e.g., MobileNet-1.0x, 0.75x, 0.5x). This is computationally expensive to train and a nightmare to manage in production. While "slimmable" networks previously addressed variable width, they often ignored the impact of input resolution. The authors of MutualNet argue that width and resolution are deeply coupled; ignoring one leads to sub-optimal performance and a failure to capture the full "accuracy-efficiency" trade-off.

Methods

The core innovation is Mutual Learning across different network configurations. Instead of training one static model, MutualNet trains a "cohort" of sub-networks simultaneously within a single architecture.

  1. Weight Sharing: All configurations share the same weights. A "sub-network" is simply a subset of the channels of the full network.
  2. Dynamic Scaling: During each training iteration, the framework samples four configurations: the full-width/full-resolution model, the smallest-width/smallest-resolution model, and two random intermediate configurations.
  3. Knowledge Distillation: The full-scale model acts as a teacher. It is trained using standard Cross-Entropy loss against ground-truth labels. The smaller sub-networks are then trained to mimic the probability distributions of the full model using Kullback–Leibler (KL) Divergence.
  4. 2D and 3D Versatility: The method is applied to 2D image models (MobileNet, ResNet) and extended to 3D video models (SlowFast, X3D). For 3D networks, the authors introduce an Adaptive Fusion block to handle the complex spatio-temporal interactions when resolutions change.
The MutualNet training process: the full network supervises smaller sub-networks with varying widths and resolutions.

Datasets

The authors validated MutualNet across a massive array of benchmarks:

  • Image Classification: ImageNet, CIFAR-10/100, Food-101, and MIT Indoor67.
  • Object Detection & Segmentation: MS COCO.
  • Action Recognition (Video): Kinetics-400, Charades, and AVA v2.1.

Key Insights and Ideas

  • Scale-Specific Expertise: The authors discovered that different configurations "see" the world differently. Large models with high resolution focus on fine-grained details (like the texture of a dog's face), while smaller models with lower resolution focus on global structures and contours.
  • Mutual Benefit: By training these scales together, the sub-networks learn more robust, multi-scale representations. Surprisingly, this even helps the full-scale model perform better than if it were trained alone, acting as a powerful form of regularization.
  • Resolution Matters: Previous methods like SlimmableNet only varied width. MutualNet shows that for a fixed FLOP budget, finding the right balance between width and resolution (e.g., a slightly thinner network with higher resolution) often yields better accuracy than just slimming the network.
Class Activation Maps (CAM) show that larger configurations focus on details while smaller ones focus on body contours.

Key Results

  • Superior Efficiency: On ImageNet, MutualNet consistently outperformed US-Net and SlimmableNet. For example, at a 150 MFLOP budget, MutualNet achieved 65.6% accuracy compared to US-Net's 62.9%.
  • Performance Boost: Even if you don't need an adaptive model, MutualNet works as a training strategy to boost static models. A ResNet-50 trained via MutualNet reached 78.6% Top-1 accuracy on ImageNet, a significant jump over the 76.5% baseline.
  • 3D Breakthrough: MutualNet is the first to demonstrate effective adaptive 3D networks. On the Kinetics-400 dataset, it outperformed state-of-the-art models like SlowFast and X3D across various resource constraints while using a single set of weights.

Limitations and Future Work

While MutualNet is highly effective, the authors noted some challenges when combining it with Dynamic Blocks (like Squeeze-and-Excitation layers). In MobileNetV3, the performance gains were less pronounced, likely because sharing the same SE block across different channel widths is difficult.

Future research directions include exploring how MutualNet can be combined with other dynamic inference techniques, such as early-exit strategies or skip-layer mechanisms, to further push the boundaries of on-device AI efficiency.

Summary updated

BibTeX
@article{yang2023mutualnet,
  author = {Taojiannan Yang and Sijie Zhu and Matías Mendieta and Pu Wang and Ravikumar Balakrishnan and Minwoo Lee and Tao Han and Mubarak Shah and Chen Chen},
  title = {{MutualNet: Adaptive ConvNet via Mutual Learning From Different Model Configurations}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  url = {https://openreview.net/forum?id=cS7YxrPFcx},
}
Figure