Probing Pretrained Image Generators for Universal Vision Tasks

1Stanford   2MIT

*Part of work done when visiting Kaiming He at MIT

Pretrained image generators are secretly generalist vision models.
But natural language can’t reach it.

  • 0pretrained weights changed
  • 20 → 55%simple probe unlocks true capabilities
  • <0.005%of learnable parameters

Simple test-time probing makes pretrained generators generalists

Swipe to see the whole flow.

weights fixed and probe updating onlyin a few seconds…
ab→ab + σb ⊙ Mb
Setup

Only Mb is fitted; σb is a fixed per-channel scale from the demonstrations. 400 updates with the generator’s own training loss, starting from identity; about 11 s on one accelerator for FLUX.2 4B. One fit serves every query of the task, and no demonstrations are needed at inference.

The same simple probe is universally effective.

Six generators, diffusion and autoregressive. 0% copies the input, 100% is ground truth.

Mean of six generators: 20% → 55%. On 17,511 test queries: 23% → 57%.

Setup

0 visual demonstrations is instruction-only editing; otherwise a probe is fitted to that many visual demonstrations. The dashed line is the best baseline at its best number of visual demonstrations. “Visual demonstrations in the prompt” passes them as extra input images instead of fitting.

Watch it surface.

Query input
Query

Visual demonstrations

0

Ground truth
Ground truth
Setup

Three queries per dataset, selected from the supplementary gallery. 0 is instruction-only editing. One probe fit per dataset, except 4 visual demonstrations for FLUX.2 and Qwen-Image, fitted per query. Frames between two counts are a cross-fade.

It was there all along.

The probe can’t teach a task by itself. It can only draw one out.

Shuffle the weights and the same probe fails.

Mazes solved: 45/64 → 0/64

Maze outputs with intact weights solve the route; with shuffled weights they are noise

NYUv2 depth error, lower is better

Setup

FLUX.2 4B, validation, 16 visual demonstrations, three seeds; “shuffled” permutes the entries within each transformer weight tensor. Mazes: Qwen-Image 2.1, 6,400 updates. Depth: NYUv2 absolute relative error, two random shuffles, 25,600 updates.

How far does it reach?

To tasks the generators had hardly seen, and to official benchmarks.

Learn on small mazes. Solve larger, unseen ones.

23/32 solved vs 0/32 solved by native editing
Varied appearanceFixed

Ten of the 1,024 demonstrations

Setup

One shared fit of 6,400 updates on 8×8 mazes, applied unchanged to 12×12 mazes. Shown: eight solved queries spread over route length, then the two closest misses; the route is revealed along its path.

The probe allows us to look inside the models.

A seconds-long probe predicts the ranking after hours of LoRA training.

Setup

Spearman correlation per task between two rankings of the six generators: after a probe fitted to 16 visual demonstrations, and after rank-256 LoRA on 1,024 training pairs with 8× the updates.

Related tasks land together. No labels given.

Setup

13 tasks share a few probe directions.

Setup

Each task’s probe is a mix of r shared patterns; “own” is an independent probe. Mean score on 9 held-out images per task, fits on 8 visual demonstrations, three seeds.

Per-task probes barely need language.

Task instructionNeutral prompt
Setup

Rank r is the number of shared directions; “Indep.” is one probe per task. Pre-registered, 376 scenes, 8 visual demonstrations.

Fit at 256 px, use at 512 px.

Setup

Probes fitted at 256×256 to 8 visual demonstrations with a neutral prompt, then run unchanged at 512×512 on the same 32 scenes. “256 px, upsampled” enlarges the probe’s 256 px result; “No probe” is the 512 px run with the probe at zero. Mean score; 0% copies the input. The first tab is the average of the three tasks.

Conclusion

Pretrained image generators already hold a strong foundation for generalist vision, but language instructions alone fail to bring it out.

A tiny probe fitted to a few visual demonstrations does, with every pretrained weight frozen: six generators rise from 20% to 55%.

What we hope this says to researchers in

  • PretrainingWhat a generator has learned goes well beyond what instructions can show.
  • Generalist modelingBefore training on a list of tasks, probe what is already there.
  • Computer visionOne frozen generator and a few visual demonstrations can serve many tasks.
  • Model interpretationA tiny probe is an instrument for studying what a model knows.
BibTeX
@article{xiang2026probing,
  title         = {Probing Pretrained Image Generators for Universal Vision Tasks},
  author        = {Xiang, Tiange and Lu, Kristine and Adeli, Ehsan and Fei-Fei, Li},
  journal       = {arXiv preprint arXiv:2612.04585},
  year          = {2026},
  eprint        = {2612.04585},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CV}
}

The authors thank Kaiming He for compute support and valuable guidance at an early stage of the project during Tiange Xiang’s visit, and Keshigeyan Chandrasegaran for feedback on the manuscript. This work was partially funded by Stanford HAI, a Stanford HAI graduate fellowship, and UST.