KDMCSE: Knowledge Distillation Multimodal Sentence Embeddings with Adaptive Angular margin Contrastive Learning
Cong-Duy Nguyen, Thong Nguyen, Xiaobao Wu, Anh Tuan Luu
TL;DR
KDMCSE introduces knowledge distillation from a frozen CLIP teacher to improve multimodal sentence embeddings and reduces noisy negative sampling in contrastive learning. It adds AdapACSE, an Adaptive Angular Margin loss that scales the angular margin using $\Delta_{i,j} = |1-\alpha_{i,j}|$ with $\alpha_{i,j} = \frac{m_i^T n_j}{\|m_i\|_2 \|n_j\|_2}$ the cosine similarity between samples, together with a thresholding scheme to filter weak negatives. The method leverages both text and image modalities, learning from CLIP's soft labels while training a student language encoder. Experiments on standard STS benchmarks show consistent improvements over prior approaches, reflecting better alignment and uniformity and improved transfer to downstream tasks. This work advances robust, multimodal sentence representations with practical impact on real-world NLP applications.
Abstract
Previous work on multimodal sentence embedding has proposed multimodal contrastive learning and achieved promising results. However, by taking the rest of the batch as negative samples without reviewing when forming contrastive pairs, those studies encountered many suspicious and noisy negative examples, significantly affecting the methods' overall performance. In this work, we propose KDMCSE (Knowledge Distillation Multimodal contrastive learning of Sentence Embeddings), a novel approach that enhances the discrimination and generalizability of multimodal representation and inherits the knowledge from the teacher model to learn the difference between positive and negative instances and via that, can detect noisy and wrong negative samples effectively before they are calculated in the contrastive objective. Furthermore, to overcome the limitation of modeling the variation within negative pairs, we introduce a new contrastive objective, AdapACSE (Adaptive Angular Margin Supervised Contrastive Learning for Multimodal sentence embeddings), that enhances the discriminative representation by strengthening the margin within the angular space while capturing varying semantics within the negative. Experimental results on widely used Semantic Textual Similarity (STS) benchmarks demonstrate the effectiveness of our approach.
