Visueller KI-GUIDE

DreamFusion und Score Distillation Sampling

DreamFusion is a 2022 Google Research method that creates a 3D object from a text prompt without any 3D training data.

Hören Sie sich diesen Leitfaden anKI-erzählt · ~7 min

Auf dieser Seite8 Min. Lektüre
  1. Übersicht
  2. Wichtige Erkenntnisse
  3. Tiefer Einblick
  4. Running score distillation on one prompt with threestudio
  5. Reale Umsetzung
  6. Die Zukunft von DreamFusion und Score Distillation Sampling
  7. In die Tat umsetzen
  8. Quellen und weiterführende Literatur
  9. Entdecken Sie weiter
  10. Häufig gestellte Fragen

Übersicht

Its key idea, Score Distillation Sampling (SDS), uses a frozen 2D text-to-image diffusion model as a critic that grades rendered views of a 3D scene and pushes the scene toward what the prompt describes. SDS became the foundation of most optimization-based text-to-3D research.

Wichtige Erkenntnisse

  1. DreamFusion, from Google Research in 2022, generates 3D objects from text using only a pretrained 2D image diffusion model.
  2. Score Distillation Sampling compares a diffusion model's predicted noise with the true noise on a rendering and pushes that difference into the 3D model.
  3. The frozen diffusion model acts as a critic; gradients never flow through it, which keeps each update cheap.
  4. DreamFusion used a classifier-free guidance weight of 100 and took about 1.5 hours per object on four TPUv4 chips.
  5. SDS results tend to be oversaturated, oversmoothed and low in diversity, which later methods such as ProlificDreamer set out to fix.
  6. DreamFusion received an Outstanding Paper Award at ICLR 2023.

Tiefer Einblick

DreamFusion turns a sentence such as 'a squirrel playing a guitar' into a 3D model that can be viewed from any angle, relit and placed in a scene. It was introduced in 'DreamFusion: Text-to-3D using 2D Diffusion' by Ben Poole, Ajay Jain, Jonathan T. Barron and Ben Mildenhall of Google Research and UC Berkeley, posted to arXiv on 29 September 2022. The paper won an Outstanding Paper Award at ICLR 2023. Its central contribution is a loss function called Score Distillation Sampling, or SDS, which lets a pretrained image generator supervise the creation of something it was never trained to make.

The problem it solved was data. Text-to-image diffusion models learned from billions of captioned images, but no comparable collection of captioned 3D models existed, and the authors note that efficient architectures for denoising 3D data were also lacking. Earlier text-to-3D work such as Dream Fields used CLIP, a model that scores how well an image matches a caption, to guide a 3D scene, but its results tended to lack realism. DreamFusion kept the same overall recipe, optimizing a 3D scene so its 2D renderings look right, and swapped CLIP for a diffusion model.

The 3D scene is a Neural Radiance Field, or NeRF: a small neural network that takes a 3D point and returns a density (how opaque the space is) and a color. Images are made by volume rendering, shooting rays from a virtual camera and accumulating density and color along each ray. DreamFusion builds on mip-NeRF 360, a variant that reduces aliasing. Rather than raw color, it predicts albedo, the surface's base color, and computes surface normals from the density field so the object can be shaded under a light source. This matters because shading exposes the true shape.

Each optimization step runs as follows. Sample a random camera position around the object and a random light direction. Render an image of the current NeRF, sometimes with full color and shading, sometimes as plain albedo, and sometimes as a 'textureless' gray shaded render that shows geometry alone. Add Gaussian noise to that image at a random noise level. Ask the frozen diffusion model, given the noisy image and the prompt, to predict the noise. Take the difference between predicted and actual noise as the update direction, and backpropagate it through the renderer into the NeRF's weights. The diffusion model is never updated and gradients never pass through it, so it behaves like a fixed critic suggesting image-space edits. Over 15,000 iterations, renderings from every angle converge toward images the diffusion model considers likely for the prompt.

Two practical tricks made it work. First, prompts are adjusted by camera angle: 'overhead view' for high elevations, and blends of 'front view', 'side view' or 'back view' by azimuth. Without this, the paper shows a dog with multiple faces, because the image model draws a front-facing dog from every direction, a failure later called the Janus problem. Second, classifier-free guidance, which strengthens the prompt's influence, was set to 100, far higher than the single-digit values typical for image generation, because lower values produced oversmoothed results under SDS. The diffusion model was Google's Imagen, using only its 64 by 64 pixel base model. Each scene took around 1.5 hours on a TPUv4 machine with four chips.

