GeoGrain: Granularity-Aware Layout-to-Image Generation for Small Objects in Remote Sensing Imagery

Taehwan Kim, Jeonghyeok Do, Munchurl KimarXiv 2026

TL;DR

Generating realistic satellite or aerial imagery from scratch is useful for training object detectors, except current diffusion models struggle to paint tiny, angled objects—like cars in a parking lot—inside exact bounding boxes. GeoGrain solves this by selectively zooming in its latent token grid only where objects exist and explicitly teaching each local image patch how a bounding box slices through it. The result is synthetic overhead imagery so geometrically faithful that object detectors score nearly as high on it as they do on real photographs.

What Problem Does This Paper Address?

From a satellite's vantage point, the world is tiny, crowded, and rotated at arbitrary angles. Training computer vision models to spot ships or vehicles in remote sensing imagery requires Oriented Bounding Boxes (OBBs)—tilted rectangles that hug an object's heading. Because manually drawing thousands of tiny tilted boxes is exhausting, researchers use Layout-to-Image (L2I) diffusion models to generate synthetic training images from prescribed OBB maps.

However, standard L2I models hit two walls when objects shrink to just 10–16 pixels wide:

  1. Coarse Latent Grids: Modern Diffusion Transformers (DiTs) compress images into a uniform grid of patches ("image tokens"). A car might occupy just one token, giving the network almost no spatial canvas to render a distinct shape or angle.
  2. Implicit Geometry: Prior methods hand the model a list of global box coordinates and expect it to figure out which image tokens correspond to the front bumper versus the windshield. For tiny, densely packed objects, the model loses the plot—blurring cars together, Rotating them wrong, or skipping them entirely.
Figure 2. Granularity-aware conditioning and synthesis. (a) Prior DiT-based L2I methods [9, 36] use object-level box condi- tions and a coarse, uniform image-token grid, leaving local OBB geometry implicit and only a few tokens available for small ob- jects. (b) GeoGrain adds local OBB geometry to layout tokens at corresponding image-token positions and subdivides only the image-token grid cells overlapping the input OBBs.

Methods

GeoGrain builds on a frozen, pretrained Multimodal Diffusion Transformer (FLUX.2 [klein] 4B Base), adding a trainable parallel branch for layout control—a standard dual-branch setup. What is new is how GeoGrain manipulates resolution and geometry before and after denoising:

  • GATE (Granularity-Aware Token Expansion): Instead of running the entire image at high resolution (which is computationally expensive), GATE finds any coarse image-token cell overlapping an input OBB and splits it into a $2 \times 2$ grid of fine tokens. Background areas stay coarse. At inference, since the frozen image decoder expects a uniform grid, GeoGrain decodes both a coarse view and a $2\times$ upsampled fine view, stitching them seamlessly via Laplacian-pyramid blending.
  • GAGE (Granularity-Aware Geometry Encoding): Rather than creating one layout token per object, GAGE creates a layout token for every pair of intersecting object and grid cell. Each token encodes the class, global OBB, the exact polygon where the box intersects that specific grid cell, and the cell's coordinates relative to the object's center and tilt. Each layout token shares the exact Rotary Position Embedding (RoPE) index as its matching image token.
  • Masked Flow-Matching Loss: To save memory during training, L2I models usually cap the input layout at 15 objects per image—even if the real photo has 50. Standard losses inadvertently teach the model to hallucinate the remaining 35 "unlisted" cars. GeoGrain masks out the training loss on grid cells containing omitted ground-truth objects so the model learns to generate only what is requested.
Figure 3. Overview of GeoGrain. (a) Frozen image–text and trainable image–layout branches jointly denoise mixed-resolution image tokens. (b) On the mixed-resolution grid, GAGE combines class labels, global OBB coordinates, local intersection geometry Qij, and object-relative coordinates Rij into one layout token per intersecting OBB–cell pair. (c) GATE replaces each coarse token whose grid cell overlaps an input OBB with four fine tokens, retaining coarse tokens elsewhere. For reconstruction, uniform latent grids are assembled at coarse and fine scales, and the decoded images are blended. The local descriptors in (b) are schematic; full definitions appear in Sec. 3.2.

