Towards Long-window Anchoring in Vision-Language Model Distillation
Haoyi Zhou, Shuo Li, Tianyu Chen, Qi Song, Chonghan Gao, Jianxin Li
TL;DR
This work addresses the challenge of extending long-context understanding in small vision-language models. It introduces LAid, a distillation framework that transfers long-range attention from large VLMs to smaller students by combining head-level alignment with Fourier-based position distillation, preserving crucial low-frequency positional information. Empirical results on Visual HayStacks show up to 3.2× longer effective context while maintaining or improving standard VL benchmarks, with ablations confirming the necessity of the Fourier-enabled and head-alignment components. The study provides practical guidance for building more efficient long-context VLMs and offers theoretical insights into how positional understanding propagates across model scales.
Abstract
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.
