TL;DR
If you ask an AI image generator to draw a highway overpass using only a 2D road map, it will often flatten it into a standard four-way intersection—because from above, both share the exact same 2D footprint. Graph2Road solves this by conditioning a diffusion model on road graphs (which explicitly encode whether crossing roads actually connect) and refining it with a targeted preference-optimization trick, generating realistic satellite imagery of complex overpasses that can even be used to train better map-extraction models.
What Problem Does This Paper Address?
Mapping road networks from satellite imagery is a cornerstone of navigation and urban planning. Overpasses are the hardest part of this job: because roads stack on top of one another, upper levels hide lower ones, making manual annotation slow and expensive.
A natural workaround is to flip the problem around—use generative AI to synthesize realistic satellite images from existing road layouts, creating free training data. However, current remote sensing generators rely on 2D spatial conditions like pixel masks, edge contours, or bounding boxes. These tell the model where roads are, but not how they connect. As a result, a 2D mask of a grade-separated overpass looks identical to a flat crossroad, and generators routinely hallucinate at-grade junctions where bridges should be.
Road graphs solve this topological ambiguity: two roads meeting at a shared graph node form a crossroad, while two roads crossing without a shared node are vertically separated. Yet feeding discrete graphs into diffusion models—and figuring out which road should pass over the other—remained an open challenge.
Methods
Graph2Road builds on the FLUX.1-dev diffusion transformer, keeping the backbone frozen and training only rank-16 LoRA adapters alongside a new graph encoder. The framework works in two stages:
- Graph Spatial Encoder (GSE): To bridge discrete graphs and dense image tokens, GSE locates candidate overpass crossings (where edges intersect without sharing a node) and extracts local road paths around them. Each path is resampled into a 6-point polyline, passed through Fourier encoding and an MLP, and given a learnable index to form edge tokens. For every pair of paths in a local region, GSE concatenates their edge tokens with a binary connectivity label ($1$ if they share a node, $0$ if they don't) to create relation tokens. Both token sets are fed into the diffusion transformer's joint attention alongside text, road mask, and noisy latent tokens.
- Overpass Structure Optimization (OSO): Planar road graphs still don't say which road goes above the other, so the first-stage model can still produce physically absurd layouts (like a riverside road running on top of a river-crossing bridge). Inspired by Diffusion-DPO, OSO samples 8 candidate images per condition, pairs manually selected "realistic" and "implausible" outputs, and fine-tunes the model to prefer the realistic ones. Crucially, instead of averaging the denoising error over the whole image, OSO uses a crossing-weighted denoising error—a Gaussian weight map centered on the crossings—so that background pixels (trees, buildings) don't drown out the structural signal.
Datasets
- RoadGen (Newly Introduced): Built on top of Global-Scale, RoadGen is a dedicated multimodal dataset centered on overpass scenes. The authors mined crossings without shared nodes, manually filtered out duplicates and truncated overpasses, and used Qwen3-VL-32B to generate text captions. It contains 3,500 training, 497 validation, and 917 test overpass patches ($512 \times 512$ pixels at 1 m/pixel), plus 38,000 auxiliary patches added to the training split to enrich background diversity. Each sample pairs a satellite image with a road mask, local road graph, and caption.
- CityScale: Used to evaluate downstream road graph extraction. The authors cropped 5,000 patches ($512 \times 512$) from CityScale's training tiles and used Graph2Road to synthesize 5,000 augmented training images.
Key Insights and Ideas
- Masks give geometry; graphs give topology: Neither condition is enough on its own. The road mask constrains road widths and spatial extents, while GSE's edge and relation tokens inject the exact crossing connectivity needed to separate bridges from intersections.
- Where you compute the loss matters as much as the loss itself: In remote sensing, roads occupy a tiny fraction of pixels. When the authors replaced OSO's crossing-weighted error with uniform weighting across the whole image, topological accuracy (APLS) barely budged (49.55 $\rightarrow$ 49.93). Focusing the preference loss on the crossings jumped APLS to 52.11.
- Synthetic data helps real-world extractors: Even though Graph2Road's synthetic images reuse existing training graphs, rendering diverse backgrounds, buildings, and occlusions under identical topology provides a genuine boost to downstream road-extraction models—something simple geometric augmentations (like cropping or rotating) cannot achieve.
Key Results
- Image Quality & Topology on RoadGen: Graph2Road outperforms five baselines (ControlNet-FLUX, CRS-Diff, GeoSynth, EarthSynth, and TerraDiT-$\Omega$) across all six metrics. It achieves a KID of 0.02874 (26% lower than ControlNet-FLUX's 0.03882) and an FID of 70.89. Most importantly, when running a road-graph extractor (SAM-Road++) on the generated images to measure topological fidelity (APLS), Graph2Road scores 52.11—beating the strongest baseline (EarthSynth at 37.93) by 14.18 points, and approaching the 59.07 ceiling of real test images.
- Ablations: Removing GSE drops APLS from 49.55 to 41.28, confirming it is the primary driver of topological accuracy. Removing OSO degrades perceptual quality (LPIPS worsens from 0.5235 to 0.5366) and leads to physically implausible stacking.
- Downstream Road Extraction (CityScale): Augmenting real training data with 5,000 Graph2Road-generated images improves all three tested extractors (SAM-Road, DeH4R, and LineGraph2Road) across APLS, TOPO F1, and IoU. Fine-tuning Graph2Road on CityScale before generating boosts APLS by +0.83 to +0.87 and IoU by +1.35 to +1.67.
Limitations and Future Work
Because RoadGen is derived from Global-Scale, its road graphs are strictly planar—meaning they do not encode which road is on a higher layer. Consequently, OSO can only encourage physically plausible stacking rather than explicitly controlling it, and it currently relies on manually ranked preference pairs. In future work, the authors plan to incorporate layer-aware ordering from OpenStreetMap into the relation tokens and automate the preference-ranking process.
Summary updated