Abstract
The modality gap in multi-modal models like CLIP—where image and text embeddings occupy distinct regions of the vector space—poses a significant challenge for zero-shot image captioning. We present Diffusion Bridge, a novel framework that utilizes Denoising Diffusion Probabilistic Models (DDPM) to bridge this gap. By treating the embedding discrepancy as Gaussian noise, Diffusion Bridge employs a reverse diffusion process to refine image embeddings into text-like representations. This generative alignment strategy achieves state-of-the-art results on zero-shot benchmarks without requiring paired image-text training data.
Introduction
Large-scale vision-language models have revolutionized multi-modal AI by establishing shared embedding spaces. However, a persistent "modality gap" remains: even for semantically identical pairs, visual and textual embeddings reside in separate clusters. In zero-shot image captioning, decoders are typically trained solely on text embeddings. At inference time, they often fail when presented with "out-of-distribution" image embeddings. Previous alignment attempts, such as linear projections or simple noise injection, often lack the precision or scalability needed for high-quality captioning. Diffusion Bridge addresses this by using a generative process to pull image embeddings toward the high-density regions of the text distribution.
Methodology
The Diffusion Bridge framework operates in three distinct stages to achieve non-linear alignment:
- Diffusion Training (Text Only): A 1D UNet-based diffusion model is trained exclusively on text embeddings. This allows the model to learn the "manifold" or the natural distribution of textual representations in the CLIP space.
- Decoder Training: To ensure the caption generator (GPT-2) is robust, it is trained using Diffusion-Augmented text embeddings. By feeding the decoder embeddings that have undergone a forward-reverse diffusion cycle, the model learns to handle the slight variations inherent in the alignment process.
- Inference (The Bridge): During inference, a raw image embedding is injected into the reverse diffusion process at an intermediate timestep ($M$). The diffusion model, having learned the text distribution, "denoises" the visual embedding, effectively pulling it toward the text manifold to produce a "text-like" vision embedding compatible with the decoder.
Experimental Results
The model was evaluated on the MSCOCO and Flickr30K datasets using the standard Karpathy split. Performance was measured using standard metrics including BLEU, METEOR, ROUGE-L, CIDEr, and SPICE.
Quantitative Performance
Diffusion Bridge achieved state-of-the-art performance on the MSCOCO dataset with a CIDEr score of 96.4, significantly outperforming previous zero-shot methods like C3 (93.3) and CapDec (91.8). A key driver of this success is the quantifiable alignment: the cosine similarity between paired image and text embeddings increased from 0.306 to 0.606 after passing through the Diffusion Bridge.
Visual Evidence of Alignment
Visual analysis via UMAP dimensionality reduction confirms the effectiveness of the generative alignment. As shown in the visualization below, the "mapped" image embeddings (green) overlap almost perfectly with the text embedding clusters (blue), whereas the raw image embeddings (red) remain isolated in a separate region of the latent space.
Discussion and Limitations
Diffusion Bridge demonstrates that generative models can serve as sophisticated alignment tools for multi-modal tasks. Unlike simple projectors, this method selectively increases similarity for paired samples while maintaining distinctions for unpaired ones, reducing hallucinations.
However, some limitations remain. The iterative nature of the diffusion process introduces higher inference latency compared to single-pass neural networks. Additionally, performance on smaller datasets like Flickr30K was slightly lower, suggesting the diffusion model requires substantial data to fully capture the intricate structure of the text manifold. Future work will focus on optimizing inference speed and incorporating entity-aware prompts to further refine linguistic accuracy.
Summary updated