TL;DR
TrajSP introduces a "vision-guided" feedback loop for text-to-image generation by leveraging Unified Multimodal Models (UMMs) to inspect images while they are being created. By generating structured prompt schemas grounded in intermediate noisy states, the system can correct emerging errors in layout, counting, and attributes, significantly improving semantic alignment without needing a separate, "blind" LLM prompt enhancer.
What Problem Does This Paper Address?
Modern text-to-image (T2I) systems often rely on "prompt enhancement"—using an LLM to rewrite a simple user query into a detailed description before generation begins. However, these enhancers are functionally "blind": they operate entirely in text space before a single pixel is drawn. This leads to several issues:
- Hallucination: The enhancer might add details that the image generator cannot realistically produce.
- Redundancy: Longer prompts don't always mean better guidance; they often just restate the obvious.
- Lack of Grounding: Once the denoising process starts, the prompt is static. If the generator starts drawing a blue car when the prompt asked for a red one, a traditional system has no way to "see" the mistake and adjust the conditioning mid-flight.
TrajSP addresses this by moving prompt enhancement from a one-shot pre-processing step to an active, trajectory-aware intervention.
Methods
The authors build TrajSP on top of SenseNova-U1, a pixel-space UMM that can both understand and generate images within a shared architecture. The framework introduces two key interventions during the denoising trajectory:
- The Polisher (Early Stage): At an early denoising step (typically step 7 of 50), the model inspects the "coarse visual content" of the noisy image. It combines this visual evidence with the original user prompt to generate a Structured Prompt Schema ($\Delta c_i$). This schema isn't just more text; it includes explicit fields for object identities, attributes, normalized bounding boxes, and inter-object relations.
- The Validator (Late Stage): At a later step (step 15), the model acts as a critic. It checks if the emerging image actually aligns with the prompt and the polished schema. If it detects an irrecoverable error (like a "counting failure"), it generates a repair schema and triggers a single restart from fresh noise, ensuring the second attempt is better grounded.
To make this work, the authors used a two-stage training process:
- Noisy Understanding Warmup: Training a lightweight adapter to help the model "see" through different levels of Gaussian noise.
- Joint Training: Finetuning the model to simultaneously predict schemas from noisy images and generate images from those schemas.
Datasets
The authors introduce GSP-30K, a dataset of 30,000 triplets consisting of an image, a prompt, and a grounded structured schema.
- It combines 15k synthetic images and 15k real image-text pairs.
- Crucially, they use a "VLM Correcting Expert" to ensure the schemas are perfectly aligned with the actual visual content, resolving the "grounding mismatch" often found in synthetic data.
For evaluation, they use a suite of rigorous T2I benchmarks: GenEval, OneIG-Bench, WISE, GenAI-Bench, and UniGenBench++.
Key Insights and Ideas
- Visual Evidence over Textual Cues: During training, the authors use prompt masking (hiding parts of the text prompt). This forces the "Polisher" to actually look at the noisy pixels to figure out what's happening in the scene rather than just parroting the input text.
- The "Sweet Spot" for Intervention: The paper finds that intervening at step 7 is optimal. Any earlier, and there isn't enough visual evidence to ground the schema; any later, and the layout is already "baked in," making it hard for the new conditioning to steer the generation.
- Efficiency via KV-Cache Refresh: To avoid polluting the generation context with "noisy" visual tokens, TrajSP uses a temporary observation branch. Once the schema is predicted, the noisy visual tokens are flushed, and only the clean, structured text schema is committed to the KV-cache for the remaining steps.
Key Results
TrajSP shows consistent improvements over the SenseNova-U1 baseline and other open-source models:
- Semantic Alignment: On GenEval, TrajSP achieved a score of 91.76, outperforming the baseline (89.69) and models like FLUX.1-dev (66.00).
- World Knowledge & Reasoning: On the WISE benchmark, it improved scores from 68.80 to 74.20.
- Object Fidelity: The gains were most pronounced in spatial reasoning, action understanding, and—most notably—counting, which remains a notorious weakness for diffusion models.
Qualitatively, the Polisher excels at enriching details (like adding specific emblems or textures) that match the emerging composition, while the Validator effectively catches "logic" errors like a baker using bare hands instead of oven mitts.
Limitations and Future Work
- Inference Overhead: While the Polisher is efficient, the Validator adds a fixed check to every generation, and the "restart" mechanism for failed samples doubles the generation time for those specific cases.
- Reasoning vs. Grounding: The authors note that while TrajSP is superior at grounding prompts in pixels, external LLM-based enhancers (like VD-SP) still have an edge in "knowledge-intensive" reasoning before generation starts.
- Future Direction: A promising path is combining the "pre-generation reasoning" of LLMs with the "mid-generation grounding" of TrajSP to get the best of both worlds.
Summary updated