DreamFusion
Poole 2023 · Paper
One-line summary — DreamFusion uses a pretrained 2D text-to-image diffusion model (Imagen) as a frozen prior to optimize a NeRF from a text prompt alone, via the Score Distillation Sampling (SDS) loss, enabling text-to-3D generation without any 3D training data.
Problem
Text-to-image synthesis was transformed by diffusion models trained on billions of image-text pairs, but adapting the recipe to 3D would require two things that did not exist: large-scale labeled 3D data and efficient architectures for denoising 3D data directly. NeRF had shown a 3D scene can be a network optimized purely through image-space losses on its renderings. DreamFusion asks whether a frozen 2D diffusion model can be that image-space loss — sampling in NeRF parameter space rather than pixel space, so all 3D knowledge is distilled out of a purely 2D prior.
Method & architecture
Diffusion prior. A text-conditioned diffusion model is trained with the weighted denoising objective and DreamFusion uses its classifier-free-guided noise prediction with an unusually large guidance weight .
Score Distillation Sampling. A differentiable image parameterization (here: a NeRF renderer) is optimized so its renders look like samples. Differentiating through the U-Net is expensive and poorly conditioned; omitting the U-Net Jacobian gives the SDS gradient which the paper proves is the gradient of a weighted probability-density-distillation loss, . No backpropagation through the diffusion model is needed — it acts as a frozen critic whose noise residual points toward higher-density images for prompt .
NeRF with shading. The 3D canvas is a mip-NeRF 360 variant whose MLP outputs density and albedo, , composited with standard volume-rendering weights , . Surface normals come from the density gradient, , and each point is Lambertian-shaded by a randomly placed point light : Randomly swapping the albedo for white gives “textureless” renders, preventing degenerate flat-billboard solutions where scene content is painted onto flat geometry.
Per-prompt optimization loop. Each iteration: (1) sample a random camera (elevation to , full azimuth, distance 1–1.5) and light; (2) render the shaded NeRF at 64×64, choosing among illuminated, albedo-only, and textureless renders; (3) append view-dependent text (“front/side/back/overhead view”) to the prompt and compute the SDS gradient with the frozen 64×64 Imagen base model (, ); (4) update NeRF weights with Distributed Shampoo. 15,000 iterations take ~1.5 hours on a 4-chip TPUv4; opacity and orientation regularizers keep the density field clean.
Results
Evaluated with CLIP R-Precision (can CLIP retrieve the correct caption from a rendering?) on the 153 object-centric COCO prompts of Dream Fields, over both color and textureless geometry (“Geo”) renders:
| Method | B/32 Color | B/32 Geo | B/16 Color | B/16 Geo | L/14 Color | L/14 Geo |
|---|---|---|---|---|---|---|
| GT MS-COCO images | 77.1 | – | 79.1 | – | – | – |
| Dream Fields | 68.3 | – | 74.2 | – | – | – |
| CLIP-Mesh | 67.8 | – | 75.8 | – | 74.5 | – |
| DreamFusion | 75.1 | 42.5 | 77.5 | 46.6 | 79.7 | 58.5 |
DreamFusion approaches ground-truth-image consistency on color renders while being the only method with strong geometry scores (CLIP-trained baselines collapse to ~1 Geo, revealing texture painted on flat shapes). Ablations show viewpoint augmentation, view-dependent prompts, lighting, and textureless renders each improve geometry, with full renders improving by +12.5%. The optimized models can be viewed from any angle, relit, and composited into 3D environments. Known limitations from the paper: SDS is mode-seeking, yielding oversaturated/oversmoothed results and little diversity across seeds.
Why it matters for SLAM
DreamFusion connected two previously separate threads — neural rendering (NeRF) and generative diffusion models — and its SDS loss was immediately reused in a large family of follow-up text-to-3D works (Magic3D, ProlificDreamer, and others). For SLAM, it established the idea that a generative 2D prior can hallucinate plausible 3D structure: the same mechanism can, in principle, complete texture and geometry in the unobserved regions of a SLAM map, a recurring theme in generative map completion and Spatial AI research.