TWMI-Bench

Benchmarking active visual agents across multiple images — where the right answer depends on coordinating visual operations between images, not just within one.

1Nanjing University · 2Alibaba Group · 3Xiamen University · 4Institute of Automation, Chinese Academy of Sciences
†Corresponding author
0Human-verified tasks
0Images
0Visual tools
0Capability categories
0Models evaluated
0Evaluation protocols
Overview

From thinking with one image to coordinating many

Multimodal models are moving from passive perceivers to active visual agents that transform images with tools or code — a paradigm known as Think-with-Images (TWI). Yet existing evaluations centre on a single focal image, expose small fixed tool inventories, and supervise the process rigidly. TWMI-Bench closes that gap.

🖼️

Multi-image by design

Every instance carries 2–12 images with an explicit inter-image dependency label. Strong-dependency tasks require joint operations — pixel subtraction, stitching, template matching — or a task-dependent processing order.

🧰

61 visual tools

41 single-image and 20 multi-image operations, organised into eight functional groups. Models are tested with the full inventory, with a search interface over it, and with free-form code.

🧭

Flexible process evaluation

Multiple trajectories can be valid. Instead of matching one fixed reference, an MLLM judge scores intent, step correctness and efficiency — tolerating equivalent tools and reorderable steps.

TWMI-Bench overview: strong-dependency examples with tool traces, benchmark and tool statistics, and the capability taxonomy.
Figure 1. Overview of TWMI-Bench. Left: examples with strong inter-image dependencies, where the answer requires combining evidence across images — a rotated template search, and a two-image comparison that requires crop and pixel-wise differencing. Middle: benchmark and tool statistics. Right: eight capability categories and 34 subcategories.
Dataset Statistics

1,349 tasks, 4,123 images, three difficulty levels

A near-even strong/weak dependency split, an emphasis on Medium and Hard, and input resolutions up to 8775 × 7680 mean that most instances cannot be answered by looking once.

1,349

human-verified VQA instances

3.06

images per instance (range 2–12)

1298 × 1048

mean resolution, up to 8775 × 7680

3.85

reference-trace steps (range 1–15)

Category distribution

Counting
312
Math & Logic
296
Focusing
172
Shape & Color
162
OCR
132
Anti-Interference
122
Chart
79
Template Search
74

Difficulty & inter-image dependency

Easy
19.6%
Medium
49.1%
Hard
31.3%
Strong dep.
49.1%
Weak dep.
50.9%
Difficulty level Inter-image dependency

Images per instance

2 images
855
3 images
197
4 images
69
5 images
118
6–8 images
56
9–10 images
8
11–12 images
46

1,052 instances use two or three images; a long tail reaches 12 — mostly maze and multi-panel puzzle constructions.

Reference-trace length

1 step
141
2–5 steps
946
6–7 steps
137
8+ steps
125

70.1% of reference traces take two to five steps; the long tail of eight or more indicates non-trivial multi-step visual processing.

Task Taxonomy

Eight capability categories, 34 subcategories

Each instance is labelled along three dimensions: capability category, inter-image dependency (strong or weak), and difficulty (Easy, Medium, Hard). Together they support fine-grained diagnostic analysis rather than a single headline number.

🔍 Focusing

Zoom into or crop regions of high-resolution images to resolve distant road signs, small text, or dense object clusters.

Remote sensingAerial imagery TrafficHigh-resolutionDriving Clocks

🌧️ Anti-Interference

Inputs degraded by rain, haze, or low light. Restoration must be invoked before any perceptual question can be answered.

RainFogLow light

🔢 Counting

Precise counting across images, often with dense or partially occluded objects — grains, tabletop games, color-vision test plates.

Color blindnessGeneral GrainsTabletop games CargoPartsProducts

🎨 Shape & Color

Cross-image perceptual comparison: spot-the-difference, optical illusion pairs, find-the-missing-part, color perception.

Spot-the-differenceOptical illusions Shape completionReal world

📊 Chart

Cross-chart reasoning: extract and synthesise quantitative information across several visualisations.

DevelopmentEconomy ResearchSociety

🔤 OCR

