Gemma 4 beats Claude at finding Waldo with a 20 KB add-on, no retraining
Google and Johns Hopkins researchers steer an unchanged open model through a fixed three-step zoom routine. On fine-grained image search and counting it beats larger reinforcement-learning systems and proprietary models. The work is a preprint and has not been peer reviewed.
scienceunderway.com/articles/four-learned-tokens-let-frozen-gemma-4-beat-claude-at-finding-waldo

AI illustrationWhat the study shows
Vision-language models, AI that answers questions about images, shrink large pictures to a fixed size before reading them. Small details get lost. A figure the size of a fingernail in a crowded poster can vanish entirely. Recent fixes let the model zoom in step by step. They choose one region, look, then decide where to go next. That is slow. It also needs reinforcement learning, where a model learns from rewards over many trial runs, applied to the whole model.
The authors, from Google and Johns Hopkins University, replace this open-ended search with a fixed three-turn routine. In turn one, the model looks at the whole image and writes short Python code that cuts out every candidate region at once, with a zoom level for each. In turn two, it inspects all the zoomed crops in parallel. In turn three, it combines the findings into one answer, removing duplicates and ruling out look-alikes.
The model's own weights are never changed. Instead, the authors train four 'prefix tokens': a few learned numbers placed in front of the input that nudge the model's behaviour. They total about 10,000 numbers. Training used supervised fine-tuning, learning from worked examples, on 1,400 example searches.
The authors report that on WaldoBench, a public test of finding Waldo in crowded scenes, steered Gemma-4-26B found him 53% of the time. The same model without the tokens scored zero. The best commercial model on the official leaderboard, Claude Opus 4.8, scored about 38%. On a hard dense-counting test, the steered model was right about 65% of the time, against about 10% for the unsteered model and 16% for Gemini 3.1 Pro.
The smaller steered Gemma-4-4B also beat dedicated 7B-parameter zoom-and-search systems on two other public benchmarks for small objects and very high-resolution images. On 4K images it answered in about half the time of DeepEyes, a leading rival.
Our reading
In our reading, the central claim is that today's image models already have the skills for careful visual search. They can read a scene's layout, write code and describe a crop. What they lack is a way to coordinate those skills. The results support this. Simply telling the model the three-turn plan in a text prompt made it worse than answering in one go. Four trained tokens made it much better.
The fixed structure matters for practice. A routine that always takes three turns has predictable cost and latency, which a step-by-step search does not. Each intermediate step is also readable: the plan, the code, and a sentence per crop. An engineer can see which region was checked and why the model ruled it out.
A concrete example: a warehouse system counting boxes on a high shelf photo could split the image into tiles, count each tile at once and subtract boxes that straddle tile edges. That is the pattern the paper shows for counting cars.
The rest of this story is for members. Membership is free: read it at scienceunderway.com/articles/four-learned-tokens-let-frozen-gemma-4-beat-claude-at-finding-waldo
Read the rest of this story
Membership is free. You get every article in full, and can save stories and follow topics.
We send a sign-in link, no password needed. Already a member? Sign inReadiness assessment
| Level | Status | Evidence |
|---|---|---|
| I Lab only | Met | The method is built and tested on Gemma-4-4B and Gemma-4-26B, with ablations on prefix length, cache content and latency. |
| II Benchmarked | Met | It reports results on public benchmarks: WaldoBench (official test pipeline), V* Bench, HR-Bench 4K/8K and UNICBench. VDiff-Bench-Gen was a reproduction. |
| III Open source | Not yet | A project page is listed (4twaldo.github.io), but the paper does not say whether code, prefix weights or training data are released. |
| IV In production | Not yet | There is no documented use by any named organisation. |
What would move it up
Public release of the code, the trained prefix tokens and the 1,400-trajectory training set would move it to level III.
The study
Feng Wang, Yaojie Liu, Zeeshan Hayder et al.. Four Tokens to Find Waldo: Steering Deterministic Visual Search in Frozen VLMs. arXiv, 26 November 2026. Read the paper
Notes
- Wang, Liu, Hayder, Phan, Yuille and Chu, 'Four Tokens to Find Waldo: Steering Deterministic Visual Search in Frozen VLMs', arXiv preprint, November 2026. Source
- Project page listed by the authors. The paper does not confirm release of code or weights. Source
- WaldoBench official leaderboard (v0.0.3), source of proprietary baseline scores: Gemini 3.1 Pro 26.4%, Claude Opus 4.8 37.7%, GPT-5.5 35.8%; steered Gemma-4-26B 53.0%. Source
- Exact figures: UNICBench Hard 65.5% (Gemma-4-26B steered) vs 10.1% unsteered and 15.8% Gemini 3.1 Pro; V* Bench 92.0% (Gemma-4-4B) vs 90.6% ZoomEye, 90.1% DeepEyes-7B; HR-Bench 4K/8K 82.1%/79.4% vs DeepEyesV2-7B 77.9%/73.8%; VDiff-Bench-Gen 65.9 vs 46.8 Micro-F1 (Gemini 3.5 Flash); latency 2.8 s vs 5.1 s (DeepEyes-7B) and 10.2 s (ZoomEye).
- Readiness: level II, Benchmarked. Public benchmark results reported; code and weights not confirmed released.
Edited and signed by
Stefan PerdalFounder. Twenty-five years of building digital products.194 stories editedStefan read the study, set the readiness level and approved this story. An AI system found the paper and wrote the first draft.
How this was made
An AI model read the study and wrote this article in the structure Science Underway uses. An editor reviewed it and approved it for publication. Check the original study before you rely on the details.
How we workNo corrections