Datasets

No new datasets are introduced, though the authors note this is the first L2I study evaluated on benchmarks specifically built for oriented small-object detection (using $512 \times 512$ crops):

  • SODA-A: Aerial Google Earth imagery featuring 9 classes (e.g., airplanes, helicopters, small vehicles) with an average object size of ~16.2 pixels.
  • AI-TOD-R: A tiny-object benchmark aggregated from five satellite/drone sources across 8 classes, with an average object size of just ~10.8 pixels.
  • DIOR-R (Appendix): A general remote sensing benchmark (20 classes, ~35.0 px mean object size) used to verify generalization to larger structures like stadiums and harbors.

Key Insights and Ideas

  • Dual-branch architectures fail on their own: Without GAGE and GATE, a standard dual-branch DiT achieves a dismal 0.5 AP on SODA-A. Explicit token-level alignment is what unlocks small-object control.
  • Mixed resolution beats uniform high-res—in both speed and quality: Surprisingly, GATE's mixed-resolution grid outperforms a full $2\times$ high-resolution uniform grid in layout fidelity (+4.1 AP) and visual quality (FID of 10.24 vs. 17.15), while cutting token count by 71% and inference time by 58%.
  • Synergy at strict IoU thresholds: Finer tokens (GATE) and local geometry (GAGE) help individually, but combining them causes strict localization accuracy ($\text{AP}_{75}$) to jump by 8.3 points, proving that fine spatial canvases need equally fine geometric instructions.

Key Results

  • Layout Fidelity: Evaluated with a pre-trained detector, GeoGrain achieves 29.6 AP on SODA-A and 9.0 AP on AI-TOD-R—beating the strongest baseline (TerraDiT-$\Omega$) by +18.6 and +6.3 AP, respectively. Remarkably, this matches the detector's ceiling on real test images (29.0 AP and 9.1 AP).
  • Visual Quality: GeoGrain slashes object-level SceneFID from 14.94 to 4.02 on AI-TOD-R, rendering crisp, distinct vehicles and ships even in crowded marinas and parking lots.
  • Downstream Data Augmentation: Augmenting real training sets with GeoGrain's synthetic images boosts downstream detector performance by +1.8 AP (SODA-A) and +2.1 AP (AI-TOD-R), whereas competing generators yield at most +0.4 AP (and often hurt performance).
Figure 1. Precise small-object control with GeoGrain. Left: Qualitative comparison on the SODA-A [5] dataset using the same input layout. Insets show enlarged red-boxed regions, highlighting object detail and OBB alignment. Right: Generation quality and Layout fidelity on the SODA-A and AI-TOD-R [31] datasets. Higher normalized scores indicate better performance.

Limitations and Future Work

  • Inference Speed: Because it relies on a 4B-parameter DiT over 50 denoising steps, GeoGrain takes ~5 seconds per image on an NVIDIA B200 GPU (slower than lightweight U-Net baselines at ~3 seconds). Few-step distillation is a natural next step.
  • Unlabeled Objects in Real Data: If a real training image contains an unannotated car, the Masked FM loss doesn't know to mask it out—causing occasional stray objects at inference. Auto-labeling missing objects in training sets could clean this up.
  • Layout Diversity: For detector augmentation, the authors generated new layouts by simply flipping and shifting existing ones. Learning to synthesize brand-new, realistic spatial layouts from scratch remains an open frontier.

Summary updated

BibTeX
@misc{kim2026geograin,
  author = {Taehwan Kim and Jeonghyeok Do and Munchurl Kim},
  title = {{GeoGrain: Granularity-Aware Layout-to-Image Generation for Small Objects in Remote Sensing Imagery}},
  year = {2026},
  eprint = {2611.38211},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38211},
}
Figure