NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Dynamic Resolution Network

Mingjian Zhu, Kai Han, Enhua Wu, Qiulin Zhang, Ying Nie, Zhenzhong Lan, Yunhe Wang

Deep Convolutional Neural Networks (CNNs) have a "one-size-fits-all" problem. Whether you're feeding them a crystal-clear close-up of a panda or a tiny, blurry insect camouflaged against a leaf, the network usually processes both at the exact same fixed resolution (typically $224 \times 224$). This rigid approach is computationally wasteful.

In their NeurIPS 2021 paper, "Dynamic Resolution Network" (DRNet), researchers propose a smarter way: let the network decide the minimum resolution needed for each individual image.

TL;DR

DRNet is a framework that dynamically predicts the optimal input resolution for every image. It allows "easy" samples to be processed at lower resolutions to save power, while reserving high-resolution processing for "hard" samples. On ImageNet, DRNet applied to ResNet-50 achieves a ~34% reduction in computational cost while maintaining baseline accuracy.

What Problem Does This Paper Address?

Deploying powerful CNNs on mobile and edge devices is a constant struggle between accuracy and computational cost (measured in FLOPs). Most existing compression techniques focus on the network itself—pruning unimportant neurons, quantizing weights to fewer bits, or designing more efficient architectures.

However, these methods ignore input redundancy. As shown below, an "easy" sample like a panda can be identified correctly even at very low resolutions. In contrast, a "hard" sample like a damselfly requires high resolution to distinguish it from the background. By forcing a fixed high resolution on everything, we waste significant energy on simple images.

Easy vs. Hard samples at different resolutions

Methods

The authors introduce two main components to create a dynamic-resolution pipeline:

  1. Resolution Predictor: A tiny, lightweight CNN that sits in front of the main classifier. It takes the input image and outputs a probability distribution over a set of candidate resolutions (e.g., $112 \times 112$, $168 \times 168$, and $224 \times 224$).
  2. Resolution-aware Batch Normalization (RA-BN): This is a critical innovation. Standard Batch Normalization (BN) layers track statistics (mean and variance) that change significantly depending on the input resolution. Using a single shared BN layer for all resolutions leads to poor performance. DRNet uses private BN layers for each candidate resolution while sharing all other convolutional weights.
The DRNet overall framework

To train this end-to-end, the authors use the Gumbel-Softmax trick, which allows gradients to flow through the discrete "choice" of resolution. They also add a FLOPs constraint regularization term to the loss function, which penalizes the model for choosing high resolutions unless they are truly necessary for accuracy.

Key Insights and Ideas

  • Resolution is a Sample-Specific Property: The "optimal" resolution isn't a property of the dataset, but of the individual image. This shifts the focus from static model compression to dynamic inference.
  • The Importance of RA-BN: The paper demonstrates that simply sharing weights across resolutions isn't enough; you must decouple the normalization statistics. Without RA-BN, accuracy drops significantly.
  • Performance-Sufficient vs. Cost-Efficient: The training objective explicitly balances these two. By tuning a hyperparameter ($\alpha$), developers can choose whether they want a model that prioritizes maximum accuracy or maximum power savings.

Key Results

DRNet shows impressive gains across various architectures evaluated on ImageNet:

  • Efficiency: A DR-ResNet-50 achieves the same accuracy as a standard ResNet-50 but with 34% fewer FLOPs.
  • Accuracy Boost: If you prioritize performance, DR-ResNet-50 can actually increase accuracy by 1.4% while still reducing computation by 10%.
  • Versatility: The method works on lightweight models too. A DR-MobileNetV2 achieved 72.7% top-1 accuracy on ImageNet with 10% fewer FLOPs than the baseline.
  • Competitive Edge: DRNet outperforms other popular compression methods like Sparse Structure Selection (SSS) and Versatile Filters in the accuracy-vs-FLOPs trade-off.

Limitations and Future Work

While DRNet is a powerful step forward, there are a few areas for further exploration:

  • Discrete Choices: Currently, the model chooses from a small, pre-defined set of resolutions. Future work could explore continuous resolution scaling.
  • Predictor Overhead: Although the predictor is "negligible," it still consumes some FLOPs. For extremely tiny models, even this small overhead might be a concern.
  • Hardware Support: Dynamic execution can sometimes be tricky to optimize on specific hardware accelerators (like some DSPs or NPUs) that prefer static computation graphs.

In conclusion, DRNet proves that we don't need to see every image in high definition to understand it. By adding a simple "glance" step, neural networks can become significantly more efficient, bringing us one step closer to truly green and mobile-friendly AI.

Summary updated

BibTeX
@inproceedings{zhu2021dynamic,
  author = {Mingjian Zhu and Kai Han and Enhua Wu and Qiulin Zhang and Ying Nie and Zhenzhong Lan and Yunhe Wang},
  title = {{Dynamic Resolution Network}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=FGPhjC13UV},
}
Figure