[Paper Review] Multi-modal Alignment using Representation Codebook
This paper proposes a novel method, Codebook Learning with Distillation (CODIS), for vision-language representation learning by using a shared, learnable codebook to align image and text features at a higher, more stable cluster-level representation. By contrasting cluster assignments and employing momentum distillation to stabilize training, CODIS achieves new SoTA performance on zero-shot image-text retrieval while being competitive on downstream transfer tasks.
Aligning signals from different modalities is an important step in vision-language representation learning as it affects the performance of later stages such as cross-modality fusion. Since image and text typically reside in different regions of the feature space, directly aligning them at instance level is challenging especially when features are still evolving during training. In this paper, we propose to align at a higher and more stable level using cluster representation. Specifically, we treat image and text as two "views" of the same entity, and encode them into a joint vision-language coding space spanned by a dictionary of cluster centers (codebook). We contrast positive and negative samples via their cluster assignments while simultaneously optimizing the cluster centers. To further smooth out the learning process, we adopt a teacher-student distillation paradigm, where the momentum teacher of one view guides the student learning of the other. We evaluated our approach on common vision language benchmarks and obtain new SoTA on zero-shot cross modality retrieval while being competitive on various other transfer tasks.
Motivation & Objective
- Address the challenge of aligning vision and language features that reside in different regions of the feature space during training.
- Improve cross-modal alignment by operating at a higher-level representation—cluster assignments—rather than individual features.
- Stabilize training through a novel distillation mechanism that guides codebook learning and feature alignment.
- Achieve state-of-the-art performance on zero-shot cross-modality retrieval without relying on massive datasets like CLIP or ALIGN.
- Bridge self-supervised learning techniques from single-modality to multi-modal representation learning via codebook-based contrastive learning.
Proposed method
- Introduce a shared, learnable codebook (dictionary of cluster centers) that represents the joint vision-language feature space.
- Perform contrastive learning by comparing cluster assignments of image and text features, optimizing both the codebook and feature encoders end-to-end.
- Use a momentum-based teacher-student distillation framework where the teacher encoder (updated via moving average) guides the student in learning both features and codebook assignments.
- Optimize codebook updates via an optimal transport-based objective that minimizes distance between modality features and their assigned codewords.
- Apply the distillation mechanism not only to feature learning but also to stabilize codebook learning, reducing training instability.
- Train the model using a hybrid objective combining masked language modeling (MLM), image-text matching (ITM), and contrastive loss (ITC) with codebook supervision.
Experimental results
Research questions
- RQ1Can cluster-level representation learning improve the stability and performance of vision-language alignment compared to instance-level contrastive learning?
- RQ2How does incorporating a momentum distillation mechanism enhance codebook learning and cross-modal alignment in a multi-modal setting?
- RQ3To what extent can a codebook-based approach achieve SoTA performance on zero-shot retrieval without relying on massive-scale datasets?
- RQ4Does learning from both intra-modal and cross-modal contrastive signals improve the quality of unified vision-language representations?
- RQ5How do different codebook sizes and loss weighting schemes affect the final retrieval performance in zero-shot settings?
Key findings
- CODIS achieves a new SoTA of 59.38% R@1 on text retrieval and 44.71% on image retrieval on the MSCOCO zero-shot benchmark, outperforming prior methods including ALBEF and CLIP.
- The ablation study shows that combining intra-modal and cross-modal alignment improves R@1 by +1.26% (text retrieval) and +0.42% (image retrieval) over pure cross-modal alignment.
- Using the teacher feature for codebook loss computation yields a +0.38% improvement in R@1 for text retrieval on MSCOCO compared to using student features.
- The model demonstrates strong alignment capabilities, as shown by Grad-CAM visualizations that highlight attention on semantically relevant image regions corresponding to input words.
- The codebook size of 3,000 codewords yields the best performance, with 500 codewords underperforming and 2.0x codebook size showing marginal gains over 3K.
- The method achieves consistent improvements across both MSCOCO and Flickr30K datasets, with a +2.5% absolute gain in R@1 for text retrieval on MSCOCO when compared to the baseline without codebook.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.