Skip to main content
QUICK REVIEW

[Paper Review] General Multi-label Image Classification with Transformers

Jack Lanchantin, Tianlu Wang|arXiv (Cornell University)|Nov 27, 2020
Advanced Image and Video Retrieval TechniquesComputer Science50 references20 citations
TL;DR

This paper proposes C-Tran, a Transformer-based framework for general multi-label image classification that models label dependencies through a ternary label mask training objective, representing labels as positive, negative, or unknown. The method achieves state-of-the-art performance on COCO, Visual Genome, News-500, and CUB by enabling flexible inference under partial or extra label conditions, while explicitly modeling uncertainty during training for improved robustness and interactivity.

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. 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.

Motivation & Objective

  • To address the limitations of existing multi-label image classification models that fail to generalize under partial or extra label inference settings.
  • To develop a unified deep learning framework that can handle arbitrary amounts of known or unknown labels during inference without retraining.
  • To improve prediction accuracy by modeling complex dependencies between visual features and labels using self-attention mechanisms.
  • To explicitly represent label uncertainty during training, enabling better generalization and interactivity in real-world scenarios with incomplete or noisy annotations.
  • To eliminate reliance on external knowledge graphs or fixed concept bottlenecks, enabling end-to-end learning of label relations.

Proposed method

  • C-Tran employs a Transformer encoder that reconstructs a full set of target labels from masked input label embeddings and visual features from a CNN.
  • A ternary encoding scheme represents each label as positive (1), negative (0), or unknown (-1), enabling the model to learn from partial or uncertain label supervision.
  • During training, labels are randomly masked to simulate unknown states, and the model learns to predict the full label set using self-attention over visual features and label embeddings.
  • The model uses learnable state embeddings to represent the status of each label (positive, negative, unknown), allowing flexible conditioning during inference.
  • The framework supports three inference modes: standard (only image input), partial labels (known labels provided), and extra labels (additional metadata provided).
  • The attention mechanism enables sample-adaptive interactions, allowing the model to attend to relevant image regions and label dependencies dynamically.
Figure 1: We propose a transformer-based model for multi-label image classification that exploits dependencies among a target set of labels using an encoder transformer. During training, the model learns to reconstruct a partial set of labels given randomly masked input label embeddings and image fe
Figure 1: We propose a transformer-based model for multi-label image classification that exploits dependencies among a target set of labels using an encoder transformer. During training, the model learns to reconstruct a partial set of labels given randomly masked input label embeddings and image fe

Experimental results

Research questions

  • RQ1Can a unified deep learning framework handle multi-label image classification under arbitrary partial or extra label conditions without architectural or training modifications?
  • RQ2How does modeling label uncertainty via a ternary mask during training improve generalization and performance in low-resource or noisy label settings?
  • RQ3To what extent can a self-attention-based model learn complex label dependencies without relying on external knowledge graphs or hand-curated concept hierarchies?
  • RQ4Does explicit modeling of label states (positive, negative, unknown) lead to better performance and robustness compared to standard multi-label training with full annotations?
  • RQ5Can the same model architecture and training procedure support both standard and interactive inference scenarios with minimal inference-time adaptation?

Key findings

  • C-Tran achieves state-of-the-art performance on six benchmark datasets across three inference settings: standard, partial label, and extra label classification.
  • On the COCO and Visual Genome datasets, C-Tran outperforms prior methods that use graph convolutional networks or iterative inference strategies, especially under partial label conditions.
  • The model demonstrates improved accuracy when given partial labels during inference, such as correctly shifting prediction confidence from incorrect labels (e.g., truck) to correct ones (e.g., car) when provided with true positive/negative signals.
  • C-Tran’s performance remains robust under varying amounts of known labels, with consistent gains even when only 10–20% of labels are provided as evidence.
  • The ternary label masking strategy enhances label correlation learning, leading to more coherent and accurate multi-label predictions compared to standard masking or binary encoding.
  • The model enables interactive inference by allowing users to inject human-provided partial evidence (e.g., 'this image contains a city') and obtain refined predictions, demonstrating practical usability in real-world applications.
Figure 2: Different inference settings for general multi-label image classification: (a) Standard multi-label classification takes only image features as input. All labels are unknown ${\mathbf{y}}{}_{u}$ .; (b) Classification under partial labels takes as input image features as well as a subset of
Figure 2: Different inference settings for general multi-label image classification: (a) Standard multi-label classification takes only image features as input. All labels are unknown ${\mathbf{y}}{}_{u}$ .; (b) Classification under partial labels takes as input image features as well as a subset of

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.