Multi-scale Unified Network for Image Classification

Wenzhuo Liu, Fei Zhu, Cheng-Lin LiuarXiv 2024

Abstract: Convolutional Neural Networks (CNNs) have advanced significantly in visual representation learning and recognition. However, they face notable challenges in performance and computational efficiency when dealing with real-world, multi-scale image inputs. Conventional methods rescale all input images into a fixed size, wherein a larger fixed size favors performance but rescaling small size images to a larger size incurs digitization noise and increased computation cost. In this work, we carry out a comprehensive, layer-wise investigation of CNN models in response to scale variation, based on Centered Kernel Alignment (CKA) analysis. The observations reveal lower layers are more sensitive to input image scale variations than high-level layers. Inspired by this insight, we propose Multi-scale Unified Network (MUSN) consisting of multi-scale subnets, a unified network, and scale-invariant constraint. Our method divides the shallow layers into multi-scale subnets to enable feature extraction from multi-scale inputs, and the low-level features are unified in deep layers for extracting high-level semantic features. A scale-invariant constraint is posed to maintain feature consistency across different scales. Extensive experiments on ImageNet and other scale-diverse datasets demonstrate that MSUN achieves significant improvements in both model performance and computational efficiency. Particularly, MSUN yields an accuracy increase up to 44.53% and diminishes FLOPs by 7.01-16.13% in multi-scale scenarios.

Introduction

In the field of computer vision, standard convolutional architectures typically rely on fixed-resolution inputs (e.g., 224x224 pixels) for both training and inference. However, real-world applications encounter images from a vast array of sources and distances, resulting in significant scale diversity. Standard CNNs are notoriously brittle to these variations; a model trained on high-resolution data often experiences a catastrophic drop in accuracy when processing low-resolution inputs.

Comparison of standard CNN and MUSN performance across different input scales.

To address this, practitioners often resort to upsampling small images, which introduces digitization noise and wastes computational power, or multi-scale training, which can degrade performance on the primary target resolution. This paper introduces the Multi-scale Unified Network (MUSN), an architecture designed to be inherently robust to scale while maintaining high efficiency.

The Scale Sensitivity Problem

The researchers began by investigating which parts of a CNN are most affected by scale changes. Using Centered Kernel Alignment (CKA)—a metric for comparing feature similarity—they conducted a layer-wise analysis across several popular architectures.

CKA analysis of ResNet-50 showing feature similarity across scales for different network blocks.

The findings revealed a critical insight: shallow layers, which extract low-level features like edges and textures, are highly sensitive to input scale. In contrast, deeper layers that capture high-level semantic information are much more robust. This "shallow sensitivity" suggests that scale-invariance does not need to be enforced throughout the entire network, but rather handled specifically at the input stage.

The MUSN Architecture

Leveraging the discovery of shallow-layer sensitivity, the authors proposed the MUSN framework, which consists of three main pillars:

  1. Multi-scale Subnets: Instead of a single set of early layers, MUSN employs specialized subnets for small, medium, and large inputs. This allows the network to extract scale-appropriate features without the need for expensive upsampling.
  2. Unified Deep Network: The features from these subnets are fed into a single, shared deep network. This architecture allows the model to share high-level semantic knowledge across all input scales.
  3. Scale-Invariant (SI) Constraint: To ensure consistency, a regularization term is applied during training that forces the features from different subnets to be similar for the same semantic content.
  4. Smart Inference: At runtime, the system dynamically selects the subnet that matches the input image's size, optimizing both performance and speed.

Experimental Results and Discussion

MUSN was rigorously tested on ImageNet and 11 additional scale-diverse datasets, including CIFAR-10/100, Oxford Pets, and Stanford Cars.

  • Performance Gains: The improvements are most dramatic for low-resolution data. On 32x32 ImageNet test samples, a standard ResNet50 achieves only 19.64% accuracy, while the MUSN variant reaches 61.83%—an absolute increase of over 42%.
  • Efficiency: Despite the addition of subnets, MUSN actually reduces total computational cost. By avoiding upsampling and using optimized paths for smaller images, it achieves a 7.01% to 16.13% reduction in FLOPs in multi-scale scenarios.
  • Visual Consistency: Grad-CAM analysis showed that MUSN maintains a consistent focus on relevant objects regardless of their size, whereas vanilla models often fail to localize objects in low-resolution images.

Conclusion

The Multi-scale Unified Network (MUSN) provides a robust and efficient solution to the long-standing problem of scale variance in image classification. By specializing the sensitive shallow layers and unifying the robust deep layers, MUSN achieves state-of-the-art performance across diverse resolutions. Future research will explore the application of these multi-scale principles to Vision Transformers and object detection tasks.

Paper Citation: Liu, W., Zhu, F., & Liu, C.-L. (2024). Multi-scale Unified Network for Image Classification. arXiv:2403.18294v1 [cs.CV].

Summary updated

BibTeX
@misc{liu2024multi,
  author = {Wenzhuo Liu and Fei Zhu and Cheng-Lin Liu},
  title = {{Multi-scale Unified Network for Image Classification}},
  year = {2024},
  eprint = {2403.18294},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.18294},
}
Figure