Introduction
Image captioning typically relies on large-scale datasets of paired image-text examples. However, collecting such data is labor-intensive and expensive. Zero-shot image captioning attempts to bypass this by using pre-trained vision-language models like CLIP. A significant challenge in this domain is the "modality gap"—the phenomenon where image and text embeddings, despite being mapped to the same latent space, reside in distinct distributions. This misalignment often leads to inaccurate or generic captions. This paper introduces MacCap, a framework that bridges this gap by training exclusively on text data.
The MacCap Framework
MacCap (Mining Fine-Grained Image-Text Alignment for Captioning) addresses the modality gap through three innovative strategies: subregion feature aggregation, region-aware noise injection, and multiple sampling with filtering.
Subregion Feature Aggregation
Global image features often contain irrelevant background information that isn't reflected in human-written captions. The authors observed that human language is inherently selective, focusing on specific objects or actions. MacCap identifies that local subregions often align better with textual descriptions than global features do. By selecting and aggregating the most informative patches, the model creates a visual representation that is mathematically closer to the text embedding space.
Region-Aware Noise Injection and Architecture
During training, the model only sees text data. To prepare it for the "jitter" and distribution shift of image features encountered during inference, the authors inject Gaussian noise into the text embeddings. This "blurs" the text features, forcing the model to become robust to the slight offsets it will encounter when it sees real images.
The architecture utilizes a frozen Large Language Model (LLM), such as OPT-1.3b, as a decoder. A lightweight learnable adaptor is trained to translate CLIP features into the LLM's native embedding space, effectively turning the LLM into a vision-capable generator without full fine-tuning.
Key Insights
One of the most critical findings was the empirical evidence that the difference between CLIP's image and text embeddings follows a zero-mean Gaussian distribution. This "Gaussian Gap" insight justifies the use of simple noise injection during training to simulate the transition between modalities. Furthermore, by focusing on image subregions, the model achieves a "finer-grained" alignment that matches the inherent information loss in human language (e.g., describing a "table" rather than the exact texture of the floor).
Results and Performance
MacCap demonstrates state-of-the-art performance across multiple benchmarks:
- In-Domain Captioning: On the MSCOCO dataset, MacCap achieved a CIDEr score of 69.7, a massive leap over the previous state-of-the-art (DeCap), which scored 42.7.
- Cross-Domain Robustness: When trained on CC3M text and tested on MSCOCO images, it maintained superior performance, proving the model isn't just memorizing specific sentence structures.
- Zero-Shot VQA: The model outperformed existing zero-shot VQA methods on the VQAV2 benchmark, showing that better captioning leads to better reasoning in downstream tasks.
Conclusion and Future Work
MacCap proves that high-quality image captioning can be achieved without paired image-text training data. By leveraging the inherent structure of CLIP's latent space and focusing on local alignment, the framework sets a new standard for zero-shot vision-language tasks. While highly effective, the authors note that semantic comprehension still has room for improvement. Future work may explore more complex noise distributions and the integration of larger language models to handle more nuanced reasoning and storytelling in captions.
Summary updated