Controllable Contextualized Image Captioning: Directing the Visual Narrative through User-Defined Highlights

Shunqi Mao, Chaoyi Zhang, Hang Su, Hwanjun Song, Igor Shalyminov +1 more
7/1/2024

No official code found. Best implementation: ShunqiM/Ctrl-CIC (7 stars, last commit 2024-09-23).

Abstract

Contextualized Image Captioning (CIC) evolves traditional image captioning into a more complex domain, necessitating the ability for multimodal reasoning. It aims to generate image captions given specific contextual information. This paper further introduces a novel domain of Controllable Contextualized Image Captioning (Ctrl-CIC). Unlike CIC, which solely relies on broad context, Ctrl-CIC accentuates a user-defined highlight, compelling the model to tailor captions that resonate with the highlighted aspects of the context. We present two approaches, Prompting-based Controller (P-Ctrl) and Recalibration-based Controller (R-Ctrl), to generate focused captions. P-Ctrl conditions the model generation on highlight by prepending captions with highlight-driven prefixes, whereas R-Ctrl tunes the model to selectively recalibrate the encoder embeddings for highlighted tokens. Additionally, we design a GPT-4V empowered evaluator to assess the quality of the controlled captions alongside standard assessment methods. Extensive experimental results demonstrate the efficient and effective controllability of our method, charting a new direction in achieving user-adaptive image captioning. Code is available at https://github.com/ShunqiM/Ctrl-CIC .

View on arXivView PDF

Code Implementations(1)

ShunqiM/Ctrl-CICCommunity100%

Controllable Contextualized Image Captioning

71PythonJul 4, 20242 years ago

Similar Papers

Cite this paper

@article{mao2024controllable,
  title  = {Controllable Contextualized Image Captioning: Directing the Visual Narrative through User-Defined Highlights},
  author = {Shunqi Mao and Chaoyi Zhang and Hang Su and Hwanjun Song and Igor Shalyminov and Weidong Cai},
  year   = {2024},
  eprint = {2407.11449},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2407.11449},
  journal = {ECCV 2024 2024}
}

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/2407.11449.svg)](https://codeofpaper.com/paper/2407.11449)

Discussion