← 返回论文库
arXiv 2303.01469 · ICML 2023   📄 生成模型 · 扩散一步化

Consistency Models

Yang Song ⋅ Prafulla Dhariwal ⋅ Mark Chen ⋅ Ilya Sutskever
OpenAI
一句话:扩散靠多步迭代采样、慢;consistency model 学一个函数 把"噪声→数据 ODE 轨迹上的任意一点"直接映到轨迹起点(干净数据),于是一步生成(也支持多步换质量)。可由蒸馏预训练扩散得到,或从零独立训练;one-step SOTA:CIFAR-10 FID 3.55 / ImageNet 64² 6.20。还天然支持零样本图像编辑(inpainting/上色/超分)。

摘要 Abstract(原文)

Diffusion models have significantly advanced the fields of image, audio, and video generation, but they depend on an iterative sampling process that causes slow generation. To overcome this limitation, we propose consistency models, a new family of models that generate high quality samples by directly mapping noise to data. They support fast one-step generation by design, while still allowing multistep sampling to trade compute for sample quality. They also support zero-shot data editing, such as image inpainting, colorization, and super-resolution, without requiring explicit training on these tasks. Consistency models can be trained either by distilling pre-trained diffusion models, or as standalone generative models altogether. Through extensive experiments, we demonstrate that they outperform existing distillation techniques for diffusion models in one- and few-step sampling, achieving the new state-of-the-art FID of 3.55 on CIFAR-10 and 6.20 on ImageNet 64×64 for one-step generation. When trained in isolation, consistency models become a new family of generative models that can outperform existing one-step, non-adversarial generative models on standard benchmarks such as CIFAR-10, ImageNet 64×64 and LSUN 256×256.

📝 精读笔记(要点)

为什么读它(与精读链路的关联)
精读 World Engine 的 diffusion 时讨论到"多步扩散怎么压成一步"——consistency model 就是这条路线的代表作(Song 2023)。它把"逐步解 ODE"压成"一跳到终点"。也是 World Engine 那类需要海量实时 rollout 的场景里、加速生成器的候选。
灵魂一句
扩散采样=逐步解"噪声→数据"的概率流 ODE(慢)。consistency model 学一个 f(x_t,t)→x_ε,让同一条 ODE 轨迹上任意一点都映到同一个起点(干净数据)(self-consistency),于是从噪声一跳出数据。
两种得到方式
① Consistency Distillation (CD):用预训练扩散当 teacher,蒸馏出 consistency model。② Consistency Training (CT):不要 teacher,从零独立训练成一类新生成模型。
关键结果
one-step SOTA:CIFAR-10 FID 3.55、ImageNet 64² 6.20;超过已有扩散蒸馏法;独立训练时超过已有"一步、非对抗"生成模型。支持零样本编辑(inpainting/上色/超分),无需针对性训练。

📖 逐段精读 · 中英对照 & 问答记录

