Decoupled Data Augmentation for Improving Image Classification

Ruoxin Chen, Zhe Wang, Ke-Yue Zhang, Shuang Wu, Jiamu Sun, Shouli Wang, Taiping Yao, Shouhong Ding · DOI

Abstract

Data augmentation is a cornerstone of modern deep learning, yet traditional techniques often struggle with the "fidelity-diversity dilemma." Methods like MixUp and CutMix create unrealistic artifacts, while standard generative approaches often fail to provide sufficient diversity. This paper introduces Decoupled Data Augmentation (De-DA), a framework that breaks the "whole-image paradigm" by separating images into class-dependent objects and class-independent backgrounds. By applying conservative generative editing to objects and aggressive swapping to backgrounds, De-DA achieves significant performance gains, particularly in data-scarce scenarios.

Introduction: The Fidelity-Diversity Dilemma

Current data augmentation strategies generally fall into two categories: pixel-level mixing and generative augmentation. Pixel-level methods like CutMix often produce "Frankenstein" images—nonsensical blends that lack semantic fidelity. Generative methods, while more realistic, frequently struggle to capture the full distribution of a dataset or produce the out-of-distribution variety needed for robust training.

Traditional mixing methods like CutMix create "Frankenstein" images that lack semantic realism by crudely overlaying image patches.

The core issue lies in the "whole-image paradigm," where the entire image is treated as a single unit. In reality, an image consists of a Class-Dependent Part (CDP) (the object of interest) and a Class-Independent Part (CIP) (the background). Treating these components identically leads to either distorted objects or repetitive, uninformative backgrounds.

Methodology: Decouple and Combine

De-DA addresses this by decoupling the CDP and CIP using the Segment Anything Model (SAM). This separation allows for targeted augmentation strategies:

  1. Conservative Object Editing: To preserve the object's identity (fidelity), the framework uses Textual Inversion to learn a unique identifier for each class. It then employs SDEdit to subtly modify the object—changing its pose or texture—without altering its fundamental class features.
  2. Aggressive Background Swapping: To maximize diversity, the original background is replaced with a random background sampled from a different class. This prevents the model from "cheating" by associating specific backgrounds with certain classes (e.g., assuming all birds on water are Albatrosses).
De-DA produces high-fidelity augmentations by realistically placing edited objects into entirely new, diverse environments, avoiding the artifacts of traditional mixing.

To improve efficiency, the authors introduced Truncated-Timestep Textual Inversion (TTTI), which optimizes the diffusion process by training only on the noise levels required for editing, significantly reducing computational overhead.

Experimental Results

The researchers evaluated De-DA on several fine-grained classification datasets, including CUB-200-2011 (birds), FGVC-Aircraft, and Stanford Cars.

Performance Gains

On the CUB bird dataset, De-DA achieved 80.07% accuracy, significantly outperforming the previous best generative method, Diff-Mix (76.32%). The most dramatic results appeared in data-scarce (10-shot) learning, where De-DA reached 53.67% average accuracy, a staggering 21.88% improvement over the next best method.

Robustness and Invariance

Using the Waterbird dataset, the authors demonstrated that De-DA models exhibit superior "background invariance." By decoupling the bird from its environment during training, the model learns to focus on the bird's features rather than the scenery, making it much more robust to out-of-distribution data.

Conclusion and Future Work

Decoupled Data Augmentation (De-DA) offers a powerful solution to the fidelity-diversity trade-off by treating objects and backgrounds as distinct entities. While the method's effectiveness can be limited by segmentation quality or images where the object dominates the frame (as seen in the Stanford Cars dataset), it provides a robust framework for generating high-quality, diverse training data. Future research may explore even more granular decoupling or adaptive strategies for adjusting generation strength based on dataset complexity.

Summary updated

BibTeX
@misc{chen2024decoupled,
  author = {Ruoxin Chen and Zhe Wang and Ke-Yue Zhang and Shuang Wu and Jiamu Sun and Shouli Wang and Taiping Yao and Shouhong Ding},
  title = {{Decoupled Data Augmentation for Improving Image Classification}},
  year = {2024},
  eprint = {2411.02592},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.02592},
}
Figure