Abstract
Vision-Language Models (VLMs) bring powerful understanding and reasoning capabilities to multimodal tasks. Meanwhile, the great need for capable artificial intelligence on mobile devices also arises, such as 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 tokens 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.
Introduction
The advent of Vision-Language Models (VLMs) like LLaVA has revolutionized multimodal reasoning. However, the deployment of these models, which often exceed 7 billion parameters, remains a significant challenge for mobile and edge computing environments. While researchers have attempted to scale these models down, smaller architectures frequently suffer from a "performance cliff." This decline is primarily attributed to the difficulty smaller models face in achieving effective cross-modal alignment—the critical process of mapping visual features into the same conceptual space as linguistic tokens.
Existing knowledge distillation (KD) frameworks typically target single-modality Large Language Models (LLMs) or utilize teacher models solely for generating higher-quality training data. These approaches often neglect the internal mechanics of how a model bridges the gap between sight and language. Align-KD addresses this by specifically teaching the student model how the teacher aligns these disparate modalities.
Methodology
Align-KD is built upon the observation that the most critical feature transformations in a VLM occur at the shallowest and deepest layers. The framework introduces a three-pronged distillation strategy designed to be computationally efficient while maximizing performance gains:
- First Layer Text-Query-Vision Attention: Rather than distilling every layer, Align-KD focuses on the very first layer of the LLM backbone. It forces the student’s attention distribution to mimic the teacher’s, specifically regarding how text "queries" vision tokens ($A_{t-v}$). This ensures the student learns to identify relevant visual regions based on the text prompt from the earliest stage of processing.
- Vision Enhancement Based on Text Focusing: Recognizing that not all visual tokens are equally relevant to a given prompt, Align-KD identifies the "top-K" visual tokens prioritized by the teacher. The teacher's high-dimensional embeddings for these specific tokens are then used to guide the student’s vision projector, preventing the student from being distracted by irrelevant visual noise.
- Reverse KL Divergence (R-KLD): At the final output stage, the framework employs Reverse KLD to align the student's predicted probability distribution with the teacher's. This "mean-seeking" approach encourages the student to capture the teacher's broader reasoning patterns rather than just over-fitting to specific labels.
Experimental Setup and Results
The authors evaluated Align-KD using a MobileVLM V2 1.7B student model and a 7B teacher model. Training utilized the ShareGPT4V-PT dataset for pre-training and a massive 3.6M sample mixture for multi-task fine-tuning. Performance was measured across six diverse benchmarks: GQA (reasoning), SQA-IMG (science), TextVQA (OCR), MME (perception/cognition), MMBench-dev, and POPE (object hallucination).
The results demonstrate that Align-KD consistently boosts student performance:
- Universal Improvements: The student model achieved an average improvement of 2.0 points across all six benchmarks.
- Reasoning Gains: Significant boosts were observed in reasoning-heavy tasks, with a 3.8-point increase on GQA and a 3.2-point increase on SQA.
- Hallucination Mitigation: A 1.2-point improvement on the POPE benchmark indicates that the student became more accurate at identifying present objects.
- Resource Efficiency: Notably, Align-KD allowed models trained on shorter context limits (512 tokens) to achieve performance levels comparable to models trained on much longer, memory-intensive prompts, making them highly suitable for mobile deployment.
Key Insights and Future Work
A central finding of this research is the "Shallow Alignment Hypothesis." Through cosine similarity analysis, the authors confirmed that the "magic" of cross-modal alignment happens almost entirely in the first layer of the LLM backbone. By focusing distillation on this layer and utilizing sparse vision token enhancement, Align-KD remains lightweight and avoids the computational overhead of full-model distillation.
While successful, the method currently assumes a degree of structural similarity between the teacher and student models. Future research will investigate the application of Align-KD to even smaller "sub-billion" parameter models and explore whether this shallow-layer alignment strategy is effective for other modalities, such as audio or video.
Summary updated