Introduction
CompoDistill is a novel knowledge distillation (KD) framework designed to fix a major blind spot in small Multimodal Large Language Models (MLLMs): their inability to understand complex relationships between objects. By explicitly aligning a student model’s visual attention with its larger teacher and reusing the teacher's visual "lens," CompoDistill allows 2B-parameter models to achieve compositional reasoning performance previously reserved for much larger models, all while being significantly faster to train than existing methods.
The Challenge: Visual Attention Misalignment
We are currently in the era of "scaling laws," where MLLMs get smarter primarily by getting bigger. While these giant models are impressive, they are too computationally expensive for many real-world applications. To solve this, researchers use Knowledge Distillation—training a small "student" model to mimic a large "teacher."
However, a frustrating trend has emerged: while KD helps small models identify objects (e.g., "There is a dog"), it fails to help them with compositional reasoning (e.g., "The dog is to the left of the red fire hydrant"). Even when the student model gets the final answer right, it’s often for the wrong reasons. Through systematic analysis, the authors identified the culprit: visual attention misalignment. When asked a complex question, the student model often looks at irrelevant parts of the image, whereas the teacher focuses precisely on the objects and relationships in question.
The CompoDistill Framework
To bridge the gap between student and teacher, CompoDistill introduces two core innovations:
- Visual ATtention alignment (VAT): Instead of just mimicking the teacher's final text output, the student is forced to match the teacher’s attention maps in its "visual understanding layers" (the intermediate layers of the LLM). Because teachers usually have more layers than students, the framework uses a Group Layer Matching strategy, where one student layer is aligned with a sliding window of multiple teacher layers.
- Teacher Adapter Fetch (TAF): A common issue in KD is that the student and teacher operate in different "feature spaces." To fix this, the authors literally "fetch" the teacher’s frozen, pre-trained visual adapter and plug it into the student. They add a tiny, trainable MLP to handle the dimension change. This ensures the student "sees" the image through the same optimized lens as the teacher.
The training happens in three stages: Distilled Pre-Training (aligning the feature space), Distilled Fine-Tuning (the core attention alignment), and a final Supervised Fine-Tuning stage to polish the model's instruction-following abilities.
Experimental Setup and Key Results
The models were evaluated across several categories, including General VQA (Recognition), Compositional Reasoning (Perception), Relational Hallucination, and Grounding.
- Closing the Reasoning Gap: On Compositional Reasoning (CR) tasks, CompoDistill-2B achieved an average score of 66.7%, significantly outperforming the standard SFT baseline (60.7%) and existing KD methods like LLaVA-KD (61.5%). This puts the 2B student nearly on par with its 4B teacher (70.3%).
- State-of-the-Art VQA: While focusing on reasoning, the model maintained or improved performance on standard VQA benchmarks, hitting a 61.9% average.
- Reduced Hallucinations: On the Reefknot benchmark (testing relational hallucinations), CompoDistill scored 67.9%, effectively matching the teacher's performance and beating other KD methods by over 4 percentage points.
- Better Grounding: In object localization (RefCOCO), the model reached 57.8% accuracy, a massive jump from the 16.2% of the baseline SFT model.
Key Insights
- The "Intermediate Layer" Bottleneck: The researchers found that the 30–70% range of LLM layers acts as the "visual understanding" engine. Aligning attention in these specific layers is far more effective for reasoning than aligning the very first or very last layers.
- Direction over Magnitude: When distilling attention, using Cosine Similarity (aligning the direction of the attention vectors) worked better than Mean Squared Error (matching the exact values). It's more important for the student to learn the relative importance of different image regions rather than perfectly replicating the teacher's raw numerical scores.
- Efficiency is a Feature: CompoDistill is remarkably efficient. It requires only 170 total training hours, compared to ~320 hours for LLaVA-KD and a staggering ~960 hours for LLaVA-MoD.
Limitations and Future Work
The authors acknowledge a few key limitations. Currently, CompoDistill distills the average attention across all heads in a layer, which might lose nuanced information captured by individual attention heads that specialize in different tasks (like color vs. shape). Additionally, the method assumes the teacher and student share the same LLM family/vocabulary for the logit-based distillation part. Future work will explore "head-specific" distillation to capture even finer-grained visual cues and address cross-family distillation challenges.
Summary updated