让小模型学会大模型的长距离视觉语言理解能力
Towards Long-window Anchoring in Vision-Language Model Distillation
- 用动态加权注意力匹配,重点学长距离位置关系
- 通过可学习调制增强位置敏感度,实现跨模型迁移
- 小模型上下文窗口最长提升3.2倍,适合长文本图像任务
尽管大型视觉语言模型(VLMs)具备强大的长上下文理解能力,但其小型分支在有限窗口下仍难以实现语言与图像的精准对齐。我们发现知识蒸馏能有效补充旋转位置编码(RoPE)在窗口尺寸上的局限,提升学生模型的长程感知能力。基于此,提出LAid方法,通过两个互补组件实现长距离注意力机制的直接迁移:(1) 渐进式距离加权注意力匹配,在训练中动态强调更长的位置差异;(2) 可学习的RoPE响应增益调制,按需选择性增强位置敏感性。在多个模型族上的实验证明,经LAid蒸馏的小模型有效上下文窗口最长可达基线的3.2倍,同时在标准视觉语言基准上性能保持或提升。谱分析表明,LAid成功保留了传统方法无法传递的关键低频注意力成分。本工作不仅提供了构建高效长上下文VLM的实际技术,也揭示了位置理解在蒸馏过程中涌现与迁移的理论机制。
原文摘要 · Abstract (English)
While large vision-language models (VLMs) demonstrate strong long-context understanding, their prevalent small branches fail on linguistics-photography alignment for a limited window size. We discover that knowledge distillation improves students' capability as a complement to Rotary Position Embeddings (RoPE) on window sizes (anchored from large models). Building on this insight, we propose LAid, which directly aims at the transfer of long-range attention mechanisms through two complementary components: (1) a progressive distance-weighted attention matching that dynamically emphasizes longer position differences during training, and (2) a learnable RoPE response gain modulation that selectively amplifies position sensitivity where needed. Extensive experiments across multiple model families demonstrate that LAid-distilled models achieve up to 3.2 times longer effective context windows compared to baseline small models, while maintaining or improving performance on standard VL benchmarks. Spectral analysis also suggests that LAid successfully preserves crucial low-frequency attention components that conventional methods fail to transfer. Our work not only provides practical techniques for building more efficient long-context VLMs but also offers theoretical insights into how positional understanding emerges and transfers during distillation.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。