LarvSeg: Exploring Image Classification Data For Large Vocabulary Semantic Segmentation via Category-wise Attentive Classifier
Haojun Yu, Di Dai, Ziwei Zhao, Di He, Han Hu, Liwei Wang
TL;DR
This work tackles large vocabulary semantic segmentation by exploiting image-level classification data as coarse supervision to guide pixel-level learning. It introduces LarvSeg, a framework combining a simple joint-training baseline with a category-wise attentive classifier that uses a memory bank to apply region-specific supervision to novel categories, enabling open-vocabulary segmentation within a closed-vocabulary setting. Experiments on COCO-Stuff, ADE, and ImageNet21K show substantial gains in novel-category mIoU, including up to 6.0 mIoU on A150 and 2.1 mIoU on A847, and demonstration of a 21K-category segmentation model. The results suggest that balanced classification data and targeted region-level supervision are key to scaling semantic segmentation to very large vocabularies without extensive mask-annotation burdens.
Abstract
Scaling up the vocabulary of semantic segmentation models is extremely challenging because annotating large-scale mask labels is labour-intensive and time-consuming. Recently, language-guided segmentation models have been proposed to address this challenge. However, their performance drops significantly when applied to out-of-distribution categories. In this paper, we propose a new large vocabulary semantic segmentation framework, called LarvSeg. Different from previous works, LarvSeg leverages image classification data to scale the vocabulary of semantic segmentation models as large-vocabulary classification datasets usually contain balanced categories and are much easier to obtain. However, for classification tasks, the category is image-level, while for segmentation we need to predict the label at pixel level. To address this issue, we first propose a general baseline framework to incorporate image-level supervision into the training process of a pixel-level segmentation model, making the trained network perform semantic segmentation on newly introduced categories in the classification data. We then observe that a model trained on segmentation data can group pixel features of categories beyond the training vocabulary. Inspired by this finding, we design a category-wise attentive classifier to apply supervision to the precise regions of corresponding categories to improve the model performance. Extensive experiments demonstrate that LarvSeg significantly improves the large vocabulary semantic segmentation performance, especially in the categories without mask labels. For the first time, we provide a 21K-category semantic segmentation model with the help of ImageNet21K. The code is available at https://github.com/HaojunYu1998/large_voc_seg.
