Multi-modal Alignment using Representation Codebook
Jiali Duan, Liqun Chen, Son Tran, Jinyu Yang, Yi Xu, Belinda Zeng, Trishul Chilimbi
TL;DR
This work addresses aligning heterogeneous image and text features for vision-language pretraining. It introduces CODIS, a framework that learns a joint multimodal codebook of $K$ prototypes in a $d_c$-dimensional space (e.g., $K=4000$, $d_c=256$) and uses Optimal Transport to align modality-specific features to prototypes, with a momentum teacher system to stabilize learning. The method combines multimodal codebook learning with teacher-student distillation and standard SSL objectives (ITM and MLM) into a unified pretraining objective ${\mathcal L}_{final}= {\mathcal L}_{mlm}+{\mathcal L}_{itm}+{\mathcal L}_{ica}+{\mathcal L}_{code}$, achieving SoTA zero-shot cross-modality retrieval and strong transfer on V&L tasks. By bridging modalities at the prototype level and leveraging stable teacher guidance, CODIS effectively mitigates distribution gaps and prototype collapse, enabling efficient multimodal alignment without requiring massive data resources.
Abstract
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.
