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

Learning to Learn Parameterized Classification Networks for Scalable Input Images

Duo Li, Anbang Yao, Qifeng Chen

Introduction

In deep learning deployment, input resolution is a persistent challenge. While state-of-the-art models are often trained on high-resolution images, they frequently underperform when deployed on resource-constrained devices that require smaller inputs to conserve power. Standard Convolutional Neural Networks (CNNs) suffer from scale deviation: although Global Average Pooling (GAP) allows them to accept various input sizes, accuracy drops significantly if the test resolution differs from the training resolution. Traditionally, this is addressed by maintaining a library of models for different resolutions, which is inefficient for storage and maintenance.

This paper proposes the Scale Adaptive Network (SAN), a framework that uses a single "meta-network" to dynamically generate weights for a classifier based on the input image size. This approach allows a single model to adapt to any resolution at runtime, outperforming individually trained models across a wide spectrum of sizes.

Methodology

The SAN framework consists of three core components designed to handle scale variance effectively:

  1. Meta-Learners for Weight Generation: Instead of static weights, convolutional layers are generated by a controller—typically a small Multi-Layer Perceptron (MLP). This controller receives a Scale Encoding (the input resolution) and produces the corresponding weights for the main network.
  2. Privatized Batch Normalization (BN): Because feature distributions shift significantly across resolutions, sharing BN statistics is detrimental. SAN maintains separate, "privatized" BN layers for each target resolution to ensure proper calibration.
  3. Scale Distillation: A "top-down" distillation strategy is employed during training. The model processes the same image at multiple resolutions, where the high-resolution prediction acts as a "teacher" to provide soft labels for lower-resolution "student" predictions, transferring fine-grained knowledge across scales.
The Scale Adaptive Network (SAN) architecture, featuring a Meta Network for weight generation and Scale Distillation across resolutions.

Experimental Setup

The researchers evaluated SAN on the ImageNet (ILSVRC 2012) dataset, using architectures such as ResNet-18, ResNet-50, and MobileNetV2. The framework was tested for its ability to generalize across a wide range of resolutions beyond those encountered during training.

Results and Discussion

The SAN framework consistently outperformed baseline models trained for specific resolutions. Key findings include:

  • Accuracy Gains: On MobileNetV2, SAN achieved higher Top-1 accuracy across nearly all resolutions. In cases of extreme scale deviation, SAN provided an accuracy boost of over 10%.
  • Efficiency: The meta-network's overhead is negligible, allowing the model to adapt to different latency requirements on-the-fly without significant computational cost.
  • Generalization: SAN outperformed other state-of-the-art methods like FixRes, particularly at smaller input resolutions.
Top-1 accuracy comparison between baseline models and SAN across various test resolutions. SAN consistently outperforms baselines, especially under scale deviation.

Interestingly, the authors found that a simple single-layer MLP is often sufficient for the meta-learner, as higher complexity can lead to overfitting. Furthermore, the model performs "implicit" distillation by sharing the meta-network across scales, which is further enhanced by the explicit scale distillation loss.

Conclusion

The Scale Adaptive Network provides an elegant solution to the problem of scale deviation in CNNs. By dynamically parameterizing the network based on input resolution, SAN achieves superior performance and flexibility compared to traditional multi-model approaches. Future work may extend this scale-adaptive logic to tasks like object detection and semantic segmentation, where handling internal scale variance is critical.

Summary updated

BibTeX
@inproceedings{li2020learning,
  author = {Duo Li and Anbang Yao and Qifeng Chen},
  title = {{Learning to Learn Parameterized Classification Networks for Scalable Input Images}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58526-6\_2},
}
Figure