Manuscript Offprint

arXiv:2610.29581

Unlocking Spatial Grounding in Flow-Matching Models via SNR Tuning

Martin Thißen, Elke Hergenröther

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Despite the success of foundation models in image synthesis, achieving fine-grained spatial control remains a significant challenge, typically requiring auxiliary structural adapters or complex inference-time steering. While modern vision-language (VLM) text encoders possess the latent capacity to represent spatial coordinates, generative models often fail to leverage this information. We demonstrate that the signal-to-noise ratio (SNR) distribution is a critical determinant of spatial grounding in flow-matching models. Using a novel synthetic benchmark of geometric primitives, we isolate structural mechanics from textural complexity inherent in natural imagery and introduce a rigorous color-aware layout metric to quantify spatial fidelity. We show that training on a centered SNR distribution results in poor layout adherence (25.9%). Instead, we identify high-noise regimes as a "critical learning phase" for spatial grounding. Shifting the training focus toward these stages increases layout adherence to 80.8%, effectively reaching the 83.6% reconstruction ceiling of the underlying variational autoencoder. We find that the necessity for this shift scales with resolution and aspect ratio variance, and that the conservative noise schedules employed by models like FLUX.1 are insufficient for precise layout adherence. Finally, we show that these findings translate to real-world imagery via the COCO dataset (1.0 vs. 57.3 Average Precision), where state-of-the-art layout adherence is unlocked through distribution tuning alone, without architectural modifications.

1 Introduction

The rapid evolution of diffusion [1, 46] and flow-matching [2, 64] models is outpacing the adoption of these models for specialized use cases. In particular, while new state-of-the-art image synthesis models [1, 2, 4, 5] are frequently released, achieving fine-grained spatial control over their outputs typically requires adopting one of two paradigms. The first involves training-based methods, which utilize auxiliary structural adapters such as ControlNet [68], GLIGEN [7], or CreatiLayout [67]. The second relies on training-free methods, which steer the generation process of frozen backbones during inference to follow a target layout. However, adapters are often tightly coupled to specific model architectures, making them costly to retrain for each new release, while training-free methods often struggle with complex layouts or specific architectural constraints. This creates a critical need to understand why foundation models struggle to generate images that follow layouts from text alone.

© 2026. The copyright of this document resides with its authors. It may be distributed unchanged freely in print or electronic forms.

Standard pre-trained models typically fail to interpret 2D coordinates embedded in text prompts, often treating them as non-spatial semantic tokens rather than geometric constraints. In contrast, recent advancements in vision-language models (VLMs), such as the Qwen-VL series [1, 2], demonstrate that multimodal embeddings can successfully encode spatial relationships and discrete coordinates for tasks like object detection and grounding. This suggests that their multimodal embedding space already possesses the latent capacity to represent spatial information. As state-of-the-art text-to-image models increasingly adopt VLM-based text encoders, it remains an open question why the generative process fails to leverage this innate grounding capability. Therefore, we investigate whether, and under what conditions, text-to-image models can learn to follow explicit 2D layout specifications encoded solely in text prompts.

To this end, we examine the grounding capabilities of flow-matching models by fine-tuning them to interpret 2D coordinates directly from text prompts without introducing structural modifications. To isolate the mechanisms of spatial grounding, we first construct a controlled synthetic dataset of geometric primitives, enabling exact, pixel-level assessment of layout fidelity (Fig. 1(a)). Our analysis reveals that the signal-to-noise ratio (SNR) distribution is the critical determinant of spatial grounding. We find that training on a balanced SNR distribution actually hinders the model from accurately learning coordinate-based constraints. Instead, biasing the training toward high-noise regimes, where global structure is established, allows the model to internalize the relationship between text tokens and spatial coordinates. Notably, we find that this distribution shift is necessary even at lower resolutions (256²), and that the conservative shifts employed by recent models like FLUX.1 [24] are insufficient for precise layout adherence. Finally, we demonstrate that these principles successfully translate to real-world imagery via the COCO dataset [28] (Fig. 1(b)), showing that state-of-the-art layout adherence can be unlocked in standard flow-matching models through distribution tuning alone, without the need for specialized architectural extensions.

Taken together, our results demonstrate that high-fidelity spatial control is a latent capability in state-of-the-art flow-matching models that can be unlocked by strategically shifting the SNR distribution during training, without requiring any architectural modifications. We show that the high-noise regime serves as a "critical learning phase" for spatial grounding, forcing the model to internalize geometric constraints when global structure is not yet observable. Our main contributions are as follows:

• Identification of SNR as a Key Facilitator: We provide a systematic study showing that biasing the SNR distribution toward high-noise regimes is essential for teaching models to interpret 2D coordinates embedded in text.

