Rakshith Subramanyam
← all writing
Paper Apr 14, 2024 1 min read

CREPE: predicting visual relationships by learning to prompt CLIP

ICASSP 2024 · Paper · Code

Can vision-language models like CLIP predict how objects in an image relate to each other, and simplify the complex graphical models that usually combine visual and language cues for this?

CREPE (CLIP Representation Enhanced Predicate Estimation) uses the UVTransE framework to build translational embeddings for the subject, object and union boxes in a scene, using CLIP’s language capabilities. A new contrastive training method refines the union-box prompts. On Visual Genome, CREPE improves on the previous state of the art by 15.3%, with mR@20 of 31.95.

CLIP language priors are not enough when used naively

t-SNE of predicate representations

t-SNE of predicate representations from UVTransE trained with (left) CLIP image embeddings for subject, object and union boxes, and (right) a CLIP image embedding for the union box plus CLIP text embeddings for subject and object.

Learnable context vectors for the union image

CREPE learns context vectors that produce visually grounded text descriptors for the union image.

CREPE pipeline

Results

Predicate estimation on Visual Genome

Mean Recall@K on Visual Genome versus other methods (best in red, second in blue). We are, to our knowledge, the first to report mR@{5,10,15}.

R@50 per predicate, with predicate frequency

R@50 for CREPE and vision-only UVTransE per predicate, colored by head, mid and tail categories, with predicate frequency as bars.

Qualitative results on Visual Genome

Subject in yellow, object in green, with CREPE’s top predictions. Sometimes CREPE’s answer is more apt than the label: for ground truth ⟨flag, on, pole⟩ it predicts ⟨flag, hanging from, pole⟩.

Authors: Rakshith Subramanyam, T.S. Jayram, Rushil Anirudh, Jayaraman J. Thiagarajan