TL;DR
Knowledge distillation for Multimodal LLMs (MLLMs) has traditionally focused on copying how a teacher model looks at an image during the initial prompt phase. This paper flips the script by showing that a student's performance actually depends on mimicking the teacher's attention during the response generation phase. To achieve this, the authors introduce TRAG, a token-adaptive distillation framework that dynamically adjusts its focus based on attention entropy.
What Problem Does This Paper Address?
Compressing massive Multimodal Large Language Models (MLLMs) into lightweight versions that can run efficiently on edge devices is a major challenge. Knowledge Distillation (KD) helps by training a smaller student model to mimic a larger teacher. However, just matching text output probabilities (logits) isn't enough because it ignores how the model grounds its decisions in visual evidence.
Previous attempts at "attention distillation" tried to make the student copy the teacher's attention maps during the prompt phase (Prompt-to-Vision). The authors discover this is a dead end: prompt-conditioned attention alignment shows negligible correlation with downstream performance. Furthermore, existing methods treat all tokens equally, ignoring the fact that different words require vastly different levels of visual focus (e.g., function words like "the" vs. specific action words like "throwing").
Methods
The authors introduce Token-level Response-visual Attention Guidance (TRAG). TRAG makes two key departures from standard attention distillation:
- Shifting Supervision to the Response Phase: Instead of distilling attention during prompt processing, TRAG targets the cross-modal attention maps generated while the model is decoding the response (Response-to-Vision attention).
- Entropy-Driven Adaptive Weighting: Rather than using a uniform loss function for every token, TRAG dynamically adjusts the distillation objective based on the entropy of the teacher's attention distribution.
To achieve specialized supervision, TRAG balances two asymmetric Kullback-Leibler (KL) divergences:
- For high-entropy tokens (where attention is diffuse, like function words or broad context), TRAG leans into Forward KL divergence, which is mean-seeking and ensures broad coverage.
- For low-entropy tokens (where attention is sharply focused on specific objects or actions), TRAG shifts toward Reverse KL divergence, which is mode-seeking and enforces sharp precision.
TRAG aggregates attention across intermediate layers (relative depth 0.3 to 0.6) where cross-modal grounding is most intense, significantly reducing computational overhead compared to layer-by-layer matching.
Datasets
- Training: Pre-training is conducted on
LLaVA-Pretrain-558K. Instruction tuning and distillation utilizeLLaVA-Instruct-665K. - Evaluation:
- General VQA Suite: GQA, ScienceQA, TextVQA, MME, MMBench, MMBench-CN, POPE, and MMMU.
- Compositional Reasoning (CR) Suite: SugarCrepe, BiVLC, and Winoground.
- Attention Fidelity: Evaluated using the
VIGC-InstDatadataset under autoregressive generation.
Key Insights and Ideas
- The Generative Phase is the Critical Signal: Alignment of Prompt-to-Vision attention does not reliably track model capability. In contrast, Response-to-Vision attention similarity perfectly tracks model performance, identifying the generative phase as the true bottleneck for multimodal distillation.
- Layer Redundancy vs. Token Heterogeneity: Cross-modal attention maps are highly redundant across adjacent layers but vary wildly from token to token. This means complex layer-matching schemes are unnecessary; instead, the distillation framework must adapt to individual token dynamics.
- Asymmetric KL Regulation: By blending Forward and Reverse KL based on teacher entropy, the student learns when to look broadly at the whole scene and when to zero in on a tiny detail, effectively mirroring the teacher's dynamic visual grounding.
Key Results
- State-of-the-Art VQA Performance: TRAG consistently outperforms competitive baselines like LLaVA-KD and CompoDistill. For a Qwen2.5-0.5B student model, TRAG boosts the 8-benchmark VQA average from 57.1% (baseline) to 60.2%, even beating LLaVA-KD by 1.5 points.
- Compositional Robustness: On tricky compositional reasoning tasks (like SugarCrepe and Winoground), TRAG yields massive gains, improving a Qwen1.5-1.8B student's average score to 79.8% (+3.0% over CompoDistill).
- High Attention Fidelity: TRAG achieves an attention cosine similarity of ~0.72 with the teacher in intermediate layers, vastly higher than standard SFT (0.18) or CompoDistill (0.41), proving that the student successfully replicates the teacher's internal grounding logic.
Limitations and Future Work
- Vocabulary Dependency: TRAG assumes the teacher and student share the same tokenizer/vocabulary because it aligns attention maps token-by-token under teacher forcing. It cannot be directly applied to teacher-student pairs with mismatched tokenizers.
- Off-Policy Training: The cross-modal supervision is computed under a standard teacher-forcing paradigm using fixed ground-truth sequences. This creates a train-inference mismatch. The authors suggest extending TRAG to an on-policy distillation setting—dynamically querying the teacher's attention along the student's actual decoding trajectory—as a promising future direction.
Summary updated