Text recognition under challenging conditions — long documents, photographed receipts and slides, handwritten text under reversible noise.

Long documentsPhotographed docs SentencesReal world

🎯 Template Search

Spatially localise a query sub-image inside a larger reference image — character grids and web-sourced sub-image search with controlled noise.

Chinese charactersIcon

🧮 Math & Logic

Mathematical computation and logical reasoning grounded in visual input — geometry decomposed into multi-image format, and procedurally generated mazes.

MathematicsLogic AlgorithmsMazes

Strong vs. weak inter-image dependency

Strong dependency 663 tasks

The answer requires joint multi-image operations — pixel-level subtraction, stitching, registration, template matching — or processing the images in a task-dependent order.

Example: subtract one aerial view from another to measure the overlap area; the answer does not exist in either image alone.

Weak dependency 686 tasks

Each image can be processed independently and the extracted evidence aggregated by reasoning afterwards. No order or joint operation is required.

Example: read a value from each chart separately, then combine the numbers.

Evaluation Protocols

Four protocols, one action space question

The same tasks are solved directly, with the full tool library, with a search interface over the library, and by writing code — so that perceptual ability can be separated from tool-orchestration ability.

Directno tools

The model answers from the original images without any tool or code access.

Baseline for pure multimodal perception on multi-image input.

Tool61 tools

Calls may be drawn from the complete visual-tool library for every task.

Measures whether a model can pick the right operation out of a large inventory.

Tool Search10 + search

Ten common tools plus a tool_search function are exposed initially. Specialised tools become callable only after retrieval by natural-language query.

Tests whether a model can name the operation it needs.

Codesandbox

The model writes and executes image-processing programs in a sandbox with standardised image input and output.

Free-form action space; no predefined tool descriptions reach the judge.

Visual Tool Inventory

41 single-image and 20 multi-image tools

The inventory spans four functional groups per image scope. The multi-image half is what makes TWMI different: it is the only way to reason about relations between images.

Single-image tools 41

Geometric Transformation (7) Image Enhancement (14) Feature Extraction (13) Pattern Drawing (7)
resizerotatetranslate flippyramidcrop zoom_in colorspace_graycolorspace_hsvcolorspace_lab autocontrastblursharpen thresholdmorphologyhistogram denoiseinpaintinrange_color convertscaleabsinvert gradientscannydft template_matchhough_lineshough_circles watersheddistance_transformpeak_local_max grabcutfeaturesfloodfill connected_components_with_stats contoursdraw_linecontour_area arc_lengthapprox_polydraw_circle draw_grid

Multi-image tools 20

Pixel-Level Arithmetic (8) Stitching and Registration (6) Motion and Temporal Analysis (2) Feature and Template Matching (4)
multi_arithmeticmulti_absdiffmulti_reduce multi_bitwisemulti_copytomulti_addweighted multi_blendlinearmulti_seamless_clone multi_concatmulti_find_homographymulti_estimate_affine multi_ecc_alignmulti_phase_correlatemulti_stitcher multi_optical_flowmulti_background_subtraction multi_template_matchmulti_feature_describe multi_descriptor_matchmulti_stereo_disparity
The central finding. Expert reference trajectories contain 888 multi-image tool calls. Most models issue fewer than a hundred across the whole benchmark — o4-mini makes 26. The bottleneck is not the call interface but translating a cross-image relation into an appropriate operation.

Most-used reference operations

zoom_in
1078
inrange_color
660
autocontrast
409
multi_absdiff
383
connected_components
365
multi_concat
293
threshold
248
crop
209
convertscaleabs
208
morphology
184
Single-image tool Multi-image tool

Counts are over all expert reference traces in the dataset.

Leaderboard

Ten models, four protocols

The benchmark is far from saturated. The strongest model reaches 62.86% under Tool Search; the two Think-with-image specialists stay below 29%. Click a column header to sort.

Category profile by protocol

