# DreamFusion > Poole 2023 · [Paper](https://arxiv.org/abs/2209.14988) **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 $$\mathcal{L}_{\text{Diff}}(\phi, \mathbf{x}) = \mathbb{E}_{t \sim \mathcal{U}(0,1),\, \epsilon \sim \mathcal{N}(\mathbf{0},\mathbf{I})}\big[ w(t)\, \| \epsilon_\phi(\alpha_t \mathbf{x} + \sigma_t \epsilon; t) - \epsilon \|_2^2 \big],$$ and DreamFusion uses its classifier-free-guided noise prediction $\hat{\epsilon}_\phi(\mathbf{z}_t; y, t) = (1+\omega)\,\epsilon_\phi(\mathbf{z}_t; y, t) - \omega\,\epsilon_\phi(\mathbf{z}_t; t)$ with an unusually large guidance weight $\omega = 100$. **Score Distillation Sampling.** A differentiable image parameterization $\mathbf{x} = g(\theta)$ (here: a NeRF renderer) is optimized so its renders look like samples. Differentiating $\mathcal{L}_{\text{Diff}}$ through the U-Net is expensive and poorly conditioned; omitting the U-Net Jacobian gives the SDS gradient $$\nabla_\theta \mathcal{L}_{\text{SDS}}(\phi, \mathbf{x} = g(\theta)) \triangleq \mathbb{E}_{t,\epsilon}\Big[ w(t)\big(\hat{\epsilon}_\phi(\mathbf{z}_t; y, t) - \epsilon\big) \tfrac{\partial \mathbf{x}}{\partial \theta} \Big],$$ which the paper proves is the gradient of a weighted probability-density-distillation loss, $\nabla_\theta\, \mathbb{E}_t\big[ (\sigma_t / \alpha_t)\, w(t)\, \text{KL}\big(q(\mathbf{z}_t \mid g(\theta); y, t)\ \|\ p_\phi(\mathbf{z}_t; y, t)\big)\big]$. No backpropagation through the diffusion model is needed — it acts as a frozen critic whose noise residual points toward higher-density images for prompt $y$. **NeRF with shading.** The 3D canvas is a mip-NeRF 360 variant whose MLP outputs density and *albedo*, $(\tau, \boldsymbol{\rho}) = \text{MLP}(\boldsymbol{\mu}; \theta)$, composited with standard volume-rendering weights $w_i = \alpha_i \prod_{j