TL;DR
Current image generation models fail to maintain consistency when the same physical outcome is described in different ways (e.g., "9 units/sec for 1 sec" vs. "1 unit/sec for 9 sec"). This paper identifies that the error is surprisingly carried by the "context" words in a prompt rather than the numbers themselves, and proposes a representation-sharing technique to force models toward consistency, even if absolute accuracy remains a challenge.
What Problem Does This Paper Address?
In scientific image editing, we expect a model to act like a simulator. If you tell an AI to fill a tank at a specific rate for a specific duration, the final water level should be a predictable function of math: $Dose = Rate \times Duration$.
However, state-of-the-art models like FLUX.2 and OmniGen exhibit a "route disagreement" problem. Even though $9 \times 1$ and $1 \times 9$ both equal 9, the model produces different visual areas of "paint" or "water" depending on which number came first or how the sentence was structured. This suggests that the models aren't truly "calculating" the dose; they are being swayed by the linguistic structure of the instruction. The authors aim to find out where in the model's brain this discrepancy lives and how to fix it.
Methods
The researchers designed a controlled "digital airbrush" task. The model is asked to deposit blue paint on a canvas. Because the airbrush has a fixed profile, any "equal dose" (the same total units of paint) should result in the exact same blue area on the canvas.
To find the source of the error, they used activation patching. They divided the prompt into two groups:
- The Digit Group: The specific numbers being swapped (e.g., "9" and "1").
- The Context Group: All other words in the instruction (e.g., "constant delivery rate," "active spraying duration").
They then "patched" the internal representations of one route with the other at different stages of the denoising process. If swapping the "context" representations caused the image to change more than swapping the "digits," it proved that the context words were carrying the mathematical error.
Datasets
The study doesn't use a standard image dataset like COCO. Instead, it utilizes:
- Custom Spot Canvases: 512 × 512 grids where the model must draw a circular "hit" from an airbrush.
- Tank Layouts: Images of straight-sided tanks where the model must draw a specific "waterline."
- Bilingual Cohorts: Evaluation was performed using both Chinese and English prompt templates to ensure the findings weren't specific to one language's syntax.
Key Insights and Ideas
- Context is the Culprit: In distilled FLUX models, the "context" words (the unchanged parts of the sentence) actually carry the bulk of the discrepancy. The model's understanding of the "rate" and "duration" digits leaks into the surrounding words early in the generation process.
- The "Early" Window: The discrepancy is established very early in the denoising trajectory. Intervening in the first few steps of generation is far more effective than trying to fix the image later.
- Distillation Amplifies the Issue: Distilled models (optimized for speed) showed a much stronger "context-versus-digit" effect than their base counterparts, suggesting that the distillation process might make the model more sensitive to linguistic "vibes" over raw numerical logic.
- Agreement $\neq$ Accuracy: This is the most striking "aha" moment. You can force a model to be consistent (making $9 \times 1$ and $1 \times 9$ look identical) by sharing representations, but the model might still be consistently wrong about the total area. Consistency (route agreement) and accuracy (calibration) are two separate hurdles for AI.
Key Results
- Gap Reduction: In distilled FLUX, sharing "early context" reduced the absolute route gap from 1.13 percentage points (pp) to 0.60 pp.
- Localization: In the Chinese nine-unit experiment, early context transferred 3.51 pp of the total 3.98 pp route difference, while the actual digits only transferred 0.09 pp.
- Calibration Error: Even when the routes were forced to agree perfectly (via full encoding sharing), the models still missed the "target" area by 8–16 pp. The models tend to have a "compressed" response, where they hesitate to draw very large or very small areas regardless of the numbers provided.
Limitations and Future Work
The authors acknowledge that while they have found a way to improve consistency, they haven't yet solved accuracy. The model still struggles to map a numerical value (like "12.5% area") to a precise visual output.
Future work is needed to "calibrate" these models—essentially teaching them a visual scale so that once they agree on a route, that route actually leads to the mathematically correct destination. Additionally, the study is focused on a specific "airbrush" metaphor; it remains to be seen how these findings translate to more complex scientific simulations like chemical reactions or mechanical stress tests in images.
Summary updated