Model FocusingAnti-Int.CountingShape & Color ChartOCRTemplate SearchMath & Logic Overall
Closed-source general-purpose
GPT-5.4 Thinking34.8840.9856.0946.3054.4346.1535.6270.4951.08
GPT-5.429.0734.4348.4041.9835.4430.3020.2740.8838.18
Gemini 3.1 Pro35.4739.6767.3145.9639.2459.0956.7655.4152.56
Gemini 3.1 Flash-Lite28.4923.7753.0537.6533.3345.0418.9239.1038.54
o4-mini29.8235.5455.8233.3332.0036.724.0549.8240.26
Qwen3.6-Plus46.7848.3661.8640.1254.4356.8229.7355.4152.00
Open-source general-purpose
Qwen3.5-397B-A17B43.2736.0760.2641.9450.6557.5834.7260.5251.45
Kimi K2.543.0229.7557.2843.9548.0544.7027.0357.3047.80
Open-source Think-with-image specialists
Thyme25.5827.0536.2229.6326.5825.761.3525.0027.28
DeepEyesV226.1629.5133.9731.4824.0527.270.0021.6226.46

Final-answer accuracy (%) assessed by an LLM judge. Bold marks the best value in each column within the selected protocol. Click any column header to sort within each model group.

Accuracy by difficulty and inter-image dependency Expand the full breakdown across all ten models and four protocols
ModelProtocol EasyMediumHardStrong dep.Weak dep.
Closed-source general-purpose
GPT-5.4 ThinkingDirect70.9250.7839.1051.8050.44
GPT-5.4 ThinkingTool78.9962.8850.5066.4558.36
GPT-5.4 ThinkingTool Search80.6263.5550.3765.9360.03
GPT-5.4 ThinkingCode69.7057.8545.8258.0354.89
GPT-5.4Direct55.4738.6726.5433.7942.42
GPT-5.4Tool52.8338.6729.3835.4441.55
GPT-5.4Tool Search52.8338.3727.7334.9940.67
GPT-5.4Code47.9236.7123.2231.8337.46
Gemini 3.1 ProDirect70.1954.3938.6347.7357.23
Gemini 3.1 ProTool77.1960.2741.1954.5660.56
Gemini 3.1 ProTool Search74.5258.6040.2452.7058.94
Gemini 3.1 ProCode72.8360.3642.0456.3457.81
Gemini 3.1 Flash-LiteDirect54.1739.2727.5131.9144.88
Gemini 3.1 Flash-LiteTool46.0443.2326.6035.6641.37
Gemini 3.1 Flash-LiteTool Search47.5542.8127.0834.8942.63
Gemini 3.1 Flash-LiteCode51.3244.5630.8135.4447.52
o4-miniDirect56.8141.6327.7035.0445.37
o4-miniTool61.7846.5328.7841.0046.84
o4-miniTool Search58.3044.9128.6139.7945.02
o4-miniCode50.3942.6623.3236.8339.31
Qwen3.6-PlusDirect68.3054.3838.0047.9655.91
Qwen3.6-PlusTool68.6857.1037.2048.7257.43
Qwen3.6-PlusTool Search66.0456.3435.3146.9156.27
Qwen3.6-PlusCode72.0861.3640.6758.6655.47
Open-source general-purpose
Qwen3.5-397B-A17BDirect68.7553.3737.3848.4154.24
Qwen3.5-397B-A17BTool68.6856.8834.6049.4054.96
Qwen3.5-397B-A17BTool Search62.6456.3436.2645.7056.71
Qwen3.5-397B-A17BCode69.8157.5536.5851.3655.39
Kimi K2.5Direct65.7446.7938.4445.6749.78
Kimi K2.5Tool62.8452.6134.8644.8653.39
Kimi K2.5Tool Search68.3651.0432.6648.8648.80
Kimi K2.5Code65.2854.6834.2048.4952.19
Open-source Think-with-image specialists
ThymeDirect35.4729.7618.2523.2331.20
ThymeTool25.6624.1317.5420.3024.34
ThymeTool Search35.6130.0520.2422.0533.92
ThymeCode38.6729.9719.6523.6933.13
DeepEyesV2Direct43.0228.7012.5621.7231.05
DeepEyesV2Tool39.3127.3319.0223.7730.39
DeepEyesV2Tool Search41.8927.3819.0024.7730.36
DeepEyesV2Code41.3828.9320.6724.2333.81

