Negative Entity Suppression for Zero-Shot Captioning with Synthetic Images
Zimao Lu, Hui Xu, Bing Liu, Ke Wang
TL;DR
This work tackles cross-domain degradation in zero-shot image captioning by introducing Negative Entity Suppression (NES), a unified framework that uses synthetic images for image-to-text retrieval, filters out negative, hallucination-prone entities, and applies attention-level suppression to reduce their influence. By bridging the modality gap with synthetic visuals and mitigating retrieval-induced and language-prior hallucinations, NES preserves in-domain performance while substantially improving cross-domain transfer, achieving new state-of-the-art results on Flickr30k→COCO and strong gains on NoCaps. The contributions include a training-time negative-entity classification, a similarity-based inference filter, and a targeted suppression mechanism that reduces hallucinations without sacrificing caption quality. The approach has practical impact for deploying zero-shot captioning systems across diverse visual domains without costly paired data.
Abstract
Text-only training provides an attractive approach to address data scarcity challenges in zero-shot image captioning (ZIC), avoiding the expense of collecting paired image-text annotations. However, although these approaches perform well within training domains, they suffer from poor cross-domain generalization, often producing hallucinated content when encountering novel visual environments. Retrieval-based methods attempt to mitigate this limitation by leveraging external knowledge, but they can paradoxically exacerbate hallucination when retrieved captions contain entities irrelevant to the inputs. We introduce the concept of negative entities--objects that appear in generated caption but are absent from the input--and propose Negative Entity Suppression (NES) to tackle this challenge. NES seamlessly integrates three stages: (1) it employs synthetic images to ensure consistent image-to-text retrieval across both training and inference; (2) it filters negative entities from retrieved content to enhance accuracy; and (3) it applies attention-level suppression using identified negative entities to further minimize the impact of hallucination-prone features. Evaluation across multiple benchmarks demonstrates that NES maintains competitive in-domain performance while improving cross-domain transfer and reducing hallucination rates, achieving new state-of-the-art results in ZIC. Our code is available at https://github.com/nidongpinyinme/NESCap.
