Learning Semantic-Aware Representation in Visual-Language Models for Multi-Label Recognition with Partial Labels

Haoxian Ruan, Zhihua Xu, Zhijing Yang, Yongyi Lu, Jinghui Qin, Tianshui ChenACM TOMM 2024 · DOI

Abstract

Multi-label recognition with partial labels (MLR-PL), in which only some labels are known while others are unknown for each image, is a practical task in computer vision, since collecting large-scale and complete multi-label datasets is difficult in real application scenarios. Recently, vision language models (e.g. CLIP) have demonstrated impressive transferability to downstream tasks in data limited or label limited settings. However, current CLIP-based methods suffer from semantic confusion in MLR task due to the lack of fine-grained information in the single global visual and textual representation for all categories. In this work, we address this problem by introducing a semantic decoupling module and a category-specific prompt optimization method in CLIP-based framework. Specifically, the semantic decoupling module following the visual encoder learns category-specific feature maps by utilizing the semantic-guided spatial attention mechanism. Moreover, the category-specific prompt optimization method is introduced to learn text representations aligned with category semantics. Therefore, the prediction of each category is independent, which alleviate the semantic confusion problem. Extensive experiments on Microsoft COCO 2014 and Pascal VOC 2007 datasets demonstrate that the proposed framework significantly outperforms current state-of-art methods with a simpler model structure. Additionally, visual analysis shows that our method effectively separates information from different categories and achieves better performance compared to CLIP-based baseline method.

Introduction: The Challenge of Partial Labels

In the real world, images rarely contain just one object. Multi-label recognition (MLR) is the task of identifying all objects within a scene. However, fully annotating massive datasets (e.g., "this image contains a dog, a car, and a tree") is incredibly expensive and time-consuming. This leads to the Partial Label (MLR-PL) problem, where only a fraction of the labels for any given image are known during training.

Illustration of the Multi-Label Recognition with Partial Labels (MLR-PL) setting, where some labels are unknown (indicated by red question marks).

While powerful Vision-Language Models (VLMs) like CLIP have shown great promise in "zero-shot" tasks, they struggle with MLR. The core issue is semantic confusion: CLIP typically extracts a single global visual feature for an entire image. When multiple objects are present, their features become "entangled." Salient objects dominate the representation, causing the model to overlook smaller or less obvious categories, especially when the training signal is already weakened by missing labels.

Proposed Methodology

The authors propose a framework that keeps the heavy-duty CLIP encoders frozen while adding two lightweight, learnable components to disentangle global features into category-specific representations.

The proposed framework architecture, highlighting the Semantic Decoupling module and Category-specific Prompts.

1. Visual Semantic Decoupling Module

Instead of relying on a single global vector, this module uses a semantic-guided spatial attention mechanism. It takes the global feature map from the visual encoder and uses word embeddings (from GloVe) as a "query" to find where specific categories exist in the image. It uses low-rank bilinear pooling to fuse visual and semantic information, effectively creating a custom "searchlight" for every possible category.

2. Category-Specific Prompt Optimization

Standard prompt tuning (like CoOp) uses one learnable prompt for all classes (e.g., "a photo of a [CLASS]"). The authors argue this lacks expressiveness for complex multi-label scenes. They instead initialize independent learnable prompt tokens for every single category, allowing the model to learn the unique textual "context" that best aligns with each specific visual object.

3. Partial Asymmetric Loss (P-ASL)

To handle the massive imbalance between positive and negative samples (and the fact that many labels are simply unknown), the team utilizes a modified loss function that down-weights "easy" negative samples and focuses the model's attention on the labels that are actually provided.

Experimental Evaluation

The framework was evaluated on two gold-standard benchmarks: Microsoft COCO 2014 (~120k images, 80 categories) and Pascal VOC 2007 (~10k images, 20 categories). To simulate the partial label environment, labels were randomly dropped to test "known label proportions" ranging from 10% to 90%.

Key Results

The proposed method consistently outperformed current state-of-the-art (SOTA) methods (like SARB and DSRB) across all label proportions:

  • MS-COCO: At the most challenging setting (only 10% of labels known), the model achieved a mean Average Precision (mAP) of 78.3%, a massive jump over the baseline CoOp (71.2%).
  • Average Performance: Across all label settings, the model maintained an average mAP of 81.7% on COCO and 92.8% on Pascal VOC.
  • Efficiency: One of the most impressive aspects is that the CLIP visual and textual encoders remain frozen. The model achieves superior results by only training the small decoupling and prompt modules (only 4.8M parameters).

Conclusion and Future Work

By forcing the model to look at spatial feature maps through the lens of specific category semantics, this framework successfully "unmixes" features in multi-label scenes. While the model shows significant gains, it still faces hurdles with extremely small or heavily occluded objects. Future work may incorporate label correlation information (e.g., the co-occurrence of "cars" and "roads") to further enrich categorical features and improve recognition in ambiguous scenes.

Summary updated

BibTeX
@article{ruan2024learning,
  author = {Haoxian Ruan and Zhihua Xu and Zhijing Yang and Yongyi Lu and Jinghui Qin and Tianshui Chen},
  title = {{Learning Semantic-Aware Representation in Visual-Language Models for Multi-Label Recognition with Partial Labels}},
  journal = {ACM TOMM},
  year = {2024},
  doi = {10.1145/3708991},
}
Figure