On quantitative evaluation, the paper used CLIP R-Precision, the accuracy with which CLIP picks the correct caption for a rendering among distractors. With the CLIP L/14 model, DreamFusion scored 79.7 percent on color renders and 58.5 percent on textureless geometry renders, the latter showing that the shape itself matched the prompt. The authors note that Dream Fields and CLIP-Mesh had an advantage on this metric because they trained with CLIP.

Follow-up work moved fast. NVIDIA's Magic3D, posted in November 2022, added a second stage that refines a textured mesh with a high-resolution latent diffusion model, reporting about 40 minutes per object, twice as fast as DreamFusion, and a 61.7 percent rater preference over it. ProlificDreamer, posted in May 2023, generalized SDS into variational score distillation, treating the 3D scene as a distribution rather than a single point, and reported better quality and diversity at a normal guidance weight of 7.5. Open-source frameworks such as threestudio collected these methods; its documentation notes that DreamFusion guided by DeepFloyd IF performs much better than the Stable Diffusion variant.

The limitations are well documented by the authors. SDS tends to produce oversaturated and oversmoothed results compared with ordinary diffusion sampling, and outputs vary little across random seeds, which the paper attributes to the mode-seeking nature of its reverse KL divergence objective. The 64-pixel guidance model limits fine detail. Recovering 3D from 2D views is ill-posed, since many 3D shapes produce the same images, so the optimization can fall into poor local minima. The method also needs minutes to hours of optimization per object, unlike feed-forward 3D generators that output a model in one pass. In practice, the threestudio implementation lists about 6 GB of GPU memory for training the Stable Diffusion version and about 10 GB for the DeepFloyd IF version, plus about 15 GB to extract text embeddings.

04Ausgearbeitetes Beispiel

Running score distillation on one prompt with threestudio

  1. Install threestudio on a machine with an NVIDIA GPU of at least 6 GB of memory, following the repository instructions.

  2. Choose the Stable Diffusion DreamFusion configuration and set the prompt to a simple object, for example 'a ripe strawberry'.

  3. Start training and watch the periodic validation renders, which show color, normals and textureless shading from rotating viewpoints.

  4. Note how early renders are blurry blobs and later renders sharpen as SDS updates accumulate.

  5. Rerun with a lower guidance scale and compare: the result should look smoother and less defined, matching the paper's observation.

  6. Export the result as a mesh and inspect it from the back and top to check for duplicated faces or flat geometry.

Was es zeigt

The learner ends with a mesh of the prompted object and two runs that show how guidance strength changes SDS output. Checking back and top views reveals whether the Janus problem appeared, and the textureless renders show whether the shape, not just the texture, matches the prompt.

Reale Umsetzung

The DreamFusion project page offers a searchable gallery of hundreds of text-generated 3D assets, which can be converted to meshes with marching cubes for use in standard 3D software.

NVIDIA's Magic3D (CVPR 2023) applies score distillation in two stages, a coarse hash-grid model then a textured mesh, producing results in about 40 minutes.

ProlificDreamer (NeurIPS 2023) replaces SDS with variational score distillation to reduce oversaturated colors, rendering high-fidelity NeRFs at 512 by 512 pixels.

The open-source threestudio framework reimplements DreamFusion with Stable Diffusion or DeepFloyd IF guidance, so researchers can run SDS on a single GPU with about 6 GB of memory for the Stable Diffusion version.

Researchers use DreamFusion's view-dependent prompting trick, appending 'front view', 'side view' or 'back view' to the text, in later text-to-3D methods to reduce multi-faced objects.

Die Zukunft von DreamFusion und Score Distillation Sampling

Research after DreamFusion has targeted each of its stated weaknesses. Oversaturation and low diversity led to variational score distillation in ProlificDreamer (2023) and many other modified distillation losses collected in frameworks such as threestudio. Low resolution led to two-stage mesh refinement in Magic3D (2022) and to guidance from higher-resolution latent diffusion models. The multi-face problem prompted multi-view diffusion models that see several views at once, such as MVDream, which threestudio lists among supported methods. Speed is the biggest practical gap: optimization per prompt takes tens of minutes to hours, so the field has also explored generators trained to output 3D directly in a single pass. Whether distillation-based optimization or feed-forward 3D generation becomes the standard approach is not settled in published results, and the DreamFusion authors themselves wrote that higher-resolution synthesis depends on efficiency gains in both diffusion and neural rendering. Evaluation also remains open, since CLIP R-Precision measures prompt agreement but not geometric quality.

