Align-KD: Distilling Cross-Modal Alignment Knowledge for Mobile Vision-Language Model
Qianhan Feng, Wenshuo Li, Tong Lin, Xinghao Chen
TL;DR
This work addresses the challenge of deploying capable vision-language models on mobile devices by recognizing that cross-modal alignment knowledge is underrepresented in prior knowledge-distillation methods. It introduces Align-KD, a lightweight KD approach that distills cross-modal alignment from the first-layer text-query-vision attention and enhances vision token representations based on the text's focus, guided by a strong 7B teacher. The method yields consistent improvements for the MobileVLM V2 1.7B student across six benchmarks under two data subsets, achieving around a 2.0-point average gain and notable gains on specific tasks such as SQA and GQA, while remaining feasible under resource-constrained training. The contribution offers a practical path to stronger edge VLMs without training massive models, enabling broader offline deployment and privacy-preserving AI applications.
Abstract
Vision-Language Models (VLMs) bring powerful understanding and reasoning capabilities to multimodal tasks. Meanwhile, the great need for capable aritificial intelligence on mobile devices also arises, such as the AI assistant software. Some efforts try to migrate VLMs to edge devices to expand their application scope. Simplifying the model structure is a common method, but as the model shrinks, the trade-off between performance and size becomes more and more difficult. Knowledge distillation (KD) can help models improve comprehensive capabilities without increasing size or data volume. However, most of the existing large model distillation techniques only consider applications on single-modal LLMs, or only use teachers to create new data environments for students. None of these methods take into account the distillation of the most important cross-modal alignment knowledge in VLMs. We propose a method called Align-KD to guide the student model to learn the cross-modal matching that occurs at the shallow layer. The teacher also helps student learn the projection of vision token into text embedding space based on the focus of text. Under the guidance of Align-KD, the 1.7B MobileVLM V2 model can learn rich knowledge from the 7B teacher model with light design of training loss, and achieve an average score improvement of 2.0 across 6 benchmarks under two training subsets respectively. Code is available at: https://github.com/fqhank/Align-KD.
