Skip to main content
QUICK REVIEW

[Paper Review] Repaint: Improving the Generalization of Down-Stream Visual Tasks by Generating Multiple Instances of Training Examples

Amin Banitalebi-Dehkordi, Yong Zhang|arXiv (Cornell University)|Oct 20, 2021
Advanced Neural Network ApplicationsComputer Science40 references4 citations
TL;DR

This paper proposes Repaint, a data augmentation method that generates diverse, texture-varied versions of training images while preserving object shapes and structures. By repainting images to simulate different lighting, seasons, or colors, the method improves generalization in downstream tasks like image classification and object detection across multiple architectures and data regimes.

ABSTRACT

Convolutional Neural Networks (CNNs) for visual tasks are believed to learn both the low-level textures and high-level object attributes, throughout the network depth. This paper further investigates the `texture bias' in CNNs. To this end, we regenerate multiple instances of training examples from each original image, through a process we call `repainting'. The repainted examples preserve the shape and structure of the regions and objects within the scenes, but diversify their texture and color. Our method can regenerate a same image at different daylight, season, or weather conditions, can have colorization or de-colorization effects, or even bring back some texture information from blacked-out areas. The in-place repaint allows us to further use these repainted examples for improving the generalization of CNNs. Through an extensive set of experiments, we demonstrate the usefulness of the repainted examples in training, for the tasks of image classification (ImageNet) and object detection (COCO), over several state-of-the-art network architectures at different capacities, and across different data availability regimes.

Motivation & Objective

  • Investigate the texture bias in CNNs, where models rely more on texture than shape for visual recognition.
  • Address overfitting and poor generalization in deep networks by introducing a novel data augmentation strategy.
  • Develop a method that generates semantically consistent, visually diverse training examples without altering object structure.
  • Improve model robustness and performance on image classification and object detection tasks across various network architectures and data scales.
  • Demonstrate the effectiveness of repainted data as a general-purpose, orthogonal augmentation technique compatible with existing training pipelines.

Proposed method

  • Use a lightweight, trainable generative model (based on GANs) to perform 'repainting'—replacing textures and colors in input images while preserving object shapes and spatial layouts.
  • Leverage weakly-supervised or unsupervised instance segmentation masks (e.g., DeepLab-v2 or Felzenszwalb-Huttenlocher) to guide region-specific repainting.
  • Train the generative module end-to-end with the downstream task (e.g., classification or detection) to optimize for task-relevant texture diversity.
  • Apply the repainted images as augmented training data, effectively increasing dataset diversity without requiring new annotations.
  • Use a variational generation process to produce multiple distinct repainted versions per original image, enhancing data augmentation capacity.
  • Integrate the repainting module as a differentiable, in-place augmentation layer, enabling compatibility with both classification and detection models.

Experimental results

Research questions

  • RQ1Can repainting images with diverse textures and colors while preserving shapes improve generalization in downstream visual tasks?
  • RQ2How does repainting compare to standard data augmentation in terms of performance gains across different network architectures?
  • RQ3Does the method yield greater improvements under low-data regimes, such as 1% or 10% of ImageNet or COCO?
  • RQ4How sensitive is the performance gain to the quality of the segmentation masks used in the repainting process?
  • RQ5Can repainting be effectively applied to both image classification and object detection tasks without architectural modifications?

Key findings

  • Repaint consistently improves top-1 accuracy on ImageNet by +0.58% to +0.99% across different models (MobileNetv2 to ResNet-50), with average gains of +0.77% using DeepLab-v2 masks.
  • On COCO object detection, Repaint boosts mAP@0.50:0.95 by +1.10% to +1.59% across EfficientDet models, with an average improvement of +1.22% using DeepLab-v2 masks.
  • The method achieves the largest gains in low-data regimes: +4.09% top-1 accuracy on ImageNet with only 1% of training data, and +4.14% mAP on COCO with 1% data.
  • Performance gains are robust even when using lower-quality segmentation masks (e.g., FH), with average improvements of +0.64% on ImageNet and +0.96% on COCO.
  • The computational overhead is manageable, increasing training time by approximately 66% for classification and 53% for detection, which can be reduced via model compression or selective application.
  • Repainted examples enable models to learn more robust features, as evidenced by improved generalization under distribution shift and reduced overfitting, especially in low-data settings.

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.