Accuracy decreases monotonically from Easy to Hard for every model, and the Hard subset is the common bottleneck. For most model–protocol pairs, weak-dependency tasks score higher than strong-dependency ones. GPT-5.4 Thinking is the notable exception: under Tool it does better on strong-dependency tasks (66.45% vs. 58.36%), suggesting that a capable agent can exploit explicit cross-image operations.

Key findings

Perception ≠ orchestration

Gemini 3.1 Pro leads under Direct (52.56% vs. 51.08%) but is overtaken under Tool (57.61% vs. 62.24%), and the gap widens under Tool Search. Tool use lifts GPT-5.4 Thinking by about eleven points over Direct but Gemini 3.1 Pro by only about five. Strong multimodal perception does not automatically become strong tool orchestration.

Tool access is not uniformly good

Gains depend on the model's underlying capability. For weaker systems — Gemini 3.1 Flash-Lite, o4-mini, GPT-5.4 — tool use delivers marginal or negative gains. The most telling case is Thyme, whose Tool accuracy (22.36%) falls below its Direct accuracy (27.28%): a model without reliable tool-calling ability is dragged down by a rich library rather than helped by it.

Tools help where precision matters

Gains are largest on tasks needing exact localisation, registration and pixel-wise comparison. GPT-5.4 Thinking's Template Search accuracy climbs from 35.62% under Direct to 71.62% under Tool and 83.78% under Tool Search. On Chart and OCR — more dependent on holistic semantic understanding — the marginal benefit is comparatively limited.

Code is competitive

The Code protocol performs comparably to explicit tool calling and yields the best overall result for Qwen3.6-Plus, Qwen3.5-397B-A17B, and Kimi K2.5, which reach 57.04%, 53.41%, and 50.37% when writing programs.

Trajectory Metrics

Scoring the process without demanding one path

Equivalent tools exist (crop vs. zoom_in), independent operations can be reordered, and different decompositions can all be correct. A rigid match against a single reference would penalise valid solutions — so evaluation is decoupled into three judged dimensions.

Intent Score IS · 0–3

A trajectory-level judgement of whether the overall strategy is reasonable. The judge receives the question, gold answer, expert reference trace, flexibility annotations, and a simplified tool catalogue.

IS(x) = Jint(τ | q, a*, τ*, 𝒰) ∈ {0,1,2,3}

Step Correctness SCS · 0–1

For each tool call or code block, the judge sees the operation, its arguments, the input and output images, and the full trajectory, then returns a binary verdict on whether the step fulfils its intended purpose. The mean over steps is the SCS.

SCS(x) = (1/T) Σt Jcorr(ct | …) ∈ [0,1]

Step Efficiency SES · count

Simply the number of tool-call steps used to reach an answer. Lower is more economical. It is not reported for Code, since a free-form program does not decompose into a comparable sequence of predefined calls.

SES(x) = T

CS(x) = ½ ( IS(x)/3 + SCS(x) ) ∈ [0,1]

