Reference. Stride and Translation Invariance in CNNs
Convolutional Neural Networks have become the standard for image classification tasks, however, these architectures are not invariant to translations of the input image. This lack of invariance is attributed to the use of stride which ignores the sampling theorem, and fully connected layers which lack spatial reasoning. We show that stride can greatly benefit translation invariance given that it is combined with sufficient similarity between neighbouring pixels, a characteristic which we refer to as local homogeneity. We also observe that this characteristic is dataset-specific and dictates the relationship between pooling kernel size and stride required for translation invariance. Furthermore we find that a trade-off exists between generalization and translation invariance in the case of pooling kernel size, as larger kernel sizes lead to better invariance but poorer generalization. Finally we explore the efficacy of other solutions proposed, namely global average pooling, anti-aliasing, and data augmentation, both empirically and through the lens of local homogeneity.
Cite
Cites 15 works (1 here)
With notes (1)
Why do deep convolutional networks generalize so poorly to small image transformations? azulayWhyDeepConvolutional
Convolutional Neural Networks (CNNs) are commonly assumed to be invariant to small image transformations: either because of the convolutional architecture or because they were trained using data augmentation. Recently, several authors have shown that this is not the case: small translations or rescalings of the input image can drastically change the network’s prediction. In this paper, we quantify this phenomena and ask why neither the convolutional architecture nor data augmentation are sufficient to achieve the desired invariance. Specifically, we show that the convolutional architecture does not give invariance since architectures ignore the classical sampling theorem, and data augmentation does not give invariance because the CNNs learn to be invariant to transformations only for images that are very similar to typical images from the training set. We discuss two possible solutions to this problem: (1) antialiasing the intermediate representations and (2) increasing data augmentation and show that they provide only a partial solution at best. Taken together, our results indicate that the problem of insuring invariance to small image transformations in neural networks while preserving high accuracy remains unsolved.
External (14)
- On translation invariance in CNNs: Convolutional layers can exploit absolute spatial location (2020)
- Making convolutional networks shift-invariant again (2019)
- Quantifying translation-invariance in convolutional neural networks (2018)
- Dynamic routing between capsules (2017)
- Spatial transformer networks (2015)
- Understanding image representations by measuring their equivariance and equivalence (2014)
- Convolutional neural networks at constrained time cost (2014)
- Adam: A method for stochastic optimization (2014)
- Learning multiple layers of features from tiny images (2012)
- ImageNet classification with deep convolutional neural networks (2012)
- Evaluation of Pooling Operations in Convolutional Architectures for Object Recognition (2010)
- Backpropagation Applied to Handwritten Zip Code Recognition (1989)
- Certain topics in telegraph transmission theory (1928)
- MNIST database of handwritten digits