Data Augmentation Imbalance For Imbalanced Attribute Classification

Xiaying Bai, Yang Hu, Pan Zhou, Fanhua Shang, Shengmei ShenarXiv 2020

Introduction

Pedestrian Attribute Recognition (PAR) is a critical task in surveillance and computer vision, involving the identification of multiple binary traits such as gender, age, and clothing style from images. This task is fundamentally a multi-label classification problem. A significant challenge in PAR is the natural skew of real-world data; for instance, common attributes like "casual wear" appear far more frequently than rare ones like "older than 60."

Standard solutions like simple over-sampling or under-sampling often fail due to label entanglement. Because a single image contains multiple labels, duplicating an image to increase the count of a rare attribute (e.g., "hat") may inadvertently over-represent a common one (e.g., "jeans"), potentially worsening the dataset imbalance.

The DAI Algorithm

To address this, researchers developed the Data Augmentation Imbalance (DAI) algorithm. DAI treats dataset balancing as a mathematical optimization problem rather than a random sampling process. The core of the method involves defining a reweight vector ($r$) that determines how many times each image should appear in a new "sub-balance" dataset.

Using the Adam optimizer, the algorithm finds values for $r$ that bring the positive sample ratio for every attribute as close as possible to an ideal target (empirically set at 0.6). This approach effectively "robs the rich to help the poor" by carefully selecting multi-label images for duplication to balance the entire attribute set simultaneously.

Figure 6: Positive ratio distribution across 35 labels before and after applying the DAI algorithm on the PETA dataset.

Training Strategy and Results

DAI employs an alternate training strategy: the model is trained on the optimized sub-balance set and the original full training set in turns. This ensures the network learns to extract features for rare attributes without losing its grasp on the overall data distribution. The method is architecture-agnostic and has shown success with backbones like DenseNet-161 and ResNeXt101.

The algorithm achieved state-of-the-art (SOTA) results on major benchmarks, particularly in mean Accuracy (mA), the primary metric for imbalanced data:

  • PETA Dataset: DAI reached an mA of 88.24%, a significant improvement over the baseline (71.59%) and other methods like Focal Loss (71.80%).
  • PA-100K Dataset: The model achieved 77.89% mA, surpassing established models like HP-net.
Figure 4: Comparison of positive ratios for specific rare attributes before and after DAI, showing significant increases for categories like 'carrying Messenger Bag'.

Qualitative analysis confirms that DAI makes the model much more sensitive to rare attributes. As shown in the figures, attributes that were previously ignored due to low representation—such as "carrying a messenger bag" or "formal upper body"—see a dramatic increase in their positive ratios within the training data, leading to better detection performance.

Conclusion and Future Work

While DAI provides a robust solution for balancing multi-label datasets, challenges remain. In datasets with very high label counts, such as RAP (51 attributes), the complex correlations between labels make perfect balancing mathematically difficult. Future research will focus on refining how the algorithm handles these high-dimensional correlations and exploring its application in related fields like person re-identification.

Summary updated

BibTeX
@misc{bai2020data,
  author = {Xiaying Bai and Yang Hu and Pan Zhou and Fanhua Shang and Shengmei Shen},
  title = {{Data Augmentation Imbalance For Imbalanced Attribute Classification}},
  year = {2020},
  eprint = {2004.13628},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.13628},
}
Figure