Ontology-Guided Diffusion for Zero-Shot Visual Sim2Real Transfer
Organizations: University of Stuttgart, Germany · Fraunhofer IPA, Germany
Abstract
Bridging the simulation-to-reality (sim2real) gap remains challenging as labelled real-world data is scarce. Existing diffusion-based approaches rely on unstructured prompts or statistical alignment, which do not capture the structured factors that make images look real. We introduce Ontology- Guided Diffusion (OGD), a neuro-symbolic zero-shot sim2real image translation framework that represents realism as structured knowledge. OGD decomposes realism into an ontology of interpretable traits -- such as lighting and material properties -- and encodes their relationships in a knowledge graph. From a synthetic image, OGD infers trait activations and uses a graph neural network to produce a global embedding. In parallel, a symbolic planner uses the ontology traits to compute a consistent sequence of visual edits needed to narrow the realism gap. The graph embedding conditions a pretrained instruction-guided diffusion model via cross-attention, while the planned edits are converted into a structured instruction prompt. Across benchmarks, our graph-based embeddings better distinguish real from synthetic imagery than baselines, and OGD outperforms state-of-the-art diffusion methods in sim2real image translations. Overall, OGD shows that explicitly encoding realism structure enables interpretable, data-efficient, and generalisable zero-shot sim2real transfer.
Figures & tables
| Method | Accuracy (%) | ROC–AUC |
|---|---|---|
| CLIP features | 59.6 | 0.88 |
| End-to-end CNN | 76.5 | 0.68 |
| Traits meta-classifier | 97.0 | 0.90 |
| Ours (Traits + GNN meta-classifier) | 98.4 | 0.99 |
| Method | TraitDist | LPIPS | SSIM |
|---|---|---|---|
| I-Pix2Pix | 0.702 0.413 | 0.315 0.247 | 0.534 0.332 |
| ControlNet | 3.533 0.717 | 0.530 0.116 | 0.286 0.150 |
| Ours | 0.593 0.509 | 0.275 0.220 | 0.562 0.307 |
| Configuration | TraitDist | LPIPS | SSIM |
|---|---|---|---|
| Full model (ours) | 0.693 | 0.275 | 0.562 |
| – w/o realism graph | 0.842 | 0.312 | 0.524 |
| – w/o symbolic planning | 0.781 | 0.298 | 0.538 |
| – w/o KG alignment loss | 0.756 | 0.287 | 0.546 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Source Trait (Observable / Inferable) | Target Trait | Rel. | Supporting Evidence | |
|---|---|---|---|---|
| Visually Observable and Scene-Inferable Trait Relationships | ||||
| Lighting: Uniform | Shadows: Present | opposes | Diffuse illumination eliminates cast shadows as spatial cues ( Ferwerda, 2003 ) . | |
| Shadows: Present | Scene Consistency: Object Interaction | supports | Cast shadows convey spatial relationships between objects ( Ferwerda, 2003 ) . | |
| Optical & Sensor Artifacts: Chromatic Aberration | Edge & Geometry: Perfect Geometry | opposes | Color fringing along high-contrast edges disrupts geometric precision ( Carlson et al., 2018 ) . | |
| Optical & Sensor Artifacts: Blur or Depth of Field | Optical & Sensor Artifacts: Noise Present | supports | Blur and noise commonly co-occur as visible image degradations ( Carlson et al., 2018 ) . | |
| Optical & Sensor Artifacts: Noise Present | Optical & Sensor Artifacts: Compression Artifacts | supports | Noise interacts with compression, producing visible artifacts ( Elmquist and Negrut, 2021 ) . | |
Sim-to-Real Transfer
Simulation-to-reality transfer adapts models and policies trained in simulation for reliable performance in physical or otherwise real-world settings.
See all 316 papers