Beyond Hard Negatives: Grounded Positive Supervision for Compositional CLIP

Harsh Udai, Konda Reddy Mopuri, Vineeth N. BalasubramanianNeurIPS 2026

TL;DR

Vision-language models like CLIP are notoriously bad at basic grammar and spatial reasoning—often confusing "a brown dog chasing a white frisbee" with "a white dog chasing a brown frisbee." Instead of fixing this by showing the model tricky, corrupted captions (hard negatives), the authors introduce GPS-CLIP, which teaches the model where to look by aligning cropped image regions and relational triplets using purely positive signals. Best of all, this structural scaffolding is only used during fine-tuning, leaving the fast, standard CLIP architecture completely untouched at inference time.

What Problem Does This Paper Address?

If you’ve spent any time with dual-encoder vision-language models (VLMs) like CLIP, you know their dirty secret: they behave like a "bag of words." Because they are trained by squashing an entire image into one vector and a sparse web caption into another, they learn statistical shortcuts rather than actual scene structure.

To fix this, researchers usually rely on caption-side hard negatives—taking a real caption, swapping a few words to make it false (e.g., changing "on top of the desks" to "behind the desks"), and penalizing the model if it falls for the trick. However, the authors point out a hidden flaw in this approach: it primarily reshapes the text embedding space while leaving the image manifold brittle and under-constrained. Models get great at spotting text edits, but their general alignment degrades, often causing a sharp collapse in Text-to-Image retrieval. The question is: can we teach CLIP true compositional structure—binding attributes to the right objects and understanding who is doing what to whom—without relying on synthetic negative captions or adding clunky new modules at test time?

Figure 1: Compositional robustness of CLIP variants. Two multi-object scenes with ground-truth and minimally perturbed captions. Cosine margins (m): m > 0 (green) correct, m < 0 (red) failure. GPS-CLIP yields larger margins, especially for subtle attribute/relation changes, indicating stronger fine-grained alignment without synthetic caption corruption (more examples in Appendix G).

Methods

Enter GPS-CLIP (Grounded Positive Supervision for Compositional CLIP). It is a parameter-efficient (LoRA) post-pretraining fine-tuning stage that keeps standard global image-caption contrastive learning, but adds two structured, positive-only loss terms derived from scene graphs:

  1. IoU-Weighted Multi-Positive Region-Span Alignment: An image is cropped into sub-regions (bounding boxes) and paired with descriptive text spans. In real scenes, boxes overlap (e.g., a box for "person" and a box for "person's robe"). Standard contrastive learning would treat non-identical pairs from the same image as negatives, creating conflicting gradients. Instead, GPS-CLIP treats any regions overlapping above an Intersection-over-Union (IoU) threshold as multi-positives, weighting their attraction by how much they overlap. Non-overlapping regions from the same image are masked out of the loss denominator entirely so local learning doesn't fight global scene understanding.
  2. Relation-Triplet Alignment: To capture directional predicates ("chasing" vs. "chased by"), captions are parsed into ordered $\langle\text{subject, relation, object}\rangle$ triplets using an LLM (Qwen2.5-7B-Instruct). Because relations are scene-level, the full-image embedding is trained to retrieve all valid triplets belonging to that scene, while masking out other triplets from the same image.

Once fine-tuning is done, the scene graphs and bounding boxes are thrown away. At test time, it’s just standard, fast CLIP.

Datasets

  • Training: Fine-tuning uses a filtered 400k-sample subset of the Graph-Based Captioning (GBC-1M) dataset. Rather than relying on expensive human annotations, GBC provides scalable "silver-standard" scene graphs (boxes, attributes, relations) generated automatically via open-vocabulary detectors and multimodal LLMs. (MS-COCO is deliberately excluded from training to prevent data leakage).
  • Evaluation: No new benchmarks are introduced, but the model is tested across a comprehensive gauntlet: COLA, What'sUp, Winoground, and SugarCrepe / SugarCrepe++ (compositionality); MMVP-VLM (fine-grained visual details like orientation and state); ImageNetV2 (zero-shot classification); MS-COCO and Flickr30k (retrieval); and UT-Zappos-50k (geometric representation analysis).

