TL;DR
LOCUS (Latent Optimization in Causal Support windows) is a new method that significantly improves attribute control in autoregressive (AR) image generators. By identifying the specific "causal support windows"—the exact points in the token sequence where attributes like color, size, or count are decided—LOCUS targets test-time optimization to the most effective latents, nearly doubling the compositional accuracy of models like Janus-Pro.
What Problem Does This Paper Address?
Autoregressive image generators, which treat images as a sequence of discrete tokens (similar to how LLMs treat text), often struggle with "compositional" prompts. For example, if you ask for "three red apples," the model might generate two green ones.
Researchers have found a "readability–steerability gap": while you can use a linear probe to "read" an object's color from its internal representations, simply steering the initial "prefix" tokens often fails to change the final image's color. This paper investigates why this happens, discovering that different attributes are "committed" at different times during the generation process. If you try to change the color by editing the beginning of the sequence, you're essentially shouting into a void because the model hasn't even started "deciding" the color yet.
Methods
The authors introduce the Causal Support Profile, a measurement of how much an intervention at a specific point in the token sequence actually affects the final output.
- Activation Patching: They use "minimal pairs" of prompts (e.g., "a red car" vs. "a blue car"). They take the hidden states from the "donor" (red car) and patch them into the "receiver" (blue car) at various windows along the token trajectory to see where the attribute "flips."
- LOCUS Algorithm: Based on these profiles, they developed a four-step repair loop:
- Diagnose: An external verifier identifies which attribute failed (e.g., "Color is wrong").
- Route: The system maps that failure to its pre-measured support window (e.g., color optimization happens in the middle of the sequence).
- Optimize: It uses the REINFORCE algorithm to update only the latents within that specific window while keeping the rest of the model frozen.
- Re-roll: The model generates a new image from the optimized latents.
Datasets
The researchers evaluated their method using:
- GenEval and GenEval++: Standard benchmarks for evaluating how well text-to-image models follow complex, multi-attribute instructions.
- Models: Primary experiments were conducted on Janus-Pro-7B, with additional validation on LlamaGen-XL and Lumina-mGPT 2.0 to ensure the findings generalize across different AR architectures.
Key Insights and Ideas
- Temporal Hierarchy of Attributes: Structural attributes (count and position) are decided early and in narrow windows. Appearance attributes (color, size, material) are decided later and over broader windows corresponding to the object's body.
- Spatial, Not Just Temporal: Because these models decode in a raster grid (top-to-bottom, left-to-right), the "support window" isn't just a fixed set of time steps; it follows the spatial location of the object. If an object is at the bottom of the image, its color support window shifts to the end of the token sequence.
- Readability $\neq$ Steerability: The paper confirms that being able to decode a feature from a latent state (readability) does not mean that state is the causal lever for that feature (steerability).
Key Results
LOCUS provides a massive boost to "frozen" models without requiring any retraining:
- Accuracy Jump: On GenEval++, LOCUS raised Janus-Pro’s overall accuracy from 24.6% to 46.8%.
- Compositional Success: On difficult multi-attribute tags (like Color + Count), accuracy jumped from 19.5% to 40.5%.
- Efficiency: Compared to standard prefix optimization, LOCUS repaired 48.1% of failed generations in a single attempt (vs. 37.4%) and required 14% fewer rounds of optimization to succeed.
- Ablation: Support-routed windows outperformed "late" windows by 23.6 percentage points, proving that where you optimize is just as important as how you optimize.
Limitations and Future Work
- Offline Profiles: Currently, the causal support windows are measured offline for a fixed set of attributes. The authors suggest that future work could involve estimating these windows dynamically per prompt.
- Verifier Dependency: The system relies on an external verifier (like GPT-4 or a specialized detector) to diagnose failures. If the verifier is wrong, the repair will likely fail.
- Raster-Order Specificity: The spatial findings are tied to the raster-scan decoding order of current AR models. It remains to be seen how these windows shift in models with different decoding orders (like the "next-scale" prediction in VAR).
Summary updated