Factorized Context Attention: From Emulated to Native Grid Probing

Hugging Face Daily Papers Papers

Summary

The paper introduces Factorized Context Attention (FCA), a training-free block-sparse attention method that natively reproduces grid probing's span-based attention pattern by encoding input once into a KV cache, matching its accuracy and extending context at much lower cost across video, text, and image tasks.

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.
Original Article
View Cached Full Text

Cached at: 11/25/26, 08:05 AM

Paper page - Factorized Context Attention: From Emulated to Native Grid Probing

Source: https://huggingface.co/papers/2611.32423

Abstract

Factorized Context Attention is a training-free block-sparse attention method that natively reproduces grid probing’s span-based attention pattern, encoding input once into a KV cache to match accuracy and extend context at lower cost across video, text, and image tasks.

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 attentionis 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 thatgrid probingisemulated attention, anattention patternreproduced from outside the model through prompts, since each probe only restricts which part of the input the question can see. We introduceFactorized Context Attention (FCA), atraining-free block-sparse attentionthat runs the same pattern natively, as the attention of the model itself. FCA encodes the input once into aKV cache, reads all spans asmasked sequencesin onebatched forward, and uses astair position scheduleto keep every span inside thetrained position range. Acrosslong video understanding,long-context text inferenceandimage grounding, FCA matches the accuracy and the reach ofgrid probingat 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 ofgrid probing. Native attention thus keeps whatemulated attentiongains without its cost, all with existing frozen language andvision-language models.

View arXiv pageView PDFProject pageGitHub0Add to collection

Models citing this paper0

No model linking this paper

Cite arxiv.org/abs/2611.32423 in a model README.md to link it from this page.

Datasets citing this paper0

No dataset linking this paper

Cite arxiv.org/abs/2611.32423 in a dataset README.md to link it from this page.

Spaces citing this paper0

No Space linking this paper

Cite arxiv.org/abs/2611.32423 in a Space README.md to link it from this page.

Collections including this paper0

No Collection including this paper

Add this paper to acollectionto link it from this page.

Similar Articles

New sparse attention method for ultra-long context

Reddit r/LocalLLaMA

The team shares Latent Sparse Attention (LSA), an open research release enabling subquadratic attention that matches full-attention accuracy at ultra-long context, making sparse attention up to 22.7× faster and full attention up to 72.4× faster.

Scaling Parameter and Context in Attention: Native Sparse Attention from Mixture-of-Head

arXiv cs.CL

Peking University researchers introduce NAMOH, an architecture-native sparse attention mechanism that activates K of H heads per token, so head routing jointly determines active parameters and available context. It enables parameter scaling to directly support efficient long-context scaling, outperforming fully activated models with the same total parameters while remaining compatible with GQA and existing sparse attention methods.

COBS: Cumulant Order Block Sparse Attention

arXiv cs.LG

COBS introduces a cumulant-order block sparse attention method that improves block selection by using compressed second-order statistics, achieving near-dense attention accuracy on long-context benchmarks while significantly reducing KV cache read traffic.