Abstract
Recent advancements in vision-language models (VLMs) have leveraged global contrastive learning and unidirectional local interactions to align visual and textual modalities. However, these architectures often lack bidirectional local symmetry and utilize sub-optimal random masking strategies. We present SyCoCa (Symmetrizing Contrastive Captioners), a framework that introduces a Text-Guided Masked Image Modeling (TG-MIM) head and a novel attentive masking strategy. By forcing the model to reconstruct visual details from textual cues and strategically masking patches based on cross-modal relevance, SyCoCa achieves superior fine-grained alignment. Our results demonstrate significant improvements across retrieval, captioning, and visual question answering (VQA) benchmarks.
1. Introduction
State-of-the-art vision-language models typically employ two primary alignment strategies: global alignment via Contrastive Language-Image Pre-training (CLIP) and unidirectional local interaction via Image Captioning (IC) heads, as seen in models like CoCa (Contrastive Captioners). While effective, this approach is inherently asymmetric; the model learns to describe images (image-to-text) but lacks a formal mechanism to reconstruct visual structures from text (text-to-image) at a local level. Furthermore, standard pre-training often relies on random masking (e.g., Masked Autoencoders), which can be inefficient for multimodal tasks by masking regions irrelevant to the accompanying text, thereby introducing noise into the learning signal.
2. The SyCoCa Framework
SyCoCa builds upon the foundational CoCa architecture—comprising a Vision Transformer (ViT) image encoder and a causal text encoder/decoder—by introducing two key innovations designed to symmetrize the learning process.
2.1 Text-Guided Masked Image Modeling (TG-MIM)
To address the lack of local text-to-image interaction, SyCoCa incorporates a dedicated image decoder. During training, specific patches of the input image are masked. The model is then tasked with reconstructing the original pixels. Unlike standard self-supervised reconstruction, this process is "text-guided": the image decoder utilizes cross-attention to integrate embeddings from the text encoder. This mechanism forces the model to understand the precise relationship between specific words and their corresponding visual structures, creating a bidirectional local alignment.
2.2 Attentive Masking Strategy
Rather than employing stochastic masking, SyCoCa utilizes the attention scores between visual patches and text tokens to guide the masking process. This strategy is applied differently depending on the training objective:
- For TG-MIM: The model masks the most relevant patches (those with the highest similarity to the text). This compels the model to rely heavily on textual cues to "hallucinate" or reconstruct the missing visual information, rather than simply interpolating from adjacent pixels.
- For Image Captioning (IC): The model masks the least relevant patches. This encourages the generative head to focus its capacity on the most salient, text-related regions of the image, improving the quality of generated descriptions.
The final training objective is a multi-task loss function combining Image-Text Contrastive (ITC), Image Captioning (IC), and the new TG-MIM loss.
3. Experimental Setup
SyCoCa was pre-trained primarily on the Conceptual Captions 12M (CC12M) dataset. To validate scalability, the authors also conducted experiments using LAION-2B and COYO-700M. Evaluation spanned a diverse suite of benchmarks, including Flickr30K and MSCOCO for retrieval and captioning, NoCaps for out-of-domain performance, VQA v2 for reasoning, and ImageNet variants (IN-V2, IN-A, IN-R) for zero-shot robustness.
4. Results and Discussion
SyCoCa consistently outperformed the baseline CoCa model across all evaluated tasks, demonstrating the efficacy of symmetric alignment.
- Zero-shot Retrieval: On Flickr30K, SyCoCa achieved a +5.1% gain in mean Text Retrieval (mTR) and a +3.7% gain in mean Image Retrieval (mIR) over CoCa.
- Visual Question Answering: The model showed a substantial improvement in VQA performance, with accuracy increasing by approximately 9% across validation and test sets.
- Robustness and Detail: In zero-shot classification on ImageNet-A (adversarial examples), SyCoCa yielded a +7.7% improvement. Qualitative Grad-CAM visualizations further indicate that SyCoCa’s attention maps are significantly more precise, accurately pinpointing specific objects mentioned in text (e.g., "cell phone") compared to the broader, less focused attention of standard CoCa.
5. Conclusion
SyCoCa demonstrates that "symmetry is a superpower" in multimodal alignment. By introducing bidirectional local interactions and a strategic attentive masking mechanism, the model moves beyond simple object labeling to a deeper structural understanding of the link between language and vision. While the addition of an image decoder increases computational overhead during training, the resulting gains in retrieval precision and reasoning capabilities suggest that text-guided reconstruction is a vital component for the next generation of vision-language foundation models.
Summary updated