The Elephant in the Question

Unified models picture what they never say.

The question

On which continent does the biggest land animal
live?

The model answersAfrica
An African elephant on a savanna, drawn by HunyuanImage-3.0 from its hidden state at the token animal
Drawn from the token animal, layer 15HunyuanImage-3.0

Did the model simply retrieve the answer “Africa” from its memory, or did it actually include a representation of an elephant in its computation on the way to its answer?

To investigate this, we introduce the V-lens. It visualizes a token’s hidden states at intermediate layers using the model’s own image generator. Indeed, we find an elephant represented in the hidden state at the token animal. The V-lens combines a training-free mapping of hidden states with the model’s own image generator, so no separately fitted decoder is needed.

HunyuanImage-3.0The model answers Africa

How the V-lens works

From hidden states to a picture.

1  Read

Select a token and an extraction layer ℓ

On which continent does the biggest land animal live?

2  Transport

Center and rescale the hidden state

We estimate each layer’s mean and coordinate spreads from plain-text passages.

Bands show reference spreads. Ticks mark means. Hover or tap the steps below the columns.

3  Insert

Replace the hidden state at “thing” in the image prompt

a photo of a thing

4  Draw

The model’s own image generator draws it

token animalℓ = 24, R = 27Show-o2step 49 of 49
Transport details

v = μR + sR Dx‖Dx‖,   x = h − μℓ,   D = diag(σR / σℓ)

h is the extracted hidden state at layer ℓ, x the centered state and v the state inserted at layer R. μℓ and μR are the mean hidden states of the two layers, σℓ and σR the per-coordinate spreads around them. Coordinate scaling D is diagonal, and each diagonal entry is the ratio of that coordinate’s spread at layer R to its spread at layer ℓ. sR is the median distance of layer-R states from μR. All statistics come from plain-text passages unrelated to the test items, so nothing is trained or fitted on pictures (paper, Eq. 1). In the diagram above, the means, spreads and target length are illustrative.

No decoder is trained. The model draws from the replaced hidden state with its standard image-generation procedure.

Tested in six unified models.

Context

The same word yields different images in different contexts.

Hidden states reveal objects the question never names.

The V-lens reveals objects the model is asked to think about.

We test whether an instruction to think about an object changes the hidden states of unrelated text. We ask the model to think about a concept while it copies an unrelated sentence word by word. Then we visualize each token of the copied sentence through the V-lens at layers 24 to 26.

Successful visualizations cluster at the in Show-o2 and at the final period in HunyuanImage-3.0. Without the think instruction, the object almost never appears.

Compare conditions

Lens tuning

After lens tuning, the V-lens shows which of two objects “it” refers to.

We train only text adapters through the V-lens, using target pictures of the object that it refers to. On unseen sentence pairs, we test whether both V-lens pictures show the correct object.

2–11% → 86–94%

New sentence pairs where both pictures show the right object, before and after lens tuning, in BAGEL, SenseNova-U1 and HunyuanImage-3.0.

We found a sewing machine near an apple.

before lens tuningafter lens tuning
Model

Lens tuning also changes text answers.

We train text adapters through the V-lens using pictures of each story’s outcome, without supervising answer tokens. We measure answer changes on the stories used for training.

Stories

Each percentage is the model’s probability for the corresponding answer token.