Self-Supervised Real-to-Sim Scene Generation

Aayush Prakash, Shoubhik Debnath, Jean-Francois Lafleche, Eric Cameracci, Gavriel State, Stan Birchfield, Marc T. Law · DOI

Abstract

Synthetic data is emerging as a promising solution to the scalability issue of supervised deep learning, especially when real data are difficult to acquire or hard to annotate. Synthetic data generation, however, can itself be prohibitively expensive when domain experts have to manually and painstakingly oversee the process. Moreover, neural networks trained on synthetic data often do not perform well on real data because of the domain gap. To solve these challenges, we propose Sim2SG, a self-supervised automatic scene generation technique for matching the distribution of real data. Importantly, Sim2SG does not require supervision from the real-world dataset, thus making it applicable in situations for which such annotations are difficult to obtain. Sim2SG is designed to bridge both the content and appearance gaps, by matching the content of real data, and by matching the features in the source and target domains. We select scene graph (SG) generation as the downstream task, due to the limited availability of labeled datasets. Experiments demonstrate significant improvements over leading baselines in reducing the domain gap both qualitatively and quantitatively, on several synthetic datasets as well as the real-world KITTI dataset.

Introduction

Deep learning thrives on massive labeled datasets, but for complex tasks like Scene Graph (SG) generation—where a model must identify objects and their spatial relationships (e.g., "car behind car")—manual annotation is prohibitively expensive and slow. Synthetic data offers a potential solution by providing "free" ground-truth labels. However, models trained on simulation often fail on real-world data due to the domain gap, which consists of the appearance gap (texture, lighting) and the content gap (scene layout and object distribution). Sim2SG aims to solve both gaps in a completely self-supervised manner, without requiring labeled real data.

Methodology

The core of Sim2SG is a synthesis-by-analysis loop consisting of two alternating stages:

  1. Synthesis (Real-to-Sim): The model takes an unlabeled real image and predicts a scene graph. This graph is then fed into a synthetic data generator to create a "labeled sim" version of that real scene, directly addressing the content gap.
  2. Analysis (Sim-to-Real): The model is trained using these newly generated, labeled synthetic images.
The Sim2SG framework featuring the Real-to-Sim synthesis and Sim-to-Real analysis loop.

To further refine the model, Sim2SG utilizes Gradient Reversal Layers (GRLs) as an adversarial mechanism. One GRL aligns latent features to bridge the appearance gap, while another aligns output features to ensure consistent content prediction across domains. A "warm-up" strategy is employed to stabilize training by aligning content before attempting to bridge the appearance gap.

Experimental Results

Sim2SG was evaluated across three environments: CLEVR (geometric shapes), Dining-Sim (realistic indoor arrangements), and KITTI (real-world driving). The framework consistently outperformed baselines like Structured Domain Randomization (SDR) and Meta-Sim.

  • CLEVR: Achieved a 0.892 mAP, nearly closing the domain gap.
  • Dining-Sim: Reached 0.729 mAP, a significant improvement over the 0.584 mAP baseline.
  • KITTI: In "Hard" evaluation mode, Sim2SG improved object detection mAP from 0.234 to 0.316 and nearly doubled relationship triplet recall compared to the baseline.
Qualitative progression of synthetic scene generation over training epochs compared to the target real-world distribution.

Qualitatively, the images generated by Sim2SG show a striking progression. Starting from random placements, the simulator learns the "grammar" of the scene—placing cars on roads and houses behind sidewalks—mimicking the structure of real-world images without manual supervision.

Conclusion

Sim2SG demonstrates that self-supervised alignment of both content and appearance can significantly bridge the reality gap for scene graph generation. While challenges remain regarding class imbalance and simulator dependencies, the "synthesis-by-analysis" approach provides a scalable path for training robust models on synthetic data tailored to real-world distributions.

Summary updated

BibTeX
@inproceedings{prakash2021self,
  author = {Aayush Prakash and Shoubhik Debnath and Jean-Francois Lafleche and Eric Cameracci and Gavriel State and Stan Birchfield and Marc T. Law},
  title = {{Self-Supervised Real-to-Sim Scene Generation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01574},
}
Figure