• A Synthetic Benchmark for Spatial Precision: We introduce a benchmark consisting of geometric primitives that enables the exact, pixel-level quantification of layout adherence, isolating grounding mechanics from the textural complexities of real-world images.

• Transfer to Real-World Imagery: We provide empirical evidence that these insights translate to complex real-world imagery via the COCO dataset, achieving state-of-the-art layout adherence in standard flow-matching models through distribution tuning alone, bypassing the need for specialized structural adapters.

Figure

(a) Synthetic Images

(b) Real-World Images

Figure 1: From Synthetic Experiments to Real-World Transfer. Layout adherence is first studied in a controlled synthetic setting, using color-filled regions as exact ground truth (left). This allows an isolated validation before extending the approach to real images (right).

References (58)

  • Qwen3-VL Technical Report
  • Qwen2.5-VL Technical Report
  • Siyu Cao, Hangting Chen, Peng Chen, Yiji Cheng, Yutao Cui, Xinchi Deng, Ying Dong, Kipper Gong, Tianpeng Gu, Xiusen Gu, et al. Hunyuanimage 3.0 technical report. https://arxiv.org/abs/2509.23951, 2025. (opens arXiv in a new tab)
  • Training-free layout control with cross-attention guidance
  • Hico: Hierarchical controllable diffusion model for layout-to-image generation
  • Be yourself: Bounded attention for multi-subject text-to-image generation
  • Diffusion models beat gans on image synthesis
  • Build-a-scene: Interactive 3d layout control for diffusion-based image generation
  • Scaling rectified flow transformers for high-resolution image synthesis
  • Instagen: Enhancing object detection by training on synthetic dataset
  • Ranni: Taming text-to-image diffusion for accurate instruction following
  • Generative adversarial nets
  • Plangen: Towards unified layout planning and image generation in auto-regressive vision language models
  • Clip-score: A reference-free evaluation metric for image captioning
  • Gans trained by a two time-scale update rule converge to a local nash equilibrium
  • Denoising diffusion probabilistic models
  • simple diffusion: End-to-end diffusion for high resolution images
  • Analyzing and improving the training dynamics of diffusion models
  • YOLOv11: An Overview of the Key Architectural Enhancements
  • Understanding diffusion objectives as the elbo with simple data augmentation
  • Flux.1 context: Flow matching for in-context image generation and editing in latent space (opens arXiv in a new tab)
  • Groundit: Grounding diffusion transformers via noisy patch transplantation
  • Control and realism: Best of both worlds in layout-to-image without training
  • Gligen: Open-set grounded text-to-image generation
  • Microsoft coco: Common objects in context
  • Flow matching for generative modeling
  • Training-free composite scene generation for layout-to-image synthesis
  • Flow-grpo: Training flow matching models via online rl
  • Advances in Neural Information Processing Systems, 38:82155–82192, 2026
  • Flow straight and fast: Learning to generate and transfer data with rectified flow
  • Small batch size training for language models: When vanilla SGD works, and why gradient accumulation is wasteful
  • Scalable diffusion models with transformers
  • Grounded text-to-image synthesis with attention refocusing
  • SDXL: Improving latent diffusion models for high-resolution image synthesis
  • Learning transferable visual models from natural language supervision
  • Exploring the limits of transfer learning with a unified text-to-text transformer
  • High-resolution image synthesis with latent diffusion models
  • Improved techniques for training gans
  • Adafactor: Adaptive learning rates with sublinear memory cost
  • Noisecollage: A layout-aware text-to-image diffusion model based on noise cropping and merging
  • Score-based generative modeling through stochastic differential equations
  • Z-Image Team. Z-image: An efficient image generation foundation model with single-stream diffusion transformer. https://arxiv.org/abs/2511.22699, 2025. (opens arXiv in a new tab)
  • Ske-layout: Spatial knowledge enhanced layout generation with llms
  • Instancediffusion: Instance-level control for image generation
  • Qwen-Image Technical Report
  • Hybrid layout control for diffusion transformer: Fewer annotations, superior aesthetics
  • R&b: Region and boundary aware zero-shot grounded text-to-image generation
  • Freestyle layout-to-image synthesis
  • Law-diffusion: Complex scene generation by diffusion with layouts
  • $psi$-sampler: Initial particle sampling for SMC-based inference-time reward alignment in score models
  • Larender: Training-free occlusion control in image generation via latent rendering
  • Creatilayout: Siamese multimodal diffusion transformer for creative layout-to-image generation
  • Adding conditional control to text-to-image diffusion models
  • Diffusion transformers with representation autoencoders
  • Layoutdiffusion: Controllable diffusion model for layout-to-image generation
  • Migc: Multi-instance generation controller for text-to-image synthesis
  • 3dis-flux: Simple and efficient multi-instance generation with dit rendering (opens arXiv in a new tab)
  • 3DIS: Depth-driven decoupled image synthesis for universal multi-instance generation