General Multi-label Image Classification with Transformers

Jack Lanchantin, Tianlu Wang, Vicente Ordonez, Yanjun Qi
11/27/2020
374 citations
cs.CVcs.AIcs.LG
transformer-attention

Official code: QData/C-Tran (280 stars, Python, MIT, last commit 2024-11-02).

Abstract

Multi-label image classification is the task of predicting a set of labels corresponding to objects, attributes or other entities present in an image. In this work we propose the Classification Transformer (C-Tran), a general framework for multi-label image classification that leverages Transformers to exploit the complex dependencies among visual features and labels.

Show full abstract

Our approach consists of a Transformer encoder trained to predict a set of target labels given an input set of masked labels, and visual features from a convolutional neural network. A key ingredient of our method is a label mask training objective that uses a ternary encoding scheme to represent the state of the labels as positive, negative, or unknown during training. Our model shows state-of-the-art performance on challenging datasets such as COCO and Visual Genome. Moreover, because our model explicitly represents the uncertainty of labels during training, it is more general by allowing us to produce improved results for images with partial or extra label annotations during inference. We demonstrate this additional capability in the COCO, Visual Genome, News500, and CUB image datasets.

View on arXivView PDF

Code Implementations(1)

QData/C-TranOfficial100%
MIT

General Multi-label Image Classification with Transformers

28043PythonJan 25, 20212 years agoMIT
computer-visionmulti-label-classificationtransformers

Similar Papers

Cite this paper

@article{lanchantin2020general,
  title  = {General Multi-label Image Classification with Transformers},
  author = {Jack Lanchantin and Tianlu Wang and Vicente Ordonez and Yanjun Qi},
  year   = {2020},
  eprint = {2011.14027},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.14027}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2011.14027.svg)](https://codeofpaper.com/paper/2011.14027)

Discussion