# DreamFusion: Text-to-3D using 2D Diffusion

Text-to-3D works by optimizing a NeRF with a frozen 2D diffusion model

Ben Poole, Ajay Jain, Jonathan T. Barron, Ben Mildenhall · arXiv · 2022-9-29

- **Problem** Text-to-3D generation has no large paired 3D dataset to train on. Earlier text-guided methods like Dream Fields yield objects that lack realism and accuracy.
- **Method** DreamFusion optimizes a randomly initialized NeRF with a score distillation loss. Renderings pass through a frozen Imagen model, and its predicted noise is pushed into the NeRF weights, using no 3D training data.
- **Results** DreamFusion reaches 79.7 CLIP R-Precision on color renders and 58.5 on textureless renders, using CLIP L/14 on object-centric COCO prompts.

## Why 2D priors do not directly give 3D

Text-conditioned image generators became high-fidelity and controllable because they were trained on large aligned image-text collections. Explicit 3D generators need 3D training data, and that data is far scarcer than 2D images, so the same recipe does not carry over directly. GAN-based 3D generators work on single object categories such as faces, and they have not been shown to handle arbitrary text.

Dream Fields showed that frozen CLIP embeddings can steer NeRF optimization toward a text prompt, but the resulting 3D objects tend to lack realism and accuracy. The question this paper addresses is whether a pretrained 2D text-to-image diffusion model can supply that steering signal without any 3D data, with a loss that replaces CLIP.

## What a pretrained diffusion model provides

The forward process adds noise to data, so the latent at timestep t is Gaussian around a scaled copy of the data, with its noise level set by the schedule. \\( q(z\_t\|x)=\\mathcal{N}(\\alpha\_t x,\\sigma\_t^2 I) \\), and the coefficients are chosen so that the latent moves from close to the data at small t to close to unit Gaussian noise at the end.

The denoising network is trained with a weighted denoising score matching objective, which amounts to predicting the injected noise from the noisy latent. The predicted noise is tied to the score of the smoothed density through \\( \\epsilon\_\\phi(z\_t;t)=-\\sigma\_t s\_\\phi(z\_t;t) \\), so the network can be read as a score function.

Text-to-image models here are conditioned on text embeddings y and use classifier-free guidance, which mixes a conditional and an unconditional noise prediction. \\( \\hat\\epsilon\_\\phi(z\_t;y,t)=(1+\\omega)\\epsilon\_\\phi(z\_t;y,t)-\\omega\\epsilon\_\\phi(z\_t;t) \\), and a larger guidance scale \\( \\omega \\) trades diversity for sample fidelity.

## Why the diffusion training loss is not enough

The goal is to optimize parameters θ so that the image produced by a differentiable generator g, written x = g(θ), looks like a sample from the frozen diffusion model. For 3D, θ holds the parameters of a 3D volume and g is a volumetric renderer, so the search happens in parameter space rather than pixel space.

The first idea was to minimize the diffusion training loss over θ with x = g(θ), which treats low-loss images as plausible. Even with an identity mapping in place of the generator, this did not produce realistic samples, and the authors found the approach brittle to tune, even though a related work made it work with carefully chosen timestep schedules.

The gradient of that loss contains a term that backpropagates through the U-Net, which is costly and poorly conditioned at small noise levels. That U-Net Jacobian term is the piece the next step removes.

## Score Distillation Sampling update

Dropping the U-Net Jacobian leaves a gradient in which the noise residual \\( \\hat\\epsilon\_\\phi(z\_t;y,t)-\\epsilon \\) is multiplied by the generator Jacobian. \\\[ \\nabla\_\\theta L\_{SDS}(\\phi,x=g(\\theta))\\triangleq\\mathbb{E}\_{t,\\epsilon}\\left\[w(t)\\,(\\hat\\epsilon\_\\phi(z\_t;y,t)-\\epsilon)\\,\\frac{\\partial x}{\\partial\\theta}\\right\] \\\] Each step adds noise to the rendering at a random timestep t, and the update moves the rendering toward a higher-density region of the model.

