Improving Multi-label Recognition using Class Co-Occurrence Probabilities

Samyak Rawlekar, Shubhang Bhatnagar, Narendra Ahuja

TL;DR

This paper tackles the challenge of Multi-label Recognition (MLR) by proposing a novel two-stage framework that leverages Vision-Language Models (VLMs) and explicitly models class co-occurrence probabilities. By refining initial VLM-based predictions with learned conditional probabilities using a Graph Convolutional Network (GCN), the method significantly improves performance, especially in low-data regimes.

What Problem Does This Paper Address?

Multi-label Recognition (MLR) aims to identify all present object classes within a single image. This is inherently more complex than single-label recognition because an image can contain a combinatorial explosion of class combinations. While recent advancements have utilized powerful Vision-Language Models (VLMs) like CLIP, these methods often treat each class independently. This overlooks a crucial aspect of real-world scenes: objects tend to co-occur. For instance, a "dog" is often found with a "leash" or a "park." Ignoring these co-occurrence patterns can lead to suboptimal performance, particularly when training data is scarce, as is common in many MLR datasets. The paper aims to bridge this gap by incorporating these inter-class relationships to enhance MLR accuracy.

Methods

The proposed approach is a two-stage framework:

  1. Initial Logits Estimation (VLM-based): The first stage leverages a pre-trained VLM (specifically CLIP) to extract initial class predictions, or "logits." Instead of using standard image-level features, the VLM's image encoder is adapted to output features from individual image windows. These window features are then combined with text embeddings derived from positive and negative prompts associated with each class. A "head" module aggregates these to produce initial, independent class logits for the entire image. This stage effectively adapts VLMs for MLR without fine-tuning the entire VLM, preserving its powerful pre-trained knowledge.
  2. Logits Refinement (GCN-based): The second stage refines these initial logits by incorporating class co-occurrence information. This is achieved using a Graph Convolutional Network (GCN).
  3. Conditional Probability Prior: First, the paper computes a conditional probability matrix from the training data. This matrix quantifies the likelihood of one class appearing given another class is present.
  4. GCN for Refinement: The GCN uses this conditional probability matrix as edge weights between nodes representing classes. By passing the initial logits through the GCN, the model learns to adjust predictions based on these learned co-occurrence patterns. This explicitly enforces the statistical relationships between classes, leading to more accurate and contextually aware predictions.

The training process also incorporates a Reweighted Asymmetric Loss (RASL). This loss function is a modification of the Asymmetric Loss (ASL), which is designed to handle the imbalance of negative examples common in MLR. RASL further addresses sample imbalance by introducing a re-weighting parameter for each class, particularly beneficial for tail classes with fewer examples.

Datasets

The paper evaluates its method on four standard MLR benchmarks, focusing on low-data regimes:

  • MS-COCO 2014-small: A 5% subset of the larger MS-COCO dataset, containing 4014 training images and 80 classes.
  • PASCAL VOC 2007: A widely used dataset with 9963 images and 20 classes.
  • FoodSeg103: A benchmark for food recognition and segmentation, featuring 4983 training images and 103 food classes, known for its long-tail distribution.
  • UNIMIB 2016: Another multi-label food recognition dataset with 1027 images and 73 classes, also exhibiting a long-tail distribution.

Key Insights and Ideas

  • Co-occurrence is Key: The most significant insight is that explicitly modeling class co-occurrence probabilities dramatically improves MLR performance, especially when VLMs alone struggle. This highlights that contextual relationships between objects are as important as individual object recognition.
  • VLM Adaptation with a Twist: The paper demonstrates a clever way to adapt powerful VLMs for MLR without full fine-tuning. By using VLMs for initial feature extraction and then refining with a GCN, they leverage the VLM's broad knowledge while adding domain-specific relational information.
  • GCN as a Relational Reasoner: The GCN acts as an effective mechanism to "reason" about class relationships. It translates statistical co-occurrence into a structured graph, allowing for informed adjustments to initial predictions.
  • Low-Data Advantage: The proposed method shows particularly strong gains in low-data settings. This suggests that modeling inter-class dependencies can compensate for the lack of direct examples for certain classes or combinations.
  • Tail Class Benefit: The RASL loss and the GCN refinement both contribute to better performance on tail classes, which are often underrepresented and harder to recognize.

Key Results

The proposed method consistently outperforms state-of-the-art MLR approaches across all four datasets. Key quantitative results include:

  • VOC-2007: Outperforms DualCoOp by 0.4% and SCPNet by 7.0% mAP.
  • COCO-small: Outperforms DualCoOp by 2.4% and SCPNet by 3.3% mAP.
  • FoodSeg103: Achieves gains of 3.9% over DualCoOp and 4.1% over SCPNet mAP.
  • UNIMIB 2016: Shows substantial improvements of 14.1% over DualCoOp and 12.2% over SCPNet mAP.
  • The method also surpasses non-VLM approaches that rely on full backbone fine-tuning.
  • Analysis shows that classes with stronger conditional probabilities with other classes benefit more from the GCN refinement.

Limitations and Future Work

  • Strength of Independent Classifiers: The paper notes that if the initial independent classifiers (from VLMs) are already very strong and accurate for a class, the improvement from co-occurrence modeling will be less pronounced. However, they argue this is rare in practice for typical MLR datasets.
  • Rare Co-occurrences: The method's advantage is higher when classes frequently co-occur. For images with objects that rarely appear together, the added benefit over independent classifiers is minimal. This suggests future work could explore more sophisticated ways to handle sparse or unusual co-occurrence patterns.
  • Future Work: The authors implicitly suggest exploring more complex graph structures or different relational modeling techniques to further enhance performance, especially in scenarios with less predictable object relationships. They also highlight the general benefit of their approach for low-data MLR.

Summary updated

BibTeX
@inproceedings{rawlekar2024improving,
  author = {Samyak Rawlekar and Shubhang Bhatnagar and Narendra Ahuja},
  title = {{Improving Multi-label Recognition using Class Co-Occurrence Probabilities}},
  booktitle = {ICPR},
  year = {2024},
  url = {https://openreview.net/forum?id=rnaB4dYy99},
}
Figure