Skip to main content
QUICK REVIEW

[Paper Review] Class-Balanced Distillation for Long-Tailed Visual Recognition

Ahmet İşcen, André de Melo Araújo|arXiv (Cornell University)|Apr 12, 2021
Domain Adaptation and Few-Shot LearningComputer Science16 citations
TL;DR

This paper proposes Class-Balanced Distillation (CBD), a two-stage framework that improves long-tailed visual recognition by distilling knowledge from teacher models trained with instance sampling into a student model retrained from scratch using class-balanced sampling. CBD significantly outperforms prior methods, achieving state-of-the-art accuracy on ImageNet-LT, iNaturalist17, and iNaturalist18, with gains up to 5.5% over the previous best using ResNet-152.

ABSTRACT

Real-world imagery is often characterized by a significant imbalance of the number of images per class, leading to long-tailed distributions. An effective and simple approach to long-tailed visual recognition is to learn feature representations and a classifier separately, with instance and class-balanced sampling, respectively. In this work, we introduce a new framework, by making the key observation that a feature representation learned with instance sampling is far from optimal in a long-tailed setting. Our main contribution is a new training method, referred to as Class-Balanced Distillation (CBD), that leverages knowledge distillation to enhance feature representations. CBD allows the feature representation to evolve in the second training stage, guided by the teacher learned in the first stage. The second stage uses class-balanced sampling, in order to focus on under-represented classes. This framework can naturally accommodate the usage of multiple teachers, unlocking the information from an ensemble of models to enhance recognition capabilities. Our experiments show that the proposed technique consistently outperforms the state of the art on long-tailed recognition benchmarks such as ImageNet-LT, iNaturalist17 and iNaturalist18.

Motivation & Objective

  • Address the challenge of long-tailed class distributions in real-world visual datasets, where under-represented (tail) classes are poorly learned.
  • Overcome the limitation of feature representations learned via instance sampling, which are suboptimal in long-tailed settings.
  • Improve recognition performance on tail classes without degrading head class accuracy by decoupling feature learning and classifier training.
  • Enable the use of multiple teacher models to aggregate complementary knowledge and enhance student generalization.
  • Develop a flexible, effective, and scalable training framework that outperforms existing two-stage and single-stage approaches.

Proposed method

  • Train one or more teacher models in the first stage using instance sampling to ensure robust feature learning across all classes.
  • In the second stage, retrain a student model from scratch using class-balanced sampling to emphasize under-represented tail classes.
  • Apply knowledge distillation to transfer soft labels and intermediate feature representations from the teacher to the student model.
  • Use a combined loss combining cross-entropy classification loss and feature distillation loss to guide student training.
  • Support ensemble distillation (CBD_E) by training multiple independent teachers and averaging their knowledge during distillation.
  • Maintain inference efficiency by using only the single student model at test time, despite multiple teachers during training.

Experimental results

Research questions

  • RQ1Can knowledge distillation improve feature representations learned under instance sampling in long-tailed settings?
  • RQ2Does decoupling feature learning and classifier training using different sampling strategies lead to better performance on tail classes?
  • RQ3Can multiple teacher models collectively improve student generalization in long-tailed recognition?
  • RQ4How does CBD compare to state-of-the-art methods in terms of accuracy and robustness across different datasets and architectures?
  • RQ5Does CBD maintain or improve performance on head classes while significantly boosting tail class accuracy?

Key findings

  • CBD achieves 51.6% top-1 accuracy on ImageNet-LT with ResNet-50, outperforming the previous state of the art by 3.6 percentage points.
  • CBD_E with four teachers achieves 55.6% accuracy on ImageNet-LT with ResNet-50, a 5.5% improvement over the prior best using ResNet-152.
  • On iNaturalist18, CBD_E achieves 75.3% accuracy with ResNet-101, a 4.5% relative improvement over the previous state of the art.
  • CBD_E improves performance by 3.8% on iNaturalist18 and 3.5% on iNaturalist17 compared to the prior best method.
  • The method maintains high performance across all class groups, with significant gains on tail classes while preserving head class accuracy.
  • Combining CBD with logit adjustment loss further improves performance, achieving 56.1% accuracy on ImageNet-LT with CBD_E.

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.