Exploring Color Invariance through Image-Level Ensemble Learning

Yunpeng Gong, Jiaquan Li, Lifei Chen, Min JiangarXiv 2024 · DOI

Abstract

Deep learning models for person re-identification (ReID) often suffer from color bias, where identity is incorrectly tied to clothing color rather than structural features. This paper proposes Random Color Erasing (RCE), a data augmentation technique that randomly converts image regions to grayscale. RCE forces models to learn color-invariant structural features, effectively acting as an implicit ensemble of color-sensitive and color-invariant classifiers. Experimental results on ReID and semantic segmentation benchmarks demonstrate that RCE significantly improves performance and cross-domain generalization without additional computational cost.

Introduction

In wide-area surveillance, person re-identification (ReID) is a critical task. However, models frequently over-rely on color information, which varies significantly across different camera views due to lighting and white balance changes. While standard "Random Erasing" addresses occlusions by masking image patches, it destroys underlying structural information like edges and textures. Generative Adversarial Network (GAN) based style transfer methods attempt to simulate color variations but are computationally heavy and prone to artifacts. This work introduces Random Color Erasing (RCE) to achieve color invariance by preserving structural integrity while removing volatile color cues.

Methods

Random Color Erasing (RCE) consists of two main components: Global Color Erasing (GCE) and Local Color Erasing.

  1. Global Color Erasing (GCE): With a probability $p_g$, the entire training batch is converted to grayscale, forcing the model to learn features that persist in the absence of color.
  2. Local Color Erasing: With a probability $p_r$, a random rectangular region within an image is replaced with its grayscale equivalent. This creates "hybrid" images that force the network to reconcile color features from one area with structural features from another.

Mathematically, this process can be viewed as an image-level ensemble learning strategy. By training on a mix of RGB and grayscale data, the resulting network effectively functions as an ensemble of color-sensitive and color-invariant classifiers, leading to superior generalization.

Overview of the Random Color Erasing (RCE) framework and its interpretation as an ensemble model.

Results and Analysis

The proposed method was evaluated across standard ReID benchmarks (Market-1501, DukeMTMC-reID) and industrial segmentation tasks. On Market-1501, adding RCE to the FastReID baseline improved Rank-1 accuracy to 96.5% and mAP to 91.2%. Notably, in cross-domain scenarios (Market → Duke), RCE provided a nearly 3% boost in Rank-1 accuracy, confirming its robustness against camera-specific color biases.

Qualitative analysis using Grad-CAM heatmaps reveals the mechanism behind these gains. Models trained with RCE focus more precisely on human body structures and boundaries, whereas baseline models are often distracted by background colors or specific clothing hues. This shift in attention confirms that the model is learning more robust, identity-defining features.

Grad-CAM visualizations comparing the baseline model with the RCE-enhanced model, showing improved focus on structural features.

Conclusion

Random Color Erasing is a simple, effective, and computationally "free" augmentation strategy. By "bleaching" images rather than masking them, RCE preserves essential geometric information while discouraging color obsession. The method achieves state-of-the-art results in ReID and significant improvements in semantic segmentation. Future work may explore more complex color transformations beyond grayscale to further enhance domain adaptation in tasks where color might still hold some discriminative value.

Summary updated

BibTeX
@misc{gong2024exploring,
  author = {Yunpeng Gong and Jiaquan Li and Lifei Chen and Min Jiang},
  title = {{Exploring Color Invariance through Image-Level Ensemble Learning}},
  year = {2024},
  eprint = {2401.10512},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.10512},
}
Figure