In die Tat umsetzen

Warum es wichtig ist

  • Geschwindigkeit und Umfang. Visuelle KI kann Inspektions-, Erkennungs- und Kennzeichnungsaufgaben im großen Maßstab automatisieren.
  • Bauen Sie Entscheidungen auf. Kreativteams können mit weniger manuellen Überarbeitungen schneller Prototypen von Konzepten erstellen.
  • Team und Arbeitsablauf. Vorgänge können Bild- und Videosignale nutzen, die bisher schwer zu verarbeiten waren.

Achten Sie auf

  • Bildrechte und Einwilligungen können zu rechtlichen Risiken werden, wenn die Herkunft unklar ist.
  • Die Modellleistung kann je nach Beleuchtung, Demografie und Umgebung variieren.
  • Fehlalarme können unbemerkt bleiben, wenn die Konfidenzschwellen nicht überwacht werden.

Nächste Schritte

  1. Definieren Sie Akzeptanzkriterien für Präzision, Rückruf und Fehlerkosten.
  2. Testen Sie mit Daten, die den realen Produktionsbedingungen entsprechen.
  3. Fügen Sie eine menschliche Überprüfung für Vorhersagen mit geringem Vertrauen oder großer Auswirkung hinzu.
  4. Verfolgen Sie die Modelldrift und führen Sie nach Kamera- oder Datensatzänderungen eine erneute Validierung durch.

Quellen und weiterführende Literatur

  1. arXiv (ICLR 2023)DreamFusion: Text-to-3D using 2D Diffusion
  2. Google ResearchDreamFusion project page
  3. Google ResearchGoogle at ICLR 2023
  4. arXiv (CVPR 2023)Magic3D: High-Resolution Text-to-3D Content Creation
  5. arXiv (NeurIPS 2023)ProlificDreamer: High-Fidelity and Diverse Text-to-3D Generation with Variational Score Distillation
  6. GitHubthreestudio-project/threestudio

Entdecken Sie weiter

Kostenloser Newsletter

Erhalten Sie die tägliche KI-Briefing

Drei verifizierte KI-Geschichten jeden Werktagmorgen, in einfachem Englisch geschrieben. Für immer kostenlos, keine Werbung.

Eine E‑Mail jeden Werktag. Abmelden mit einem Klick. Wir verkaufen oder teilen Ihre Adresse nie.

Testen Sie sich selbst

Take the DreamFusion and Score Distillation Sampling quiz

Sofortiges Feedback zu jeder Antwort und ein teilbares Zertifikat mit verifizierbarer ID, sobald Sie einen Kurs bestanden haben.

Quiz starten

Unterstützen Sie kostenlose KI-Bildung. AI Understanding ist eine 501(c)(3) gemeinnützige Organisation – keine Werbung, keine Paywall, nie. Machen Sie eine Spende

Häufig gestellte Fragen

What is DreamFusion and Score Distillation Sampling?

DreamFusion is a 2022 Google Research method that creates a 3D object from a text prompt without any 3D training data. Its key idea, Score Distillation Sampling (SDS), uses a frozen 2D text-to-image diffusion model as a critic that grades rendered views of a 3D scene and pushes the scene toward what the prompt describes. SDS became the foundation of most optimization-based text-to-3D research.

Welche 3D-Darstellung optimiert DreamFusion?

DreamFusion optimiert ein NeRF so, dass seine gerenderten Ansichten der Beurteilung der Textaufforderung durch ein 2D-Diffusionsmodell genügen.

Wie viele 3D-Trainingsdaten benötigt DreamFusion?

DreamFusion verwendet als einzige Überwachung ein eingefrorenes 2D-Text-zu-Bild-Diffusionsmodell und erfordert keine 3D-Trainingsdaten.

What is the computational shortcut in Score Distillation Sampling?

SDS forms a gradient from the diffusion noise prediction and sampled noise, stopping gradients through the diffusion model to avoid its full Jacobian.

Why did DreamFusion use high classifier-free guidance in its experiments?

The paper reports that high guidance improves the visual quality of SDS outputs, whose mode-seeking objective can otherwise produce oversmoothed results; geometry is not guaranteed.

Welches 2D-Modell verwendete das ursprüngliche DreamFusion als eingefrorenes Vorgängermodell?

DreamFusion basiert auf dem Imagen-Text-zu-Bild-Diffusionsmodell von Google als eingefrorene Bewertungsfunktion.