Pragmatic Inference with a CLIP Listener for Contrastive Captioning

Jiefu Ou, Benno Krojer, Daniel Fried
6/15/2023
6 citations
cs.CL

Official code: JefferyO/prag_clip_contra_caption (1 star, last commit 2023-05-25).

Abstract

We propose a simple yet effective and robust method for contrastive captioning: generating discriminative captions that distinguish target images from very similar alternative distractor images. Our approach is built on a pragmatic inference procedure that formulates captioning as a reference game between a speaker, which produces possible captions describing the target, and a listener, which selects the target given the caption.

Show full abstract

Unlike previous methods that derive both speaker and listener distributions from a single captioning model, we leverage an off-the-shelf CLIP model to parameterize the listener. Compared with captioner-only pragmatic models, our method benefits from rich vision language alignment representations from CLIP when reasoning over distractors. Like previous methods for discriminative captioning, our method uses a hyperparameter to control the tradeoff between the informativity (how likely captions are to allow a human listener to discriminate the target image) and the fluency of the captions. However, we find that our method is substantially more robust to the value of this hyperparameter than past methods, which allows us to automatically optimize the captions for informativity - outperforming past methods for discriminative captioning by 11% to 15% accuracy in human evaluations

View on arXivView PDF

Code Implementations(1)

10May 25, 20233 years ago

Similar Papers

Cite this paper

@article{ou2023pragmatic,
  title  = {Pragmatic Inference with a CLIP Listener for Contrastive Captioning},
  author = {Jiefu Ou and Benno Krojer and Daniel Fried},
  year   = {2023},
  eprint = {2306.08818},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.08818v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.08818.svg)](https://codeofpaper.com/paper/2306.08818)

Discussion