이 페이지에서9분 읽기
개요
Introduced by Yang Song and Stefano Ermon in 2019 and unified with diffusion models in 2021, they are the mathematical foundation of modern image, audio and video diffusion systems.
주요 시사점
- A score-based model learns the gradient of the log data density, which avoids computing the intractable normalizing constant that density models need.
- Song and Ermon's 2019 method perturbed data with many noise levels and sampled with annealed Langevin dynamics, reaching an Inception Score of 8.87 on CIFAR-10.
- The 2021 SDE framework showed that score-based models and DDPM-style diffusion models are two discretizations of the same continuous process.
- The probability flow ODE derived from the SDE allows exact likelihood computation, giving 2.99 bits per dimension on CIFAR-10 in the 2021 paper.
- The main cost of score-based generation is sampling, which typically needs hundreds to thousands of network evaluations per image.
심층 분석
A generative model learns to produce new examples that look like its training data, such as faces or photographs. Most approaches try to learn the probability density of the data, a function that says how likely any given image is. That is hard because a valid density must integrate to one, which requires a normalizing constant that is intractable for complex neural networks. Score-based generative models sidestep the problem. Instead of the density itself, they learn its score: the gradient of the log density with respect to the data, written as the gradient of log p(x). At any point in image space, the score is an arrow pointing toward regions where realistic images are more likely, and the normalizing constant disappears when the gradient is taken.
The method has two halves. Training uses score matching, a technique introduced by Aapo Hyvarinen in the Journal of Machine Learning Research in 2005, which fits a model's log-density gradient to the data without ever computing the normalizing constant. In practice, the common variant is denoising score matching: add Gaussian noise to a training image, and train a neural network to predict the direction back toward the clean image, which equals the score of the noisy distribution. Sampling then uses Langevin dynamics, a procedure from physics. Start from random noise, take a small step in the direction of the predicted score, add a little fresh noise, and repeat many times. Under the right conditions the samples converge to the data distribution.
The naive version fails, and the fix defines the field. Real images occupy a tiny region of the space of all possible pixel arrays, so most of the space has almost no data. A score model trained only on clean data learns accurate arrows near real images but gets almost no training signal elsewhere, and Langevin sampling starting from random noise begins exactly in those poorly learned regions. Song and Ermon's 2019 NeurIPS paper, "Generative Modeling by Estimating Gradients of the Data Distribution", solved this by perturbing data with many noise levels at once. Large noise spreads data over the whole space so the arrows are informative everywhere; small noise keeps them precise near real images. A single Noise Conditional Score Network learns the score for every level, and annealed Langevin dynamics samples from the noisiest level down to the cleanest. On CIFAR-10 they used 10 noise levels in a geometric sequence from 1 down to 0.01, with 100 Langevin steps per level, and reported an Inception Score of 8.87 and an FID of 25.32.
The key milestone came in late 2020. In "Score-Based Generative Modeling through Stochastic Differential Equations", posted in November 2020 and given an Outstanding Paper Award at ICLR 2021, Song, Jascha Sohl-Dickstein, Diederik Kingma, Abhishek Kumar, Ermon and Ben Poole replaced the finite list of noise levels with a continuous process. A stochastic differential equation (SDE), an equation describing a random process evolving over time, gradually turns data into noise. A known mathematical result says this process can be run backward in time if the score at every time is known, so learning the score is enough to turn noise back into data. The paper showed that both Song and Ermon's method and the Denoising Diffusion Probabilistic Models of Ho, Jain and Abbeel (2020) are special discretizations of this framework.
The unified view brought new tools. A predictor-corrector sampler alternates a numerical SDE solver step (the predictor) with a Langevin step (the corrector) to fix discretization errors. A deterministic "probability flow" ordinary differential equation shares the same intermediate distributions as the SDE, which allows exact likelihood computation and faster solvers. The paper reported an Inception Score of 9.89, an FID of 2.20 and a likelihood of 2.99 bits per dimension on CIFAR-10, and generated 1,024 by 1,024 face images.
Compared with alternatives, score-based models trade speed for stability and quality. Generative adversarial networks (GANs) produce an image in one forward pass but train a generator against a discriminator, a game that can be unstable and can drop parts of the data distribution. Variational autoencoders and normalizing flows give likelihoods but historically produced blurrier or less detailed images, or required restricted architectures. Score-based training is a simple regression problem with no adversary, and the 2019 paper noted it needs no special architecture constraints. The cost is sampling: generating one image requires hundreds to thousands of network evaluations. The SDE paper's samplers commonly used 1,000 or 2,000 steps.
The main limitations follow from that. Slow sampling makes deployment expensive, which is why much later research targets fewer steps. Score estimates are least accurate where data is sparse, so errors accumulate along the sampling path, and too few steps produce artifacts. Results depend on the noise schedule, the weighting of noise levels in the loss and the sampler, choices that interact in ways that are still tuned empirically. Like other generative models trained on large datasets, they can memorize and reproduce training examples, and the 2019 paper itself checked nearest neighbors in the training set to show it was not simply copying images.
In practice, score networks are usually U-Net-style convolutional networks conditioned on the noise level or time. The 2019 NCSN used a RefineNet variant and trained for 200,000 iterations with batch size 128 using the Adam optimizer. Training cost resembles that of other image models of the same size; the extra expense is at inference, where the network must run once per sampling step.
04실제 사례
Sampling a 2D toy distribution with annealed Langevin dynamics
Create training data from two Gaussian blobs in the plane, centered at (-4, 0) and (4, 0), with standard deviation 0.5, putting 80% of points in the left blob and 20% in the right.
Choose 10 noise levels in a geometric sequence from 5 down to 0.05.
Train a small neural network that takes a point and a noise level and outputs a 2D vector, using the loss that it should predict minus the added noise divided by sigma squared.
Start 1,000 points uniformly at random in the square from -8 to 8 on both axes.
For each noise level from largest to smallest, run 100 Langevin steps: move each point by half the step size times the predicted score, plus Gaussian noise scaled by the square root of the step size.
Plot the final points and count how many end near each blob center.
그것이 보여주는 것
The points should form two tight clusters at the blob centers with close to an 80 to 20 split. Running plain Langevin dynamics at only the smallest noise level instead tends to leave points in whichever blob they started near, giving roughly a 50 to 50 split; the 2019 NCSN paper shows this failure to recover the relative weights of separated modes.
실제 구현
Song and Ermon's 2019 Noise Conditional Score Network generated CIFAR-10 images with an Inception Score of 8.87, the best reported for unconditional models at the time, without adversarial training.
The 2021 stochastic differential equation framework by Song and colleagues produced the first high-fidelity 1,024 by 1,024 images from a score-based model and reached an FID of 2.20 on CIFAR-10.
Because a trained score model can be combined with a measurement model through Bayes' rule, the same network has been used for image inpainting, colorization, and reconstructing accelerated MRI and sparse-view CT scans.
Denoising Diffusion Probabilistic Models (2020), the approach behind many text-to-image systems, train a network whose objective is a weighted form of score matching, so they belong to the same family.
Consistency Models (Song and colleagues, ICML 2023) distill the score-based sampling path into a network that generates CIFAR-10 images in one step with an FID of 3.55.
점수 기반 생성 모델의 미래
Most current research builds on the 2021 unification and focuses on speed, control and theory. Faster sampling is the biggest thread: Consistency Models (Song, Dhariwal, Chen and Sutskever, ICML 2023) learn to map any point on the probability flow path straight to its endpoint, reporting one-step FIDs of 3.55 on CIFAR-10 and 6.20 on 64 by 64 ImageNet. Other work studies better ODE solvers and distillation of many-step samplers into few-step students. A second thread is scientific and medical inverse problems. Song's 2021 overview describes using unconditional score models as learned priors for accelerated MRI and sparse-view CT reconstruction, with an ICLR 2022 paper on medical imaging; how reliably such priors behave on patients unlike the training data is still an open question for clinical use. Open theoretical questions include why score-based models generalize rather than memorize, how errors in the learned score propagate through long sampling chains, and how to choose noise schedules and loss weightings in a principled way. Extending the framework to discrete data such as text, and to very high-dimensional outputs such as long videos, remains an active area without a settled best approach.
실천에 옮기기
왜 중요한가요?
- 속도와 규모. Visual AI는 대규모 검사, 감지 및 태그 지정 작업을 자동화할 수 있습니다.
- 빌드 선택. 크리에이티브 팀은 수동 수정 횟수를 줄여 컨셉의 프로토타입을 더 빠르게 제작할 수 있습니다.
- 팀과 워크플로우. 이전에는 처리하기 어려웠던 이미지 및 비디오 신호를 작업에 사용할 수 있습니다.
조심하세요
- 출처가 불분명할 경우 이미지 권리 및 동의는 법적 위험이 될 수 있습니다.
- 모델 성능은 조명, 인구통계, 환경에 따라 달라질 수 있습니다.
- 신뢰도 임계값을 모니터링하지 않으면 거짓양성이 발견되지 않을 수 있습니다.
다음 단계
- 정밀도, 재현율, 오류 비용에 대한 허용 기준을 정의합니다.
- 실제 생산 조건과 일치하는 데이터로 테스트합니다.
- 신뢰도가 낮거나 영향력이 큰 예측에 대해 인적 검토를 추가합니다.
- 모델 드리프트를 추적하고 카메라 또는 데이터 세트가 변경된 후 재검증합니다.
출처 및 추가 자료
- Journal of Machine Learning ResearchEstimation of Non-Normalized Statistical Models by Score Matching
- arXiv (NeurIPS 2019)Generative Modeling by Estimating Gradients of the Data Distribution
- arXiv (ICLR 2021)Score-Based Generative Modeling through Stochastic Differential Equations
- Yang SongGenerative Modeling by Estimating Gradients of the Data Distribution (blog overview)
- arXiv (NeurIPS 2020)Denoising Diffusion Probabilistic Models
- arXiv (ICML 2023)일관성 모델
계속 탐색하세요
무료 뉴스레터
일일 AI 브리핑 받기
매주 평일 아침마다 3개의 검증된 AI 스토리를 일반 영어로 작성합니다. 무료이며, 광고 없음.
매주 평일마다 한 번 이메일을 받습니다. 한 번 클릭으로 구독 해지. 주소를 판매하거나 공유하지 않습니다.
자신을 테스트해 보세요
Take the Score-Based Generative Models quiz
모든 답변에 즉각적인 피드백과, 과정을 통과하면 검증 가능한 ID가 있는 공유 가능한 인증서를 제공합니다.
무료 AI 교육을 지원합니다. AI Understanding는 501(c)(3) 비영리 단체입니다 — 광고 없음, 유료 장벽 없음, 영원히. 기부하기
자주 묻는 질문
What is Score-Based Generative Models?
Score-based generative models learn the score of a data distribution, the direction in which data becomes more likely at every point, and then generate new samples by starting from random noise and repeatedly stepping along that direction. Introduced by Yang Song and Stefano Ermon in 2019 and unified with diffusion models in 2021, they are the mathematical foundation of modern image, audio and video diffusion systems.
이 모델이 학습하는 '점수'는 정확히 무엇입니까?
점수는 입력에 대한 로그 데이터 밀도의 기울기로, 샘플의 가능성이 증가하는 방향을 가리킵니다.
점수 기반 모델이 여러 규모의 노이즈로 인해 손상된 데이터에 대해 훈련되는 이유는 무엇입니까?
저밀도 지역에서는 실제 점수가 제대로 정의되지 않습니다. 여러 노이즈 수준으로 데이터를 교란하면 어디에서나 점수 일치를 쉽게 수행할 수 있습니다.
초기 점수 기반 모델은 데이터를 생성하기 위해 어떤 샘플링 절차를 사용했나요?
Langevin Dynamics는 샘플을 점수 방향으로 반복적으로 이동시키고 작은 노이즈를 주입하여 점차적으로 랜덤 노이즈를 현실적인 데이터로 변환합니다.
2021년 점수-SDE 논문은 어떤 주요 연관성을 확립했습니까?
Songet al. 결정론적 확률 흐름 ODE와 일치하는 확률론적 미분 방정식 프레임워크 하의 통합 확산 및 점수 기반 모델.
잡음 예측은 잡음 제거 점수 매칭에서 점수 예측과 어떤 관련이 있습니까?
For additive Gaussian corruption x_t=x_0+σ ε with standardized ε, the conditional score target is −ε/σ. A denoising score network estimates the score of the noisy-data distribution from such training targets; it does not output the individual noise sample or variance.