Factorized Context Attention: From Emulated to Native Grid Probing
Mohamed Eltahir, Manar Eyad, Yara Alzahrani, Fatimah Albesher, Duaa M. Tahir, Tanveer Hussain, Naeemullah Khan
Abstract
Models read a book, an hour of video, or an image in one forward pass. As the context grows, this pass slows down, loses accuracy, and stops at the context window. Sparse attention is efficient, but keeps the other two limitations. Grid probing, a recent training-free method, recovers the accuracy and extends the reach by asking a frozen model the same question about short local and strided spans of the input, but every question repeats the whole computation, since each span is encoded again. Our insight is that grid probing is emulated attention, an attention pattern reproduced from outside the model through prompts, since each probe only restricts which part of the input the question can see. We introduce Factorized Context Attention (FCA), a training-free block-sparse attention that runs the same pattern natively, as the attention of the model itself. FCA encodes the input once into a KV cache, reads all spans as masked sequences in one batched forward, and uses a stair position schedule to keep every span inside the trained position range. Across long video understanding, long-context text inference and image grounding, FCA matches the accuracy and the reach of grid probing at a fraction of its cost. It gains about 10 points over the single pass on long video and 9 to 14 points on long novels, finds needles in videos of over a thousand frames and in texts four times the length of the window, and answers a later question about the same input in as little as a tenth of the time of grid probing. Native attention thus keeps what emulated attention gains without its cost, all with existing frozen language and vision-language models.
Create a lesson
Metadata
- Categories
- cs.CV, cs.CL
- Comments
- Code: https://github.com/mohammad2012191/FCA
Related papers
TokenMatte: Unlocking T2V Diffusion Priors for Pixel-Native Video Matting
Shared title terminologycs.CVZanyi Wang, Dengyang Jiang, Fengfei Yu et al.
Text Is Just Another Shot in Vision-Language Models: Simple Probes on Frozen Encoders Do It
Shared title terminologycs.CVReda Bensaid, Ismail Ben Ayed, François Leduc-Primeau et al.
ICLWorld: Benchmarking In-Context Learning of Agents from Digital to Physical Worlds
Shared title terminologycs.CVQingle Liu, Jieming Li, Pei-lin Li et al.
Sol^{3}: Accelerating Video Diffusion for Free via Hierarchical Sparse Attention Routing
Shared title terminologycs.CVGuoxin Fan, Weilun Feng, Chuanguang Yang et al.
NativeDrive: Native Multimodal Foundations for Autonomous Driving
Shared title terminologycs.CVZehua Fan, Qi Jiang, Wei Li et al.
SegPFN: Training-Free In-Context Segmentation with Tabular Prior-Data Fitted Networks
Shared title terminologycs.CVJiajian Ma, Yihao Qiao, Ke Chen et al.