비주얼 AI 가이드

DreamFusion 및 점수 증류 샘플링

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

이 가이드를 들어보세요AI 내레이션 · ~7 min

이 페이지에서8분 읽기
  1. 개요
  2. 주요 시사점
  3. 심층 분석
  4. Running score distillation on one prompt with threestudio
  5. 실제 구현
  6. DreamFusion 및 점수 증류 샘플링의 미래
  7. 실천에 옮기기
  8. 출처 및 추가 자료
  9. 계속 탐색하세요
  10. 자주 묻는 질문

개요

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.

주요 시사점

  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.

심층 분석

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.

04실제 사례

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.

그것이 보여주는 것

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.

실제 구현

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.

DreamFusion 및 점수 증류 샘플링의 미래

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.

실천에 옮기기

왜 중요한가요?

  • 속도와 규모. Visual AI는 대규모 검사, 감지 및 태그 지정 작업을 자동화할 수 있습니다.
  • 빌드 선택. 크리에이티브 팀은 수동 수정 횟수를 줄여 컨셉의 프로토타입을 더 빠르게 제작할 수 있습니다.
  • 팀과 워크플로우. 이전에는 처리하기 어려웠던 이미지 및 비디오 신호를 작업에 사용할 수 있습니다.

조심하세요

  • 출처가 불분명할 경우 이미지 권리 및 동의는 법적 위험이 될 수 있습니다.
  • 모델 성능은 조명, 인구통계, 환경에 따라 달라질 수 있습니다.
  • 신뢰도 임계값을 모니터링하지 않으면 거짓양성이 발견되지 않을 수 있습니다.

다음 단계

  1. 정밀도, 재현율, 오류 비용에 대한 허용 기준을 정의합니다.
  2. 실제 생산 조건과 일치하는 데이터로 테스트합니다.
  3. 신뢰도가 낮거나 영향력이 큰 예측에 대해 인적 검토를 추가합니다.
  4. 모델 드리프트를 추적하고 카메라 또는 데이터 세트가 변경된 후 재검증합니다.

출처 및 추가 자료

  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

계속 탐색하세요

무료 뉴스레터

일일 AI 브리핑 받기

매주 평일 아침마다 3개의 검증된 AI 스토리를 일반 영어로 작성합니다. 무료이며, 광고 없음.

매주 평일마다 한 번 이메일을 받습니다. 한 번 클릭으로 구독 해지. 주소를 판매하거나 공유하지 않습니다.

자신을 테스트해 보세요

Take the DreamFusion and Score Distillation Sampling quiz

모든 답변에 즉각적인 피드백과, 과정을 통과하면 검증 가능한 ID가 있는 공유 가능한 인증서를 제공합니다.

퀴즈 시작

무료 AI 교육을 지원합니다. AI Understanding는 501(c)(3) 비영리 단체입니다 — 광고 없음, 유료 장벽 없음, 영원히. 기부하기

자주 묻는 질문

DreamFusion 및 점수 증류 샘플링이란 무엇입니까?

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.

DreamFusion은 어떤 3D 표현을 최적화합니까?

DreamFusion은 렌더링된 뷰가 텍스트 프롬프트에 대한 2D 확산 모델의 판단을 충족하도록 NeRF를 최적화합니다.

DreamFusion에는 얼마나 많은 3D 교육 데이터가 필요합니까?

DreamFusion은 고정된 2D 텍스트-이미지 확산 모델을 유일한 감독으로 사용하므로 3D 교육 데이터가 필요하지 않습니다.

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.

원래 DreamFusion은 어떤 2D 모델을 동결된 이전 버전으로 사용했습니까?

DreamFusion은 고정 채점 기능으로 Google의 Imagen 텍스트-이미지 확산 모델을 기반으로 구축되었습니다.