跳到正文
HuggingFace Daily Papers· Mohamed Eltahir, Manar Eyad, Yara Alzahrani, Fatimah Albesher, Duaa M. Tahir, Tanveer Hussain, Naeemullah Khan·· 2 天前AI 评分36

Factorized Context Attention(FCA):将网格探测从模拟注意力变为原生块稀疏注意力

Factorized Context Attention: From Emulated to Native Grid Probing

AI 导读

Factorized Context Attention(FCA)是一种免训练块稀疏注意力,把网格探测从模型外提示模拟转为模型原生注意力:输入只编码一次进 KV cache,所有 span 在一次批处理前向中以掩码序列读取,并用阶梯位置调度把每个 span 保持在训练位置范围内。

正文 · 原文

View PDF HTML (experimental)

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.
Comments: Code: this https URL
Subjects: Computer Vision and Pattern Recognition (cs.CV); Computation and Language (cs.CL)
Cite as: arXiv:2611.32423 [cs.CV]
  (or arXiv:2611.32423v1 [cs.CV] for this version)
  https://doi.org/10.48550/arXiv.2611.32423

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Mohamed Eltahir [view email]
[v1] Tue, 24 Nov 2026 11:25:48 UTC (205 KB)

来源:HuggingFace Daily Papers · arxiv.org