Skip to main content
QUICK REVIEW

[Paper Review] Wise-SrNet: A Novel Architecture for Enhancing Image Classification by Learning Spatial Resolution of Feature Maps

Mohammad Rahimzadeh, Amirali Askari|arXiv (Cornell University)|Apr 26, 2021
Advanced Image and Video Retrieval TechniquesComputer Science22 references6 citations
TL;DR

This paper proposes Wise-SrNet, a novel deep learning architecture that replaces Global Average Pooling (GAP) in convolutional neural networks to preserve spatial resolution of feature maps without increasing computational cost. Inspired by depthwise separable convolutions, Wise-SrNet applies learnable spatial attention per channel, improving Top-1 accuracy by 2–8% on 224×224 images and 3–26% on 512×512 images across multiple models and datasets.

ABSTRACT

One of the main challenges since the advancement of convolutional neural networks is how to connect the extracted feature map to the final classification layer. VGG models used two sets of fully connected layers for the classification part of their architectures, which significantly increased the number of models' weights. ResNet and the next deep convolutional models used the Global Average Pooling (GAP) layer to compress the feature map and feed it to the classification layer. Although using the GAP layer reduces the computational cost, but also causes losing spatial resolution of the feature map, which results in decreasing learning efficiency. In this paper, we aim to tackle this problem by replacing the GAP layer with a new architecture called Wise-SrNet. It is inspired by the depthwise convolutional idea and is designed for processing spatial resolution while not increasing computational cost. We have evaluated our method using three different datasets: Intel Image Classification Challenge, MIT Indoors Scenes, and a part of the ImageNet dataset. We investigated the implementation of our architecture on several models of the Inception, ResNet, and DenseNet families. Applying our architecture has revealed a significant effect on increasing convergence speed and accuracy. Our Experiments on images with 224*224 resolution increased the Top-1 accuracy between 2% to 8% on different datasets and models. Running our models on 512*512 resolution images of the MIT Indoors Scenes dataset showed a notable result of improving the Top-1 accuracy within 3% to 26%. We will also demonstrate the GAP layer's disadvantage when the input images are large and the number of classes is not few. In this circumstance, our proposed architecture can do a great help in enhancing classification results. The code is shared at https://github.com/mr7495/image-classification-spatial.

Motivation & Objective

  • Address the loss of spatial resolution caused by Global Average Pooling (GAP) in modern CNNs, which hinders learning efficiency.
  • Overcome the limitation of GAP in large-scale image classification tasks with high-resolution inputs and numerous classes.
  • Design a lightweight, computation-efficient alternative to GAP that maintains spatial information while reducing model parameters.
  • Enable improved convergence speed and classification accuracy across diverse architectures like ResNet, DenseNet, and Inception.
  • Investigate the incompatibility of GAP-optimized models like EfficientNet with alternative feature compression methods, such as Wise-SrNet.

Proposed method

  • Introduce a novel architecture, Wise-SrNet, that replaces the GAP layer with a learnable spatial resolution processing module.
  • Leverage depthwise convolutional principles to process spatial dimensions independently per channel using channel-specific trainable weights.
  • Design a depthwise-like layer with shared spatial weights across channels but learnable per-channel transformations to preserve spatial structure.
  • Integrate regularization and normalization layers to prevent overfitting while maintaining computational efficiency.
  • Ensure the architecture maintains similar FLOPs to GAP by avoiding full dense or fully connected layers.
  • Apply the architecture as a replacement for the final GAP layer in various backbone models (ResNet, DenseNet, Inception, Xception).
(a) Classification with Global Average Pooling
(a) Classification with Global Average Pooling

Experimental results

Research questions

  • RQ1Can a learnable, spatially-aware compression layer improve image classification accuracy compared to standard GAP while maintaining computational efficiency?
  • RQ2How does preserving spatial resolution in feature maps affect convergence speed and model generalization across different datasets and image resolutions?
  • RQ3Why does Wise-SrNet show limited improvement on EfficientNet models despite strong gains on other architectures?
  • RQ4To what extent does the use of GAP degrade performance on high-resolution images and large-class datasets, and can Wise-SrNet mitigate this?
  • RQ5Can the proposed architecture be universally applied across different CNN families without architectural retraining?

Key findings

  • Wise-SrNet improved Top-1 accuracy by 2% to 8% on 224×224 resolution images across multiple datasets and models, including ResNet50, DenseNet121, and Inception.
  • On 512×512 resolution images from the MIT Indoor Scenes dataset, Top-1 accuracy improved by 3% to 26%, demonstrating significant gains on high-resolution inputs.
  • The performance degradation of Wise-SrNet on EfficientNet models is attributed to their NAS-optimized architecture, which was specifically tuned for GAP, making them less adaptable to alternative compression layers.
  • Grad-CAM visualizations confirmed that Wise-SrNet produces more discriminative and spatially coherent feature maps compared to GAP, indicating better localization of relevant image regions.
  • The proposed architecture maintains computational cost comparable to GAP while enabling richer spatial feature representation, proving effective in scenarios with many classes and large input images.
  • Wise-SrNet outperforms GAP across all evaluated models except EfficientNet, confirming that architecture-specific optimization for GAP limits transferability of alternative methods.
(b) Classification with Global Weighted Average Pooling
(b) Classification with Global Weighted Average Pooling

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.