Learning discriminative representations for multi-label image recognition

Mohammed Hassanin, Ibrahim Radwan, Salman H. Khan, Murat TahtaliJVCIR 2021 · OpenReview

Introduction

Multi-label image recognition presents a significant challenge compared to standard single-label classification. While single-label tasks involve a one-to-one mapping between an image and a category, multi-label scenarios involve a "many-to-many" relationship where multiple objects from different categories coexist and often overlap within a single frame.

Conventional deep learning models often struggle in this setting because they attempt to learn image-level features. This leads to "feature interference," where the representation of one object (e.g., a chair) is muddied by the presence of another (e.g., a table). To overcome this, researchers have proposed a framework designed to learn discriminative representations—distinct digital signatures for each class that remain clear despite the presence of multiple objects.

The Proposed Framework

The core of the proposed system is a two-stage process designed to isolate and then refine class-specific features. As illustrated in Figure 1, the model first disentangles object classes from the input image and then applies a novel contrastive learning objective to organize these features in the representation space.

Overview of the proposed framework for disentangling object classes and multi-label contrastive learning.

Disentangling Class-specific Representations

The framework utilizes a supervised "object parser" built upon a ResNet-101 backbone. During the training phase, the model leverages ground-truth bounding box annotations to generate spatial masks for every class present in the image. These masks are applied to the feature maps, followed by max-pooling to isolate features specific to each category.

Notably, the authors include background regions within these masks. This approach suggests that environmental context—such as seeing a boat specifically on water—provides more discriminative information than viewing the object in total isolation.

Detailed architecture showing the ResNet-101 backbone and the class disentanglement module.

Multi-label Contrastive (MC) Loss

Once features are disentangled, the model employs a novel Multi-label Contrastive (MC) loss. Inspired by the "Center Loss" concept used in facial recognition, the MC loss performs two simultaneous functions:

  1. Intra-class Minimization: It pulls features belonging to the same class toward a learned "class center."
  2. Inter-class Maximization: It pushes features of different classes away from one another.

This dual action ensures that the model's internal feature map consists of tight, well-separated clusters for each category, significantly reducing the impact of feature interference.

Experimental Results

The method was evaluated on three major computer vision benchmarks: MS-COCO 2014, Pascal VOC 2007, and Pascal VOC 2012.

  • MS-COCO: The framework achieved a mean Average Precision (mAP) of 81.0%, a 3.5% relative improvement over the ResNet-101 baseline, outperforming several state-of-the-art (SOTA) models.
  • Pascal VOC: The model reached 93.4% (2007) and 94.7% (2012) mAP, surpassing more complex graph-based and attention-based architectures.
  • Qualitative Analysis: Visualizations of the model's attention maps revealed that the proposed method focuses more accurately on specific object boundaries and instances compared to vanilla ResNet models, which often produce blurry or misplaced attention.

Conclusion and Future Work

By treating multi-label recognition as a series of simplified one-to-one tasks through feature disentanglement, this framework effectively breaks the many-to-many bottleneck. The MC loss module is designed for versatility and can be integrated into various existing pipelines without requiring a total architectural overhaul.

While the current method shows promise, the authors note challenges regarding computational complexity as the number of classes and batch sizes increase. Future research will focus on developing more scalable solutions to handle "in-the-wild" datasets containing thousands of categories efficiently.

Summary updated

BibTeX
@misc{hassanin2021learning,
  author = {Mohammed Hassanin and Ibrahim Radwan and Salman H. Khan and Murat Tahtali},
  title = {{Learning discriminative representations for multi-label image recognition}},
  year = {2021},
  eprint = {2107.11159},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.11159},
}
Figure