Introduction
Vision-Language Models (VLMs), such as LLaVA, have demonstrated remarkable capabilities by integrating vision encoders with large language models. Recent advancements have shown that employing multiple specialized vision encoders—often referred to as "experts"—can significantly enhance performance. These experts, such as SAM for segmentation or Pix2Struct for OCR, provide diverse visual perspectives that a single encoder might miss. However, this performance boost comes at a high computational cost: running multiple large vision models during inference is slow and memory-intensive, making them unsuitable for real-time applications or edge deployment.
HAWAII (Hierarchical Visual Knowledge Transfer) addresses this challenge by enabling a single vision encoder to inherit the collective wisdom of multiple experts. By utilizing a novel hierarchical distillation framework, HAWAII achieves state-of-the-art performance while maintaining the inference efficiency of a standard single-encoder model.
The Challenge of Multi-Expert Distillation
Previous attempts to distill knowledge from multiple vision teachers into a single student model often encountered the "conflicting teachers" problem. Different models may produce noisy or contradictory signals for the same input, leading to student confusion and suboptimal learning. To overcome this, HAWAII introduces a structured approach to knowledge transfer that respects the unique strengths of each teacher while synthesizing their shared insights.
Methodology
HAWAII introduces two core innovations: Mixture-of-LoRA-Adapters (MOLA) and Hierarchical Knowledge Distillation (HKD).
Mixture-of-LoRA-Adapters (MOLA)
Rather than forcing a single set of parameters to absorb all teacher knowledge, HAWAII employs a Mixture-of-Experts (MoE) architecture for its adapters. This includes:
- Teacher-Specific LoRA Adapters: These are aligned to individual experts (e.g., CLIP, SAM, or ConvNext), allowing the student to capture the specialized perspective of each teacher.
- General-Knowledge Adapters: These capture the collective consensus across all teachers.
- Router: A dynamic routing mechanism selects the most appropriate adapter based on the input, ensuring the model applies the right expertise to the right task.
Hierarchical Knowledge Distillation (HKD)
Knowledge transfer occurs at two distinct levels to ensure comprehensive learning:
- Fine-grained Knowledge Distillation (FGKD): The student learns from each teacher individually using the teacher-specific adapters. A key component here is token importance scoring, which uses the text instruction to identify the most relevant parts of an image. This ensures the distillation process focuses on informative pixels rather than background noise.
- Coarse-grained Knowledge Distillation (CGKD): The model aggregates the collective knowledge of all teachers into a unified representation, which is then transferred to the student via the general-knowledge adapters.
Experimental Setup and Results
HAWAII was trained using the standard LLaVA-v1.5 pipeline, involving 558K image-text pairs for pretraining and 665K instruction-following pairs for fine-tuning. The model was evaluated across 10 diverse benchmarks, including general VQA (GQA, ScienceQA), OCR (VQAText), and reasoning/perception tasks (MMBench, MMMU, SeedBench).
Key Findings
- Performance Gains: HAWAII consistently outperformed the LLaVA-1.5 baseline and other distillation methods. Notable improvements included a 7.8% gain on VizWiz, a 5.5% gain on ScienceQA, and a 4.0% gain on MMBench.
- Inference Efficiency: Because HAWAII utilizes only one vision encoder during inference, it maintains the same latency and throughput as a standard LLaVA model, effectively providing "multi-expert" accuracy at "single-expert" speeds.
- Teacher Dynamics: Analysis of the routing mechanism revealed that the model often preferred knowledge from ConvNext or SAM over the standard CLIP encoder for specific tasks like MME or VizWiz. This suggests that traditional VLMs rely too heavily on CLIP and miss valuable visual information provided by other architectures.
- Scalability: The framework proved robust when scaled to 13B parameter models and newer architectures like LLaVA-Next.
Conclusion
HAWAII demonstrates that it is possible to bridge the gap between high-performance multi-expert VLMs and efficient single-expert models. By using hierarchical distillation and specialized adapters, the framework allows a student model to navigate conflicting teacher signals and prioritize task-relevant visual information.
Future work may involve expanding the variety of specialized vision experts and exploring the distillation of larger Language Models (LLMs) to further enhance the capabilities of efficient VLMs. While the distillation phase remains computationally intensive, the resulting models offer a practical path forward for deploying sophisticated vision-language capabilities in resource-constrained environments.
Summary updated