Recover and Match: Open-Vocabulary Multi-Label Recognition through Knowledge-Constrained Optimal Transport

Hao Tan, Zichang Tan, Jun Li, Ajian Liu, Jun Wan, Zhen Lei · DOI

Introduction

Open-Vocabulary Multi-Label Recognition (OVMLR) is a critical task in computer vision that requires models to identify multiple objects or attributes within an image, including categories not encountered during training. While large-scale vision-language models (VLMs) like CLIP have revolutionized zero-shot classification, they are primarily optimized for global image-text alignment. When applied to multi-label scenes, these models face two significant hurdles: the loss of local spatial detail and noisy region-to-label matching.

To address these challenges, we introduce the Recover and Match (RAM) framework. RAM enhances the discriminative power of pre-trained VLMs by recovering lost local semantics and formulating the label assignment process as a global optimization problem.

The Challenges of OVMLR

Existing approaches to OVMLR often struggle with two specific phenomena:

  1. Lost Locality: CLIP’s pre-training on global image-text pairs causes its internal attention mechanisms to blur across the image. This makes it difficult for the model to isolate small or overlapping objects, leading to unreliable regional predictions.
  2. Noisy Matching (Extraneous High-Response): Most methods aggregate image features through simple averaging or independent re-weighting. This often results in "extraneous high-response," where a label is incorrectly matched to an irrelevant image region simply because that region exhibits a high general activation, leading to frequent false positives.

The RAM Framework

RAM operates through two distinct phases designed to rectify these architectural weaknesses.

1. Recover: Ladder Local Adapter (LLA)

The "Recover" phase utilizes a Ladder Local Adapter (LLA), a memory-efficient side-network that restores local detail without compromising CLIP’s pre-trained knowledge. This module consists of two key components:

  • Self-Aware Attention (SAA): Unlike standard global attention, SAA constrains the model to focus on a specific region and its immediate neighbors. This produces "diagonal-style" attention maps that sharpen local features.
  • Text-Guided Spatial Selection (TSS): TSS uses text features as queries to generate spatial masks, highlighting regions most relevant to the candidate labels and filtering out background noise.

By employing a ladder structure that only interacts with the final layers of the vision backbone, RAM remains computationally efficient and preserves the integrity of the original CLIP weights.

2. Match: Knowledge-Constrained Optimal Transport (KCOT)

The "Match" phase moves away from independent label matching. Instead, it treats the assignment of image regions to labels as an Optimal Transport (OT) problem. This global perspective ensures that the model "spends" its matching budget wisely, naturally suppressing meaningless matches.

  • Label Presence Detection (LPD): By relaxing the constraints on the transport plan, LPD allows the model to ignore irrelevant background regions that do not correspond to any target labels.
  • Teacher Knowledge Transfer (TKT): During training, the frozen CLIP model serves as a teacher, guiding the matching process to ensure that the newly adapted features remain aligned with the established text embedding space.

Finally, the framework is optimized using a Multi-Matching Contrastive (MMC) loss, specifically designed to handle multiple positive labels within a single image more effectively than traditional ranking losses.

Experimental Results

RAM was evaluated across six diverse datasets spanning three distinct domains: natural images (MS-COCO, NUS-WIDE), Pedestrian Attribute Recognition (RAPv1, PA100K), and Remote Sensing (MultiScene, MLRSNet).

  • Natural Images: On the NUS-WIDE dataset, RAM achieved a 5.0% improvement in Mean Average Precision (mAP) in zero-shot settings.
  • Pedestrian Recognition: The model showed massive potential in specialized domains, boosting the F1-score on the PA100K dataset by over 15%.
  • Qualitative Analysis: Visualizations indicate that RAM produces significantly cleaner attention maps compared to baseline models, precisely localizing objects like "clocks" or "skateboards" that are often blurred or missed by standard CLIP-based architectures.

Conclusion and Future Work

The RAM framework demonstrates that recovering local semantics and applying constrained matching can significantly overcome the inherent limitations of global VLMs in multi-label contexts. While currently focused on recognition, the "Recover and Match" philosophy provides a promising foundation for Open-Vocabulary Segmentation. Future work will also need to address the privacy implications of high-accuracy pedestrian attribute recognition in real-world surveillance contexts.

Summary updated

BibTeX
@inproceedings{tan2025recover,
  author = {Hao Tan and Zichang Tan and Jun Li and Ajian Liu and Jun Wan and Zhen Lei},
  title = {{Recover and Match: Open-Vocabulary Multi-Label Recognition through Knowledge-Constrained Optimal Transport}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00438},
}
Figure