从 Abstract 开始逐节精读,随讨论持续累积。最后更新 2026-06-30。
① Abstract(摘要)— 段落中译
Diffusion models ... depend on an iterative sampling process that causes slow generation. To overcome this limitation, we propose consistency models, a new family of models that generate high quality samples by directly mapping noise to data. They support fast one-step generation by design, while still allowing multistep sampling to trade compute for sample quality.
扩散模型极大推进了图像/音频/视频生成,但依赖迭代采样、生成慢。为克服这点,我们提出 consistency models——一类直接把噪声映到数据来生成高质量样本的新模型。它设计上就支持一步生成,同时也允许多步采样以"算力换质量"。
They also support zero-shot data editing ... without requiring explicit training on these tasks. Consistency models can be trained either by distilling pre-trained diffusion models, or as standalone generative models altogether.
它们还支持零样本数据编辑(图像 inpainting、上色、超分等),无需针对这些任务专门训练。consistency models 既可由蒸馏预训练扩散得到,也可作为独立的生成模型从零训练。
... they outperform existing distillation techniques for diffusion models in one- and few-step sampling, achieving the new SOTA FID of 3.55 on CIFAR-10 and 6.20 on ImageNet 64×64 for one-step generation. When trained in isolation ... outperform existing one-step, non-adversarial generative models on CIFAR-10, ImageNet 64×64 and LSUN 256×256.
在一步/少步采样上超过已有扩散蒸馏法,一步生成取得新 SOTA:CIFAR-10 FID 3.55、ImageNet 64² 6.20。独立训练时,成为一类能在 CIFAR-10/ImageNet 64²/LSUN 256² 上超过已有"一步、非对抗"生成模型的新模型。
② §3 定义 / 参数化 / 采样(method 核心,已对原文核验)
出发点:扩散有一条确定性的概率流 ODE(PF-ODE),把噪声 x_T 连到数据 x_ε(普通采样=逐步解它,慢)。
定义 consistency function f:f:(x_t,t)→x_ε,性质是 self-consistency——同一条 PF-ODE 轨迹上任意 (x_t,t)、(x_t',t') 都满足 f(x_t,t)=f(x_t',t')(都映到起点)。模型 f_θ 学这个 f。
边界条件(最关键约束):f(x_ε,ε)=x_ε(在最小时刻是恒等)。靠参数化"免费"满足:
参数化(Eq5, 实验用这个): f_θ(x,t) = c_skip(t)·x + c_out(t)·F_θ(x,t) 要求 c_skip(ε)=1, c_out(ε)=0 → t=ε 时 f=x(恒等), 自动满足边界 F_θ 是自由网络(可借用扩散的强力架构, 如 Karras EDM) (另一种更朴素: t=ε 时输出 x, 否则输出 F_θ(x,t))
采样:一步=从 x̂_T~N(0,T²I) 算 x̂_ε=f_θ(x̂_T,T),一次前向出样本。多步(Algorithm 1)交替"去噪→注噪"精修:
Algorithm 1 · 多步一致性采样 x ← f_θ(x̂_T, T) # 先一跳到 x_0 for n=1..N-1: z ~ N(0,I) x̂_{τn} ← x + sqrt(τn² - ε²)·z # 注入对应时刻的噪声 x ← f_θ(x̂_{τn}, τn) # 再一跳回 x_0 输出 x (时间点 τ 用三元搜索贪心选, 优化 FID)
③ §4 Consistency Distillation (CD)·有 teacher
用预训练扩散(score model ϕ)当 teacher。取数据 x→加噪到 x_{t_{n+1}}→用 teacher 的 ODE 解一步退到相邻点 x̂^ϕ_{t_n}(Eq6, Euler: x̂=x_{t_{n+1}}−(t_n−t_{n+1})t_{n+1}s_ϕ(...));训 f 让"相邻两点输出一致"。
CD loss (Eq7): L = E[ λ(t_n)·d( f_θ(x_{t_{n+1}}, t_{n+1}), f_{θ⁻}(x̂^ϕ_{t_n}, t_n) ) ] d = L2 / L1 / LPIPS; λ(t_n)≡1 即可 θ⁻ = θ 的 EMA(目标网络, stopgrad) ← 关键, 极大稳定训练 Algorithm 2: 采样 x,n → x_{t_{n+1}}~N(x,t²) → teacher一步得 x̂^ϕ_{t_n} → 算loss → SGD更新θ → θ⁻←EMA(θ) 循环 Theorem 1: 若 CD loss=0, f_θ 收敛到真 consistency 函数(误差 O(Δt^p))
④ §5 Consistency Training (CT)·无 teacher
不依赖预训练扩散。把 teacher 的 ODE 一步,换成同一份噪声 z 构造的相邻时刻点:用 x+t_{n+1}z 和 x+t_n z 当相邻对。时间网格够细时 CT→CD,于是无需 teacher 就能从零训出生成模型。
CT loss (Eq10): L = E[ λ(t_n)·d( f_θ(x + t_{n+1}·z, t_{n+1}), f_{θ⁻}(x + t_n·z, t_n) ) ] z~N(0,I) 同一份; 步数 N(k)、EMA率 μ(k) 随训练 k 调度 Algorithm 3 同 CD, 但相邻点用同噪声构造、不调 teacher
⑤ 零样本编辑 & 与精读链路的呼应
consistency model 定义了"高斯噪声↔数据"的一一映射(像 GAN/VAE/flow 的潜变量),于是能零样本做插值、各噪声级去噪、inpainting/上色/超分(借 Algorithm 1 的多步)。呼应之前 Q4(多步压一步像GAN吗):推理形态确实是"噪声→数据一次前向"≈GAN生成器,但训练是去噪/一致性目标 + EMA 目标网络(非对抗),更稳;且常由多步 teacher 蒸馏继承质量。