\\\[ \\nabla\_\\theta L\_{SDS}=\\nabla\_\\theta\\mathbb{E}\_t\\left\[\\sigma\_t/\\alpha\_t\\,w(t)\\,KL\\left(q(z\_t\|g(\\theta);y,t)\\,\\\|\\,p\_\\phi(z\_t;y,t)\\right)\\right\] \\\]

The diffusion model is used only to predict the update direction, so no gradient flows through it; the model acts as a frozen critic that proposes image-space edits. Compared with ancestral sampling in pixel space, SDS produces detail of similar quality, but it operates in parameter space and so supports transfer to new settings.

## Rendering and shading the NeRF

A ray is cast per pixel, and points sampled along it pass through an MLP that outputs a volumetric density τ and a color; these are alpha-composited toward the camera. \\\[ C=\\sum\_i w\_i c\_i,\\quad w\_i=\\alpha\_i\\prod\_{j\<i}(1-\\alpha\_j),\\quad \\alpha\_i=1-\\exp(-\\tau\_i\\\|\\mu\_i-\\mu\_{i+1}\\\|) \\\] The base model is mip-NeRF 360, an improved NeRF that reduces aliasing, and its improvements are kept for the generative setting.

Here the MLP outputs an RGB albedo ρ for each point rather than view-dependent radiance, so the color belongs to the surface and is then lit by a controlled illumination. \\\[ (\\tau,\\rho)=\\mathrm{MLP}(\\mu;\\theta) \\\] The surface normal is the normalized negative gradient of density, \\( n=-\\nabla\_\\mu\\tau/\\\|\\nabla\_\\mu\\tau\\\| \\), and each point is shaded with diffuse reflectance.

\\\[ c=\\rho\\circ(\\ell\_\\rho\\circ\\max(0,\\,n\\cdot(\\ell-\\mu)/\\\|\\ell-\\mu\\\|)+\\ell\_a) \\\]

Albedo is randomly replaced by white during training, which yields a textureless shaded output. This stops the model from drawing text-matching content onto flat geometry, so a squirrel is pushed toward a 3D shape rather than a textured plane. Queries are limited to a fixed bounding sphere, and a second MLP supplies a background color that the rendering is composited onto, which keeps density from filling the space near the camera.

An opacity penalty and a modified orientation loss from Ref-NeRF keep density from filling empty space and keep normals facing the camera.

## One optimization iteration

Each iteration samples a camera and light, renders the NeRF, computes the SDS gradient with respect to the NeRF parameters, and updates those parameters with an optimizer. The camera elevation is drawn from −10° to 90°, the azimuth from 0° to 360°, and the distance from the origin from 1 to 1.5. A focal length multiplier is drawn from U(0.7, 1.35) and applied to the image width w = 64, and the point light is sampled around the camera position.

Wide camera ranges are described as critical for coherent 3D scenes.

Each rendering is chosen at random among the illuminated color render, the textureless render and the unshaded albedo. The text prompt is extended with view-dependent phrases: for elevation above 60°, the prompt receives “overhead view”, and below that a weighted mix of front, side and back view embeddings is used according to the azimuth.

The diffusion model is the pretrained 64 × 64 base text-to-image model from Imagen, conditioned on T5-XXL text embeddings, and it is used without modification. The weighting is \\( w(t)=\\sigma\_t^2 \\), timesteps are drawn from U(0.02, 0.98), and the classifier-free guidance weight is set to ω = 100. That guidance weight is much larger than in image sampling, which the authors relate to the mode-seeking objective that oversmooths at small guidance weights.

Rendering and diffusion evaluation take roughly equal shares of compute, and the parameters are updated with Distributed Shampoo.

## Caption agreement against baselines

