Machine Learning: Science and Technology (Jan 2023)

DIM: long-tailed object detection and instance segmentation via dynamic instance memory

  • Zhao-Min Chen,
  • Xin Jin,
  • Xiaoqin Zhang,
  • Chaoqun Xia,
  • Zhiyong Pan,
  • Ruoxi Deng,
  • Jie Hu,
  • Heng Chen

DOI
https://doi.org/10.1088/2632-2153/acf362
Journal volume & issue
Vol. 4, no. 3
p. 035047

Abstract

Read online

Object detection and instance segmentation have been successful on benchmarks with relatively balanced category distribution (e.g. MSCOCO). However, state-of-the-art object detection and segmentation methods still struggle to generalize on long-tailed datasets (e.g. LVIS), where a few classes (head classes) dominate the instance samples, while most classes (tailed classes) have only a few samples. To address this challenge, we propose a plug-and-play module within the Mask R-CNN framework called dynamic instance memory (DIM). Specifically, we augment Mask R-CNN with an auxiliary branch for training. It maintains a dynamic memory bank storing an instance-level prototype representation for each category , and shares the classifier with the existing instance branch. With a simple metric loss, the representations in DIM can be dynamically updated by the instance proposals in the mini-batch during training. Our DIM introduces a bias toward tailed classes to the classifier learning along with a class frequency reversed sampler, which learns generalizable representations from the original data distribution, complementing the existing instance branch. Comprehensive experiments on LVIS demonstrate the effectiveness of DIM, as well as the significant advantages of DIM over the baseline Mask R-CNN.

Keywords