Unlocking the Power of Co-Occurrence in CLIP: A DualPrompt-Driven Method for Training-Free Zero-Shot Multi-Label Classification

Ming-Kun Xie, Zhiqiang Kou, Zhongnian Li, Gang Niu, Masashi SugiyamaICLR 2026

Executive Summary

Contrastive Language-Image Pretraining (CLIP) is a superstar at identifying single objects in images, but it often misses the "supporting cast" in complex, multi-label scenes. To address this, researchers introduce DualPrompt, a training-free method that leverages label co-occurrence (e.g., knowing that "forks" usually appear with "knives") to boost recognition. By employing causal inference, DualPrompt prevents the model from "hallucinating" objects that aren't actually there, achieving state-of-the-art zero-shot multi-label classification without updating a single model weight.

The "Main Character" Problem in CLIP

CLIP has revolutionized zero-shot classification, but it suffers from a significant limitation in real-world environments. Because CLIP is trained to match an entire image to a single caption, it tends to focus on the most prominent object in a scene, often overlooking smaller or less obvious items.

In multi-label scenarios—like a photo of a kitchen containing a stove, a sink, and a toaster—CLIP’s standard prompt ("A photo of a {label}") provides no context. It treats every object as an isolated entity. Existing solutions to this problem often require expensive fine-tuning or are tied to specific model architectures, making them difficult to apply broadly.

Co-occurrence in CLIP Predictions vs True Labels

The authors ask a fundamental question: Can we use the natural relationships between objects to help CLIP see the whole picture without retraining the model? As seen in the confusion matrices above, CLIP's baseline predictions naturally reflect real-world co-occurrences (like microwaves and ovens, or forks and knives), but this implicit bias can lead to both missed detections and false positives.

The DualPrompt Methodology

To harness this co-occurrence information safely, the authors propose a two-pronged approach called DualPrompt:

  1. Correlative Prompt (CoP): Instead of just asking for a "cup," the prompt is rewritten to include context: "A photo of a cup often contains a bowl, a plate, etc." This activates CLIP’s internal knowledge of how objects cluster together, acting as a magnifying glass for inconspicuous objects.
  2. The Hallucination Fix: There is a catch to using context. If you tell CLIP that cups often appear with bowls, and the image has a bowl but no cup, CLIP might "hallucinate" the cup anyway. To fix this, the authors utilize a Causal Inference framework, treating the co-occurring labels as a "mediator" that can cause bias.
  3. Dual-Prompt Integration: By combining the output of the standard Discriminative Prompt (the "main character" view) and the Correlative Prompt (the "contextual" view), the system keeps the boost from the context while filtering out hallucinations. Remarkably, their derivation shows this complex causal calibration can be achieved simply by adding the prediction scores of the two prompt types.

Key Insights

  • Co-occurrence is a Double-Edged Sword: Using context labels significantly improves the detection of hard-to-see objects, but it also creates a "guilt by association" effect where the model over-predicts labels based on their neighbors. DualPrompt successfully isolates the positive signal.
  • Data Beats "Common Sense": The authors compared using Large Language Models (like ChatGPT-4o) to generate co-occurrence lists versus calculating them from just 1% of the target dataset. Surprisingly, the tiny sliver of real data performed better because it captured the specific biases and distributions of that dataset better than a general-purpose LLM.
  • Training-Free is Viable: DualPrompt achieves its results without updating a single weight in the CLIP model, making it highly efficient and "plug-and-play" for different backbones (ResNet, ViT, etc.).

Datasets and SOTA Results

The researchers evaluated their method on three major benchmarks for multi-label recognition, consistently outperforming both vanilla CLIP and recent state-of-the-art (SOTA) methods:

  • MS-COCO 2014 (80 categories): Reached 70.0% mAP (mean Average Precision), a significant jump over vanilla CLIP’s 64.9%.
  • VG-256 (256 categories): Achieved 40.7% mAP, outperforming the previous SOTA (TagCLIP) which sat at 39.6%.
  • Objects365 (365 categories): In this highly complex environment with an average of over 6 labels per image, DualPrompt improved CLIP's performance by 4.5% mAP, proving it scales well to datasets with many overlapping objects.

Limitations and Future Work

While DualPrompt is powerful, it requires a way to estimate which labels co-occur. If a user has absolutely zero access to training data or an LLM to provide context, the method cannot be initialized.

Furthermore, while the "addition" formula for combining prompts worked best in practice, the authors note it is a simplified approximation of the theoretical "subtraction" suggested by causal total direct effect (TDE) math. Future work could explore more sophisticated ways to balance these dual prompts or investigate how this method performs on video-based multi-label tasks where temporal co-occurrence also plays a role.

Summary updated

BibTeX
@inproceedings{xie2026unlocking,
  author = {Ming-Kun Xie and Zhiqiang Kou and Zhongnian Li and Gang Niu and Masashi Sugiyama},
  title = {{Unlocking the Power of Co-Occurrence in CLIP: A DualPrompt-Driven Method for Training-Free Zero-Shot Multi-Label Classification}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=QGXVZ0OPLy},
}
Figure