The metric is CLIP R-Precision, the accuracy with which CLIP retrieves the correct caption among distractors for a rendering. The evaluation uses the 153 prompts of the object-centric COCO validation subset from Dream Fields, and the same metric is also applied to textureless renders to probe geometry. The authors note that existing metrics do not capture geometry quality well, since they can be high when texture is painted onto flat geometry.

Baselines are Dream Fields, a reimplementation of Dream Fields using the paper's own 3D representation, CLIP-Mesh, and the ground-truth MS-COCO images. Dream Fields and CLIP-Mesh use CLIP during training, so their comparison is favorable to them.

On color renders, DreamFusion scores 75.1, 77.5 and 79.7 with CLIP B/32, B/16 and L/14, against 77.1 and 79.1 for ground-truth images with B/32 and B/16. Against the original Dream Fields (68.3 with B/32, 74.2 with B/16) and CLIP-Mesh (67.8 with B/32, 75.8 with B/16), DreamFusion scores higher, and the authors describe its B/16 score as approaching the ground-truth level.

The reimplemented Dream Fields scores 78.6 with B/32 and 82.9 with L/14 on color renders, which is higher than DreamFusion on those two rows, so the paper's statement that DreamFusion outperforms both baselines on color images holds only against the original Dream Fields and CLIP-Mesh.

On textureless renders, DreamFusion reaches 42.5, 46.6 and 58.5 R-Precision with B/32, B/16 and L/14. The CLIP-Mesh L/14 color score of 74.5 was evaluated with only one seed per prompt.

## Which optimization choices move the geometry

The ablation starts from a simplified base and adds, in order, a wider range of viewpoints, view-dependent prompts, illuminated renders alongside unlit albedo, and textureless shaded geometry. Each configuration is scored on the albedo render, the full shaded render and the textureless render, using CLIP L/14 on object-centric COCO.

Full shaded renderings improve by +12.5% when all choices are added. The base model scores highest on albedo renders but has poor geometry, with a dog that has several heads, so albedo scores alone can be misleading. Qualitatively, the authors report that view-dependent prompts improve geometry but leave non-smooth surfaces, lighting leaves darker regions such as the hat rough, and rendering without color smooths geometry while carving some color detail into it.

## Limitations

SDS often produces oversaturated and oversmoothed results compared with ancestral sampling. Dynamic thresholding partly alleviates this for images but did not resolve it in a NeRF context.

The authors link the lack of diversity, with few differences across random seeds in the 3D results, to the reverse KL divergence and its mode-seeking behavior.

Because the 64 × 64 Imagen model is used, the 3D models tend to lack fine detail, and a higher-resolution model with a larger NeRF would be slower.

The task is ill-posed, since many 3D worlds produce the same 2D images, so the optimization landscape is non-convex.

The model inherits biases from Imagen, whose LAION-400M subset was found to contain undesirable images, and the authors raise concerns about disinformation and displacement of creative workers. The Imagen model is not publicly available, so other conditional diffusion models would be needed to reproduce the results.

## Paper info

