Inverting a text-derived direction into an image inside a vision-language model
A text prompt and an image become the same kind of thing inside a vision-language model: vectors in one residual stream. So a direction read from “a photograph of the Eiffel Tower” can be handed to a pixel optimizer that never sees the text, only the instruction to make the image tokens point that way. In Qwen2.5-VL that works for 7 to 8 of 12 monuments, which come back as recognizable photographs of the named landmark. Two conditions on that sentence, both of which matter more than the count. It works only against a re-centred direction, with a mean over 288 real photographs subtracted from the image readout; run as first formulated, against the raw readout, the same procedure produces twelve indistinguishable clouds (-0.18 sd, ranking first at chance). And “recognizable” is my own reading of the images together with a threshold chosen after seeing them, not a measured quantity, which is why the count is a range.
In Gemma 3 the same procedure returns generic texture for all twelve monuments across the nine settings screened, with no setting putting a single monument above the threshold, even though directions built the same way at the same layer are decodable from real photographs there at 74.91% top-1. Within that screened budget, being decodable from a model's image path does not make a direction reachable by gradient descent through it.
The gallery
Qwen2.5-VL-7B-Instruct, layer 9 of the language model, noise 0.15, sampled crops 0.90–0.95 of the canvas, canvas 2048, 2048 steps, seed 42. Left is the raw canvas. Right composites the same canvas through its gradient-importance map, which records which pixels actually carried the objective, ranked so the whole range is visible rather than clipped; the slider hides the least important fraction of every canvas at once, over a checkerboard so hidden regions read as transparent. It opens at 80%, the clip the optimizer's own library uses by default. Renders below +20 sd are marked and kept. That cut is post-hoc and the legibility call is a single viewer's, so treat it as a reading aid over the gains rather than a measurement.
What the numbers mean
| set | mean gain | median | control | legible | ranks first |
|---|---|---|---|---|---|
| canvas 2048, noise 0.15 (published) | 191.93 sd | 45.25 sd | -0.040 sd | 8 of 12 | 11 of 12 |
| canvas 1024, noise 0.15 | 146.77 sd | 47.51 sd | +0.044 sd | 7 of 12 | 12 of 12 |
| canvas 1024, noise 0.30 | 19.08 sd | 3.92 sd | +0.013 sd | 2 of 12 | 9 of 12 |
Each render is scored by the same objective it was optimized against, then expressed as standard deviations above what the 288 selection-half photographs of ordinary subjects reach on that same direction. That is the same photograph set the origin is estimated on. (The renders themselves scored against a 12-photograph baseline that mixed the two halves; every gain here is recomputed against the correct 288, which moved seven screen renders and two canvas-1024 renders across the threshold and left the published set's counts unchanged.) A render at +20 sd is far outside the range any real photograph occupies; a render near 0 sd has not moved toward its target at all. The control is a random direction with the same norm as the target, optimized the same way and scored the same way, and it stays at -0.04 sd on average.
Ranking first is the weaker of the two signals, and this set shows why. 11 of the 12 renders rank their own direction above the other eleven, but 7 to 8 are legible. A canvas can carry a faint correct bias, enough to win a twelve-way comparison, while showing nothing a person would name. Where the two disagree, believe the gain and the picture, not the rank.
The four that are not shown
The cards above are the eight monuments that produced a recognizable landmark. The other four are not shown as images and their numbers are these: Big Ben +34.6 sd, the Leaning Tower of Pisa +10.2 sd, Sydney Opera House +3.4 sd and the Golden Gate Bridge +0.4 sd. Big Ben is the awkward one: it clears the +20 sd cut, but by rendering the words BIG BEN beside a clock face rather than the tower, which is a different kind of success and not one to put in a gallery of buildings.
What the four have in common is that they do not fail into static. They land on an attribute of the phrase instead of the landmark: the Golden Gate Bridge becomes gold-coloured forms, the Leaning Tower of Pisa becomes leaning pear shapes, Sydney Opera House becomes an animal's face. That is what a direction looks like when it carries the phrase's parts but not the landmark's structure. Every aggregate number on this page is still computed over all twelve monuments and scored against all twelve directions, so chance for a first-place finish stays 1 in 12; nothing was recomputed over the eight.
Each render scored against all twelve directions
Twelve by twelve matrix: each optimized canvas scored by cosine against every monument direction. A dominant diagonal means the canvases are concept-specific.
How far each render moved toward its own direction
Per-monument objective value on the final canvases for the own text direction and for norm-matched random directions, in standard deviations above the real-photo mean. The bundle also carries each render's rank among the twelve directions, which is saturated at 1 for 11 of 12 renders and so is not plotted: with only twelve targets a ranking cannot separate a strong render from a weak one.
The same setting at two canvases and two noise levels
Target gain per monument for the published gallery (canvas 2048, noise 0.15) against the two canvas-1024 sets, all at 2048 steps and crops 0.90-0.95. Log axis; bars at the left edge are at or below 0.05 sd, meaning no movement toward the target.
The 256-step screen behind the choice
Screen grid per language model: top row is target gain minus norm-matched control gain in standard deviations against real photos; bottom row is the share of the twelve monuments whose own direction ranks first, against 8.33% chance.
Crop size, monument by monument
Target gain per monument at noise 0.05 in Qwen2.5-VL, comparing sampled crops of 0.50-0.70 of the canvas against 0.90-0.95. Log axis; bars at the left edge are gains at or below 0.05 sd, meaning the render did not move toward its target.
What large crops do to the objective's field of view
Left: the share of sampled crops that extend past the canvas, which roi_align zero-pads. Right: where the objective's gradient lands, as the concentration of importance mass in the central disc (1.0 would be uniform) and the mean importance in the outer 5% band relative to the whole canvas. Larger crops spread the gradient outward rather than pulling it inward.
Where the direction is decodable from real photographs
Held-out top-1 photo retrieval against layer depth for each language model's selected readout, with chance and the SigLIP reference marked.
Which readout definition the direction survives
Best held-out top-1 retrieval for each of four readout comparisons, both language models, showing that centering the image readout is what makes the comparison work.
Gemma 3: decodable, not invertible, within the budget screened
Gemma 3 4B was screened over nine noise-by-crop cells with the same objective, origin, seed and 256-step budget. Its best cell reaches +7.06 sd against its control with 16.7% of monuments ranking first, against 8.33% by chance, and mean rank 6.25 of 12 against 6.5 by chance. No screened cell puts a single monument above the +20 sd cut. At the identical cell, noise 0.15 and crops 0.50–0.70, Qwen2.5-VL reaches +29.41 sd against Gemma's +7.06, so the contrast is matched rather than confounded by settings.
Two honest bounds on that null. Gemma's objective rises with crop size inside the screened range, +2.32, +2.05 and +7.06 sd at noise 0.15, and it never received the 0.90–0.95 crop row that helped Qwen most, so a larger-crop Gemma run is untested. And the retrieval precondition is an ImageNet-class proxy: its 40 classes are ordinary object categories with no monument among them, so 74.91% top-1 on 267 held-out photographs across 40 classes shows that directions constructed this way at this layer are decodable, not that these twelve monument directions specifically are.
What survives both bounds is the dissociation itself. Gemma's readout construction is decodable from real photographs well above the 2.5% chance rate, its objective does climb under optimization, and no screened setting turns either fact into a picture of a monument. The reference arm rules out the optimizer: SigLIP's own text embedding, optimized by the identical code, reaches +116.9 sd with 100% of monuments ranking first and 12 of 12 above the cut.
The objective this needed, and the one that fails
Comparing a centred text direction against a raw image readout, which is the natural first formulation, produces nothing: -0.18 sd and 8.3% ranking first, with every canvas landing at cosine 0.78 to 0.85 against every direction. The reason is geometric. Raw readouts for the twelve monuments have mean pairwise cosine 0.5928 in Qwen2.5-VL, so they are nearly the same vector; subtracting a fixed image-side origin drops that to -0.0890 and makes them distinguishable. The origin used in every render is the mean image readout over the 288 selection-half photographs at the same layer, the same quantity the retrieval probe was validated with, and it is a constant, so the objective stays differentiable.
What to hold against this
The crop size costs field of view. At crops 0.90–0.95, 96.00% of sampled crops extend past the canvas and are zero-padded, 17.74% of their area on average. The measured effect runs opposite to the obvious worry: importance mass is 1.46 times uniform in the central fifth of the canvas here, against 3.83 to 4.27 at the smallest crops, because small crops are drawn near the middle and never reach the periphery.
The canvas does not buy detail. A near-whole-canvas crop from a 2048 canvas is downsampled about 4.6x to the tower's 448-pixel input, so structure finer than roughly 4 to 5 canvas pixels is invisible to the objective. The 2048 renders are larger and smoother than the 1024 ones, not more detailed.
The count is a range, not a number. The +20 sd cut was chosen after seeing the 256-step screen, and whether a canvas is “recognizable” is my judgement as one viewer, with no second rater and no forced-choice test. Nearby thresholds give 7 to 9 of 12. My own read is seven clean monuments plus Big Ben, which clears the cut at +34.6 sd by rendering the words rather than the tower. The gains do fall either side of a wide gap, 27.25 sd for the lowest render above the cut against 10.16 sd for the highest below it, so the cut is not slicing through a cluster.
Success depends on the origin, which was not the original plan. The objective as first formulated compared a centred text direction against a raw image readout, and it produces nothing. Every result here subtracts a mean over 288 real photographs from the image readout first. That is a fixed constant, so nothing about differentiability changes, but the claim is about a re-centred direction rather than the raw text readout.
Twelve concepts, two models, one layer each, one seed. Every number here is that scope. The probe centres text over its 40 class prompts while the renders centre over the 12 monument prompts, which moves Qwen's variants by under 0.75 points but is not identical.
Rank saturates. With twelve targets, a twelve-way ranking cannot separate a strong render from a weak one; the gain and the image do that.
The gains here are a correction. The renders scored against a 12-photograph baseline strided across the whole 555-photo cache, which mixed the selection and held-out halves and left roughly 20% relative error on the standard deviation. Every gain on this page is recomputed against the correct 288 selection-half photographs from each render's saved raw objective, so no canvas was re-optimized. Seven screen renders and two canvas-1024 renders crossed the threshold under the correction; the published set's counts did not move. Both values are kept per render as target_gain_z and target_gain_z_n12.
Reproducing this
Numbers on this page come from gallery/manifest.json, results/gallery_cross_scoring.json, results/cell_stats.json, results/retrieval.json, results/geometry.json, results/crop_geometry_stats.json and results/text_collapse.json. Each figure ships its own data.json and plot.py and re-renders without rerunning the pipeline. Full-resolution canvases and the raw float32 importance maps are in the experiment's artifact tree, and the eight canvases shown above are embedded directly in this page at 768 px (3,461 KB of inlined image data), so the masked view needs no network request and cannot fail to load.