betaFeedback

WorksComputer Science

Visual Tokens on Demand: Visual Budgeting for Scalable and Efficient Multi-Image Reasoning in Multimodal LLMs

Abstract

Multimodal large language models have advanced rapidly, but most remain optimized for single-image inputs. Multi-image reasoning is costly because each image adds many visual tokens, increasing encoding and attention demands. Existing techniques that address the above issue, including visual token pruning, token merging, visual token compression, learned resampling, hierarchical compression, retrieval-augmented visual reasoning, and memory-based architectures, have largely been designed for single-image scenarios, where redundancy is primarily spatial and local. Multi-image reasoning introduces additional challenges: redundancy may occur across images, task-relevant evidence may be sparse or distributed, and aggressive per-image compression can remove details needed for comparison, counting, temporal reasoning, retrieval, or evidence grounding. Moreover, existing token-reduction methods are often either (i) training-free but inference-inefficient, typically relying on accessing attention matrices to get token-importance that may be impractical to access with memory-efficient attention implementations such as FlashAttention, or (ii) training-dependent, requiring the base MLLM to be retrained or adapted to a new compressed-token paradigm. In this work, we study scalable multi-image reasoning and understanding without retraining the base model and without accessing attention matrices at inference time. To this end, we propose mmVB, a lightweight plug-and-play module that assigns query-conditioned per-image token budgets via cross-image context, adding only 1.6M trainable parameters while reducing visual input tokens by 9x. This reduction yields 5x faster time-to-first-token and 7x fewer prefill FLOPs, while maintaining 94.4% of full-resolution accuracy across eight multi-image reasoning benchmarks.

Introduction

Although current multimodal large language models (MLLMs) can accept multiple images as input, the problem of scaling them efficiently to many-image settings remains underexplored. Multi-image understanding and reasoning is inherently challenging: the model must identify relevant visual evidence, compare information across images, and aggregate details that may be distributed over the input set. Scaling this capability further increases the difficulty, as every additional image contributes visual tokens and raises memory, latency, and compute costs. This limitation is especially important in real-world applications. For instance, a catalog-oriented LLM may need to process multiple product images to understand item attributes, compare variants, and answer user queries, while operating within a constrained inference budget.

Visual token redundancy has been widely studied, with many works showing that multimodal language models can operate effectively, and in some cases even better, with fewer visual tokens. Existing approaches typically reduce tokens through pruning, merging, or learned compression, either in a training-free manner or by training additional modules. However, applying these methods to scalable multi-image reasoning presents three key challenges: i) Limited systems scalability. Many training-free methods rely on accessing attention matrices, often across multiple layers, to estimate token importance. This can be memory-intensive and difficult to integrate with optimized inference kernels such as FlashAttention, which avoid materializing dense attention maps. Production systems often depend on such kernels for speed and memory efficiency, meaning that methods requiring explicit access to dense attention matrices may be impractical at scale. Token merging can also disrupt positional structure, and correcting the resulting positional encoding mismatch often requires additional architectural changes. ii) Insufficient study of multi-image reasoning. Most token-reduction methods are designed for single-image inputs, where task-relevant regions are often spatially localized. For example, when answering “What is the species of the animal in this image?”, attention may concentrate on the animal region, making pruning or merging relatively effective, often even from early layers. In the multi-image reasoning case, questions such as “What is the difference between image 1 and image 2?” may require preserving fine-grained details across both images until later stages of reasoning. In such cases, aggressive early pruning can remove evidence that only becomes important after cross-image comparison. iii) Training dependence and distribution shift. Some approaches require training adapters, compressed tokens, or modified visual-language interfaces, which can change the input distribution seen by the language model or require adapting

its weights. This is problematic when the goal is to scale existing MLLMs without retraining the base model, not overfitting to a particular dataset, or altering the model’s original reasoning behavior. Moreover, recent evidence shows that simple image downsampling consistently outperforms sophisticated post-encoding compression methods at matched token budgets (Liao et al., 2026), questioning the fundamental value of operating after the vision encoder. Together, these limitations suggest the need for a token-reduction strategy that is scalable, compatible with efficient inference, applicable to multi-image inputs, and usable with frozen multimodal language models.

A natural solution is to reduce the number of visual tokens before language-model processing, and ideally even before the visual encoder incurs the full cost of processing all image content. Under a constrained-budget setting, we formulate the problem as estimating the minimum relative visual scale needed for the downstream language model to answer a visual question correctly. The scale estimator must itself be lightweight and avoid introducing additional memory overhead, since the goal is to enable efficient reasoning at scale. To this end, we propose mmVB, a lightweight plug-and-play module that assigns input-dependent visual budgets across images conditioned on both the image set and the question. Rather than applying a fixed resolution or token budget to every image, Visual Budgeter estimates how much visual detail each image requires for the downstream reasoning task. The motivation of this work is illustrated in Figure 1. Our main contributions are:

Figure 1. Introduction and Motivation. Existing multi-image methods scale poorly: dense attention breaks FlashAttention and excludes API-only models, token merging disrupts positional encodings and cross-image reasoning, and video-style compression assumes frame similarity. Our pre-encoding predictor instead assigns query-conditioned token budgets using only pixels, enabling compatibility with any MLLM, including closed models.

  • We formulate scalable multi-image reasoning as a visual budget allocation problem, where the goal is to estimate the minimum image scale needed for accurate downstream reasoning under a constrained compute budget. We propose mmVB, a scalable, lightweight plug-and-play module with only 1.6M trainable parameters that assigns question-conditioned visual budgets across images without retraining the base MLLM.

  • This Visual Budgeter reduces visual input tokens by 9×, yielding 5× faster time-to-first-token and 7× fewer prefill FLOPs.

  • We evaluate Visual Budgeter across eight multi-image reasoning benchmarks and show that it preserves 94.4% of full-resolution accuracy, demonstrating that input-aware visual scaling can substantially improve efficiency while maintaining strong multi-image reasoning performance.

Proposed mmVB Method

Architecture

