Vision-language models (VLMs) represent each image with hundreds of visual tokens, which can make inference costly even when a prompt depends on only part of the image. Dynamic Token Merging (DTM), introduced in MrT5 for byte-level text encoders, learns which tokens to remove: a lightweight delete gate scores contextualized hidden states, acts as a differentiable attention bias during training, and physically removes tokens at inference. We argue that DTM is a general token deletion framework rather than a byte-level technique, and extend it to the vision modality and to decoder-only models. Applying DTM to T5Gemma 2 and Gemma 3 yields V-MrT5Gemma2, which deletes visual tokens inside a bidirectional multimodal encoder, and V-MrGemma3, which compacts the prompt and its key-value caches during decoder-only prefill. Across ten benchmarks, DTM's advantage over attention-based and random deletion grows with the deletion rate and is largest on document, chart, and scene-text reading. At 80% visual token deletion (approximately 60% fewer FLOPs), DTM raises accuracy over FastV from 51.8 to 63.0 on ChartQA and from 63.3 to 67.8 on TextVQA with V-MrT5Gemma2, as well as from 62.2 to 68.8 and from 71.2 to 75.1 with V-MrGemma3, retaining 90-96% of unpruned performance on both tasks with significant efficiency gains. These results support DTM as a general framework for efficient transformers.
Figures & tables
Figure 1: Dynamic Token Merging (DTM) in encoder–decoder and decoder-only VLMs. (a) V-MrT5Gemma2 deletes selected visual tokens before encoder layer k , retaining all text tokens. The shortened encoder output feeds the decoder’s merged self- and cross-attention. (b) V-MrGemma3’s prefill uses bidirectional attention within images and causal attention for text, caching the full prompt before the gate and the compacted prompt after it; decoding reuses these caches and appends generated K/V without further deletion. Both diagrams show hard deletion at inference. The gate and deletion rule are the same in both architectures; only where the gate takes effect differs.
Instance
Backbone
Deletes
Gate after
Sees question
Hard deletion shortens
MrT5
ByT5 (enc.–dec.)
Bytes
Encoder layer 3
—
Encoder, cross-attn.
V-MrT5Gemma2
T5Gemma 2 (enc.–dec.)
Visual
Encoder layer 5
Yes
Encoder, merged attn.
V-MrGemma3
Gemma 3 (dec.-only)
Visual
Layer 5 (prefill)
No
Prompt, KV cache
Table 1: Three instances of the DTM framework. All share the delete gate, soft-to-hard deletion, and controlled deletion objective (Section 3.2 ). MrT5 ( Kallini et al., 2025 ) uses PI control with full fine-tuning; our instances use PID control with LoRA. Only the tokens eligible for deletion and where the shortened sequence takes effect differ across instances.
T5Gemma 2
DocVQA
ChartQA
InfoVQA
TextVQA
VQAv2
VizWiz
GQA
TallyQA
POPE
RefCOCO+
δ
40%
80%
40%
80%
40%
80%
40%
80%
40%
80%
40%
80%
40%
80%
40%
80%
40%
80%
40%
80%
Base
82.0
69.7
47.2
72.0
77.5
71.4
71.6
74.9
84.8
79.9
DTM
78.4
57.5
66.2
63.0
43.0
34.1
70.8
67.8
77.3
75.6
69.8
69.6
71.2
70.0
73.9
72.0
84.7
84.0
79.6
75.3
FastV
75.9
49.5
67.3
51.8
43.2
31.4
71.3
63.3
76.6
72.4
70.4
66.9
71.0
66.5
73.2
69.2
85.2
82.3
77.9
73.3
φ - R
74.6
47.5
66.5
55.5
42.9
30.7
70.1
58.4
76.3
71.6
70.3
64.0
70.9
67.4
72.4
69.2
84.8
81.9
78.2
71.5
Random
66.8
37.2
65.9
51.0
37.1
27.7
68.9
55.1
76.0
72.4
70.1
67.1
69.9
66.9
71.6
68.7
84.6
82.3
78.7
70.0
Table 2: Matched-rate evaluation at 40% and 80% visual token deletion for T5Gemma 2 (1B–1B) and Gemma 3 (4B), deletion after layer 5. Each score comes from a model trained and evaluated at the given deletion rate δ ; Base is the unpruned model fine-tuned in the same way. Bold marks the best method per column within each model; each task uses its own metric (Section 5 ). The gray row gives the percentage of language-model FLOPs saved, which is the same for every method. Figures 3 and 3 include 60%, and Figures 7 – 9 (appendix) show 20–80%. DTM ’s lead grows with the deletion rate on both architectures and is largest on DocVQA, ChartQA, and TextVQA.
Figure 2: One 60%-trained T5Gemma 2 1B–1B checkpoint (V-MrT5Gemma2) across inference budgets, deletion after layer 5. Each curve holds one task- and method-specific checkpoint fixed and evaluates it at deletion rates from 10% to 90%; the training rate, 60%, is highlighted. DTM ’s advantage widens as the inference budget tightens beyond the training target.
Figure 4: Spatial evidence retention at matched 80% visual token deletion after layer 5. Bars show the mean percentage of evidence patches retained on the same eligible questions for each model–dataset pair; dashed lines mark the expected retention of random deletion. T5 1B, T5 270M, and G3 4B denote T5Gemma 2 1B–1B, T5Gemma 2 270M–270M, and Gemma 3 4B. DTM retains the most evidence in 22 of 24 comparisons.
Appendix figures & tables41 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 5: Soft and hard visual token deletion in DTM. Vision and text tokens, denoted as svi and sti , are processed normally from layers 1 through k−1 . The hidden states before layer k are entered into the deletion gate, producing a score for each token. During hard deletion, hidden states with gate scores less than τ are pruned; the gate scores are applied as biases to only the remaining pre-softmax attention scores. Soft deletion adds gate scores to key columns; hard deletion removes sv1 and sv3 and retains the text tokens.
Step-0 deletion (%)
Best score
Task
Target
τ
Calibrated
Default
Calibrated
Default
Δ
DocVQA
20%
−7
21.1
98.5
81.06
81.46
−0.40
DocVQA
20%
−11
21.1
84.4
81.36
81.07
+0.29
VizWiz
20%
−7
20.3
99.6
70.24
70.48
−0.24
VizWiz
20%
−11
20.3
93.4
69.86
70.02
−0.16
DocVQA
40%
−7
41.5
98.5
78.25
78.15
+0.10
Appendix
Table 3: Calibrated initial deletion rate versus the default constant gate intercept on T5Gemma 2 1B–1B. Step-0 deletion is the validation deletion rate measured before the first optimizer step; best scores are best in-training validation scores at the trained rate (L5, c=−22 ). The default intercept starts training at 84–99.6% deletion regardless of the target, whereas calibration starts within 1.5 points of the target in all 16 configurations. Calibration improves the best score by 0.45 and 0.75 points on average at 60% and 80% targets but has no consistent effect at 20% and 40% ( −0.13 and −0.05 ).
Task
Target
PID
PI
Δ (PI − PID)
Mean ∣et∣ , PID → PI
Max overshoot, PID → PI
DocVQA
20%
81.06
81.54
+0.48
2.41 → 4.29
0 8.0 → 23.2
ChartQA
20%
69.38
68.54
−0.83
4.15 → 10.83
19.8 → 32.4
VizWiz
20%
70.24
69.91
−0.33
4.40 → 18.19
17.0 → 34.2
TextVQA
20%
71.37
71.69
+0.32
3.88 → 0 4.57
10.4 → 26.8
GQA
20%
71.53
71.18
−0.35
2.60 → 0 4.56
36.3 → 47.7
DocVQA
40%
78.25
78.59
+0.34
3.91 → 0 7.48
0 9.0 → 20.2
Appendix
Table 4: PI versus PID deletion-rate control on T5Gemma 2 1B–1B at all four training targets. Each DTM arm is retrained with the derivative term disabled ( kd=0 ), changing nothing else (L5, c=−22 , τ=−7 ). Scores are best in-training validation scores at the trained deletion rate; tracking error ∣et∣ and overshoot above the target are in percentage points of training-time deletion. The derivative term tightens tracking at every target (lower mean ∣et∣ in 19 of 20 pairs, one tie) but improves accuracy only at the 80% target, where PID wins on all five tasks by 0.81 points on average.
Task
No regularizer
+LS
+ cap 20
Cap 20 without gate
Soft − hard gap
DocVQA
51.69
+0.24
+1.41
−1.09
8.03
ChartQA
64.27
−0.89
−2.03
−1.72
0.26
TextVQA
67.24
+0.68
−0.45
−0.63
−0.02
VQAv2
73.17
+0.04
+0.54
−0.37
0.28
Mean Δ
—
+0.02
−0.13
−0.95
—
Appendix
Table 5: Attention-score regularization for the delete gate. The first column is the DTM score without regularization (best checkpoint), and the next two are changes relative to it. “Cap 20 without gate” is the cap’s effect on a fine-tuned model with no deletion. The soft − hard gap is the score difference between soft and hard deletion without regularization. Arms within a row share a training recipe. Neither defense improves accuracy on average, so we use neither.
Task
Target
Nat. del. (%)
Nat. p5 – p95 (%)
Natural
Forced
Δ (Nat. − Forced)
DocVQA
60%
59.98
40.2–82.4
73.22
71.95
+1.26
DocVQA
80%
80.43
68.0–91.8
56.87
57.04
−0.17
ChartQA
60%
61.69
43.8–79.7
65.10
65.05
+0.05
ChartQA
80%
80.47
67.6–90.6
63.18
62.40
+0.78
TextVQA
60%
63.93
31.2–88.3
70.10
69.79
+0.31
TextVQA
80%
77.64
53.5–94.5
68.60
67.92
+0.68
Appendix
Table 6: Natural thresholding versus a fixed per-example budget within the same checkpoint (T5Gemma 2 1B–1B, L5). Each row uses the main-experiment DTM checkpoint for that task and training target. Natural deletion removes every visual token with gj≤τ , so the per-example rate varies (mean and 5th–95th percentiles shown); forced deletion removes the same mean fraction from every example. The two passes’ FLOPs differ by at most 0.61%. Metrics follow the main results, except that RefCOCO+ uses mean IoU. Natural thresholding scores higher in 16 of 18 pairs, including all nine at the 60% target, by 0.29 points on average.
T5Gemma 2
Gemma 3
Configuration
1B–1B
270M–270M
4B
Encoder / decoder blocks
26 / 26
18 / 18
— / 34
Hidden width d
1,152
640
2,560
Feed-forward width dff
6,912
2,048
10,240
Query heads
4
4
8
Key/value heads
1
1
4
Appendix
Table 7: Configurations of the three model backbones. T5Gemma 2 dimensions and head counts apply to both language stacks. Language parameter counts include the shared text embeddings once; totals additionally include the vision encoder and image projector. All three backbones receive the same 256 visual tokens per image, so a deletion rate removes the same number of visual tokens in each.
Figure 6: T5Gemma 2 and Gemma 3 language-backbone architectures. Visual tokens enter after SigLIP encoding, pooling, and image projection. (a) T5Gemma 2 uses a bidirectional encoder and a decoder with merged self- and cross-attention. Each decoder block projects the final normalized encoder states H into its own keys and values. (b) Gemma 3 uses a decoder-only backbone. Here Le and Ld denote encoder and decoder depths: both are 26 for T5Gemma 2 1B–1B and 18 for 270M–270M; Gemma 3 4B has L=34 decoder blocks.
Task
Split / metric
Evaluated examples
With evidence
Training steps (deletion methods)
Evidence regions
DocVQA
val. / ANLS
5,349
5,109
300
OCR words ( Tito et al., 2023 )
ChartQA
val. / relaxed acc.
1,920
1,142
1,250
Support boxes ( Vogel et al., 2025 )
InfoVQA
val. / ANLS
2,801
1,916
300
OCR words ( Mathew et al., 2022 )
TextVQA
val. / VQA acc.
5,000
4,239
1,250
OCR words ( Singh et al., 2021 )
VQAv2
val. / VQA acc.
25,600
—
1,500
—
VizWiz
val. / VQA acc.
4,319
1,131
160
Grounding polygons ( Chen et al., 2022 )
Appendix
Table 8: Evaluation populations and training steps (T5Gemma 2 1B–1B). Every method and deletion rate is evaluated on the same examples. VQAv2 and GQA use fixed, uniformly random subsets of their validation splits (25,600 of 214,354 and 12,800 of 132,062 questions); every other benchmark uses its full split. POPE evaluates the VQAv2-trained checkpoints. Budgets differ across tasks, so we compare methods within each task rather than at equal training compute. The last column gives the source of the evidence regions in Figures 4 and 24 , which are computed on the evaluated examples that have at least one evidence region (“With evidence”); OCR-word regions are the words that spell a gold answer.
Setting
Value
Adapter learning rate
10−4
Gate learning rate
10−4 (separate parameter group)
Learning-rate schedule
Cosine for adapters and gate; no warmup
Weight decay
10−4
Batch size
256 (Gemma 3 4B: 128)
Gradient clipping
Maximum gradient norm 1
Appendix
Table 9: Shared adaptation and gate recipe. Apart from batch size, every listed setting is identical across the three backbones and all plotted arms.
Figure 7: Matched-rate evaluation on T5Gemma 2 1B–1B (V-MrT5Gemma2), deletion after layer 5. Each point uses a model trained and evaluated at the deletion rate δ on the horizontal axis. DTM leads on all ten benchmarks at 60% and 80% deletion; at 20–40%, the methods are close.
Figure 8: Matched-rate evaluation on Gemma 3 4B (V-MrGemma3), deletion after five decoder layers during prompt prefill. Each point uses a model trained and evaluated at the deletion rate δ on the horizontal axis. DTM leads on nine benchmarks at 80% and six at 60%; at 20–40%, the methods are close.
Figure 9: Matched-rate evaluation on T5Gemma 2 270M–270M, deletion after layer 5. Each point uses a model trained and evaluated at the deletion rate δ on the horizontal axis. The advantage emerges at higher deletion rates on the smallest backbone: DTM leads on 1, 3, 7, and 8 benchmarks at 20%, 40%, 60%, and 80%.
Figure 10: Fixed checkpoints on T5Gemma 2 1B–1B trained at 20% (a) and 40% (b) deletion. Each curve evaluates one checkpoint at deletion rates from 10% to 90%; the training rate is highlighted. Blue diamonds: DTM ; gold triangles: FastV ; magenta crosses: φ - R ; green circles: Random ; dotted line: unpruned Base, fine-tuned the same way. Trained at 40%, DTM leads on nine benchmarks at 80% inference deletion; checkpoints trained at only 20% transfer less well, and DTM leads on half.
Figure 11: Fixed checkpoints on T5Gemma 2 1B–1B trained at 60% (a) and 80% (b) deletion. Each curve evaluates one checkpoint at deletion rates from 10% to 90%; the training rate is highlighted. Blue diamonds: DTM ; gold triangles: FastV ; magenta crosses: φ - R ; green circles: Random ; dotted line: unpruned Base, fine-tuned the same way. Trained at 60% or 80%, DTM leads on all ten benchmarks at 80% and 90% inference deletion.
Figure 12: Fixed checkpoints on Gemma 3 4B trained at 20% (a) and 40% (b) deletion, deletion during prefill. Each curve evaluates one checkpoint at deletion rates from 10% to 90%; the training rate is highlighted. Blue diamonds: DTM ; gold triangles: FastV ; magenta crosses: φ - R ; green circles: Random ; dotted line: unpruned Base, fine-tuned the same way. Even DTM checkpoints trained at 20% or 40% lead on all ten benchmarks at 80% and 90% inference deletion.
Figure 13: Fixed checkpoints on Gemma 3 4B trained at 60% (a) and 80% (b) deletion, deletion during prefill. Each curve evaluates one checkpoint at deletion rates from 10% to 90%; the training rate is highlighted. Blue diamonds: DTM ; gold triangles: FastV ; magenta crosses: φ - R ; green circles: Random ; dotted line: unpruned Base, fine-tuned the same way. Trained at 60%, DTM leads on all ten benchmarks at 80% and 90% inference deletion; trained at 80%, on nine.
Figure 14: Fixed checkpoints on T5Gemma 2 270M–270M trained at 20% (a) and 40% (b) deletion. Each curve evaluates one checkpoint at deletion rates from 10% to 90%; the training rate is highlighted. Blue diamonds: DTM ; gold triangles: FastV ; magenta crosses: φ - R ; green circles: Random ; dotted line: unpruned Base, fine-tuned the same way. The smallest backbone transfers less well from low training targets: DTM leads on five or six benchmarks at 80% and 90% inference deletion.
Figure 15: Fixed checkpoints on T5Gemma 2 270M–270M trained at 60% (a) and 80% (b) deletion. Each curve evaluates one checkpoint at deletion rates from 10% to 90%; the training rate is highlighted. Blue diamonds: DTM ; gold triangles: FastV ; magenta crosses: φ - R ; green circles: Random ; dotted line: unpruned Base, fine-tuned the same way. Trained at 60%, DTM leads on all ten benchmarks at 80% inference deletion (eight at 90%); trained at 80%, on eight and six.
T5Gemma 2 1B–1B
Gemma 3 4B
T5Gemma 2 270M–270M
Task
DTM
FastV
φ - R
Random
DTM
FastV
φ - R
Random
DTM
FastV
φ - R
Random
DocVQA
69.82
66.39
64.98
56.88
71.59
68.35
67.93
60.51
58.31
56.60
52.81
47.61
ChartQA
63.76
61.37
61.49
58.39
69.65
67.19
67.52
65.70
57.15
57.01
56.20
51.30
InfoVQA
39.78
38.37
38.44
34.44
47.33
45.85
44.81
42.71
29.41
28.12
28.93
27.13
TextVQA
69.03
68.12
66.07
63.68
75.98
73.25
72.37
70.21
62.07
59.51
55.94
58.18
VQAv2
76.12
74.20
73.81
74.54
76.80
75.94
76.04
75.59
70.95
69.55
69.54
70.47
Appendix
Table 10: Normalized area over inference deletion rates 10–90%. All checkpoints are trained at 60% deletion and evaluated at nine deletion rates; the area is the trapezoidal integral divided by the 0.8-wide interval, so values remain on each task’s 0–100 metric scale. The final row weights tasks equally. Bold marks the strongest method within each model. DTM has the highest area on 10 of 10 T5Gemma 2 1B–1B benchmarks, 9 of 10 Gemma 3 4B benchmarks and 8 of 10 T5Gemma 2 270M–270M benchmarks, and the highest equal-weight mean on all three backbones.
T5Gemma 2 1B–1B
Gemma 3 4B
T5Gemma 2 270M–270M
Training rate
DTM
FastV
φ - R
Random
DTM
FastV
φ - R
Random
DTM
FastV
φ - R
Random
20%
67.67
66.50
65.25
64.93
71.58
68.40
67.99
66.47
62.01
61.17
60.86
60.07
40%
68.84
67.13
66.04
65.40
71.92
69.32
68.60
67.61
62.69
61.95
61.08
60.65
60%
69.31
67.43
66.90
65.39
71.29
69.78
69.49
68.04
63.08
62.18
61.65
60.60
80%
68.09
67.39
66.77
64.54
70.32
69.28
69.13
67.30
62.33
61.51
61.06
59.52
Tasks led at 60% training
10/10
0/10
0/10
0/10
9/10
1/10
0/10
0/10
8/10
0/10
2/10
0/10
Appendix
Table 11: Mean normalized AUC over 10–90% inference deletion, by training target. Each mean weights the ten benchmarks equally on their 0–100 score scales. Bold marks the strongest training target for each method within each backbone. The final row counts tasks where the 60%-trained method exceeds all three other methods in AUC. DTM ’s mean area peaks at 60% training on T5Gemma 2 1B–1B, 40% on Gemma 3 4B and 60% on T5Gemma 2 270M–270M, and DTM has the highest mean area at every training target on all three backbones.
T5Gemma 2 1B–1B
Gemma 3 4B
T5Gemma 2 270M–270M
Task
DTM
FastV
φ - R
Random
DTM
FastV
φ - R
Random
DTM
FastV
φ - R
Random
DocVQA
50%
40%
40%
10%
50%
40%
40%
20%
30%
20%
20%
None
ChartQA
70%
60%
60%
30%
70%
60%
60%
40%
80%
70%
60%
40%
InfoVQA
None
30%
30%
None
None
30%
30%
None
None
None
None
None
TextVQA
80%
70%
60%
50%
80%
70%
70%
60%
70%
60%
40%
50%
VQAv2
80%
80%
70%
80%
80%
80%
80%
80%
80%
80%
70%
80%
Appendix
Table 12: Largest tested deletion rate retaining at least 90% of Base. All checkpoints are trained at 60% deletion and evaluated at 10–90% deletion in 10-point increments; Base is the separately fine-tuned unpruned model. None indicates that no tested rate meets this threshold. DTM reaches the largest budget (ties included) on 9 of 10, 9 of 10, 10 of 10 benchmarks for T5Gemma 2 1B–1B, Gemma 3 4B and T5Gemma 2 270M–270M, respectively, but no DTM checkpoint preserves 90% of Base on InfoVQA.
Figure 16: Checkpoint reuse across deletion budgets at L5. Rows specify training targets; grouped columns specify inference deletion. Gray diagonal cells show matched scores, with the strongest method in bold and underlined. Off-diagonal cells show St(e)−Se(e) ; negative values favor training at the evaluation rate. All cells average the same ten benchmarks equally. Red shading deepens with the size of the penalty. A 60%-trained DTM checkpoint used at 80% costs at most 0.6 points on average, and on Gemma 3 even a 20%-trained DTM checkpoint loses less at 80% than any baseline.
Figure 17: Query aggregation for FastV and φ - R on T5Gemma 2 1B–1B, matched deletion after layer 5. Each selector ranks visual tokens by attention averaged over all valid queries ( all_mean , used in the main results), over text queries only ( text_mean ), or from the final text query ( text_last ); each variant is separately fine-tuned. Dashed: DTM ; dotted: unpruned Base. All-query scoring is the strongest FastV variant almost everywhere, by up to 17 points on DocVQA.
Figure 18: Query aggregation for FastV and φ - R on Gemma 3 4B, matched deletion after five decoder layers during prefill. Variants and line styles as in Figure 17 . FastV again prefers all-query scoring (35 of 36 settings against text_last ), whereas φ - R gains from text queries on DocVQA and InfoVQA at 80%.
Figure 19: Query aggregation for FastV and φ - R on T5Gemma 2 270M–270M, matched deletion after layer 5. Variants and line styles as in Figure 17 . On the smallest backbone, text queries help φ - R on DocVQA and TextVQA but not FastV ; neither reaches DTM at 60–80% deletion on these tasks.
Figure 20: Sensitivity to deletion depth on DocVQA. Models are separately trained and evaluated at 40% (dotted) or 80% (solid) deletion with the gate after each layer. The horizontal axis gives the number of layers before deletion; shading marks L5, the setting used in our main experiments. On T5Gemma 2 1B–1B, the attention-based selectors drop when they read the first global-attention layer (L6), whereas DTM does not.
Figure 21: Deletion-depth sensitivity across budgets for T5Gemma 2 1B–1B on DocVQA. Panels show individual methods; line colors indicate matched training and evaluation deletion rates (20%, 40%, 60%, 80%). The horizontal axis gives the number of layers before deletion; shading marks L5. DTM is nearly flat across depth, whereas FastV and φ - R peak at L5 and fall at L6 at every rate.
Figure 22: Deletion-depth sensitivity across budgets for Gemma 3 4B on DocVQA. Panels show individual methods; line colors indicate matched deletion rates (20%, 40%, 60%, 80%); shading marks L5. The attention-based selectors improve with later deletion on this backbone, while DTM stays nearly constant and is highest at 40–80%.
Figure 23: Deletion-depth sensitivity across budgets for T5Gemma 2 270M–270M on DocVQA. Panels show individual methods; line colors indicate matched deletion rates (20%, 40%, 60%, 80%); shading marks L5. The smallest backbone benefits most from later deletion, especially at 80%.
Figure 24: Spatial evidence retention at matched 20% (top), 40% (middle), and 60% (bottom) visual token deletion after layer 5. Bars show the mean percentage of evidence patches retained on the same eligible questions for each model–dataset pair; dashed lines mark chance. Blue: DTM ; gold: FastV ; magenta: φ - R ; green: Random . DTM retains the most evidence in 17, 19, and 18 of 24 comparisons at 20%, 40%, and 60%, and its lead grows with the deletion rate.
Figure 25: Evidence retention and which method answers correctly, at matched 80% deletion. For each model and benchmark, questions are split by whether DTM kept more (left) or less (right) of the evidence patches than FastV ; bars give the percentage of questions in each split that only DTM (blue) or only FastV (gold) answers correctly. When DTM keeps more evidence, it is the sole correct method more than twice as often as FastV (13.5% vs. 6.2% of questions, pooled).
Figure 26: Keep rate of the four corner patches at matched 80% deletion. Blue: DTM ; gold: FastV ; magenta: φ - R ; the dashed line is the rate under uniform selection (0.20). On Gemma 3, the attention-based selectors keep the corners far more often than uniform selection would, whereas DTM rarely does on any model.
ChartQA
OCR-text recall
Model
Method
Text labels
Numeric ticks
Bars/lines
Blank (% of kept)
TextVQA
DocVQA
T5Gemma 2 1B–1B
DTM
66.8
83.2
24.3
20.2
58.0
31.4
FastV
60.7
84.1
17.4
26.9
62.5
35.8
φ - R
51.2
66.7
21.0
27.3
58.4
34.7
Gemma 3 4B
DTM
66.7
80.3
24.5
20.0
66.2
28.6
FastV
49.9
49.9
20.6
17.7
54.5
34.0
Appendix
Table 13: What each method keeps on ChartQA and OCR-text benchmarks at matched 80% deletion. Recall is the percentage of patches in each category that a method keeps; uniform selection keeps 20.3%. ChartQA categories come from the dataset’s element annotations (text labels include titles, axis, and legend text; bar and line marks are plotted elements). “Blank” is the share of the kept budget spent on blank patches, which make up 47% of ChartQA patches. OCR text covers every word detected in the image. On charts, DTM keeps more text labels and marks than both attention-based selectors on every backbone; on documents, the attention-based selectors cover more text.
Figure 27: Randomly sampled ChartQA questions at matched 80% deletion on T5Gemma 2 1B–1B (1 of 2). Each row shows the input with its question and gold answer, then the 52 of 256 visual tokens kept by each method in full contrast (outlined), with deleted patches washed out. Below each panel: the prediction and its relaxed-accuracy score. Blue: DTM ; gold: FastV ; magenta: φ - R ; green: Random . DTM concentrates its budget on labels, tick values, and bar ends.
Figure 28: Randomly sampled ChartQA questions at matched 80% deletion on T5Gemma 2 1B–1B (2 of 2). Presented as in Figure 27 : kept tokens in full contrast, predictions and relaxed-accuracy scores below each panel; blue DTM , gold FastV , magenta φ - R , green Random .
Figure 29: Randomly sampled TextVQA questions at matched 80% deletion on T5Gemma 2 1B–1B (1 of 2). Each row shows the input with its question and gold answer, then the 52 of 256 visual tokens kept by each method in full contrast (outlined), with deleted patches washed out; below each panel, the prediction (long answers truncated) and its VQA-accuracy score. Blue: DTM ; gold: FastV ; magenta: φ - R ; green: Random . All three informed selectors keep much of the scene text; they differ in which words remain.
Figure 30: Randomly sampled TextVQA questions at matched 80% deletion on T5Gemma 2 1B–1B (2 of 2). Presented as in Figure 29 ; blue DTM , gold FastV , magenta φ - R , green Random .
Dataset
Input text tokens mean ± SD
Output text tokens mean ± SD
FLOPs saved (%) at visual deletion rate
10%
20%
30%
40%
50%
60%
70%
80%
90%
DocVQA
18.9±4.8
5.9±3.5
7.3
14.9
22.1
29.6
37.1
44.3
51.7
58.9
66.3
ChartQA
23.6±5.6
4.4±1.9
7.2
14.7
21.9
29.4
36.8
43.9
51.2
58.3
65.6
InfoVQA
22.0±5.3
4.3±2.2
7.3
14.8
22.1
29.5
37.0
44.2
51.6
58.7
66.0
TextVQA
16.3±2.5
3.7±2.2
7.4
15.2
22.6
30.2
37.8
45.2
52.7
60.0
67.5
VQAv2
15.3±2.0
2.3±0.7
7.5
15.3
22.8
30.5
38.3
45.6
53.3
60.6
68.2
Appendix
Table 14: Per-dataset input and output lengths and FLOPs savings for T5Gemma 2 1B–1B at L5. FLOPs are calculated consistent with the description in Appendix G . Input text counts are unpadded, nonvisual encoder-input tokens, including prompt and special markers but excluding the generated answer. Output text counts include generated stop tokens and are pooled across the nine deletion rates. The additional selection FLOPs of DTM , FastV , and φ - R are negligible (Appendices G.4.2 and G.4.3 ). SD is the population standard deviation across evaluated examples. Each saving is computed from summed theoretical forward costs at the recorded input and generated-output lengths; the vision encoder and image projector are excluded. The final row weights tasks equally. Savings are nearly constant across benchmarks except RefCOCO+, whose longer prompts and outputs are never deleted.
Dataset
Input text tokens mean ± SD
Output text tokens mean ± SD
FLOPs saved (%) at visual deletion rate
10%
20%
30%
40%
50%
60%
70%
80%
90%
DocVQA
18.9±4.8
5.8±3.5
7.6
15.6
23.2
31.1
39.0
46.5
54.4
62.0
69.9
ChartQA
23.6±5.6
4.4±2.1
7.6
15.4
23.0
30.8
38.6
46.1
53.8
61.3
69.1
InfoVQA
22.0±5.3
4.2±2.2
7.6
15.5
23.1
31.0
38.8
46.4
54.2
61.7
69.5
TextVQA
16.3±2.5
3.7±2.5
7.8
15.9
23.6
31.7
39.7
47.4
55.4
63.0
71.0
VQAv2
15.3±2.0
2.3±0.7
7.9
16.0
23.9
32.0
40.1
47.9
55.9
63.7
71.7
Appendix
Table 15: Per-dataset input and output lengths and FLOPs savings for Gemma 3 4B at L5. FLOPs savings are presented in the same way as Table 14 . Gemma 3 saves slightly more than T5Gemma 2 1B–1B at every deletion rate.
Dataset
Input text tokens mean ± SD
Output text tokens mean ± SD
FLOPs saved (%) at visual deletion rate
10%
20%
30%
40%
50%
60%
70%
80%
90%
DocVQA
18.9±4.8
5.8±3.5
6.9
13.9
20.6
27.4
34.2
40.6
47.2
53.4
59.9
ChartQA
23.6±5.6
4.4±2.0
6.9
13.9
20.5
27.4
34.1
40.4
46.9
53.1
59.4
InfoVQA
22.0±5.3
4.2±2.2
6.9
14.0
20.7
27.5
34.3
40.7
47.2
53.5
59.9
TextVQA
16.3±2.5
3.7±2.1
7.1
14.3
21.1
28.2
35.1
41.6
48.3
54.7
61.2
VQAv2
15.3±2.0
2.3±0.7
7.2
14.5
21.5
28.6
35.6
42.2
49.0
55.5
62.0
Appendix
Table 16: Per-dataset input and output lengths and FLOPs savings for T5Gemma 2 270M–270M at L5. FLOPs savings are presented in the same way as Table 14 . T5Gemma 2 270M–270M saves the least of the three backbones at every rate.
Gate layer
FLOPs saved (%) at visual deletion rate
10%
20%
30%
40%
50%
60%
70%
80%
90%
T5Gemma 2 1B–1B
3
8.0
16.2
24.1
32.3
40.5
48.4
56.5
64.3
72.4
4
7.6
15.6
23.1
31.0
38.8
46.3
54.1
61.6
69.4
5
7.3
14.9
22.1
29.6
37.1
44.3
51.7
58.9
66.3
6
7.0
14.2
21.1
28.2
35.4
42.2
49.3
56.1
63.2
Appendix
Table 17: Per-layer FLOPs savings on DocVQA. Each row shows the FLOPs saved (%) when the gate follows the indicated layer, evaluated across visual deletion rates. FLOPs are calculated in the same way as Table 14 .
Visual token pruning, which aims to compress and prune redundant visual tokens, plays a critical role in efficient inference with large vision-language models (LVLMs). However, existing methods fail to disentangle intra-modal visual redundancy from cross-modal redundancy between vision and language. We show that visual token diversity and task-specific token relevance are two crucial yet orthogonal factors that complement each other in conveying useful information and should therefore be treated separately for more effective visual token pruning. Building upon this insight, we design TODRE, a two-stage and training-free framework that incorporates Token Diversity and task RElevance for effective token compression and efficient LVLM inference. Instead of pruning redundant tokens, we introduce a greedy max-sum diversification algorithm that selects and retains a subset of diverse and representative visual tokens after the vision encoder. On top of that, ToDRE leverages an ``information migration'' mechanism to eliminate task-irrelevant visual tokens within certain decoder layers of the large language model (LLM), further improving token pruning and LVLM inference. Extensive experiments show that ToDRE prunes 90% of visual tokens after the vision encoder as well as all visual tokens in certain LLM decoder layers, leading to a 2.6x speed-up in total inference time while maintaining 95.0% model performance plus excellent model compatibility. The code is available at: this https URL.
Duo Li, Zuhao Yang, Xiaoqin Zhang +2
CCDS, NTU, Singapore · CCST, ZJUT, China · Terminus AI Lab, UCAS, China
Vision-language models (VLMs) have achieved remarkable multimodal understanding and reasoning capabilities, yet remain computationally expensive due to dense visual tokenization. Existing efficiency approaches either merge redundant visual tokens or drop them progressively in language backbone, often trading accuracy for speed. In this work, we propose DUET-VLM, a versatile plug-and-play dual compression framework that consists of (a) vision-only redundancy aware compression of vision encoder's output into information-preserving tokens, followed by (b) layer-wise, salient text-guided dropping of visual tokens within the language backbone to progressively prune less informative tokens. This coordinated token management enables aggressive compression while retaining critical semantics. On LLaVA-1.5-7B, our approach maintains over 99% of baseline accuracy with 67% fewer tokens, and still retains >97% even at 89% reduction. With this dual-stage compression during training, it achieves 99.7% accuracy at 67% and 97.6% at 89%, surpassing prior SoTA visual token reduction methods across multiple benchmarks. When integrated into Video-LLaVA-7B, it even surpasses the baseline -- achieving >100% accuracy with a substantial 53.1% token reduction and retaining 97.6% accuracy under an extreme 93.4% setting. These results highlight end-to-end training with DUET-VLM, enabling robust adaptation to reduced visual (image/video) input without sacrificing accuracy, producing compact yet semantically rich representations within the same computational budget. Our code is available at https://github.com/AMD-AGI/DUET-VLM.
Visual inputs in vision-language models (VLMs) are often encoded into substantially longer token sequences than text, making visual tokens a major bottleneck for efficient inference. Abundant recent methods address this bottleneck by scoring token importance and pruning low-scoring tokens in a single pass. However, one-shot scoring is insufficient because a token's prompt-relevant usefulness depends on the evidence already retained. Motivated by this insight, we introduce DIVE (Dynamic Iterative Visual Evidence Construction), a training-free framework that recasts visual-token pruning as dynamic evidence construction. DIVE repeatedly selects the remaining token with the highest residual-conditioned score, updates the visual and prompt residuals to discount the evidence already explained, and re-evaluates the remaining tokens. This select-update-re-evaluate process builds a retained set of complementary, prompt-relevant evidence. Experiments across eight image-understanding benchmarks show that DIVE consistently preserves performance across token budgets. With an 88.9% reduction in visual tokens, DIVE retains 98.2% of the uncompressed model's average performance. Code is available at https://github.com/Zhong-Chenchen/DIVE.git.
Chen Zhong, Xiao An, Zijie Wang +3
State Key Laboratory of Information Engineering in Surveying Mapping and Remote Sensing, Wuhan University, China · Electronic Information School, Wuhan University, China