FlexCap: Generating Rich, Localized, and Flexible Captions in Images
<|reference_start|>FlexCap: Generating Rich, Localized, and Flexible Captions in Images: We introduce a versatile $\textit{flexible-captioning}$ vision-language model (VLM) capable of generating region-specific descriptions of varying lengths. The model, FlexCap, is trained to produce length-conditioned captions for input bounding boxes, and this allows control over the information density of its output, with descriptions ranging from concise object labels to detailed captions. To achieve this we create large-scale training datasets of image region descriptions of varying length, starting from captioned images. This flexible-captioning capability has several valuable applications.   First, FlexCap demonstrates superior performance in dense captioning tasks on the Visual Genome dataset. Second, a visual question answering (VQA) system can be built by employing FlexCap to generate localized descriptions as inputs to a large language model. The resulting system achieves state-of-the-art zero-shot performance on a number of VQA datasets. We also demonstrate a $\textit{localize-then-describe}$ approach with FlexCap can be better at open-ended object detection than a $\textit{describe-then-localize}$ approach with other VLMs. We highlight a novel characteristic of FlexCap, which is its ability to extract diverse visual information through prefix conditioning. Finally, we qualitatively demonstrate FlexCap's broad applicability in tasks such as image labeling, object attribute recognition, and visual dialog. Project webpage: https://flex-cap.github.io .<|reference_end|>
@article{dwibedi2024flexcap:,
    title={FlexCap: Generating Rich, Localized, and Flexible Captions in Images},
    author={Debidatta Dwibedi, Vidhi Jain, Jonathan Tompson, Andrew Zisserman,
  Yusuf Aytar},
    journal={arXiv preprint arXiv:2403.12026},
    year={2024},
    archivePrefix={arXiv},
    eprint={2403.12026},
    primaryClass={cs.CV cs.AI cs.CL cs.LG}
}