[CLS] is Not Enough: Multi-Label Recognition via Patch-Level Inference and Adaptive Aggregation

Akang Wang, Xili Deng, Zhanxuan Hu, Yi Zhao, Yonghang Tai, Huafeng Li

Introduction

Vision-Language Models (VLMs) like CLIP have revolutionized zero-shot image classification by aligning images with textual concepts. However, they often struggle with multi-label recognition, where multiple objects coexist in a single scene. A primary bottleneck is the reliance on the [CLS] token. Acting as a single global summary of an image, the [CLS] token tends to focus on the most dominant object, frequently ignoring smaller or less salient items (e.g., missing a frisbee or a distant tree when a dog is prominent).

Existing solutions often employ "multi-crop" strategies to capture smaller objects, but these are computationally expensive. Furthermore, there is a significant modality gap: patch-level visual embeddings in CLIP are not perfectly aligned with natural language text prompts, making direct zero-shot patch classification unreliable. To address these limitations, researchers introduce PIAA (Patch-level Inference and Adaptive Aggregation), a completely training-free framework that achieves state-of-the-art results with massive speedups.

The PIAA Framework

PIAA reformulates multi-label recognition by performing inference at the patch level and adaptively fusing these local cues with global context. The framework consists of two primary components:

1. Patch-based Visual Classifier Learning (PVCL)

To bridge the modality gap without requiring backpropagation or parameter fine-tuning, PIAA learns an unsupervised visual classifier directly in the visual feature space using Gaussian Discriminant Analysis (GDA). This involves a three-stage purification process:

  • Entropy-Guided Bootstrapping: The system identifies the most "certain" patches for each class based on low predictive entropy.
  • Vision-Driven Purification: This patch bank is refined using a temporary classifier to filter out background noise and irrelevant features.
  • Robust Shrinkage Induction: The final classifier weights and biases are calculated using a regularized covariance matrix, which effectively handles the high-dimensional embedding spaces typical of VLMs.

2. Prediction Adaptive Aggregation (PAA)

Once patch-level scores are calculated, they must be intelligently combined. PIAA employs a category-wise max-pooling strategy to identify the strongest local evidence for each label. Crucially, it then performs a Global-Local Fusion, combining these patch scores with the original global [CLS] score via a weighted sum (convex combination). This ensures the model benefits from both fine-grained local detection and stable global context.

Key Insights

  • The "Trees vs. Forest" Complementarity: The paper empirically demonstrates that patch-level inference is superior for identifying small objects (like a spoon or a mouse), while the global [CLS] token remains more stable for large, spanning objects (like a giraffe). Fusing them (with a weighting that slightly favors patches) provides the best of both worlds.
  • Training-Free is Viable: By utilizing closed-form statistical solutions like GDA instead of gradient descent, PIAA achieves performance that rivals—and sometimes surpasses—supervised and iterative unsupervised methods.
  • Modality Alignment at Scale: Learning a visual classifier "on the fly" from unlabeled data proves to be a highly effective, low-cost method to align local visual features with semantic concepts, overcoming a major hurdle in patch-level reasoning.

Experimental Results

The authors evaluated PIAA across four foundational multi-label benchmarks: PASCAL VOC 2007 & 2012, MS COCO, and NUS-WIDE.

  • Performance: PIAA achieved a remarkable 6.1% mAP gain on the challenging NUS-WIDE benchmark over the previous best unsupervised method (CCD). On MS COCO, it boosted vanilla CLIP performance from 49.2% to 68.8% mAP.
  • Efficiency: Because it avoids iterative optimization, PIAA is 362x faster in the "learning" phase than CCD and provides a 50x throughput boost during inference compared to TagCLIP.
  • Scalability: The method scales exceptionally well with larger backbones. When paired with the EVA-02-CLIP (L14) model, PIAA reached nearly 80% mAP on MS COCO without any fine-tuning.

Limitations and Future Work

Despite its strong performance, the framework has a few remaining hurdles:

  • Resolution Limits: Extremely small targets (e.g., a fork) can still be overshadowed by surrounding features because the underlying patch resolution of the Vision Transformer (ViT) backbone is fixed.
  • Co-occurrence Bias: The model occasionally suffers from "semantic entanglement." For instance, it might highlight a rider when searching for a "motorbike" because the two frequently co-occur in training data.
  • Initial Quality Dependency: The system relies heavily on the initial quality of patch embeddings. If the base model's first pass is highly noisy, the subsequent rectification stages struggle to recover the true signal.

Future work will likely focus on developing more robust patch selection mechanisms and reliability-aware calibration to handle even more cluttered and complex scenes.

Summary updated

BibTeX
@inproceedings{wang2026cls,
  author = {Akang Wang and Xili Deng and Zhanxuan Hu and Yi Zhao and Yonghang Tai and Huafeng Li},
  title = {{[CLS] is Not Enough: Multi-Label Recognition via Patch-Level Inference and Adaptive Aggregation}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=sKOTyhXscD},
}
Figure