Just a Matter of Scale? Reevaluating Scale Equivariance in Convolutional Neural Networks

Thomas Altstidl, An Nguyen, Leo Schwinn, Franz Köferl, Christopher Mutschler, Björn M. Eskofier, Dario Zanca · DOI

Abstract

Convolutional Neural Networks (CNNs) are inherently translation-equivariant but lack built-in scale equivariance. While data augmentation is commonly used to address this, it does not resolve the underlying architectural limitations. This paper introduces the Scaled and Translated Image Recognition (STIR) benchmark to rigorously evaluate scale generalization. Furthermore, we propose the Scaled Convolutional Layer (SConv2d), which utilizes weight-shared, rescaled kernels in parallel to achieve scale equivariance. Our results demonstrate that SConv2d variants, specifically PixelPool and SlicePool, consistently outperform existing scale-invariant architectures across diverse domains.

Introduction

Translation equivariance is a fundamental property of CNNs, ensuring that an object's position does not affect its recognition. However, scale equivariance—the ability to recognize objects across different sizes—is not mathematically guaranteed. Standard models trained on specific object scales often fail when encountering significantly different sizes at test time. This "scale gap" is typically mitigated through brute-force data augmentation, which increases training time without providing a structural solution. This work addresses the need for both a standardized evaluation framework and architectural designs that inherently handle scale variations.

The STIR Benchmark

To measure scale generalization, we introduce the Scaled and Translated Image Recognition (STIR) benchmark. STIR comprises four datasets representing different visual domains: Emojis (vector-generated for sharpness), MNIST (handwritten digits), Traffic Signs (MTSD), and Aerial Objects (DOTA). Evaluation is conducted through specific generalization scenarios, such as Small2Large, where models are trained on small instances and tested on larger ones, forcing the network to generalize beyond its training distribution.

Proposed Method: Scaled Convolutional Layers

We propose the Scaled Convolutional Layer (SConv2d) to integrate scale awareness directly into the convolutional operation.

Overview of the SConv2d architecture, illustrating kernel rescaling, parallel convolution, and the PixelPool/SlicePool strategies.

The SConv2d process involves three key steps:

  1. Kernel Rescaling: A base kernel (e.g., $3 \times 3$) is interpolated to multiple larger sizes (e.g., $5 \times 5, 7 \times 7$) using bicubic interpolation. Weights are shared across all scales to maintain parameter efficiency.
  2. Parallel Convolutions: The input is convolved with this set of multi-scale kernels simultaneously, producing a stack of feature maps.
  3. Scale Pooling: To reduce the scale dimension, we introduce two pooling strategies: PixelPool, which selects the maximum activation across scales for each spatial location, and SlicePool, which identifies the single best-performing scale for the entire feature map.

Results and Analysis

Our evaluation on the STIR benchmark reveals several key insights. The proposed PixelPool and SlicePool models consistently rank among the top performers, often exceeding the accuracy of specialized architectures like Hermite steerable filters.

Testing accuracy comparison on the STIR benchmark for Mid2Rest and All2All evaluation scenarios.

We observed a strong correlation between lower "equivariance error" and higher classification accuracy, validating that structural equivariance translates to better generalization. A notable finding is the "Smaller is Harder" rule: generalizing from large to small objects is significantly more difficult than the reverse. This is likely due to spectral bias, where networks struggle to capture the high-frequency details of small objects if they were only exposed to low-frequency patterns during training.

Limitations and Future Work

The primary trade-off for SConv2d is computational overhead. Running multiple parallel convolutions increases FLOPs by 10x to 100x compared to standard CNNs. Future research should focus on optimizing these operations, perhaps through dilated convolutions or more efficient weight-sharing implementations. Additionally, addressing boundary effects—where large kernels interact with image edges—remains a challenge for maintaining perfect mathematical equivariance in practical applications.

Summary updated

BibTeX
@inproceedings{altstidl2022just,
  author = {Thomas Altstidl and An Nguyen and Leo Schwinn and Franz Köferl and Christopher Mutschler and Björn M. Eskofier and Dario Zanca},
  title = {{Just a Matter of Scale? Reevaluating Scale Equivariance in Convolutional Neural Networks}},
  booktitle = {IJCNN},
  year = {2022},
  doi = {10.1109/ijcnn54540.2023.10191724},
}
Figure