Organizations: King Abdullah University of Science and Technology (KAUST), Thuwal, Saudi Arabia · Department of Computer Science, Edge Hill University, Ormskirk, England
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.
Figures & tables
Figure 1: Emulated against native attention. (a) Grid probing builds the grid outside the frozen model and calls the model once per span. (b) FCA passes the input once and selects the spans inside the model with masked attention.
Post
Black-
Encode
Past
Evid.
Method
hoc
box
once
window
map
Monolithic, prefix cache
✓
✓
✓
×
×
Trained fixed patterns [ 5 , 15 ]
×
×
✓
×
×
Trained sparse attn. [ 26 , 46 ]
×
×
✓
×
×
Sparse prefill [ 41 , 19 ]
✓
×
✓
×
×
Parallel encoding [ 31 , 44 ]
✓
×
✓
✓
×
Table 1: Positioning. Grid probing emulates an attention pattern through prompts, and FCA runs the same pattern natively. Post hoc means the method applies to a frozen model with no training. Black-box means the read needs only the model’s next-token scores. Encode once means one encoding serves every question on a context. Past window means reading contexts longer than the model’s window.
Figure 2: One layer of FCA. (a) The chunked context is reshaped into a K×K grid, whose rows are local spans and whose columns are strided spans, and its keys and values are stored once. A request reads each span as a masked context, in 2K sequences that run in one batch and whose scores are pooled into the answer. (b) The resulting attention pattern for K=4 .
Figure 3: Accuracy against time, one panel per model. Time is the mean per question, where a read that reuses its encoding of a context (FCA, the monolithic and XAttention) pays for that encoding once. The dashed link gives the speed-up of FCA over the emulated read.
Property
Emulated
Native
Accuracy, reach, map
same probes
same probes ∗
Time, first question
slower or similar
similar or faster
Time, later questions
as the first
reuses encoding
New input
encodes all again
new rows only
Memory
one span
the whole input
Model access
outputs only
attention layers
Table 2: Emulated attention (grid probing) against native attention (FCA). Bold marks the better side where the two differ. ∗ The strided spans of FCA are approximate ( Sec. 3.2 ).
InternVL3.5-2B
Qwen3-VL-2B
Qwen3-VL-8B
Acc. (%) ↑
TFLOPs ↓
TTFT (s) ↓
Acc. (%) ↑
TFLOPs ↓
TTFT (s) ↓
Acc. (%) ↑
TFLOPs ↓
TTFT (s) ↓
Method
LVB
V-MME
First
Later
Cold
Warm
LVB
V-MME
First
Later
Cold
Warm
LVB
V-MME
First
Later
Cold
Warm
Monolithic
46.4
44.8
463
463
3.67
3.67
56.2
47.1
868
868
6.40
6.40
62.7
58.7
2574
2574
12.45
12.45
Monolithic, cached
46.6
44.8
463
9
3.83
0.09
56.2
47.3
868
12.1
7.06
0.14
62.6
58.9
2574
36
13.11
0.26
XAttention [ 41 ] , cached
45.8
42.8
247
9
3.65
0.09
55.7
46.4
486
12.1
7.07
0.13
62.2
58.1
1663
36
12.37
0.27
GridProbe [ 11 ]
56.1
46.8
521
521
7.62
7.62
55.1
46.7
298
298
4.53
4.53
60.2
55.8
1070
1070
8.57
8.57
Table 3: Long-video QA. Accuracy (%) on LongVideoBench (LVB) and Video-MME long (V-MME), 144 frames, and cost per LVB question on one A100: language-model TFLOPs by GridProbe’s count and time to first token, for the first and a later question on a video. Cached reads keep a prefix cache. Bold marks the best and underline the second-best accuracy per model.
Accuracy ↑
TTFT (s) ↓
TPOT
Mem.
Method
In-win.
All
Cold
Warm
(ms)
(GB)
Qwen3-4B, window 262k
Monolithic
70.3
65.5
42.2
42.2
44.0
49.2
Monolithic, cached
70.3
65.1
41.9
0.4
44.2
49.3
XAttention [ 41 ] , cached
71.4
65.9
23.7
0.4
44.1
67.4
Token Sparse Attn. [ 19 ]
68.1
63.8
37.9
37.9
45.4
67.3
Table 4: Long-text QA on InfiniteBench En.MC. Accuracy (%) on all 229 questions and inside the window, and cost per request inside the window, on one A100. Bold marks the best and underline the second-best accuracy per column.
Accuracy (%) by frames ↑
Time (s)
Method
144
256
576
1,024
2,025
1,024
InternVL3.5-2B, window 40,960
Monolithic, 144 frames ∗
75.9
69.0
65.5
62.1
58.6
3.4
GridProbe [ 11 ]
93.1
89.7
93.1
82.8
79.3
43.2
FCA (ours)
93.1
86.2
86.2
82.8
75.9
26.0
Qwen3-VL-2B
Table 5: Needle in a long video. Accuracy (%) on a question about one image placed as a frame of a Video-MME long video, and seconds per question at 1,024 frames, with the select read-out. Bold marks the best per model. ∗ Reads 144 frames at every length, the most its window holds.
Figure 4: Needles by length and depth. Accuracy (%) of the monolithic read and of FCA, three needles per cell, with a dashed line at the window. (a) Text needles with Qwen3-4B, by context tokens. (b) Video needles with InternVL3.5-2B, by frames, over all needles. (c) Median time to first token of the first request on a text, with dotted lines at the windows. Hollow markers read only the window.
Match (%) ↑
TTFT (s) ↓
Method
In-window
Beyond
128k
256k
512k
Qwen3-4B, window 262k
Monolithic read
97.7
45.5
31.7
112.4
113.5 ∗
FCA (ours)
95.5
100.0
10.7
30.6
66.4
Llama-3.1-8B, window 131k
Monolithic read
97.0
36.4
31.3
31.9 ∗
33.0 ∗
Table 6: Needle in a haystack. String match (%) of 165 needles in contexts of 32k to 512k tokens, and median time to first token of the first request on a context, with the select read-out of FCA. Bold marks the higher accuracy per model. ∗ Reads only the prefix that fits the window.
Qwen3-4B
Llama-3.1-8B
Method
QA
MC
Time
QA
MC
Time
Monolithic, prefix cache
22.2
69.9
1.40
32.2
74.2
0.94
XAttention [ 41 ] , prefix cache
19.2
69.9
1.56
32.1
74.2
0.93
Periscope [ 12 ] , select
31.1
79.0
28.08
36.5
81.2
36.86
FCA (ours), select
31.5
76.4
5.69
35.6
79.9
5.12
Table 7: Multi-turn conversations on SCBench. Token F1 (%) on En.QA, accuracy (%) on En.MC, over all turns, and seconds per later En.QA turn to the full answer.
Agreement , RefCOCOg
Pointing
Deletion
Time (s)
Method
Encodes
NSS ↑
AUC ↑
Dist. ↓
r↑
In box (%) ↑
Changed (%) ↑
First
Later
Random map
–
− 0.05
0.485
0.189
0.049
24.8
3.8
–
–
Image centre
–
–
–
0.189
–
40.5
–
–
–
AnswerMap strips [ 10 ] , K=8
16
1.32
0.826
0.130
0.664
68.5
53.4
0.289
0.289
AnswerMap strips, grids 3 and 5
16
1.54
0.853
0.122
0.711
71.0
53.1
0.384
0.384
FCA bands, K=8
1
1.38
0.777
0.118
0.731
71.5
42.5
0.217
0.143
Table 9: Single images in AnswerMap’s protocol. Qwen3-VL-4B with the image at 512 pixels. Agreement of the map with the point the model generates on 800 RefCOCOg expressions, map expectations inside the target box on 400, and TextVQA answers that change when the map’s top 8 of 64 cells are blanked. Encodes counts image encodings per map. Time is seconds per map on 50 images and one A100, for the first question on an image and for a later question on it.
Table 10: Ablations on En.MC. Each panel changes one part of FCA, on all 229 questions, with accuracy in %. Panel (a) counts the answers out of 229 that differ from Periscope. Qwen is Qwen3-4B and Llama is Llama-3.1-8B.
Match (%) by turn ↑
Seconds ↓
Method
All
1–4
5–8
9–12
13–16
Encode
Turn
Llama-3.1-8B, window 131k
Monolithic
53.1
93.8
50.0
37.5
31.2
18.7
19.8
FCA (ours)
98.4
100.0
100.0
93.8
100.0
3.3
13.5
Qwen3-4B, window 262k
Monolithic
76.6
96.9
93.8
75.0
40.6
86.2
87.4
Table 8: Conversations with long turns. 8 conversations of 16 turns, each turn adding 32k tokens, up to 524k tokens. String match (%) of the select read-out over all turns and by turn. Encode is the seconds spent on encoding and Turn the seconds of the whole turn, both in turns 13 to 16. Periscope has no separate encoding.
Appendix figures & tables19 assets
Supplementary material from the paper’s appendix.
Appendix
Read
Encode (once)
Per request
GPU cache
Monolithic, prefix cache
as+bs2
a∣r∣+b∣r∣s
s
Grid probing, emulated
–
2as+2bcs1.5
sc
FCA , native
as+bcs1.5
2Ka∣r∣+2b∣r∣s
Bsc∗
Appendix
Table 11: Cost of the three reads. FLOPs and GPU cache for a context of s tokens in blocks of c , a request of ∣r∣ tokens, and K≈s/c , without the prompt and the select read, where a forward over t tokens costs at+bt2 . ∗ The store of s tokens sits in host memory when it does not fit the GPU.
Figure 5: Cost and context length. FLOPs per request of Qwen3-4B against context length, for the first request on a context and a later one, from the cost model of Tab. 11 .
Comparison
Questions
Median
90th
Max
Changed
B=8 against B=1
225
0.25
0.63
1.75
6 / 5
B=1 against earlier code
11
0
0
0
0 / 0
B=8 , repeated
11
0
0
0
0 / 0
Appendix
Table 12: Effect of the batch shape alone. Median, 90th percentile, and maximum of the absolute difference of the option scores, and answers that change, select / direct.
Setting
FCA against
Difference
95% interval
En.MC, Qwen3-4B
Periscope
− 1.3
− 4.4 to + 1.7
229 questions
Monolithic, cached
+ 14.0
+ 8.3 to + 19.7
LVB, InternVL3.5-8B
GridProbe
+ 1.1
− 0.3 to + 2.5
1,202 questions
Monolithic
+ 6.4
+ 4.1 to + 8.7
Appendix
Table 13: Paired confidence intervals. Difference in select accuracy (points) between FCA and another read on the same questions, with a paired bootstrap interval over questions.
Accuracy (%) ↑
Method
Short
Medium
Long
Overall
InternVL3.5-2B
Monolithic read
61.3
49.8
44.8
52.0
GridProbe [ 11 ]
65.4
53.9
46.8
55.4
FCA
64.8
53.7
45.8
54.8
InternVL3.5-8B
Appendix
Table 14: Video-MME, all durations. Accuracy (%) on the 900 questions of each duration split with 144 frames, and over all 2,700. The long split of InternVL3.5-2B, Qwen3-VL-2B and Qwen3-VL-8B repeats Tab. 3 . Bold marks the best per model.
Accuracy (%) ↑
Seconds ↓
Method
LVB
V-MME
LVB
Monolithic read
56.7
52.8
6.82
GridProbe [ 11 ]
62.1
54.1
14.14
FCA
63.1
52.1
6.44
Appendix
Table 15: InternVL3.5-8B on long video. Accuracy (%) on LongVideoBench (LVB) and Video-MME long (V-MME) with 144 frames, and seconds per LVB question averaged over the questions on a video. Bold marks the best per column.
FCA
Model
Window
Monolithic
Select
Direct
Qwen3-4B
262k
70.3
81.1
77.3
Qwen3-14B
131k
72.2
83.5
79.7
Qwen3-32B
131k
82.3
86.1
84.8
Llama-3.1-8B
131k
74.7
77.2
81.0
Mistral-Nemo-12B
128k
49.4
67.1
55.7
Appendix
Table 16: Scale and family on En.MC. Accuracy (%) on the contexts inside the window. Gray rows repeat Tab. 4 .
Qwen3-4B
Llama-3.1-8B
Method
Accuracy
Tokens
Accuracy
Tokens
Monolithic read
36.2
86k
27.6
73k
Periscope [ 12 ]
37.0 / 34.7
186k
30.6 / 28.6
175k
FCA
35.9 / 34.9
83k
29.6 / 28.6
78k
Appendix
Table 17: LongBench v2, short and medium splits. Accuracy (%) select / direct on 395 questions, and context tokens processed per question.
Accuracy (%) ↑
TTFT (s) ↓
Method
Tokens
V-MME
LVB
First
Later
Monolithic read
100%
47.1
56.2
6.40
6.40
VidCom2 [ 25 ]
25%
46.3
56.4
4.62
4.62
FastVID [ 33 ]
25%
45.7
55.6
4.20
4.20
VisionZip [ 43 ]
25%
43.9
56.3
4.42
4.42
HoliTom [ 32 ]
25%
44.6
56.4
4.82
4.82
Appendix
Table 18: Token reduction next to the sparse prefill, Qwen3-VL-2B. Accuracy (%) on Video-MME long (V-MME) and LongVideoBench (LVB) with 144 frames. Tokens is the share of the video tokens that the language model reads, and TTFT is the time to first token for the first and a later question on a video, as in Tab. 3 . Bold marks the best per column.
Figure 6: Cost against frames. Seconds per question for Qwen3-VL-2B on 20 LongVideoBench questions as the pool grows from 8×8 to 20×20 frames, averaged over the questions on a video, with the store of FCA at 448 pixels. Section D.5 gives the TFLOPs.
Figure 7: TFLOPs against frames. Qwen3-VL-2B on the 20 LongVideoBench questions of Fig. 6 , TFLOPs of the language model per question.
Table 19: Resolution of the video store. Qwen3-VL-2B, 144 frames, K=12 , store side in pixels. GridProbe probes at 224.
Match (%) ↑
Seconds ↓
Mem.
Method
In-window
Beyond
In-window
All
(GB)
Qwen3-4B, window 262k
Monolithic read
97.7
45.5
39.3
54.2 ∗
49.3
Periscope [ 12 ]
95.5
100.0
16.5
28.9
13.3
FCA
95.5
100.0
12.6
23.4
37.9
Llama-3.1-8B, window 131k
Appendix
Table 20: Text needles, all three reads. String match (%) of the 165 needles of Tab. 6 inside and beyond the window, mean seconds per needle, each the first request on its context, and peak GPU memory. Bold marks the higher accuracy per model. ∗ Reads only the prefix that fits the window.
Table 21: Localization on the video needles. Share of the needles each model answers from the image alone, 29 of 33 for InternVL3.5-2B and all 33 for Qwen3-VL-2B. The median rank of the needle frame is 1 at every length for both methods and both models. Bold marks the higher value per model.
Figure 8: Evidence maps of FCA. (a, b) Map of a needle question, M[i,j] the sum of the Yes log-odds of local span Li and strided span Sj , cell (i,j) being block 23(i−1)+j . (c, d) Map of a LongVideoBench question, the product of the row and column confidences, cell (i,j) being frame 12(i−1)+j . Outlined cells are read again by the select read-out.
Figure 9: Agreement with Periscope. Absolute difference between the probe scores of FCA and of Periscope on En.MC, median (marker) and 90th percentile (bar end). Gray: changing only the batch shape.
Local spans
Strided spans
Model
Positions
In
Beyond
In
Beyond
Llama-3.1-8B
Document
0.63 (2.3)
1.88 (55.7)
0.88 (2.8)
3.00 (54.8)
Stair
0.25 (1.0)
0.25 (1.0)
0.62 (1.9)
0.62 (1.8)
Qwen3-4B
Document
1.13 (3.6)
2.50 (7.0)
2.88 (8.9)
8.88 (40.3)
Stair
0.38 (1.4)
0.50 (1.5)
1.87 (7.4)
1.50 (6.1)
Batch shape only
0.25 (0.6)
Appendix
Table 22: Agreement with Periscope. Absolute difference between the probe scores of FCA and of Periscope, median (90th percentile), inside and beyond the window.
Table 23: Number of blocks of the select read. All 229 En.MC questions. (a) Select accuracy (%). (b) Mean number of blocks of 500 tokens read again. Qwen is Qwen3-4B and Llama is Llama-3.1-8B.
Table 24: Further ablations on En.MC. All 229 questions, with accuracy in % and times inside the window. Panel (a) reads one store of blocks encoded alone at the block start, and panel (d) reads one span family alone, in direct accuracy. Qwen is Qwen3-4B, Llama is Llama-3.1-8B, and the default store is page-locked.