2026

VLM Zoom Agent

On-device "thinking with images": Qwen2.5-VL-7B calls a zoom tool to inspect tiny details in high-res photos. Evaluated on all 191 V*Bench questions on an M4 Pro with MLX.

VLM Zoom Agent
Qwen2.5-VL-7B, MLX, mlx-vlm, V*Bench, Python

Problem

Vision-language models downsample high-resolution images to a fixed token budget, so small details such as a distant person or a sign get lost. The question was whether a training-free agent that zooms into the original image can recover them, running entirely on a laptop.

How it works

  1. The full image is downsampled to about 1024 visual tokens and shown with the question.
  2. Qwen2.5-VL replies with either ZOOM {bbox_2d: [x1, y1, x2, y2]} or ANSWER: <letter>, reusing its native grounding format so no fine-tuning is needed.
  3. The box is mapped back to original-resolution pixels, padded by 15%, cropped from the original image, and resized to the same ~1024-token budget.
  4. The crop is appended to the conversation as a new image, with earlier images kept in context, for up to N zooms.
  5. A robust parser handles code fences, extra JSON fields and mixed outputs; every step, box and token count is logged per question.

Results

ConditionAccuracyAttributeSpatialLatency
Full image only68.6%67.8%69.7%3.8 s
Zoom agent, max 169.6%67.8%72.4%10.9 s
Zoom agent, max 370.7%70.4%71.1%11.1 s
Fixed 2×2 grid + full image76.4%81.7%68.4%20.9 s

Qwen2.5-VL-7B-Instruct 4-bit, greedy decoding, all 191 V*Bench questions on an Apple M4 Pro (24 GB).

Highlights

Lessons

Next

Train a better zoom policy with RL or SFT using a "crop contains target" reward, add a minimum crop size or wider margin, and try a hybrid that uses grid views to choose where to zoom.