Skip to main content
QUICK REVIEW

[Paper Review] Fixing the train-test resolution discrepancy

Hugo Touvron, Andrea Vedaldi|arXiv (Cornell University)|Jun 14, 2019
Advanced Neural Network ApplicationsComputer Science44 references23 citations
TL;DR

This paper addresses the train-test resolution discrepancy in image classification, where training at lower resolutions improves test-time performance due to distribution shift from data augmentation. It proposes a lightweight fine-tuning method that adapts a model trained at low resolution to higher test resolution, achieving state-of-the-art 86.4% top-1 accuracy on ImageNet with a ResNeXt-101 32x48d model trained on 224×224 images and fine-tuned at 320×320.

ABSTRACT

Data-augmentation is key to the training of neural networks for image classification. This paper first shows that existing augmentations induce a significant discrepancy between the typical size of the objects seen by the classifier at train and test time. We experimentally validate that, for a target test resolution, using a lower train resolution offers better classification at test time. We then propose a simple yet effective and efficient strategy to optimize the classifier performance when the train and test resolutions differ. It involves only a computationally cheap fine-tuning of the network at the test resolution. This enables training strong classifiers using small training images. For instance, we obtain 77.1% top-1 accuracy on ImageNet with a ResNet-50 trained on 128x128 images, and 79.8% with one trained on 224x224 image. In addition, if we use extra training data we get 82.5% with the ResNet-50 train with 224x224 images. Conversely, when training a ResNeXt-101 32x48d pre-trained in weakly-supervised fashion on 940 million public images at resolution 224x224 and further optimizing for test resolution 320x320, we obtain a test top-1 accuracy of 86.4% (top-5: 98.0%) (single-crop). To the best of our knowledge this is the highest ImageNet single-crop, top-1 and top-5 accuracy to date.

Motivation & Objective

  • To identify and resolve the distribution shift caused by differing training and test resolution in image classification.
  • To improve model generalization and test-time accuracy by aligning the resolution of training and test data.
  • To enable faster, more efficient training by using lower-resolution training crops while maintaining high test accuracy.
  • To develop a computationally cheap method to adapt pre-trained models to higher test resolutions post-training.

Proposed method

  • Train a classifier at a lower resolution (e.g., 128×128 or 160×160) to reduce training time and memory usage.
  • At test time, use a higher-resolution crop (e.g., 224×224 or 320×320) to better match the actual image content.
  • Fine-tune only the final fully connected layer and batch normalization layers to adapt the model to the new resolution.
  • Use standard data augmentation during training but adjust the Region of Classification (RoC) sampling to reduce scale variance.
  • Leverage pre-trained models trained on large-scale weakly supervised datasets and apply resolution adaptation to boost performance.
  • Apply the method to both standard and large-scale models, including ResNet-50, PNASNet-5-Large, and ResNeXt-101 32x48d.

Experimental results

Research questions

  • RQ1Does a discrepancy in resolution between training and inference affect model performance in image classification?
  • RQ2Can training at lower resolution improve test-time accuracy despite lower input resolution?
  • RQ3Can a simple fine-tuning procedure at test resolution compensate for the resolution mismatch?
  • RQ4Does the proposed method improve performance on both standard and large-scale models?
  • RQ5Can this method be applied effectively in transfer learning settings with higher-resolution test inputs?

Key findings

  • A ResNet-50 trained on 128×128 images achieved 77.1% top-1 accuracy on ImageNet, outperforming standard 224×224 training.
  • A ResNet-50 fine-tuned at 320×320 test resolution achieved 79.8% top-1 accuracy, demonstrating the effectiveness of resolution adaptation.
  • A ResNeXt-101 32x48d pre-trained on 940 million 224×224 images and fine-tuned at 320×320 achieved 86.4% top-1 accuracy, setting a new SOTA on ImageNet.
  • The method improved performance across multiple transfer learning benchmarks, including iNaturalist, Stanford Cars, and Oxford-102 Flowers.
  • The improvement was more pronounced at higher test resolutions, indicating growing relevance with increasing image quality.
  • The method enables significant training speedups (e.g., 3× faster inference at half resolution) and reduced memory usage without sacrificing final accuracy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.