- **Authors**: Ben Poole, Ajay Jain, Jonathan T. Barron, Ben Mildenhall
- **Venue**: arXiv · Preprint
- **First published**: 2022-9-29
- **Added**: 2026-11-12
- **Updated**: 2022-9-29
- **Version**: v1
- **arXiv**: 2209.14988
- **Category**: cs.CV · cs.LG · stat.ML
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2209.14988v1) · [PDF ↗](https://arxiv.org/pdf/2209.14988v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Ben Poole, Ajay Jain, Jonathan T. Barron, Ben Mildenhall (2022). DreamFusion: Text-to-3D using 2D Diffusion. arXiv:2209.14988v1. https://arxiv.org/abs/2209.14988v1

**BibTeX**

```
@misc{poole2022dreamfusion,
  title = {{DreamFusion: Text-to-3D using 2D Diffusion}},
  author = {Ben Poole and Ajay Jain and Jonathan T. Barron and Ben Mildenhall},
  year = {2022},
  eprint = {2209.14988},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.14988v1}
}
```

## Other paper commentary

- [Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examples](https://refivu.com/en/papers/6d5ee375-978f-4c78-87e2-0c8e55a1127f-obfuscated-gradients-give-a-false-sense-of-security.md)
- [SeqGAN: Sequence Generative Adversarial Nets with Policy Gradient](https://refivu.com/en/papers/29153239-a1df-4102-9df1-abd1ba2a9c96-seqgan-sequence-generative-adversarial-nets-with-policy.md)
- [Tutorial on Variational Autoencoders](https://refivu.com/en/papers/51a9cfc2-6285-4935-b55a-3d6450af8eff-tutorial-on-variational-autoencoders.md)
- [Social GAN: Socially Acceptable Trajectories with Generative Adversarial Networks](https://refivu.com/en/papers/134b8b94-f72a-441a-8ec1-4b871085c3e5-social-gan-socially-acceptable-trajectories-with-generative.md)
- [Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discovery](https://refivu.com/en/papers/62959e97-b421-4e00-897e-8709c817c9fb-unsupervised-anomaly-detection-with-generative-adversarial.md)
- [Generative Adversarial Text to Image Synthesis](https://refivu.com/en/papers/e3b168a4-0572-44b9-b18e-ca2f31dfdc4a-generative-adversarial-text-to-image-synthesis.md)
- [Two-Stream Adaptive Graph Convolutional Networks for Skeleton-Based Action Recognition](https://refivu.com/en/papers/34b4bb2a-43de-4874-9031-6b02160d4003-two-stream-adaptive-graph-convolutional-networks-for.md)
- [Towards Robust Monocular Depth Estimation: Mixing Datasets for Zero-shot Cross-dataset Transfer](https://refivu.com/en/papers/8f3933a0-30e6-41a0-8d25-597109ee5170-towards-robust-monocular-depth-estimation-mixing-datasets.md)
- [Simple Baselines for Human Pose Estimation and Tracking](https://refivu.com/en/papers/1bfa3990-5650-4254-9d74-6addde0897ee-simple-baselines-for-human-pose-estimation-and-tracking.md)
- [Generative AI](https://refivu.com/en/papers/20462cc3-15fd-4b36-8393-33848e90e0dd-generative-ai.md)
- [BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chain](https://refivu.com/en/papers/057abbfb-a7b1-418d-8d40-85a4f025c469-badnets-identifying-vulnerabilities-in-the-machine-learning.md)
- [YOLOv12: Attention-Centric Real-Time Object Detectors](https://refivu.com/en/papers/1b328616-dcc0-4c66-b27e-453b2482a00d-yolov12-attention-centric-real-time-object-detectors.md)

## Terms in this paper

- [diffusion models](https://refivu.com/en/terms/39b044617fcd-diffusion-models)
- [MS-COCO](https://refivu.com/en/terms/3c7d75a4a2eb-ms-coco)
- [NeRF](https://refivu.com/en/terms/3a72e6d9737b-nerf)
- [Imagen](https://refivu.com/en/terms/9082d2027b0a-imagen)
- [ancestral sampling](https://refivu.com/en/terms/bff41f4f1f7f-ancestral-sampling)
- [reverse KL divergence](https://refivu.com/en/terms/9df68724e5d9-reverse-kl-divergence)
- [CLIP R-Precision](https://refivu.com/en/terms/4b8f56ef5ff1-clip-r-precision)
- [DreamFusion](https://refivu.com/en/terms/9cbb512a3d6b-dreamfusion)
- [mip-NeRF 360](https://refivu.com/en/terms/3a4aa685cf82-mip-nerf-360)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/8748788c-c1b0-47b9-a624-78c1f27630e6-dreamfusion-text-to-3d-using-2d-diffusion)
