TrajSP: Trajectory-Grounded Structured Prompting for Feedback-Guided Text-to-Image Generation

Binglei Bao, Kunpeng Du, Lu Dong, Jie HuOpenReview 2027 · Submission to ICLR 2027 · Withdrawn

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:

  1. Hallucination: The enhancer might add details that the image generator cannot realistically produce.
  2. Redundancy: Longer prompts don't always mean better guidance; they often just restate the obvious.
  3. 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:

  1. Noisy Understanding Warmup: Training a lightweight adapter to help the model "see" through different levels of Gaussian noise.
  2. Joint Training: Finetuning the model to simultaneously predict schemas from noisy images and generate images from those schemas.
Figure 1: Prompt-conditioning paradigms and generation overview. (a) Text-only expansion; (b) visually distilled structured prompting (VD-SP), whose single-shot enhancer is image-free at inference; (c) TRAJSP observes its own trajectory to polish and validate conditioning. The radar summarizes the selected results in Table 1.

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.
Overview of the Polisher and Validator roles in the denoising trajectory.

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

Abstract

While structured prompt enhancement enables image generation to benefit from visual knowledge and increased prompter capacity, existing distillation-based approaches require a separate training pipeline for an external LLM enhancer that lacks direct visual access at inference. We study whether unified multimodal models (UMMs) can eliminate the need for this separately trained enhancer by directly observing intermediate images and refining structured conditioning during denoising. Our framework, TrajSP, first applies a lightweight noisy understanding adaptation to enhance the understanding branch's capacity to interpret noisy intermediate images. During sampling, the adapted branch serves as a trajectory-grounded Polisher: at an early checkpoint, it processes the intermediate visual state jointly with the user prompt to predict a structured prompt comprising global scene fields, per-object elements with normalized bounding boxes, and inter-object relations. By grounding this representation in the evolving visual state, TrajSP provides targeted conditioning for subsequent denoising steps, with the aim of avoiding redundant prompt expansion. Joint understanding-generation finetuning optimizes shared parameters for both schema prediction from noisy states and schema-conditioned image generation. An optional late-stage Validator is designed to provide targeted feedback for subsequent refinement. Experimental results demonstrate improved semantic alignment and greater fidelity in object-level details, particularly attribute binding, without a standalone prompt enhancer. 15:52
BibTeX
@misc{bao2027trajsp,
  author = {Binglei Bao and Kunpeng Du and Lu Dong and Jie Hu},
  title = {{TrajSP: Trajectory-Grounded Structured Prompting for Feedback-Guided Text-to-Image Generation}},
  year = {2027},
  url = {https://openreview.net/forum?id=UfG8u3l90o},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2027},
}

Loading related content...

Figure