Skip to main content
QUICK REVIEW

[Paper Review] Class Rectification Hard Mining for Imbalanced Deep Learning

Qi Dong, Shaogang Gong|arXiv (Cornell University)|Dec 8, 2017
Imbalanced Data Classification TechniquesComputer Science39 references11 citations
TL;DR

This paper proposes a novel end-to-end deep learning framework, Class Rectification Loss (CRL), for multi-label person attribute recognition under extreme class imbalance. By performing batch-wise incremental hard mining of minority-class positives and negatives and applying a CRL regularisation loss, the model improves learning on rare attributes, achieving 4% higher average accuracy than SOTA on the highly imbalanced X-Domain dataset and 2% gain on CelebA, with over three times faster training.

ABSTRACT

Recognising detailed facial or clothing attributes in images of people is a challenging task for computer vision, especially when the training data are both in very large scale and extremely imbalanced among different attribute classes. To address this problem, we formulate a novel scheme for batch incremental hard sample mining of minority attribute classes from imbalanced large scale training data. We develop an end-to-end deep learning framework capable of avoiding the dominant effect of majority classes by discovering sparsely sampled boundaries of minority classes. This is made possible by introducing a Class Rectification Loss (CRL) regularising algorithm. We demonstrate the advantages and scalability of CRL over existing state-of-the-art attribute recognition and imbalanced data learning models on two large scale imbalanced benchmark datasets, the CelebA facial attribute dataset and the X-Domain clothing attribute dataset.

Motivation & Objective

  • To address the challenge of extreme class imbalance in large-scale web-collected image datasets for person attribute recognition.
  • To overcome the limitations of existing methods like over-sampling, down-sampling, and cost-sensitive learning, which suffer from overfitting or data loss.
  • To develop an end-to-end deep learning framework that explicitly improves representation learning for minority attribute classes without relying on hand-crafted features.
  • To enable scalable, incremental learning on massive, imbalanced datasets by focusing on hard samples from minority classes within each training batch.
  • To surpass existing state-of-the-art models in accuracy and training efficiency on highly imbalanced benchmarks like X-Domain and CelebA.

Proposed method

  • The method employs batch-wise incremental hard mining, focusing exclusively on hard positives and hard negatives from minority attribute classes during each training iteration.
  • A novel Class Rectification Loss (CRL) is introduced to regularise model optimization by explicitly aligning feature representations with the boundaries of minority classes.
  • CRL uses instance-level hard mining, which selects the most difficult samples per batch based on feature margin, improving generalisation for rare attributes.
  • The loss function is designed to be independent of overall dataset size, enabling scalability to very large-scale imbalanced data.
  • The framework integrates joint feature learning and multi-label classification in an end-to-end manner, avoiding disjoint optimisation of features and classifiers.
  • The model is trained using a multi-branch network architecture with shared convolutional layers and individual fully connected branches for each attribute, enabling multi-task learning.

Experimental results

Research questions

  • RQ1Can batch-wise incremental hard mining of minority-class samples improve deep learning performance on highly imbalanced person attribute datasets?
  • RQ2How does the proposed Class Rectification Loss (CRL) compare to existing loss functions and data re-sampling strategies in mitigating the bias towards majority classes?
  • RQ3To what extent does the CRL framework scale to very large-scale, extremely imbalanced datasets like X-Domain with imbalance ratios up to 1:4,162?
  • RQ4Does instance-level hard mining outperform class-level hard mining in improving minority class recognition accuracy?
  • RQ5How does the CRL model compare in performance and training speed to state-of-the-art models like LMLE and MTCT on benchmark datasets?

Key findings

  • CRL(I), the best-performing variant using instance-level hard mining and relative loss, achieves a 6.13% average accuracy gain over the baseline MTCT on the X-Domain dataset.
  • On the X-Domain benchmark, CRL(I) surpasses the SOTA LMLE model by 4% in average accuracy, demonstrating significant superiority on highly imbalanced data.
  • On the CelebA dataset, CRL(I) achieves a 5.85% accuracy gain over the baseline, with the performance gap widening on more imbalanced attributes.
  • CRL(C) and CRL(I) achieve 8% and 7% accuracy gains, respectively, on the highly imbalanced 'Sleeve Shape' attribute, outperforming LMLE’s 2% gain.
  • The CRL model trains over three times faster than the LMLE model, despite achieving better performance, indicating high training efficiency.
  • The combination of instance-level hard mining and relative loss (CRL(I+R)) yields the best results, with a 6.13% gain on X-Domain and 5.85% on CelebA, confirming its effectiveness under extreme imbalance.

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.