Let a Small Model Read First: Faster Prefill for Long Interleaved Image-Text Inputs
Abstract
Vision-language models (VLMs) can answer questions about long interleaved inputs, such as documents of many pages and collections of hundreds of images, but they are slow to start: on inputs of about 100K tokens, the prefill takes most of the wait for the first output token. A common approach prunes the input by scoring its tokens with the target model itself or with a small model of the same family that first writes an answer. However, this scoring takes much of the time that pruning saves. We find that the evidence for a question lies in a few whole units (images or paragraphs), and that a small hybrid model finds them with one attention head of an early layer, even at half image resolution. Based on these findings, we propose SkimPrefill, which lets the small hybrid model read the whole input first, up to that early layer, with images at half resolution. Most layers of the small hybrid model (Qwen3.5-0.8B) run in linear time, so this pass is short. SkimPrefill then ranks every unit with that head and gives the target the top units as an ordinary shorter prompt. One untrained selector serves targets of different model families. Extensive experiments on MMLongBench at 128K tokens, with 19 datasets of five task types, show the effectiveness of SkimPrefill. With 10% of the input tokens kept, SkimPrefill speeds up the prefill of Qwen3.5-9B, Gemma-4-12B and Qwen3-VL-32B by 3.7 times, 11.6 time and 8.2 times while maintaining their average accuracy.
Create a lesson
Metadata
- Categories
- cs.CV, cs.AI
Related papers
Seeing Through Preferences: Recovering Hidden Local Preference Neighborhoods for Text-to-Image Alignment
Shared title terminologycs.CVPulkit Bansal, Vivek Srivastava, Shirish Karande
Robust Concept Erasure in Text-to-Image Models via Simulating Brain Functional Localization
Shared title terminologycs.CVManyi Li, Yufan Liu, Bing Li et al.
T2ISpec: Benchmarking Speculative Decoding for Text-to-Image Generation
Shared title terminologycs.CVYifan Zhang, Shatong Zhu, Hui Shen et al.
CANDOR: Contrastive Self-Denoising Rewards for Label-Free Text-to-Image Post-Training
Shared title terminologycs.CVJunhyeok Lee, Byung-Hoon Kim, Kyu Sung Choi
Is It the Agent or the Retry? Separating Selection from Agency in Text-to-Image Generation
Shared title terminologycs.CVJian Xu, Delu Zeng, Qibin Zhao
UniDR: Learning To Generate Anatomical Deformations From Images via Unified Diffusion Modeling and Registration
Shared title terminologycs.CVSwakshar Deb, Tonmoy Hossain, Tom Fletcher et al.