Trajectory Forcing: Structure-First Generation with Controllable Semantic Trajectories

Merve Kocabas, Gege Gao, Bernhard Schölkopf, Andreas GeigerarXiv 2026

TL;DR

Trajectory Forcing (TF) transforms the opaque, data-driven denoising path of generative models into an explicit, semantically structured, and human-editable trajectory. By breaking down image synthesis into a coarse-to-fine sequence—progressing from global layouts to objects, parts, and fine details—TF allows users to inspect and locally edit images at any stage of generation with minimal computational overhead.

What Problem Does This Paper Address?

Modern diffusion and flow-based generative models are incredibly powerful, but their controllability is largely "endpoint-centric." A user provides a prompt or condition, waits for the model to run its iterative denoising process, and receives a final image. During this process, the intermediate states are treated as purely internal, non-interpretable computational scratchpads (essentially looking like varying levels of random noise).

This stands in stark contrast to how humans create art. An artist typically starts with a rough sketch or global composition, blocks out shapes, defines parts, and finally adds intricate details. If something looks wrong early on, the artist fixes it before moving forward.

The authors address this gap by asking: Can we make generative trajectories themselves interpretable, semantically structured, and editable?

Methods

Trajectory Forcing (TF) restructures image generation into a fixed sequence of discrete semantic stages ($L=4$ in this paper): Object/Background $\rightarrow$ Parts $\rightarrow$ Subparts $\rightarrow$ Finest Details.

Fig. 1: Trajectory Forcing (TF) replaces the opaque, data-driven denoising trajec- tory (bottom, red) with a deliberately structured coarse-to-fine progression through semantic levels (top, blue). Every intermediate state is decodable via a shared decoder into a visually interpretable image, enabling inspection and editing at each level.

The framework relies on three main pillars:

  1. Building a Teacher Hierarchy: Instead of relying on manual human annotations, the authors exploit the clean semantic geometry of a pretrained DINOv2 feature space. By applying unsupervised clustering (K-Means and agglomerative clustering with a spatial regularization constraint) to the latent tokens of an image, they automatically extract a hierarchical object-part-subpart decomposition.
  2. Hierarchy-Conditioned Denoising: The core generative model is a single, shared Diffusion Transformer (DiT) trained using a one-step flow-matching formulation (specifically, an improved MeanFlow backbone). At each stage $l$, the model takes fresh noise and maps it directly to the current semantic target canvas, conditioned on the decoded canvas from the previous stage.
  3. Interactive Editing Workflow: Because generation is Markovian (each level only depends on the one right before it), users can intervene at any stage. TF supports two main editing types:
  4. Feature Editing: Swapping the semantic identity of a region (e.g., changing a lemon to an orange) while keeping the layout intact.
  5. Shape Editing: Modifying the spatial boundaries of a region (e.g., making an animal's nose bigger).
The Trajectory Forcing pipeline for building hierarchies and denoising.

Datasets

The model was trained and evaluated on the standard ImageNet dataset at $256\times256$ resolution.

Because traditional generative metrics like FID only evaluate the final output distribution, the authors also introduced two new trajectory-aware evaluation metrics:

  • Latent Invariance Score (LIS): Measures whether editing a specific region at an intermediate level introduces unintended changes to unedited regions downstream.
  • Parent Misrouting Rates (PMR): Measures structural consistency by checking if child-level regions stay cleanly contained within their parent-level boundaries across generation steps.

Key Insights and Ideas

  • DINOv2 as a Semantic Substrate: Traditional VQ-VAE latent spaces struggle to provide meaningful semantic groupings when clustered. DINOv2 features, however, naturally disentangle layout, identity, and parts, making them ideal for unsupervised hierarchy building.
  • Efficiency via One-Step Flow Matching: Multi-stage generation can easily become computationally prohibitive if each stage requires dozens of denoising steps. By integrating one-step flow matching at each level, TF generates a full hierarchy in just $L$ Network Function Evaluations (NFEs), making it as fast as standard few-step generators.
  • Predictable Scope Control: The level at which a user edits an image directly controls the impact of the edit. Modifying the coarse object/background level causes a global semantic cascade, while editing the subpart level ensures changes remain strictly localized.

Key Results

  • Competitive Quality & Fast Convergence: Despite focusing on trajectory control rather than pure optimization, TF achieves highly competitive results on ImageNet. At just 80 training epochs, the largest model (TF-H/16) achieved an FID of 5.97 (which drops to 1.98 when using an optional post-training Fréchet Distance loss refinement).
  • Strong Local Invariance: Quantitative evaluation using the new LIS metric confirmed that finer edits remain highly localized, proving that the model respects user-defined boundaries during downstream refinement.
  • Structural Coherence: The Spatial PMR metric remained near zero across all levels, demonstrating that the model successfully prevents "structural drift" as it transitions from coarse layouts to fine details.

Limitations and Future Work

  • The Center Prior Assumption: To separate objects from backgrounds at the coarsest level, the unsupervised clustering algorithm assumes a "center prior" (the object is near the middle). This limitation means the current pipeline may struggle with complex, multi-object scenes or off-center subjects.
  • Indirect Information Flow: Because the generation chain is strictly Markovian, information from the coarsest levels only reaches the finest levels indirectly through the intermediate steps, which could occasionally dilute global intent.
  • Future Directions: The authors suggest replacing the unsupervised clustering step with richer, open-world segmentation models (like SAM) to handle complex scenes, implementing adaptive hierarchy depths, and extending the framework to text-to-image generation.

Summary updated

BibTeX
@misc{kocabas2026trajectory,
  author = {Merve Kocabas and Gege Gao and Bernhard Schölkopf and Andreas Geiger},
  title = {{Trajectory Forcing: Structure-First Generation with Controllable Semantic Trajectories}},
  year = {2026},
  eprint = {2606.22527},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.22527},
}
Figure