Scatter plots of model accuracy against intent score, step correctness score and composite score under the Tool, Tool Search and Code protocols.
Figure 2. Trajectory quality predicts task success. Accuracy against IS, SCS and the composite score (OLS fits, 95% CIs); composite r = 0.877–0.937, p < 0.001.
Within-bin comparison of protocol accuracy against Direct accuracy, bucketed by intent score and step correctness score.
Figure 3. When tools help — and when they hurt. Protocol accuracy vs. Direct, bucketed by trajectory quality; tools lose 3.4 points at IS = 0 and gain up to 10.2 points at IS = 3.
Trajectory scores across models and protocols Expand the per-model Intent Score, Step Correctness and Step Efficiency
ModelProtocolIS (0–3)SCS (0–1)SES (calls)
Closed-source general-purpose
GPT-5.4 ThinkingTool2.42 ± 0.820.91 ± 0.166.21 ± 4.20
GPT-5.4 ThinkingTool Search2.47 ± 0.830.91 ± 0.186.60 ± 6.25
GPT-5.4 ThinkingCode2.62 ± 0.720.80 ± 0.38—
GPT-5.4Tool1.25 ± 1.160.80 ± 0.321.67 ± 2.06
GPT-5.4Tool Search1.33 ± 1.240.86 ± 0.271.30 ± 1.75
GPT-5.4Code1.70 ± 1.140.55 ± 0.50—
Gemini 3.1 ProTool1.64 ± 0.990.74 ± 0.267.13 ± 4.95
Gemini 3.1 ProTool Search1.74 ± 0.980.69 ± 0.2811.93 ± 11.12
Gemini 3.1 ProCode1.73 ± 1.290.67 ± 0.43—
Gemini 3.1 Flash-LiteTool1.36 ± 0.840.42 ± 0.339.58 ± 3.58
Gemini 3.1 Flash-LiteTool Search1.51 ± 0.810.42 ± 0.3417.21 ± 9.65
Gemini 3.1 Flash-LiteCode0.88 ± 1.110.54 ± 0.50—
o4-miniTool0.84 ± 0.980.59 ± 0.381.58 ± 2.18
o4-miniTool Search1.04 ± 1.070.62 ± 0.372.02 ± 2.46
o4-miniCode1.66 ± 1.070.64 ± 0.44—
Qwen3.6-PlusTool1.71 ± 1.060.75 ± 0.324.97 ± 4.63
Qwen3.6-PlusTool Search1.67 ± 1.120.77 ± 0.314.08 ± 5.15
Qwen3.6-PlusCode2.42 ± 0.880.79 ± 0.34—
Open-source general-purpose
Qwen3.5-397B-A17BTool1.86 ± 0.970.75 ± 0.316.47 ± 4.54
Qwen3.5-397B-A17BTool Search1.93 ± 0.960.77 ± 0.316.57 ± 6.77
Qwen3.5-397B-A17BCode2.25 ± 1.000.66 ± 0.38—
Kimi K2.5Tool1.83 ± 1.050.73 ± 0.305.79 ± 4.89
Kimi K2.5Tool Search1.92 ± 1.050.77 ± 0.305.93 ± 6.42
Kimi K2.5Code2.13 ± 1.050.69 ± 0.41—
Open-source Think-with-image specialists
ThymeTool0.11 ± 0.380.19 ± 0.370.91 ± 2.88
ThymeTool Search0.27 ± 0.690.40 ± 0.432.46 ± 7.31
ThymeCode0.60 ± 0.930.19 ± 0.39—
DeepEyesV2Tool0.32 ± 0.600.32 ± 0.420.86 ± 1.85
DeepEyesV2Tool Search0.61 ± 0.840.59 ± 0.431.08 ± 2.11
DeepEyesV2Code0.61 ± 0.820.12 ± 0.32—

Mean ± std over all instances. Higher IS and SCS are better; SES counts calls, so lower is more efficient. IS and SCS are comparable within a protocol family but not across tool-based and Code protocols, since Code trajectories are free-form programs. Note that intent and step correctness need not move together: GPT-5.4 pairs a low IS (≈1.3) with high per-step correctness (0.80–0.86) — it plans sparingly but executes accurately. And more calls do not help: Gemini 3.1 Flash-Lite issues by far the most (17.21 under Tool Search) without corresponding accuracy gains, while GPT-5.4 Thinking reaches the best accuracy with roughly six well-targeted calls.

Data Examples

What a TWMI-Bench instance looks like

Every instance ships with its images, question, reference answer, an expert reference trajectory with per-step intent, and a note recording which operations are interchangeable and which orders are fixed. Sixteen representative instances follow — step through them with the arrows.

Citation

BibTeX

@misc{liu2026twmibench,
  title        = {TWMI-Bench: Benchmarking Active Visual Agents across Multiple Images},
  author       = {Xiaoyu Liu and Yongdong Luo and Yuhao Chen and YiFan Zhang and
                  Minghua Wu and Xiawu Zheng and Yibo Hu and Meiguang Jin and Chaoyou Fu},
  year         = {2026},
  eprint       = {XXXX.XXXXX},
  archivePrefix= {arXiv},
  primaryClass = {cs.CV},
  url          = {#}
}

The arXiv identifier and URL are placeholders until the paper is released.