[Paper Review] Convolutional Neural Networks Are Not Invariant to Translation, but They Can Learn to Be
This paper demonstrates that standard Convolutional Neural Networks (CNNs) are not inherently invariant to translation, despite common belief, but can learn online translation invariance through ImageNet pretraining or sufficient data augmentation. The key finding is that while most CNNs fail at recognizing objects in untrained locations, pretraining enables them to generalize across spatial positions, with performance varying by class and susceptible to catastrophic forgetting during fine-tuning.
When seeing a new object, humans can immediately recognize it across different retinal locations: the internal object representation is invariant to translation. It is commonly believed that Convolutional Neural Networks (CNNs) are architecturally invariant to translation thanks to the convolution and/or pooling operations they are endowed with. In fact, several studies have found that these networks systematically fail to recognise new objects on untrained locations. In this work, we test a wide variety of CNNs architectures showing how, apart from DenseNet-121, none of the models tested was architecturally invariant to translation. Nevertheless, all of them could learn to be invariant to translation. We show how this can be achieved by pretraining on ImageNet, and it is sometimes possible with much simpler data sets when all the items are fully translated across the input canvas. At the same time, this invariance can be disrupted by further training due to catastrophic forgetting/interference. These experiments show how pretraining a network on an environment with the right `latent' characteristics (a more naturalistic environment) can result in the network learning deep perceptual rules which would dramatically improve subsequent generalization.
Motivation & Objective
- To challenge the widespread assumption that CNNs are architecturally invariant to translation due to convolution and pooling operations.
- To investigate whether CNNs can learn online translation invariance—recognizing objects at untrained locations after single-location training—beyond just trained invariance via data augmentation.
- To examine the role of pretraining on ImageNet and data distribution characteristics in enabling or disrupting translation invariance.
- To analyze the impact of catastrophic forgetting on learned invariance during fine-tuning on new datasets.
- To explore inter-class variability in learned invariance, identifying why some classes achieve near-perfect invariance while others do not.
Proposed method
- Trained a wide range of CNN architectures (excluding DenseNet-121) on ImageNet and smaller datasets (EMNIST, MNIST) with full spatial translation of input images.
- Evaluated online translation invariance by training on one fixed location and testing on all other locations across the input canvas.
- Used heatmaps to visualize classification accuracy across spatial positions for each class, assessing invariance per class.
- Performed fine-tuning on one-location data (e.g., MNIST) after pretraining on fully-translated data (e.g., EMNIST), then tested on fully-translated versions.
- Varied the number of classes pre-trained on the full canvas (from 1 to 25) to study the effect of training coverage on invariance for untrained locations.
- Analyzed inter-class variability in invariance performance, identifying conditions under which some classes achieve near-perfect invariance.
Experimental results
Research questions
- RQ1Do standard CNN architectures exhibit architectural invariance to translation, as commonly believed?
- RQ2Can CNNs learn online translation invariance—recognizing objects at untrained spatial locations—through pretraining or data augmentation?
- RQ3How does pretraining on ImageNet or fully-translated data affect the network’s ability to generalize across spatial positions?
- RQ4To what extent is learned translation invariance disrupted by catastrophic forgetting during fine-tuning on new datasets?
- RQ5Why do some classes achieve near-perfect translation invariance while others show significant performance drops in untrained regions?
Key findings
- None of the tested CNN architectures, except DenseNet-121, were architecturally invariant to translation, despite common claims about convolution and pooling operations.
- All tested CNNs could learn online translation invariance through pretraining on ImageNet or fully-translated data, with performance varying by class.
- For some EMNIST letters (e.g., E and Z), the network achieved near-perfect translation invariance across the entire canvas after pretraining.
- Fine-tuning on a new one-location dataset (e.g., MNIST) after pretraining on fully-translated data led to partial invariance in the pretrained region but degraded performance in untrained areas, especially in the upper-right quadrant.
- When only a single class (e.g., letter A) was trained on the full canvas, the network achieved almost perfect invariance for that class across all locations, indicating strong generalization from minimal full-coverage training.
- Classes trained only on a subset of the canvas (e.g., upper-right quadrant) were never correctly classified when presented in untrained regions, even after pretraining, showing that localized training does not generalize spatially.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.