Given NN images {I1,…,IN}\{I_1, \ldots, I_N\} of arbitrary resolutions and a text query QQ, the Visual Budgeter assigns each image a token-allocation level ℓi∈{0,1,2,3,4}\ell_i \in\{0,1,2,3,4\} that approximates the minimum number of visual tokens the MLLM needs to answer correctly. In doing so, the budgeter also learns each image’s relative relevance to the query. The full architecture is shown in Figure 2.

Figure 2. mmVB architecture. Frozen EfficientNet-B0 encodes NN images, while frozen LLM embeddings encode the query through mean pooling and a 64-dimensional bottleneck. A two-layer, four-head Transformer processes all N+1N+1 tokens, after which a shared MLP maps each image token to four ordinal logits.

Encoding and Context Fusion. Each image is encoded by a frozen EfficientNet-B0 (Tan and Le, 2019) and linearly projected to d=256d = 256. The query is embedded with the frozen MLLM embedding layer, mean-pooled, and mapped to the same space through a 64-dimensional bottleneck. The query token and NN image tokens are then processed by a two-layer, four-head Transformer encoder, which performs query-conditioned, cross-image reasoning about each image’s required detail and relative importance.

Resolution Head and Inference. A shared MLP (256 → 64 → 4) maps each image representation to four ordinal logits with P(ℓi≥k)=σ(zi,k)P(\ell_i \ge k) = \sigma(z_{i,k}) for k∈{1,2,3,4}k \in\{1,2,3,4\}, and the predicted level is

ℓ^i=∑k=141[σ(zi,k)>0.5].\hat{\ell}_i = \sum_{k=1}^{4} \mathbb{1}[\sigma(z_{i,k}) > 0.5].

Each image is then resized to its predicted level (never upscaled) before being passed to the MLLM. The budgeter has about 1.6M trainable parameters and adds roughly 2 ms of overhead. Layer specifications, parameter counts, design choices, and an architecture ablation are given in Appendix § 7.

Training

Loss Function. We train the model using ordinal binary cross-entropy. For a ground-truth level ℓi∗∈{0,1,2,3,4}\ell_i^* \in\{0,1,2,3,4\}, the cumulative targets are

yi,k=1[ℓi∗≥k],k∈{1,2,3,4}.(1)y_{i,k} = \mathbb{1}[\ell_i^* \ge k], \qquad k \in\{1,2,3,4\}. \tag*{(1)}

Given predicted logits zi,kz_{i,k}, the threshold probabilities are

pi,k=σ(zi,k),(2)p_{i,k} = \sigma(z_{i,k}), \tag*{(2)}

where pi,kp_{i,k} estimates P(ℓi≥k)P(\ell_i \ge k). The loss for image ii is

Liord=−∑k=14[yi,klog⁡(pi,k)+(1−yi,k)log⁡(1−pi,k)].(3)\mathcal{L}_i^{\mathrm{ord}} = -\sum_{k=1}^{4} [y_{i,k}\log(p_{i,k}) + (1-y_{i,k})\log(1-p_{i,k})]. \tag*{(3)}

This formulation preserves the ordering of the levels: predictions closer to ℓi∗\ell_i^* violate fewer thresholds and incur a smaller loss. For example, when ℓi∗=3\ell_i^* = 3, predicting 2 violates one threshold, while predicting 0 violates three. Full training details (optimizer, learning rate, schedule, and batch configuration) are provided in the supplementary material.

Training-data Generation

We address image interactions using a three-round procedure: independent ascending search, joint verification, and iterative relaxation (Algorithm 1). For each image, we sweep Levels 0–4 and select the first level that yields a correct MLLM response, without assuming monotonic accuracy across resolutions. Single-image samples require at most five forward passes plus a pre-check, while multi-image samples cost O(5N+KN)O(5N + KN) in the worst case. With K=5K = 5, joint verification succeeds without relaxation for most samples, so the average cost remains close to independent search. Label generation is performed once offline, and the resulting labels are reused across training runs and hyperparameter sweeps. A text-only ablation assigns nearly uniform levels, showing that meaningful allocation requires modeling the query×\timesimage-content interaction through multi-resolution MLLM evaluation.

Label Interpretation. The labels produced by Algorithm 1 are sufficient feasible allocations, not provably minimal ones. The ascending sweep finds the first working level per image without assuming that correctness is monotonic in resolution; even if a higher level were to fail due to MLLM stochasticity, the returned level is verified correct. Note that the pre-check (line 1) guarantees that full resolution produces the correct answer; consequently, both the Round 1 sweep (which tests each image at level 4 while others remain at full resolution) and the line 29 fallback to (4,…,4)(4,\ldots,4) are guaranteed to be valid. No sample that fails at full resolution enters the label generation pipeline. For multi-image samples, the greedy relaxation in Round 3 searches single-image increments and then uniform increments, which may not discover the cheapest subset combination (e.g., two images needing simultaneous promotion). This means the returned allocation can over-allocate relative to the true joint minimum. Crucially, this bias is conservative: labels may assign more tokens than strictly necessary but never fewer, since every returned vector is verified to produce the correct answer. For training, conservative

