MoVE-KD: Knowledge Distillation for VLMs with Mixture of Visual Encoders
Jiajun Cao, Yuan Zhang, Tao Huang, Ming Lu, Qizhe Zhang, Ruichuan An, Ningning MA, Shanghang Zhang
TL;DR
MoVE-KD introduces a framework to distill the strengths of multiple vision encoders into one efficient student by pairing encoder adapters with a Mixture-of-LoRA-Experts (MoLE) and an attention-guided KD loss that leverages CLIP's [CLS] attention to weight both teachers and tokens. The method mitigates conflicts among diverse teachers while keeping parameter growth small, using three core components: encoder adapters, MoLE for selective specialization, and attention-based regularization with a combined loss $\mathcal{L}_{total} = \mathcal{L}_{text} + \lambda_{kd} \cdot \mathcal{L}_{kd}$. Empirical results on LLaVA and LLaVA-NeXT demonstrate state-of-the-art performance on major VLM benchmarks, with ablations underscoring the value of encoder adapters, MoLE, and adaptive teacher/token weighting. The work highlights practical implications for scalable, efficient VLMs and points to future directions in optimizing the projection between visual and language spaces for further gains.
Abstract
Visual encoders are fundamental components in vision-language models (VLMs), each showcasing unique strengths derived from various pre-trained visual foundation models. To leverage the various capabilities of these encoders, recent studies incorporate multiple encoders within a single VLM, leading to a considerable increase in computational cost. In this paper, we present Mixture-of-Visual-Encoder Knowledge Distillation (MoVE-KD), a novel framework that distills the unique proficiencies of multiple vision encoders into a single, efficient encoder model. Specifically, to mitigate conflicts and retain the unique characteristics of each teacher encoder, we employ low-rank adaptation (LoRA) and mixture-of-experts (MoEs) to selectively activate specialized knowledge based on input features, enhancing both adaptability and efficiency. To regularize the KD process and enhance performance, we propose an attention-based distillation strategy that adaptively weighs the different encoders and emphasizes valuable visual tokens, reducing the burden of replicating comprehensive but distinct features from multiple teachers. Comprehensive experiments on popular VLMs, such as LLaVA and LLaVA-NeXT, validate the effectiveness of our method. Our code is available at: https://github.com/hey-cjj/MoVE-KD.
