NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generating Images with 3D Annotations Using Diffusion Models

Wufei Ma, Qihao Liu, Jiahao Wang, Angtian Wang, Xiaoding Yuan, Yi Zhang, Zihao Xiao, Guofeng Zhang, Beijia Lu, Ruxiao Duan, Yongrui Qi, Adam Kortylewski, Yaoyao Liu, Alan Yuille

Introduction: The 3D Control Bottleneck

While diffusion models like Stable Diffusion can generate breathtaking, photo-realistic images from text, they are notoriously difficult to control in 3D space. A prompt for a "car" will yield a car, but specifying its exact orientation, distance from the camera, or part-level geometry remains a significant challenge.

This lack of explicit 3D control creates a massive bottleneck for computer vision. Training robust models for tasks like 3D pose estimation or object recognition requires massive amounts of data labeled with precise 3D metadata. Because manually annotating real-world images with 3D information is prohibitively expensive and slow, there is a severe "data drought" for 3D-aware vision models. This deficit is especially pronounced in "out-of-distribution" (OOD) scenarios, such as identifying a vehicle from an unusual top-down angle or in extreme weather conditions.

To bridge the gap between 3D CAD models and photo-realistic image generation, researchers have introduced 3D Diffusion Style Transfer (3D-DST). By using 3D renders as "visual prompts" for diffusion models, this method generates diverse, high-quality training data paired with perfect, automatically generated 3D annotations.

Visualization of 3D-DST and performance comparison

Methodology: 3D Diffusion Style Transfer (3D-DST)

3D-DST is a pipeline that combines the structural precision of 3D graphics with the generative power of diffusion models. The process follows three main steps:

  1. 3D Visual Prompt Generation: The team extracts 3D CAD models from existing repositories (like ShapeNet and Objaverse) and renders them from a vast array of randomized viewpoints and distances. They then extract edge maps (using Canny edge detection) from these renders. These edge maps serve as a "structural skeleton" for the final image.
  2. Diverse Text Prompting via LLM: To ensure the generated images feature diverse contexts, the researchers employ a Large Language Model (LLaMA). By feeding the LLM basic object information (e.g., "airplane"), it generates rich, descriptive text prompts detailing various backgrounds, lighting conditions, and colors (e.g., "an airplane flying at high altitude during a sunset").
  3. Image Synthesis with ControlNet: The 3D edge map (visual prompt) and the LLM description (text prompt) are fed into ControlNet, an adapter for diffusion models that allows for spatial conditioning. ControlNet "fills in" the edge map with the style and context requested by the text.

The result is a photo-realistic image that perfectly matches the underlying 3D geometry of the original CAD render. Because the starting point was a known 3D model, the final image is automatically generated with perfect 3D ground-truth labels.

Key Insights

  • The "Structural Skeleton" Strategy: Using edge maps as the interface between 3D renders and diffusion models acts as a "Goldilocks" solution. Raw vertices or meshes are too complex for diffusion models to process efficiently, while simple text is too vague. Edge maps provide just enough geometric constraint to maintain 3D integrity while leaving room for creative style transfer.
  • LLMs as Diversity Engines: A common failure in generative data augmentation is "mode collapse," where the AI generates highly repetitive images. By using an LLM to brainstorm diverse environments, the authors successfully expanded the visual variety of the training data.
  • Fixing Viewpoint Bias: Standard datasets like ImageNet are heavily biased toward "typical" views (e.g., cars seen from the side). 3D-DST allows researchers to intentionally generate "rare" views, which is the primary reason their models perform significantly better on OOD benchmarks.

Datasets and Key Results

The researchers utilized ShapeNet and Objaverse for source 3D models. They evaluated classification on ImageNet-100/200 (In-distribution) and ImageNet-R (Out-of-distribution/Artistic renditions), and assessed 3D pose evaluation using PASCAL3D+, ObjectNet3D, and OOD-CV.

The empirical results demonstrate the power of explicit 3D geometry control:

  • Classification Boost: On ImageNet-100, using 3D-DST to augment the training data improved the accuracy of a DeiT-B model by 3.8 percentage points.
  • Superior OOD Robustness: The method showed significant gains in out-of-distribution settings. For 3D pose estimation on the PASCAL3D+ benchmark, it improved accuracy by 3.9% in-distribution and 2.4% in OOD settings.
  • Beating Standard Augmentation: 3D-DST consistently outperformed standard "Text-to-Image" augmentation (generating images from text alone without 3D control), proving that geometric constraints are vital for robust learning.

Limitations and Future Work

Despite its success, the model occasionally struggles with uncommon viewpoints that the underlying diffusion model rarely encountered during its own training (e.g., looking at a car from directly underneath). In these extreme cases, the diffusion model might ignore the edge map or produce "hallucinated" textures.

To mitigate this, the authors introduced a K-fold consistency filter (KCF) to automatically identify and discard poor-quality synthetic images. Future work will likely involve fine-tuning base diffusion models on more diverse, 3D-aware data to handle extreme perspectives more gracefully, as well as extending this framework from static images to video generation with consistent 3D trajectories.

Summary updated

BibTeX
@inproceedings{ma2024generating,
  author = {Wufei Ma and Qihao Liu and Jiahao Wang and Angtian Wang and Xiaoding Yuan and Yi Zhang and Zihao Xiao and Guofeng Zhang and Beijia Lu and Ruxiao Duan and Yongrui Qi and Adam Kortylewski and Yaoyao Liu and Alan Yuille},
  title = {{Generating Images with 3D Annotations Using Diffusion Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=XlkN11Xj6J},
}
Figure