Understanding when spatial transformer networks do not support invariance, and what to do about it

Lukas Finnveden, Ylva Jansson, Tony Lindeberg
4/24/2020
cs.CVcs.LG
transformer-attention

Official code: luuf/understanding-STNs (0 stars, Python, last commit 2022-02-17).

Abstract

Spatial transformer networks (STNs) were designed to enable convolutional neural networks (CNNs) to learn invariance to image transformations. STNs were originally proposed to transform CNN feature maps as well as input images.

Show full abstract

This enables the use of more complex features when predicting transformation parameters. However, since STNs perform a purely spatial transformation, they do not, in the general case, have the ability to align the feature maps of a transformed image with those of its original. STNs are therefore unable to support invariance when transforming CNN feature maps. We present a simple proof for this and study the practical implications, showing that this inability is coupled with decreased classification accuracy. We therefore investigate alternative STN architectures that make use of complex features. We find that while deeper localization networks are difficult to train, localization networks that share parameters with the classification network remain stable as they grow deeper, which allows for higher classification accuracy on difficult datasets. Finally, we explore the interaction between localization network complexity and iterative image alignment.

View on arXivView PDF

Code Implementations(1)

This is the code used for the experiments in "Understanding when spatial transformer networks do not support invariance, and what to do about it", published in the proceedings of ICPR 2020.

00PythonFeb 17, 20224 years ago

Similar Papers

Cite this paper

@article{finnveden2020understanding,
  title  = {Understanding when spatial transformer networks do not support invariance, and what to do about it},
  author = {Lukas Finnveden and Ylva Jansson and Tony Lindeberg},
  year   = {2020},
  eprint = {2004.11678},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.11678}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2004.11678.svg)](https://codeofpaper.com/paper/2004.11678)

Discussion