A Frustratingly Simple Approach for End-to-End Image Captioning
Ziyang Luo, Yadong Xi, Rongsheng Zhang, Jing Ma
TL;DR
This work introduces VC-GPT, an end-to-end image captioning framework that connects a pre-trained CLIP-ViT visual encoder with a GPT-2 language decoder through a self-ensemble cross-modal fusion mechanism. By avoiding separate object detectors and adding dedicated fusion layers, VC-GPT achieves state-of-the-art or near-state-of-the-art performance on MSCOCO, Flickr30k, and NoCaps across standard metrics, while maintaining robust generalization. The paper also provides extensive ablations, showing the importance of the self-ensemble design, the benefits of freezing the visual encoder during pretraining, and the impact of learning-rate and image-resolution choices on final caption quality. Overall, the approach offers a practical, detector-free pathway to strong cross-modal generation with broad applicability in vision-language tasks.
Abstract
Image Captioning is a fundamental task to join vision and language, concerning about cross-modal understanding and text generation. Recent years witness the emerging attention on image captioning. Most of existing works follow a traditional two-stage training paradigm. Before training the captioning models, an extra object detector is utilized to recognize the objects in the image at first. However, they require sizeable datasets with fine-grained object annotation for training the object detector, which is a daunting task. In addition, the errors of the object detectors are easy to propagate to the following captioning models, degenerating models' performance. To alleviate such defects, we propose a frustratingly simple but highly effective end-to-end image captioning framework, Visual Conditioned GPT (VC-GPT), by connecting the pre-trained visual encoder (CLIP-ViT) and language decoder (GPT2). Different from the vanilla connection method that directly inserts the cross-attention modules into GPT2, we come up with a self-ensemble cross-modal fusion mechanism that comprehensively considers both the single- and cross-modal knowledge. As a result, we do not need extra object detectors for model training. Experimental results conducted on three popular image captioning benchmarks (MSCOCO, Flickr30k and NoCaps) demonstrate that our VC-GPT achieves either the best or the second-best performance across all evaluation metrics over extensive baseline systems.
