Scale equivariance in CNNs with vector fields

Diego Marcos, Benjamin Kellenberger, Sylvain Lobry, Devis TuiaarXiv 2018

Introduction

Standard Convolutional Neural Networks (CNNs) are inherently translation equivariant: shifting an object in an image results in a corresponding shift in the feature map. However, they often struggle with scale equivariance. When an object's size changes, fixed-size filters may fail to recognize it. Traditionally, researchers aim for scale invariance by pooling across scales, which intentionally discards size information. This paper proposes a scale-equivariant architecture that preserves local scale information by representing it as a vector field.

Methods: The Scale-Equivariant Framework

The authors introduce a three-step process to achieve scale equivariance:

  1. Multi-scale Filtering: Convolutional filters are applied at multiple scales to the input image.
  2. Vector Field Encoding: For each pixel, the model identifies the scale with the strongest response. Instead of simple max-pooling, it encodes both the response strength (magnitude) and the scale index (phase) into a 2D vector.
  3. Vector Field Convolution: Subsequent layers operate on these vector fields, using a similarity metric that accounts for both signal strength and scale consistency.
Overview of the scale-equivariant pipeline, showing multi-scale convolution and vector field output.

This architecture ensures that changes in input scale translate to predictable shifts in the internal representation's phase, rather than being discarded. This allows the network to maintain an internal "understanding" of object size throughout its layers.

Key Insights: Scale as a Phase

A core innovation of this work is treating scale as an angle in a 2D plane. This approach disentangles object content from its scale without losing information. By using vector convolutions, the network learns how local scales interact across different regions.

Visualization of magnitude and scale disentangled as a vector field.

The authors found that an "angle range" of 120°—representing the maximum disagreement between the smallest and largest scales—yielded the best performance. This mathematical structure also improves efficiency, allowing the model to outperform standard CNNs with three times fewer filters.

Experimental Results

The model was evaluated on the MNIST-scale dataset, where digits are randomly rescaled between 0.3 and 1.0.

Classification and Regression

The scale-equivariant model demonstrated superior performance in both digit classification and scale regression:

  • Classification: It achieved a 2.44% error rate, outperforming standard CNNs (3.13%) and scale-invariant models (2.75%).
  • Scale Regression: The model predicted the exact scaling factor with an RMSE of 0.206, significantly better than standard (0.254) and scale-invariant (0.256) baselines. Notably, scale-invariant models performed poorly here because they are designed to discard the very information needed for regression.

Conclusion and Future Work

While highly effective on MNIST-scale, the approach introduces complexity through vector field convolutions and new hyperparameters like "angle range." Future research should explore its scalability to complex datasets like ImageNet and its utility in domains where object size is critical, such as histology and remote sensing.

Summary updated

BibTeX
@misc{marcos2018scale,
  author = {Diego Marcos and Benjamin Kellenberger and Sylvain Lobry and Devis Tuia},
  title = {{Scale equivariance in CNNs with vector fields}},
  year = {2018},
  eprint = {1807.11783},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.11783},
}
Figure