Key Insights and Ideas

  • Access to scene graphs isn't enough; how you use them matters. In a clever controlled ablation, the authors trained a baseline on the exact same GBC boxes and triplets using naive single-positive contrastive loss. It barely beat global CLIP (+0.27% average) and hurt performance on several benchmarks. Adding GPS-CLIP's intra-image masking and IoU multi-positive weighting jumped that gain to +4.34%, proving that naively pushing apart overlapping parts of the same image actively harms learning.
  • Positive constraints clean up the embedding geometry. Probing the embedding space on UT-Zappos revealed that GPS-CLIP reduces cross-class mixing between objects and attributes far better than hard-negative methods, without sacrificing retrieval accuracy.
  • Silver-standard, noisy supervision works just fine. Corrupting 10% to 20% of the training scene graphs caused only a smooth, graceful dip in accuracy (staying well above baseline CLIP). You don't need pristine human labels—automated MLLM annotations act as a great soft inductive bias.
  • It's loss-agnostic. While built on CLIP's InfoNCE loss, plugging GPS-CLIP's positive constraints into a SigLIP (sigmoid loss) backbone yielded similar across-the-board jumps.

Key Results

Using a ViT-B/32 backbone, GPS-CLIP achieves state-of-the-art compositional accuracy while improving general capabilities (unlike hard-negative baselines like NegCLIP, which drop ~7 points on ImageNetV2):

  • Compositional Benchmarks: Boosts COLA by +7.78 points over CLIP (22.86% $\rightarrow$ 30.64%), What'sUp by +5.61 (41.77% $\rightarrow$ 47.38%), Winoground by +1.95 (16.40% $\rightarrow$ 18.35%), and SugarCrepe-Add by a massive +22.10 points (72.68% $\rightarrow$ 94.78%).
  • Fine-Grained Vision: Hits 33.33% on MMVP-VLM (+5.91 points over CLIP, a ~21% relative jump), beating all hard-negative variants.
  • General Alignment: Improves ImageNetV2 top-1 accuracy (+2.15 to 58.11%) and cross-modal Retrieval (+8.25 to 62.92% average Recall@1).

Limitations and Future Work

  • Post-pretraining only: GPS-CLIP is validated strictly as a fine-tuning stage; the authors make no claims about training from scratch at web scale.
  • Dependency on upstream extractors: Even though the model tolerates ~20% annotation noise, its ceiling is still tied to the quality and diversity of the automated bounding boxes and LLM-extracted triplets. Notably, fine-grained tasks like MMVP-VLM proved much more sensitive to synthetic noise than coarse retrieval benchmarks.
  • Future directions: Extending this automated silver-standard supervision pipeline to much larger image-text corpora, and adapting GPS-CLIP's grounded alignment principles to guide diffusion models and generative frameworks.

Summary updated

Abstract

CLIP-style vision-language models transfer broadly but remain brittle for compositional reasoning, often collapsing object-attribute binding and inter-object relations. We attribute this gap to limited compositional diversity in web-scale data and contrastive objectives that prioritize global alignment over grounded structure. Many fixes rely on caption-edited hard negatives, which can bias learning toward specific perturbation templates and trade off against general alignment. We propose GPS-CLIP, which improves compositionality by adding multi-granular positive constraints to standard contrastive learning: IoU-weighted multi-positive region-span alignment and relation-triplet alignment in the shared embedding space. GPS-CLIP uses existing grounded annotations during fine-tuning, keeps the dual-encoder architecture unchanged, and requires only images and text at inference. Across SugarCrepe, What'sUp, COLA, and Winoground, GPS-CLIP achieves state-of-the-art compositional performance while improving cross-modal retrieval and zero-shot recognition. Beyond compositionality, GPS-CLIP (i) achieves the strongest MMVP-VLM results for fine-grained visual understanding and (ii) yields a more structured embedding space with improved object/attribute separability on UT-Zappos geometric analysis compared to hard-negative variants. Overall, GPS-CLIP offers a streamlined way to improve VLM compositional robustness.
BibTeX
@inproceedings{udai2026beyond,
  author = {Harsh Udai and Konda Reddy Mopuri and Vineeth N. Balasubramanian},
  title = {{Beyond Hard Negatives: Grounded Positive Supervision for Compositional CLIP}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=eQSREPESTi},
}

Loading related content...

Figure