Algorithm 1 Training Label Generation
Require: Sample (Q,{I1,…,IN},A)(Q, \{I_1,\ldots,I_N\}, A), MLLM M\mathcal{M}
Ensure: Resolution levels ℓ1,…,ℓN\ell_1,\ldots,\ell_N
1: Pre-check: If M(Q,I1,…,IN)≠A\mathcal{M}(Q,I_1,\ldots,I_N) \ne A, discard sample
2: Round 1: Independent Ascending Search
3: for i=1i = 1 to NN do
4:   for ℓ=0\ell= 0 to 4 do
5:      if M(Q,I1,…,Rℓ(Ii),…,IN)=A\mathcal{M}(Q,I_1,\ldots,R_\ell(I_i),\ldots,I_N) = A then
6:         ℓi←ℓ\ell_i \gets\ell; break
7:      end if
8:   end for
9: end for
10: Round 2: Joint Verification
11: if M(Q,Rℓ1(I1),…,RℓN(IN))=A\mathcal{M}(Q,R_{\ell_1}(I_1),\ldots,R_{\ell_N}(I_N)) = A then
12:   return (ℓ1,…,ℓN)(\ell_1,\ldots,\ell_N)
13: end if
14: Round 3: Iterative Relaxation
15: for k=1k = 1 to KK do
16:   for i=1i = 1 to NN do
17:      if ℓi<4\ell_i < 4 then
18:         ℓi′←ℓi+1\ell_i' \gets\ell_i + 1
19:         if M(Q,…,Rℓi′(Ii),…)=A\mathcal{M}(Q,\ldots,R_{\ell_i'}(I_i),\ldots) = A then
20:            return (ℓ1,…,ℓi′,…,ℓN)(\ell_1,\ldots,\ell_i',\ldots,\ell_N)
21:         end if
22:      end if
23:   end for
24:   ℓi←min⁡(ℓi+1,4)\ell_i \gets\min(\ell_i + 1,4) for all ii
25:   if M(Q,Rℓ1(I1),…,RℓN(IN))=A\mathcal{M}(Q,R_{\ell_1}(I_1),\ldots,R_{\ell_N}(I_N)) = A then
26:      return (ℓ1,…,ℓN)(\ell_1,\ldots,\ell_N)
27:   end if
28: end for
29: return (4,…,4)(4,\ldots,4)

Table 1.

labels are preferable to aggressive ones they train the predictor toward accuracy preservation rather than over-compression. The ordinal loss further tolerates label noise: a label of Level 3 when the true minimum is Level 2 incurs only one incorrect threshold, producing a mild penalty rather than a catastrophic gradient signal.

Dataset. The single-image training set contains 484k samples from 30k images drawn from VQAv2, TextVQA, and GQA. Pairing each image with multiple queries provides a contrastive signal, as its optimal token level may vary by question, encouraging the predictor to model query×\timesimage interactions rather than memorize image-specific levels. We also generate 50k multi-image samples from Mantis-Instruct ([16]) and train with a curriculum that introduces multi-image data after single-image training. Mantis-Eval is a separate 217-sample benchmark released by the same authors.

Experiments

Benchmarks and Settings. We evaluate on eight multi-image reasoning benchmarks spanning diverse task types and image counts: MuirNotes. Muir = MuirBench; MIB = MIBench; Mantis = Mantis-Eval; VHay = Visual Haystacks. VisionTrim uses DVTS + TGVC post-encoding token selection with approximately 30% token retention. mmVB uses combined single- and multi-image training. HM is the harmonic mean of accuracy retention, acc/accfull\mathrm{acc}/\mathrm{acc}_{\mathrm{full}}, and token compression, 1−tok/tokfull1-\mathrm{tok}/\mathrm{tok}_{\mathrm{full}}. Full Res. has an HM of 0.00 because its token compression is zero. Best and second-best results, excluding Full Res., are indicated by boldface and underlining, respectively.

MethodMuirMIBMantisNLVR2VHayMMIUMIRBReMI
Samples2,6005,0002176,96720,10093,5841,1242,600
Accuracy (%) ↑
Full Res.63.678.169.986.569.550.967.224.7
VisionZip (CVPR’25)63.672.869.659.369.648.348.713.8
ToFu (arXiv)42.671.256.760.714.611.242.118.6
VisionTrim (ICLR’26)63.680.467.7<u>80.6</u><u>64.2</u><u>52.5</u>59.619.3
ZooPrune (CVPR’26)57.069.965.478.363.449.649.516.8
mmVB (Ours)<u>62.9</u><u>77.9</u><u>68.2</u>82.869.653.2<u>56.5</u><u>19.2</u>
Visual tokens/sample ↓
Full Res.3,2361,2372,1191,6492,1872,9801,7562,573
VisionZip (CVPR’25)2,2654622,0241991,836712891286
ToFu (arXiv)1,7311,1222,0501,1711,5575221,3912,177
VisionTrim (ICLR’26)3,5313706344941,1651,532865770
ZooPrune (CVPR’26)356136<u>182</u><u>95</u>23930015999
mmVB (Ours)<u>389</u><u>248</u>11889<u>594</u><u>453</u><u>193</u><u>155</u>
Prefill computation (TFLOP) ↓
Full Res.22,30018,5071,17048,96910,828138,0506,04944,360
VisionZip (CVPR’25)20,83512,3291,28214,9979,52379,9014,8988,118
ToFu (arXiv)9,18913,6231,12924,0541,6874,358<u>3,339</u>33,084
VisionTrim (ICLR’26)83,33916,7201,05227,379<u>5,600</u>120,40913,68615,273
ZooPrune (CVPR’26)<u>9,148</u><u>6,441</u><u>422</u><u>9,097</u>42,40840,5547,039<u>3,534</u>
mmVB (Ours)2,8304,6981293,1462,761<u>11,429</u>2,2653,042
Time to first token (TTFT, seconds) ↓
Full Res.3.51.62.22.811.87.92.522.2
VisionZip (CVPR’25)<u>1.1</u>1.32.61.6<u>0.8</u>1.12.317.9
ToFu (arXiv)7.35.59.96.527.315.56.822.5
VisionTrim (ICLR’26)1.20.60.7<u>0.6</u>1.21.2<u>1.0</u>11.4
ZooPrune (CVPR’26)0.5<u>0.7</u>0.50.50.6<u>0.8</u>0.7<u>11.6</u>
mmVB (Ours)0.5<u>0.7</u><u>0.6</u><u>0.6</u>0.60.61.315.2
Harmonic mean (HM) ↑
VisionZip (CVPR’25)0.460.750.090.770.28<u>0.84</u>0.590.69
ToFu (arXiv)0.550.170.060.410.240.350.310.26
VisionTrim (ICLR’26)0.00<u>0.83</u><u>0.81</u>0.800.620.660.650.74
ZooPrune (CVPR’26)<u>0.89</u>0.890.92<u>0.92</u>0.900.94<u>0.81</u><u>0.80</u>
mmVB (Ours)0.930.890.960.95<u>0.82</u>0.940.860.85

Table 1 (PDF p. 5). Comparison of predictive performance, visual-token efficiency, and computational efficiency across eight multi-image benchmarks.

Bench ((Wang et al., 2025), 2.6k, 2–7 imgs), MIBench ((Liu et al., 2024), 5k, 2–14 imgs), Mantis-Eval ([16], 217, 2–5 imgs), NLVR2 ((Suhr et al., 2019), 7k, 2 imgs), Visual Haystacks ((Wu et al., 2025), 20k, up to 10 imgs), MMIU ((Meng et al., 2025), 93k, 1–62 imgs), MIRB ((Zhao et al., 2024), 1.1k, 2–6 imgs), and ReMI ([17], 2.6k, 2–6 imgs). We use Qwen3.5-4B as the base MLLM with greedy decoding and thinking mode disabled. Full dataset descriptions and training details are provided in the supplementary material.

Baselines and Ablations

We compare against four post-encoding token-reduction baselines: Vi-

sionZip ((Yang et al., 2026); attention-based, 65% dominant + 5% contextual tokens), ToFu ((Pippi et al., 2025); dynamic token fusion via similarity merging), VisionTrim ((Yu et al., 2026); dominant selection + text-guided complement, retaining ∼30%), and ZooPrune ([18]; zeroth-order gradient token pruning with keep ratio 0.11). All operate after the full ViT forward pass and cannot reduce encoder compute. We also report Full Res. (upper bound), Uniform (all images at 512×512512 \times512), Lower Bound (all images at 32×3232 \times32), Random (levels sampled from GT distribution), and mmVBSI_{\mathrm{SI}} (our predictor trained on single-image VQA only, to quantify the benefit of multi-image training data).

Main Results. Table 1 compares mmVB against post-encoding baselines. mmVB achieves the highest harmonic mean on six of eight benchmarks (average HM of 0.90), retaining 94.4% of full-resolution accuracy while reducing visual tokens by 9.2×9.2\times and prefill FLOPs by 7.3×7.3\times (geometric mean across benchmarks). ZooPrune attains the best HM on MIBench and Visual Haystacks, where its aggressive token pruning (keep ratio 0.11) yields strong accuracy–compression tradeoffs; however, it still requires a full ViT forward pass and cannot reduce encoder compute. VisionTrim is the strongest post-encoding baseline in accuracy, matching or exceeding mmVB on MIBench and MIRB, but it consumes 1.51.5–9.1×9.1\times more tokens per sample than mmVB to achieve comparable accuracy. Even on benchmarks where mmVB trails VisionTrim by 1–4 points in accuracy, mmVB uses 44–9×9\times fewer tokens and 44–7×7\times fewer prefill FLOPs, yielding substantially higher HM. VisionZip achieves strong compression on few-image benchmarks (e.g., 8.3×8.3\times on NLVR2) but retains most tokens on multi-image inputs (1.2×1.2\times on Visual Haystacks), yielding inconsistent efficiency. ToFu collapses on benchmarks requiring cross-image reasoning (Visual Haystacks, MMIU) where query-unaware merging discards discriminative content. Critically, all post-encoding methods pay full ViT cost regardless of predicted importance; mmVB’s pre-encoding resolution selection saves both encoder and LLM compute, aligning with findings that resolution reduction outperforms post-encoding compression at matched budgets (Liao et al., 2026).

Ablation Study. Table 3 isolates each component’s contribution. The Random baseline samples levels from the ground-truth distribution but assigns them without regard to image content or query; it uses fewer tokens than mmVB on every benchmark because it randomly under-allocates to query-relevant images, but this results in substantially lower accuracy (e.g., 58.3% vs. 62.9% on MuirBench, 70.0% vs. 82.8% on NLVR2). The accuracy gap confirms that mmVB’s higher token usage reflects meaningful allocation to images that need it, not inefficiency. For a controlled comparison at matched budgets, see Figure 3. Adding multi-image training data (MI vs. SI) improves accuracy on all benchmarks except ReMI, with the largest gains on Visual Haystacks (+5.7pp) and NLVR2 (+3.6pp), where cross-image reasoning is critical.

Budget-constrained visual-token allocation

Figure 3. Budget-constrained visual-token allocation. Accuracy retention (mean across all eight benchmarks) as a function of average visual tokens per image. At matched budgets, query-conditioned greedy allocation consistently outperforms uniform allocation.

BenchmarkNAccuracy (%) ↑ FullUniLowRandSIMIVis Tok/Samp ↓ FullUniLowRandSIMITTFT (s) ↓ FullUniLowRandSIMI
Muir2,60063.663.852.758.361.762.93,2361,10953703883893.50.60.60.70.80.5
MIB5,00078.177.464.772.674.677.91,2371,17851252312481.61.00.50.50.70.7
Mantis21769.969.149.359.965.468.22,1196373731031182.20.90.50.60.60.6
NLVR26,96786.586.956.870.079.282.81,64951226375892.80.60.50.50.50.6
VHay20,10069.569.551.758.563.969.62,1872,090827157159411.80.71.24.06.00.6
MMIU93,58450.958.737.346.450.153.22,9801,73572032174537.90.72.10.60.60.6
MIRB1,12467.263.040.245.753.356.51,75679131231821932.51.51.11.11.21.3
ReMI2,60024.725.717.118.420.019.22,57363838714315522.216.415.714.214.215.2

Table 3. Ablation: accuracy and efficiency across eight multi-image benchmarks. Full = native resolution (reference). Uni = all images at 512×512. Low = all images at 32×32 (lower bound). Rand = random level (distribution-matched). SI = mmVB single-image training. MI = mmVB single+multi-image training. Bold = best (excl. Full/Low).

mmVB for Budget-Constrained Token Allocation. The default mmVB pipeline predicts the minimum token level for each image independently. In deployment, however, the total visual-token budget may be fixed by latency, memory, throughput, or cost constraints. We therefore extend mmVB to distribute an arbitrary total budget across all input images using its ordinal predictions. Let bi∈{b0,b1,b2,b3,b4}b_i \in\{b_0,b_1,b_2,b_3,b_4\} denote the token allocation for image IiI_i, where each bkb_k corresponds to one of five resolution levels. Given a total budget BB, the allocation must satisfy

∑i=1Nbi≤B.(4)\sum_{i=1}^{N} b_i \le B. \tag*{(4)}

Each promotion of image IiI_i from level k−1k-1 to level kk has utility ui,k=σ(zi,k)u_{i,k} = \sigma(z_{i,k}) and token cost Δbk=bk−bk−1\Delta b_k = b_k - b_{k-1}, where σ(zi,k)\sigma(z_{i,k}) is the ordinal probability from the resolution head. Starting from the lowest level for all images, we greedily select the promotion with the highest ui,k/Δbku_{i,k}/\Delta b_k and repeat until the budget is exhausted. This training-free procedure approximates a multiple-choice knapsack solution, prioritizing query-relevant images while leaving less relevant images at lower resolutions. As shown in Figure 3, this query-conditioned allocation consistently outperforms uniform allocation under the same total budget and can recover full accuracy with substantially fewer tokens. These results show that visual-token efficiency depends not only on how many tokens are retained, but also on how they are distributed across images.

Black-box transfer. To test whether mmVB’s learned resolution decisions reflect task-relevant visual information needs rather than model-specific artifacts, we evaluate with three black-box models that mmVB has never seen during training: Qwen3.5-27B, Claude Opus 4.6, and Pixtral Large. Images are resized according to mmVB’s predicted levels (trained solely on Qwen3.5-4B), then passed directly to each model’s API with no adaptation or fine-tuning. Qwen3.5-27B preserves 92.9% accuracy with 9.1×9.1\times visual token reduction; Claude Opus 4.6 preserves 89.8% with 3.9×3.9\times input token reduction; Pixtral Large preserves 89.9% with 4.8×4.8\times input token reduction (geometric means across benchmarks). This demonstrates that the resolution decisions generalize across architectures and scales, suggesting mmVB captures intrinsic image–query complexity rather than overfitting to the training model’s visual encoder. We note that these results represent a lower bound on achievable performance: training a model-specific predictor (e.g., distilling from Qwen3.5-27B’s own responses) would likely yield tighter accuracy retention, as the predictor could learn that model’s particular sensitivity to resolution changes.

BenchmarkQwen3.5-27B Acc (%) FullQwen3.5-27B Acc (%) mmVBQwen3.5-27B Tok/S FullQwen3.5-27B Tok/S mmVBClaude Opus 4.6 Acc (%) FullClaude Opus 4.6 Acc (%) mmVBClaude Opus 4.6 Tok/S FullClaude Opus 4.6 Tok/S mmVBPixtral Large Acc (%) FullPixtral Large Acc (%) mmVBPixtral Large Tok/S FullPixtral Large Tok/S mmVB
MuirBench72.768.33,04825669.664.53,07451945.042.33,891905
MIBench80.878.71,61121177.170.51,61754767.558.22,048846
Mantis-Eval82.082.02,11927086.178.72,58129881.079.22,488374
NLVR293.888.81,6497091.286.11,36825083.778.62,048281
Vis. Haystacks77.668.82,18735871.669.33,5861,90878.977.47,9872,392
MMIU66.961.72,95036063.964.83,7871,31453.249.34,096944
MIRB70.770.51,79469076.262.82,58495166.564.14,966668
ReMI23.018.02,56111832.223.01,47235627.718.12,417474

Table 2. Black-box transfer: mmVB predictions (trained on Qwen3.5-4B) applied to unseen models without retraining.

Does the mmVB learn per-image relevance? Yes. By assigning the lowest token budget to images irrelevant to the query, the predictor implicitly learns a relevance signal. On Visual Haystacks, a needle-in-haystack benchmark where only 1 of up to 10 images contains the answer mmVB assigns Level 0 to 87% of images and reserves higher levels for the target. This emergent behavior arises without explicit relevance supervision: the GT generation procedure finds that irrelevant images can be maximally compressed without affecting correctness, so the predictor learns to map “irrelevant to query” directly onto minimal resolution. Examples are illustrated in Figure 4.

Figure 4. Qualitative Examples from the benchmark.

Related Work

Our work relates to visual token compression, visual resampling, multi-image reasoning, and efficient attention. Prior methods reduce visual-token cost through pruning, merging, or compact representations (Rao et al., 2021; Bolya et al., 2023; Chen et al., 2024; Yang et al., 2026; Zhang et al., 2025; Shang et al., 2026; Li et al., 2024c,b; Cai et al., 2024; Xing et al., 2025; Hu et al., 2026; Shen et al., 2024; Han et al., 2025; Renggli et al., 2022). However, recent work suggests that simple input downsampling can outperform several post-encoding compression methods at matched compression ratios (Liao et al., 2026). Most approaches also process each image independently, rather than allocating a shared, question-conditioned token budget across multiple images. Latent resampling methods such as BLIP-2, Perceiver IO, and Flamingo map visual inputs into compact token sets [24, 15, 1], but typically use a fixed budget per image. Multi-image models, including Mantis, LLaVA-NeXT-Interleave, LLaVA-OneVision, LongVA, and MuRAG, improve reasoning over multiple images or long multimodal contexts [16, 23, 7] (Zhang et al. 2024a), but do not explicitly adapt token allocation to question relevance. AVAM (Zeng et al., 2025) introduces query-conditioned visual anchoring for multi-image QA, but targets accuracy improvement rather than efficiency: its collaborative decoding mechanism runs both global and compressed visual branches, increasing inference cost. In contrast, mmVB operates before encoding and reduces both vision-encoder and LLM compute in a single forward pass. MIRAGE (Wu et al., 2025) uses visual retrieval to select which images to process, scaling to thousands of images by discarding irrelevant ones entirely; mmVB instead retains all images but allocates different token budgets, which is necessary for tasks where every image may contribute (e.g., comparison, counting). Efficient attention methods such as FlashAttention and FlashAttention-2 reduce long-context memory and computation [10, 9], although they make attention-map-based pruning less practical. Overall, existing methods often use fixed budgets, operate on images independently, require attention-score access, or train new visual-language interfaces [20, 18, 2, 19, 21, 8, 11, 5, 22, 12] (Zhang et al. 2024b; Ye et al. 2025; Wei et al. 2023; Zhou et al. 2026; Xie et al. 2026; Rubab et al. 2026; Ryoo et al. 2021). In contrast, we introduce lightweight, plug-and-play visual budgeting for multi-image reasoning that is question-conditioned, requires no base-model retraining, and avoids dense attention-map access at inference time.

Conclusion

We presented mmVB, a plug-and-play module that assigns query-aware token budgets before visual encoding. It achieves 9× token reduction, 7× fewer prefill FLOPs, and 5× faster TTFT while retaining 94.4% accuracy, with negligible latency and strong cross-model transfer.

Limitations

The scale predictor is trained exclusively on natural-image QA datasets (VQAv2, TextVQA, GQA). Domains with fundamentally different resolution requirements, such as medical imaging where diagnostically relevant features may occupy only a few pixels within a high-resolution scan, are not represented in the training distribution. In such domains, the predictor may under-allocate tokens because it has not learned that subtle fine-grained features (e.g., lesion boundaries, microcalcifications) require full resolution regardless of query type. See Figure 5 for examples.

Figure 5. Limitations. Scale predictor may underestimate tokens needed to answer questions. May also fail when there’s no text query.

Architecture Details

Image Encoding. Each image is encoded by a frozen ImageNet-pretrained EfficientNet-B0 backbone (Tan and Le, 2019). Its 1280-dimensional feature is projected to the shared dimension d=256d = 256 using a linear layer and dropout. Processing low-resolution thumbnails with EfficientNet-B0 is substantially cheaper than applying the MLLM vision encoder to every image.

Text Encoding. The query QQ is tokenized and passed through the frozen MLLM embedding layer. The resulting dLLMd_{\mathrm{LLM}}-dimensional token representations are mean-pooled and projected to the shared space by Linear(dLLMd_{\mathrm{LLM}}, 64), ReLU, Dropout(0.3), Linear(64, 256), and LayerNorm. The narrow bottleneck limits memorization and encourages the retention of task-relevant query information.

Context Fusion. The query embedding and NN image embeddings form a sequence of N+1N+1 tokens with dimension 256. A two-layer Transformer encoder with four attention heads and a feed-forward dimension of 512 performs query-conditioned and cross-image reasoning, allowing each image to estimate both its required visual detail and its relative importance.

Resolution Head. Each image representation is passed through an MLP with dimensions 256 →\rightarrow 64 →\rightarrow 4. The four outputs define cumulative ordinal-regression thresholds

P(ℓi≥k)=σ(zi,k),k∈{1,2,3,4},P(\ell_i \ge k) = \sigma(z_{i,k}), \qquad k \in\{1,2,3,4\},

and the predicted level is

ℓ^i=∑k=14I[σ(zi,k)>0.5].\hat{\ell}_i = \sum_{k=1}^{4} \mathbb{I}\left[\sigma(z_{i,k}) > 0.5\right].

The four thresholds are trained independently without an explicit monotonicity constraint. While independent sigmoids can produce non-monotone probabilities, the thresholding rule above always yields a valid level; in practice, violations are infrequent because the ordinal loss encourages consistent threshold ordering.

Inference and Parameter Count. Each image is resized according to its predicted token level, with the target resolution capped at the original dimensions to avoid upscaling. The budgeter processes only N+1N+1 tokens through two Transformer layers, adding approximately 2ms of overhead. It contains about 1.6 million trainable parameters: 328k in the image projection, 181k in the text encoder, 1,054k in the Transformer, and 17k in the resolution head. The frozen EfficientNet-B0 adds 5.3 million parameters. The MLLM embedding layer must also remain in memory, but introduces no additional cost when co-deployed with the target MLLM.

Design Choices. We select EfficientNet-B0 as the frozen image encoder because it offers the best accuracy among models at the ∼\sim5M parameter scale (77.1% ImageNet top-1), outperforming MobileNetV2 (72.0%), MobileNetV3-Large (75.2%), and DeiT-Tiny (72.2%). TinyViT-5M achieves higher accuracy (79.1%) but requires 3.3×\times more compute; since the encoder processes NN thumbnails per sample, this overhead compounds. Because the backbone is frozen, parameter count is immaterial; only representation quality matters for downstream level prediction. The remaining hyperparameters were selected via validation performance on the token-based training set (Table 4). Two Transformer layers provide sufficient capacity for cross-image reasoning without overfitting; a single layer under-performs on multi-image benchmarks where relative importance must be inferred. Five ordinal levels match the natural 4×4\times token gaps in vision encoders, providing meaningful resolution distinctions at each step. The 64-dim text bottleneck restricts information flow from the 2560-dim LLM embeddings; wider bottlenecks memorize per-sample query identity while narrower ones discard task-type signal.

ComponentVariantbal_acc±\pm1 acc
Levels3 levels6579
Levels5 levels (ours)7186
Levels7 levels7086
Text bottleneckNone (direct 2560→\rightarrow256)5571
Text bottleneck64-dim (ours)7186
Text bottleneck16-dim5071
Cross-imageText-only (no Transformer)5155
Cross-image2-layer Transformer (ours)7186

Table 4. Architecture ablation on the validation set. bal_acc = balanced accuracy across levels; ±\pm1 = fraction of predictions within one level of ground truth.

Additional Results

Per-task performance breakdown

Figure 6 shows that mmVB closely follows Full-res across most tasks for every benchmarks. Uniform downsampling causes uneven degradation, with the largest drops on detail-sensitive tasks such as Charts, 3D Pose, Person ReID, and visual chain reasoning. Coarser tasks remain relatively stable even at lower resolutions. Post-encoding baselines show greater task-level variation and occasional failures, while ReMI remains challenging for all methods, especially on numerical reasoning tasks. Overall,

Per-task accuracy across eight benchmarks

Figure 6. Per-task accuracy across eight benchmarks. Each subplot represents one benchmark. Solid lines show Full-res and mmVB; dashed lines show uniform resolutions; dash-dot lines show post-encoding baselines; and dotted lines show the distribution-matched random baseline. mmVB closely tracks Full-res while using 9.2×9.2 \times fewer visual tokens (geometric mean across benchmarks).

mmVB preserves most of the Full-res performance while using substantially fewer visual tokens.

mmVB performance on Single Image

In this section, we evaluate mmVB on single-image tasks. Since many standard benchmarks, such as VQAv2 and TextVQA, focus on general visual question answering, we select MM-Vet and POPE to assess transferability to single-image settings. MM-Vet evaluates the integration of core vision-language capabilities, including recognition, OCR, knowledge, language generation, spatial reasoning, and mathematics. Table 5 reports results on MM-Vet ((Yu et al., 2023)), a single-image open-ended VQA benchmark (218 samples) scored by an LLM judge.

MethodScore (%)Vis tok/samp
Full Res.59.81,146
mmVB53.363

Table 5. MM-Vet results (Qwen3.5-4B, Claude judge)

Dataset Details

Benchmark details

We evaluate multi-image reasoning on eight complementary benchmarks spanning diverse tasks, image counts, and reasoning demands. Table 6 summarizes the eight benchmarks.

MuirBenchMIBenchMantisNLVR2VHsMMIUMIRBReMI
Samples2,6005,0002176,96720,10093,5841,1242,600
Images/sample2–72–142–521–101–622–62–6
Tasks1256+11521413
FormatMCMCMC+SAT/FY/NMCMixedFree-form

Table 6. Overview of the evaluation benchmarks. MC = multiple-choice, SA = short-answer, T/F = true/false, and Y/N = yes/no. Mixed includes multiple-choice, yes/no, counting, and free-form answers. VHs denotes Visual Haystacks.

MuirBench

MuirBench ((Wang et al., 2025)) contains 11,264 images and 2,600 multiple-choice questions across 12 tasks. Each question requires joint reasoning over 2–7 images and covers relation such as narrative, temporal, complementary, cropped or zoomed, and multi-view scenes. Tasks include geographic and diagram understanding, retrieval, counting, difference spotting, and action understanding. The benchmark tests whether models reason across images rather than rely on single-image shortcuts.

MIBench

MIBench ((Liu et al., 2024)) contains 5,000 multiple-choice questions across five categories: comparison, subtle difference detection, temporal reasoning, logical reasoning, and visual referring. Samples use text-rich documents, natural photographs, and synthetic scenes. The benchmark evaluates whether multi-image models can follow varied instructions over image sets.

Mantis-Eval

Mantis-Eval ([16]) contains 217 human-annotated problems in multiple-choice and short-answer formats. Each sample includes 2–5 images and covers common-sense, complex, logical, and fine-grained visual reasoning. Despite its small size, the benchmark is difficult: GPT-4V achieves 62.67%.

NLVR2

NLVR2 ((Suhr et al., 2019)) evaluates reasoning over image pairs. Each sample presents two photographs and a natural-language statement that must be classified as True or False. The statements require reasoning about object properties, spatial relations, comparison, counting, and set-level quantification. The test set contains 6,967 samples, including 3,558 true and 3,409 false instances.

Visual Haystacks

Visual Haystacks ((Wu et al., 2025)) is a vision-centric Needle-In-A-Haystack benchmark for large multimodal models. Each sample mixes a small set of “needle” images with distractors and asks whether all or any needle images also contain a target object. The full dataset contains 20,100 samples with 1 to more than 10,000 images. We cap each haystack at 10 images by retaining all positives and randomly sampling negatives. The benchmark tests retrieval and reasoning over large image sets.

MMIU

MMIU (Meng et al., 2025) contains 93,584 samples, 77,659 images, and about 52 tasks spanning semantic, temporal, and spatial relations. Tasks include forensic detection, correspondence, temporal ordering, action assessment, jigsaw solving, 3D pose estimation, and Raven’s matrices. Each sample contains 1–62 images and a multiple-choice question with up to 10 options. The random baseline is 27.4%, and the best reported model, GPT-4o, achieves 55.7%.

MIRB

MIRB (Zhao et al., 2024) contains 1,124 samples across 14 tasks covering perception, knowledge, reasoning, and multi-hop reasoning. Tasks include visual analogy, cross-image counting, multi-view 3D understanding, code and paper comprehension, ingredient analysis, jigsaw puzzles, plot interpretation, landmark recognition, and visual chain reasoning. Answer formats include multiple-choice, yes/no, counting, and free-form extraction.

ReMI

ReMI [17] contains 2,600 samples across 13 mathematical, spatial, temporal, and logical reasoning tasks. These include Charts, Clocks, CodeEdit, Collisions, EmojiAlgebra, FuncRead, GeomCost, GeomShape, IQ, Isomorphism, Maps, RefCoco, and Schedule. Each sample contains 2–6 images and requires a short free-form answer. ReMI emphasizes quantitative and structured reasoning rather than visual matching alone.

mmVB Training Data Composition

We generate resolution labels over a diverse training set combining single-image and multi-image sources:

Single-image (484k samples): VQAv2, TextVQA, GQA covering natural scenes, text-heavy images, and compositional reasoning respectively.

Multi-image (50k samples from Mantis-Instruct): 17 subsets including NLVR2, LLaVA-multi, spot-the-diff, visual storytelling, coinstruct, and others, covering 2–10+ images per sample with diverse multi-image reasoning tasks.

Samples where the MLLM answers incorrectly at full resolution are discarded, as they provide no valid signal for minimum-resolution search. Generation is parallelized across 8 GPUs with manifest sharding for throughput.

References

  1. [1]Jean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech, Iain Barr, Yana Hassan, Karel Lenc, Arthur Mensch, Katie Millican, Malcolm Reynolds, Roman Ring, Eliza Rutherford, Serkan Cabi, Tengda Han, Zhitao Gong, Sina Samangooei, Marianne Monteiro, Jacob Menick, Sebastian Borgeaud, and 8 others. 2022. Flamingo: a visual language model for few-shot learning. Preprint, arXiv:2204.14198.arxiv.org/abs/2204.14198
  2. [2]Saeed Ranjbar Alvar, Gursimran Singh, Mohammad Akbari, and Yong Zhang. 2025. Divprune: Diversity-based visual token pruning for large multimodal models. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 9392–9401.arxiv.org/abs/2503.02175
  3. [5]Lei Chen, Zhan Tong, Yibing Song, Gangshan Wu, and Limin Wang. 2023. Efficient video action detection with token dropout and context refinement. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 10388–10399.arxiv.org/abs/2304.08451
  4. [7]Wenhu Chen, Hexiang Hu, Xi Chen, Pat Verga, and William W. Cohen. 2022. MuRAG: Multimodal retrieval-augmented generator for open question answering over images and text.arxiv.org/abs/2210.02928
  5. [8]Rohan Choudhury, Guanglei Zhu, Sihan Liu, Koichiro Niinuma, Kris M Kitani, and Laszlo Attila Jeni. 2024. Don’t look twice: Faster video transformers with run-length tokenization. In The Thirty-eighth Annual Conference on Neural Information Processing Systems.arxiv.org/abs/2411.05222
  6. [9]Tri Dao. 2023. Flashattention-2: Faster attention with better parallelism and work partitioning. Preprint, arXiv:2307.08691.arxiv.org/abs/2307.08691
  7. [10]Tri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra, and Christopher Ré. 2022. Flashattention: Fast and memory-efficient exact attention with io-awareness. Preprint, arXiv:2205.14135.arxiv.org/abs/2205.14135
  8. [11]Shuangrui Ding, Peisen Zhao, Xiaopeng Zhang, Rui Qian, Hongkai Xiong, and Qi Tian. 2023. Prune spatio-temporal tokens by semantic-aware temporal accumulation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 16945–16956.arxiv.org/abs/2308.04549
  9. [12]Nicholas John Eliopoulos, Purvish Jajal, James C Davis, Gaowen Liu, George K Thiravathukal, and Yung-Hsiang Lu. 2025. Pruning one more token is enough: Leveraging latency-workload non-linearities for vision transformers on the edge. In 2025 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 7153–7162. IEEE.arxiv.org/abs/2407.05941
  10. [15]Andrew Jaegle, Sebastian Borgeaud, Jean-Baptiste Alayrac, Carl Doersch, Catalin Ionescu, David Ding, Skanda Koppula, Daniel Zoran, Andrew Brock, Evan Shelhamer, Olivier Hénaff, Matthew M. Botvinick, Andrew Zisserman, Oriol Vinyals, and João Carreira. 2022. Perceiver io: A general architecture for structured inputs and outputs. Preprint, arXiv:2107.14795.arxiv.org/abs/2107.14795
  11. [16]Dongfu Jiang, Xuan He, Huaye Zeng, Cong Wei, Max Ku, Qian Liu, and Wenhu Chen. 2024. Mantis: Interleaved multi-image instruction tuning. arXiv preprint arXiv:2405.01483.arxiv.org/abs/2405.01483
  12. [17]Mehran Kazemi, Nishanth Dikkala, Ankit Anand, Petar Devic, Ishita Dasgupta, Fangyu Liu, Bahare Fatemi, Pranjal Awasthi, Dee Guo, Sreenivas Gollapudi, et al. 2024. Remi: A dataset for reasoning with multiple images. Advances in Neural Information Processing Systems, 37:60088–60109.arxiv.org/abs/2406.09175
  13. [18]Youngeun Kim, Youjia Zhang, Huiling Liu, Aecheon Jung, Sunwoo Lee, and Sungeun Hong. 2026. Zooprune: Training-free token pruning via zeroth-order gradient estimation in vision-language models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 39572–39582.DOI
  14. [19]Moshe Kimhi, Nimrod Shabtay, Raja Giryes, Chaim Baskin, and Eli Schwartz. 2025. Cares: Context-aware resolution selector for vlms. arXiv preprint arXiv:2510.19496.arxiv.org/abs/2510.19496
  15. [20]DongJae Lee, Jiwan Hur, Jaehyun Choi, Jaemyung Yu, and Junmo Kim. 2026. Frequency-aware token reduction for efficient vision transformer. Advances in Neural Information Processing Systems, 38:34058–34083.arxiv.org/abs/2511.21477
  16. [21]Seon-Ho Lee, Jue Wang, Zhikang Zhang, David Fan, and Xinyu Li. 2024. Video token merging for long-form video understanding. arXiv preprint arXiv:2410.23782.arxiv.org/abs/2410.23782
  17. [22]Cheng Lei, Ao Li, Hu Yao, Ce Zhu, and Le Zhang. 2025. Rethinking token reduction with parameter-efficient fine-tuning in vit for pixel-level tasks. In Proceedings of the IEEECVF Conference on Computer Vision and Pattern Recognition, pages 14954–14964.DOI
  18. [23]Feng Li, Renrui Zhang, Hao Zhang, Yuanhan Zhang, Bo Li, Wei Li, Zejun Ma, and Chunyuان Li. 2024a. Llava-next-interleave: Tackling multi-image, video, and 3d in large multimodal models. Preprint, arXiv:2407.07895.arxiv.org/abs/2407.07895
  19. [24]Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. 2023. Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models. Preprint, arXiv:2301.12597.arxiv.org/abs/2301.12597

Paper details

vlnc:W_zkbajvgj
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents