Eliminate Deviation with Deviation for Data Augmentation and a General Multi-modal Data Learning Method

Yunpeng Gong, Liqing Huang, Lifei Chen

TL;DR

Deep neural networks in computer vision often over-rely on color cues, making them fragile when lighting or camera conditions change across scenes. Instead of using complex generative adversarial networks (GANs) to synthesize every conceivable lighting variation, this paper introduces Random Color Dropout (RCD)—a lightweight data augmentation technique that randomly replaces whole images or image patches with grayscale or sketch representations. This simple trick curbs color overfitting, boosts cross-domain generalization, and naturally enables cross-modal retrieval without adding model parameters.

What Problem Does This Paper Address?

In visual retrieval tasks like Person Re-Identification (ReID), models must identify the same individual across non-overlapping surveillance cameras with varying viewpoints, lighting, and sensor characteristics. While color provides a strong initial identity cue, color appearance shifts drastically under shadows, varying white balances, and exposure changes (e.g., dark blue vs. black, or brown vs. yellow).

Existing approaches often turn to GANs to perform style transfer or synthesize multi-camera variations. However, GAN-based methods:

  1. Introduce synthetic visual artifacts and noise.
  2. Require significant compute and complex multi-stage training pipelines.
  3. Often fail to generalize well across entirely different camera datasets because domain variations cannot be fully exhausted through generation.

Methods

The authors propose Random Color Dropout (RCD) to balance the network's reliance between color cues and structural, color-independent features. RCD operates via two main components:

  1. Global Grayscale Transformation (GGT): With probability $p$ (empirically optimal around $0.05$), an entire training image is converted from RGB to grayscale while retaining its original identity label.
  2. Local Grayscale Transformation (LGT): With probability $p_r$ (empirically optimal around $0.4$), a random rectangular patch within the image is replaced by the corresponding patch from its grayscale conversion. This forces the model to tolerate local variations in color saturation without corrupting underlying structural semantics.
  3. Combining GGT + LGT: Pairing both transformations provides more stable training improvements than LGT alone.
  4. Sketch Transformation for Cross-Modal ReID: By replacing grayscale conversion with edge/sketch extraction—termed Global Sketch Transformation (GST) and Local Sketch Transformation (LST)—the framework enables the backbone to learn invariant representations across photos and hand-drawn sketches.

The models are trained using standard metric learning setups: a combination of hard-mining triplet loss and cross-entropy identity loss.

Input RGB Image ───► [ Random Selection ] ───► Standard CNN Backbone ───► Triplet + ID Loss
                           │
             ┌─────────────┴─────────────┐
             ▼                           ▼
    Global Grayscale (GGT)       Local Grayscale (LGT)
     (Entire image gray)          (Random patch gray)

Datasets

The authors evaluate RCD on widely adopted benchmark ReID datasets and a cross-modal benchmark:

  • Market-1501: 1,501 identities captured by 6 cameras (5 HD, 1 SD).
  • DukeMTMC-reID: 8 camera views, 2,700+ pedestrian identities with variable lighting.
  • MSMT17: Large-scale dataset containing 4,101 identities captured across multi-season, multi-time settings with complex illumination shifts.
  • Sketch ReID Dataset: 200 identities, each with 2 cross-view camera photos and 1 sketch drawn by professional artists.

No new datasets were introduced in this paper.

Key Insights and Ideas

  • Eliminating Deviation with Deviation: Instead of forcing networks to "memorize" endless variations of color shifts via generative data, selectively removing color information prevents the network from relying solely on fragile chromatic patterns.
  • Theoretical Classification Perspective: The authors model the ensemble behavior of component networks trained on color vs. grayscale data, showing that incorporating networks trained on color-agnostic data reduces expected generalization error on instances where color biases lead to misclassification.
  • Cross-Domain Robustness vs. Data Augmentation: While standard Random Erasing (REA) significantly improves within-domain performance, it can hurt cross-domain transfer. In contrast, RCD consistently improves cross-domain generalization across camera networks.
  • Free Modality Invariance: When extended to sketch transformations (GST + LST), the method bridges the gap between sketches and visible images without needing custom dual-stream attention networks or adversarial discriminators.

Key Results

  • Within-Domain Performance:
  • On Market-1501, adding GGT to a ResNet Strong Baseline (SB) with re-ranking boosted Rank-1 accuracy to 96.2% (from 95.4%) and mAP to 94.7% (from 94.2%). FastReID with GGT + re-ranking reached 96.9% Rank-1 and 95.6% mAP.
  • On MSMT17, FastReID with GGT + LGT achieved 86.2% Rank-1 and 65.9% mAP, beating the FastReID baseline (85.1% / 63.3%).
  • Cross-Domain Generalization:
  • On Market-1501 $\to$ DukeMTMC transfer, LGT outperformed the generative benchmark DGNet (39.7% Rank-1 vs. DGNet's 36.7% and baseline's 37.8%).
  • Without Random Erasing (SB-REA+RK), adding GGT jumped Market-1501 $\to$ DukeMTMC from 45.5% to 48.2% Rank-1, and DukeMTMC $\to$ Market-1501 from 58.2% to 65.0% Rank-1.
  • Cross-Modal Sketch-to-RGB:
  • GST + LST on the Sketch ReID benchmark attained 42.5% Rank-1 accuracy, significantly outperforming the dedicated Adversarial Feature Learning (AFL) baseline (34.0% Rank-1).

Limitations and Future Work

  • Hyperparameter Sensitivity: Local Grayscale Transformation (LGT) introduces patch size/aspect-ratio bounds and transformation probabilities ($p_r$) that exhibit noticeable variance when evaluated in isolation, requiring parameter tuning or combination with GGT for stability.
  • Scope of Modalities: The current experiments focus primarily on grayscale and edge sketches; extending this concept to thermal/infrared modalities (common in day-to-night surveillance) is not thoroughly explored.
  • Application Beyond Retrieval: Although the authors cite preliminary work on object detection, detailed experiments in this paper are restricted to person retrieval tasks.

Summary updated

BibTeX
@misc{gong2021eliminate,
  author = {Yunpeng Gong and Liqing Huang and Lifei Chen},
  title = {{Eliminate Deviation with Deviation for Data Augmentation and a General Multi-modal Data Learning Method}},
  year = {2021},
  eprint = {2101.08533},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.08533},
}
Figure