Fullscreen PDF ↗ Original Source ↗

Boyuan Chen · Diego Marti Monso · Yilun Du · Max Simchowitz · Russ Tedrake · Vincent Sitzmann

底本 arXiv:2407.01392v4,2024-12-10,35页,NeurIPS 2024。原文 https://arxiv.org/abs/2407.01392v4 。

许可:CC BY 4.0,https://creativecommons.org/licenses/by/4.0/ 。本译本由 Codex 于2026-11-25编译,中文翻译、重新排版与两张失效HTML表格重建为改动;原作作者不为译文背书。保留全部正文、附录A–F、原图、公式与英文书目。

导航

正文:1引言 / 2预备知识 / 3方法 / 4实验 / 5讨论;附录:A理论 / B解释 / C相关工作 / D实现 / E结果 / F数据。各段S编号可在source_map.json追溯HTML锚点与PDF页。

SOURCE p.1 (approx.), HTML abstract1.1, S001
EN
This paper presents Diffusion Forcing, a new training paradigm where a diffusion model is trained to denoise a set of tokens with independent per-token noise levels. We apply Diffusion Forcing to sequence generative modeling by training a causal next-token prediction model to generate one or several future tokens without fully diffusing past ones. Our approach is shown to combine the strengths of next-token prediction models, such as variable-length generation, with the strengths of full-sequence diffusion models, such as the ability to guide sampling to desirable trajectories. Our method offers a range of additional capabilities, such as (1) rolling-out sequences of continuous tokens, such as video, with lengths past the training horizon, where baselines diverge and (2) new sampling and guiding schemes that uniquely profit from Diffusion Forcing’s variable-horizon and causal architecture, and which lead to marked performance gains in decision-making and planning tasks. In addition to its empirical success, our method is proven to optimize a variational lower bound on the likelihoods of all subsequences of tokens drawn from the true joint distribution. Project website: https://boyuan.space/diffusion-forcing
中
本文提出 Diffusion Forcing:一种训练扩散模型的新范式,令每个 token 具有相互独立的噪声等级,并学习对这一组 token 去噪。我们把它用于序列生成:训练因果下一 token 预测模型,在不必将过去 token 完全扩散的情况下生成一个或多个未来 token。该方法兼有下一 token 模型的可变长度生成能力,以及全序列扩散通过引导获得理想轨迹的能力。它还支持若干新功能:(1)把视频等连续 token 序列滚动生成到超过训练时域的长度,而基线会在此处发散;(2)利用可变时域和因果架构设计新的采样、引导方案,从而显著改善决策和规划。除经验结果外,我们证明该方法优化了真实联合分布中所有 token 子序列似然的一个变分下界。项目网站:https://boyuan.space/diffusion-forcing。

1 引言

EN
1 Introduction
中
1 引言

SOURCE p.1 (approx.), HTML S1.p1.1, S003
EN
Probabilistic sequence modeling plays a crucial role in diverse machine learning applications including natural language processing [ 6 , 48 ] , video prediction [ 32 , 70 , 26 ] and decision making [ 3 , 22 ] . Next-token prediction models in particular have a number of desirable properties. They enable the generation of sequences with varying length [ 33 , 21 , 38 ] (generating only a single token or an “infinite” number of tokens via auto-regressive sampling), can be conditioned on varying amounts of history [ 21 , 38 ] , support efficient tree search [ 71 , 23 , 25 ] , and can be used for online feedback control [ 22 , 3 ] .
中
概率序列建模在自然语言处理 [6,48]、视频预测 [32,70,26] 和决策 [3,22] 等机器学习应用中至关重要。尤其是下一 token 预测模型具有多项优点:能够生成可变长度序列 [33,21,38],既能只生成一个 token,也能经自回归采样生成“无限”多个 token;能以不同长度的历史为条件 [21,38];支持高效树搜索 [71,23,25];还可用于在线反馈控制 [22,3]。

SOURCE p.1 (approx.), HTML S1.p2.1, S004
EN
Current next-token prediction models are trained via teacher forcing [ 65 ] , where the model predicts the immediate next token based on a ground truth history of previous tokens. This results in two limitations: (1) there is no mechanism by which one can guide the sampling of a sequence to minimize a certain objective, and (2) current next-token models easily become unstable on continuous data. For example, when attempting to auto-regressively generate a video (as opposed to text [ 6 ] or vector-quantized latents [ 34 ] ) past the training horizon, slight errors in frame-to-frame predictions accumulate and the model diverges.
中
现有下一 token 模型通过教师强制训练 [65],即根据真实的过去 token 历史预测紧接着的 token。这带来两项限制:(1)没有机制引导整条序列的采样去最小化某个目标;(2)在连续数据上容易失稳。例如,自回归生成视频(不同于文本 [6] 或向量量化潜变量 [34])并超过训练时域时,微小的帧间误差会累积,使模型发散。

SOURCE p.2 (approx.), HTML S1.p3.1, S005
EN
Full-sequence diffusion seemingly offers a solution. Commonly used in video generation and long-horizon planning, one directly models the joint distribution of a fixed number of tokens by diffusing their concatenation [ 32 , 1 ] , where the noise level is identical across all tokens. They offer diffusion guidance [ 31 , 16 ] to guide sampling to a desirable sequence, invaluable in decision-making (planning) applications [ 37 , 35 ] . They further excel at generating continuous signals such as video [ 32 ] . However, full-sequence diffusion is universally parameterized via non-causal, unmasked architectures. In addition to restricting sampling to full sequences, as opposed to variable length generation, we show that this limits the possibilities for both guidance and subsequence generation ( Figure 1 ). Further, we demonstrate that a naive attempt at combining the best of both worlds by training a next-token prediction model for full-sequence diffusion leads to poor generations, intuitively because it does not model the fact that small uncertainty in an early token necessitates high uncertainty in a later one.
中
全序列扩散似乎提供了解法。视频生成和长时域规划常直接对固定数量 token 的拼接向量做扩散,以建模其联合分布 [32,1],所有 token 具有相同噪声等级。扩散引导 [31,16] 可将采样推向理想序列,对规划至关重要 [37,35];此类模型也擅长生成视频等连续信号 [32]。然而,全序列扩散普遍采用非因果、无掩码架构。它不但把采样限制为完整序列而非可变长度生成,而且如图1所示,限制了引导和子序列生成。我们还证明,简单地训练一个下一 token 模型来做全序列扩散,并不能兼得二者优点,生成质量反而较差;直觉原因是它未体现:早期 token 的微小不确定性,必然使后续 token 具有更高不确定性。

SOURCE p.2 (approx.), HTML S1.p4.1, S006
EN
In this paper, we introduce Diffusion Forcing (DF), a training and sampling paradigm where each token is associated with a random, independent noise level, and where tokens can be denoised according to arbitrary, independent, per-token schedules through a shared next-or-next-few-token prediction model. Our approach is motivated by the observation that noising tokens is a form of partial masking —zero noise means a token is unmasked, and complete noise fully masks out a token. Thus, DF forces the model to learn to “unmask” any collection of variably noised tokens ( Figure 2 ). Simultaneously, by parameterizing predictions as a composition of next-token prediction models, our system can flexibly generate varying length sequences as well as compositionally generalize to new trajectories (Figure 1 ).
中
我们提出 Diffusion Forcing(DF)训练与采样范式:每个 token 关联随机且独立的噪声等级,共享的下一或下几个 token 预测模型可按任意、逐 token 独立的日程去噪。出发点是:加噪是一种部分掩码;零噪声表示未遮蔽,完全噪声表示完全遮蔽。DF 因而迫使模型学会对任意一组具有不同噪声的 token “解除掩码”(图2)。同时,把预测参数化为下一 token 模型的组合,使系统能灵活生成不同长度序列,并组合泛化到新轨迹(图1)。

SOURCE p.2 (approx.), HTML S1.p5.1, S007
EN
We implement DF for sequence generation as Causal Diffusion Forcing (CDF), in which future tokens depend on past ones via a causal architecture. We train the model to denoise all tokens of a sequence at once, with an independent noise level per token. During sampling, CDF gradually denoises a sequence of Gaussian noise frames into clean samples where different frames may have different noise levels at each denoising step. Like next-token prediction models, CDF can generate variable-length sequences; unlike next-token prediction, it does so stabily from the immediate next token to thousands of tokens in the future – even for continuous tokens. Moreover, like full-sequence diffusion it accepts guidance towards high-reward generations. Synergistically leveraging causality, flexible horizon, and variable noise schedules, CDF enables a new capability, Monte Carlo Guidance (MCG), that dramatically improves the sampling of high-reward generations compared to non-causal full-sequence diffusion models. Fig. 1 overviews these capabilities.
中
我们用因果架构实现序列生成中的 DF,称为因果 Diffusion Forcing(CDF),使未来 token 依赖过去。训练时同时对整个序列去噪,但每个 token 的噪声等级独立。采样时,从高斯噪声帧逐渐得到干净序列;在每一步,不同帧可以处于不同噪声等级。CDF 像下一 token 模型一样支持可变长度,且从紧接着的 token 到未来数千个 token 均能稳定生成,即使 token 是连续值;又像全序列扩散一样支持高奖励引导。因果性、灵活时域和可变噪声日程协同产生了蒙特卡洛引导(MCG):相对非因果全序列扩散,显著改善高奖励样本的采样。图1概括这些能力。

原文图版

SOURCE p.2 (approx.), HTML S1.F1, S008
EN
Figure 1 : Diffusion Forcing capabilities. Today, different applications such as language modeling [ 6 ] , planning [ 37 ] , or video generation [ 32 , 70 ] rely on either auto-regressive next-token prediction or full-sequence diffusion, according to their respective unique capabilities. The proposed Diffusion Forcing is a novel sequence generative model that enjoys key strengths of both model types.
中
图1:Diffusion Forcing 的能力。语言建模 [6]、规划 [37] 和视频生成 [32,70] 等应用,现今根据不同能力需求选用自回归下一 token 预测或全序列扩散。本文的新型序列生成模型 Diffusion Forcing 同时具有两类模型的关键优点。

SOURCE p.2 (approx.), HTML S1.p6.1, S009
EN
In summary, our contributions are: (1) We propose Diffusion Forcing, a new probabilistic sequence model that has the flexibility of next-token prediction models while being able to perform long-horizon guidance like full-sequence diffusion models. (2) Taking advantage of Diffusion Forcing’s unique capabilities, we introduce a novel decision-making framework that allows us to use Diffusion Forcing as simultaneously a policy ( [ 10 ] ) and as a planner ( [ 37 ] ). (3) We formally prove that, under appropriate conditions, optimizing our proposed training objective maximizes a lower bound on the likelihood of the joint distribution of all sub-sequences observed at training time. (4) We empirically evaluate CDF across diverse domains such as video generation, model-based planning, visual imitation learning, and time series prediction, and demonstrate CDF’s unique capabilities, such as stabilizing long-rollout autoregressive video generation, composing sub-sequences of those observed at training time with user-determined memory horizon, Monte Carlo Guidance, and more.
中
贡献概括如下:(1)提出新的概率序列模型 Diffusion Forcing,兼具下一 token 模型的灵活性和全序列扩散的长时域引导能力。(2)利用其独有能力,提出同时把 DF 作为策略 [10] 和规划器 [37] 的决策框架。(3)形式化证明:在适当条件下,优化所提训练目标可最大化训练时所见全部子序列联合分布似然的一个下界。(4)在视频生成、基于模型的规划、视觉模仿学习和时间序列预测中进行实验,展示长滚动自回归视频稳定化、按用户设定记忆时域组合训练子序列、蒙特卡洛引导等能力。

2 相关工作与预备知识

EN
2 Related Work and Preliminaries
中
2 相关工作与预备知识

SOURCE p.3 (approx.), HTML S2.p1.1, S011
EN
We discuss related work and preliminaries for our core application, sequence generative modeling; see Appendix C for further literature review.
中
本节讨论核心应用——序列生成建模——的相关工作与预备知识;更多文献见附录C。

SOURCE p.3 (approx.), HTML S2.p2.1, S012
EN
Our method unifies two perspectives on sequence modeling: Bayesian filtering along the time axis, denoted by subscript t , and diffusion along an “uncertainty” (or noise level) axis denoted by superscript k . In the following, we denote observations as 𝐱 ∈ 𝒳 and latent states as 𝐳 ∈ 𝒵 .
中
本方法统一了序列建模的两种视角:沿时间轴的贝叶斯滤波,以以下标 t 表示;沿“不确定性”(噪声等级)轴的扩散,以上标 k 表示。下文将观测记为 x∈𝒳,潜状态记为 z∈𝒵。

t

k

𝐱∈𝒳

𝐳∈𝒵

贝叶斯滤波。

EN
Bayesian Filtering.
中
贝叶斯滤波。

SOURCE p.3 (approx.), HTML S2.SS0.SSS0.Px1.p1.1, S014
EN
Given a Hidden Markov Model (HMM) defined by latent states 𝐳 t and observations 𝐱 t , a Bayes filter is a probabilistic method for estimating latent states recursively over time from incoming observations. A prior model p ⁡ ( 𝐳 t + 1 | 𝐳 t ) infers a belief over the next state given only the current state, and an observation model infers a belief over the next observation given the current latent state p ⁡ ( 𝐱 t | 𝐳 t ) . When a new observation is made, a posterior model p ⁡ ( 𝐳 t + 1 | 𝐳 t , 𝐱 t + 1 ) provides an updated estimation of the next latent state 𝐳 t + 1 . When trained end-to-end with neural networks [ 22 , 23 ] , latent states are not an estimate of any physical quantity, but a sufficiently expressive latent that summarizes past observations for predicting future observations ( 𝐱 t ′ ) t ′ > t in the sequence.
中
给定由潜状态 zₜ 和观测 xₜ 定义的隐马尔可夫模型,贝叶斯滤波利用新到来的观测递归估计潜状态。先验模型 p(zₜ₊₁|zₜ) 仅根据当前状态推断下一状态的信念;观测模型 p(xₜ|zₜ) 根据当前潜状态推断下一观测的信念。当新观测到来,后验模型 p(zₜ₊₁|zₜ,xₜ₊₁) 更新对下一潜状态的估计。用神经网络端到端训练时 [22,23],潜状态未必估计某个物理量,而是以足够有表达力的潜表示概括过去,供预测未来观测使用。

𝐳t

𝐱t

p⁡(𝐳t+1|𝐳t)

p⁡(𝐱t|𝐳t)

p⁡(𝐳t+1|𝐳t,𝐱t+1)

𝐳t+1

(𝐱t′)t′>t

原文图版

图2原始PDF高清裁图

SOURCE 原版PDF第3页,Figure 2;裁框 [108,68,507,215] pt。

SOURCE p.3 (approx.), HTML S2.F2, S015
EN
Figure 2 : Method Overview. Diffusion Forcing trains causal sequence neural networks (such as an RNN or a masked transformer) to denoise flexible-length sequences where each frame of the sequence can have a different noise level. In contrast, next-token prediction models, common in language modeling, are trained to predict a single next token from a ground-truth sequence (teacher forcing [ 65 ] ), and full-sequence diffusion, common in video generation, train non-causal architectures to denoise all frames in a sequence at once with the same noise level. Diffusion Forcing thus interleaves the time axis of the sequence and the noise axis of diffusion, unifying strengths of both alternatives and enabling completely new capabilities (see Secs. 3.2 , 3.4 ).
中
图2:方法概览。Diffusion Forcing 训练 RNN 或带掩码 Transformer 等因果序列神经网络,对可变长度序列去噪,其中每帧可具有不同噪声等级。相反,语言建模中常见的下一 token 模型通过教师强制 [65],以真实历史预测单个后继 token;视频生成常用的全序列扩散则训练非因果架构,以同一噪声等级同时对所有帧去噪。因此,DF 交织了序列时间轴和扩散噪声轴,统一二者优点,并产生全新能力(3.2、3.4节)。

扩散模型。

EN
Diffusion Models.
中
扩散模型。

SOURCE p.3 (approx.), HTML S2.SS0.SSS0.Px2.p1.1, S017
EN
Diffusion models [ 57 , 29 ] have proven to be highly expressive and reliable generative models. We review their essentials here. Let q ⁡ ( 𝐱 ) denote a data distribution of interest, and let 𝐱 0 ≡ 𝐱 ∼ q . We consider a forward diffusion process that gradually adds Gaussian noise to a data point over a series of time steps. This process is modeled as a Markov chain, where the data at each step k is noised incrementally:
中
扩散模型 [57,29] 已显示出很强的表达力和可靠性。设 q(x) 为目标数据分布,x⁰≡x∼q。正向扩散在一系列步骤中逐渐向数据添加高斯噪声;它是马尔可夫链,每一步均增量加噪,定义如下。

q⁡(𝐱)

𝐱0≡𝐱∼q

k

q⁡(𝐱k|𝐱k−1)=𝒩⁡(𝐱k,1−βk​𝐱k−1,βk​𝐈) (2.1)

SOURCE p.3 (approx.), HTML S2.SS0.SSS0.Px2.p1.2, S018
EN
where 𝒩 is the normal distribution and β k is the variance of the noise added at each step controlled by a schedule { β k ∈ ( 0 , 1 ) } k = 1 K . The process continues until the data is converted into pure noise at 𝐱 K . The reverse process is also a Markov chain and attempts to recreate the original data from the noise with a parameterized model p θ :
中
其中,𝒩 表示正态分布;βₖ 是每步所加噪声的方差,由日程 {βₖ∈(0,1)} 控制。持续加噪直至 xᴷ 近似为纯噪声。逆过程同样是马尔可夫链,以参数模型 pθ 尝试从噪声重建原始数据。

𝒩

βk

{βk∈(0,1)}k=1K

𝐱K

pθ

pθ​(𝐱k−1|𝐱k)=𝒩⁡(𝐱k−1,𝝁⁡(𝐱k,k),γk​𝐈), (2.2)

SOURCE p.3 (approx.), HTML S2.SS0.SSS0.Px2.p1.3, S019
EN
where the mean 𝝁 is a model with a neural network, and where it is shown [ 30 ] that one can set the covariance to the identity scaled by a fixed constant γ k depending on k . Adopting the standard exposition, we reparametrize the mean 𝝁 in terms of noise prediction ϵ = ( 1 − α ¯ t ) − 1 ​ 𝐱 t k t − α ¯ t ​ 𝝁 . This leads [ 29 ] to the following least squares objective:
中
其中均值 μ 由神经网络建模;已有工作 [30] 表明,协方差可设为单位矩阵乘以只依赖 k 的固定常数 γₖ。按标准推导,用噪声预测 ε 对均值重新参数化,可得到以下最小二乘目标 [29]。

𝝁

γk

k

𝝁

ϵ=(1−α¯t)−1​𝐱tkt−α¯t​𝝁

ℒ⁡(θ)=𝔼k,𝐱0,ϵ​[‖ϵk−ϵθ​(𝐱k,k)‖2], (2.3)

SOURCE p.4 (approx.), HTML S2.SS0.SSS0.Px2.p1.4, S020
EN
where 𝐱 k = α t ¯ ​ 𝐱 0 + 1 − α t ¯ ​ ϵ k and ϵ k ∼ 𝒩 ⁡ ( 0 , 𝐈 ) . One can then sample from this model via Langevin dynamics 𝐱 k − 1 ← 1 α k ​ ( 𝐱 t k − 1 − α k 1 − α ¯ k ​ ϵ θ ​ ( 𝐱 t k , k ) + σ k ​ 𝐰 ) [ 29 ] .
中
其中,加噪样本由干净数据与标准高斯噪声按 √ᾱ 和 √(1−ᾱ) 线性组合。随后可通过所列朗之万动态更新,从模型采样 [29]。原文该处时间/噪声下标沿用底本,具体正反向关系见保留的公式。

𝐱k=αt¯​𝐱0+1−αt¯​ϵk

ϵk∼𝒩⁡(0,𝐈)

𝐱k−1←1αk​(𝐱tk−1−αk1−α¯k​ϵθ​(𝐱tk,k)+σk​𝐰)

扩散模型的引导。

EN
Guidance of Diffusion Models.
中
扩散模型的引导。

SOURCE p.4 (approx.), HTML S2.SS0.SSS0.Px3.p1.1, S022
EN
Guidance [ 31 , 16 ] allows biasing diffusion generation towards desirable predictions at sampling time. We focus on classifier guidance [ 16 ] : given a classifier c ⁡ ( y | 𝐱 k ) of some desired y (e.g. class or success indicator), one modifies the Langevin sampling [ 30 ] gradient ϵ θ ​ ( 𝐱 k , k ) to be ϵ θ ​ ( 𝐱 k , k ) − 1 − α ¯ k ​ ∇ x k ​ log ⁡ c ⁡ ( y | 𝐱 k ) . This allows sampling from the joint distribution of 𝐱 and class label y without the need to train a conditional model. Other energies such as a least-squares objective comparing the model output to a desirable ground truth have been explored in applications such as decision making [ 16 , 37 ] .
中
引导 [31,16] 在采样时使扩散生成偏向理想预测。我们关注分类器引导 [16]:给定期望标签 y(如类别或成功指示)的分类器 c(y|xᵏ),将朗之万采样 [30] 的噪声预测减去 √(1−ᾱₖ)∇log c。这样无需训练条件模型,就能从 x 与 y 的联合分布采样。决策等应用还研究了其他能量,例如比较模型输出和期望真值的最小二乘目标 [16,37]。

c⁡(y|𝐱k)

y

ϵθ​(𝐱k,k)

ϵθ​(𝐱k,k)−1−α¯k​∇xk​log⁡c⁡(y|𝐱k)

𝐱

y

下一 token 预测模型。

EN
Next-Token Prediction Models.
中
下一 token 预测模型。

SOURCE p.4 (approx.), HTML S2.SS0.SSS0.Px4.p1.1, S024
EN
Next-token prediction models are sequence models that predict the next frame 𝐱 t + 1 given past frames 𝐱 1 : t . At training time, one feeds a neural network with 𝐱 1 : t and minimizes ‖ 𝐱 ^ − 𝐱 ‖ 2 for continuous data or a cross-entropy loss for discrete data [ 65 ] . At sampling time, one samples the next frame 𝐱 ^ t + 1 following p ( 𝐱 t + 1 | 𝐱 1 : t ) . If one treats 𝐱 ^ t + 1 as 𝐱 t + 1 , one can use the same model to predict 𝐱 t + 2 and repeat until a full sequence is sampled. Unlike full-sequence diffusion models, next-token models do not accept multi-step guidance, as prior frames must be fully determined to sample future frames.
中
下一 token 模型根据历史帧 x₁:ₜ 预测 xₜ₊₁。训练时输入历史,连续数据最小化平方误差,离散数据最小化交叉熵 [65]。采样时从 p(xₜ₊₁|x₁:ₜ) 生成下一帧,再将预测当作真实下一帧,递归预测其后各帧,直至生成完整序列。不同于全序列扩散,下一 token 模型不支持多步引导,因为采样未来之前,过去帧必须完全确定。

𝐱t+1

𝐱1:t

𝐱1:t

‖𝐱^−𝐱‖2

𝐱^t+1

p(𝐱t+1|𝐱1:t)

𝐱^t+1

𝐱t+1

𝐱t+2

扩散序列模型。

EN
Diffusion Sequence Models.
中
扩散序列模型。

SOURCE p.4 (approx.), HTML S2.SS0.SSS0.Px5.p1.1, S026
EN
Diffusion has been widely used in sequence modeling. [ 44 ] use full-sequence diffusion models to achieve controllable text generation via guidance, such as generating text following specified parts of speech. [ 32 ] trains full-sequence diffusion models to synthesize short videos and uses a sliding window to roll out longer conditioned on previously generated frames. [ 37 ] uses full-sequence diffusion models as planners in offline reinforcement learning. This is achieved by training on a dataset of interaction trajectories with the environment and using classifier guidance at sampling time to sample trajectories with high rewards towards a chosen goal. [ 50 ] modifies auto-regressive models to denoise the next token conditioned on previous tokens. It trains with teacher forcing [ 65 ] and samples next-token auto-regressively for time series data. Most similar to our work is AR-Diffusion [ 66 ] , which trains full-sequence text diffusion with a causal architecture with linearly dependent noise level along the time axis. We provide a detailed comparision between this approach and ours in Appendix C .
中
扩散已广泛用于序列建模。[44] 用全序列扩散和引导实现按指定词性等条件的文本生成;[32] 用全序列扩散生成短视频,再通过以先前帧为条件的滑动窗口生成长视频;[37] 用环境交互轨迹训练全序列扩散,并在采样时经分类器引导得到通向目标的高奖励轨迹,作为离线强化学习规划器。[50] 让自回归模型以过去 token 为条件,对下一个 token 去噪,以教师强制训练并自回归生成时间序列。最接近我们的是 AR-Diffusion [66]:以因果架构训练全序列文本扩散,噪声等级沿时间轴线性相关。详细比较见附录C。

3 方法

EN
3 Method
中
3 方法

3.1 把加噪视为部分掩码

EN
3.1 Noising as partial masking
中
3.1 把加噪视为部分掩码

SOURCE p.4 (approx.), HTML S3.SS1.p1.1, S029
EN
Recall that masking is the practice of occluding a subset of data, such as patches of an image [ 27 ] or timesteps in a sequence [ 15 , 49 ] , and training a model to recover unmasked portions. Without loss of generality, we can view any collection of tokens, sequential or not, as an ordered set indexed by t . Training next-token prediction with teacher forcing can then be interpreted as masking each token 𝐱 t at time t and making predictions from the past 𝐱 1 : t − 1 . Restricted to sequences, we refer to all these practices as masking along the time axis . We can also view full-sequence forward diffusion, i.e., gradually adding noise to the data 𝐱 0 1 : T ≡ 𝐱 1 : T , as a form of partial masking , which we refer to as masking along the noise axis . Indeed, after K steps of noising, 𝐱 K 1 : T is (approximately) pure white noise without information about the original data.
中
掩码指遮蔽数据的一部分,例如图像块 [27] 或序列时间步 [15,49],再训练模型恢复未遮蔽内容。不失一般性,可把任意 token 集合(无论是否成序列)视为按 t 索引的有序集合。教师强制的下一 token 训练就相当于在时刻 t 遮蔽 xₜ,再从过去 x₁:ₜ₋₁ 预测。对序列而言,这些操作称为沿时间轴掩码。全序列正向扩散——逐步给干净序列加噪——同样可视为部分掩码,称为沿噪声轴掩码。因为 K 步加噪后,序列近似为不含原始数据信息的纯白噪声。

t

𝐱t

t

𝐱1:t−1

𝐱01:T≡𝐱1:T

K

𝐱K1:T

SOURCE p.4 (approx.), HTML S3.SS1.p2.1, S030
EN
We establish a unified view along both axes of masking (see Fig. 2 ). We denote 𝐱 1 : T for a sequence of tokens, where the subscript indicates the time axis. As above, 𝐱 t k t denotes 𝐱 t at noise level k t under the forward diffusion process ( 2.1 ); 𝐱 t 0 = 𝐱 is the unnoised token, and 𝐱 t K is white noise 𝒩 ⁡ ( 0 , 𝐈 ) . Thus, ( 𝐱 t k t ) 1 ≤ t ≤ T denotes a sequence of noisy observations where each token has a different noise level k t , which can be seen as the degree of partial masking applied to each token through noising.
中
我们统一这两个掩码轴(图2)。x₁:ₜ 的下标表示时间轴;xₜᵏᵗ 表示通过正向扩散式(2.1)获得的第 t 个 token,噪声等级为 kₜ。xₜ⁰ 是无噪声 token,xₜᴷ 是标准白噪声。因此,序列 (xₜᵏᵗ) 中各 token 的不同 kₜ,可看作由加噪施加的部分掩码程度。

𝐱1:T

𝐱tkt

𝐱t

kt

𝐱t0=𝐱

𝐱tK

𝒩⁡(0,𝐈)

(𝐱tkt)1≤t≤T

kt

3.2 Diffusion Forcing:不同 token 使用不同噪声等级

EN
3.2 Diffusion Forcing: different noise levels for different tokens
中
3.2 Diffusion Forcing:不同 token 使用不同噪声等级

SOURCE p.5 (approx.), HTML S3.SS2.p1.1, S032
EN
Diffusion Forcing (DF) is a framework for training and sampling arbitrary sequence lengths of noisy tokens ( 𝐱 t k t ) 1 ≤ t ≤ T , where critically, the noise level k t of each token can vary by time step . In this paper, we focus on time series data, and thus instantiate Diffusion Forcing with causal architectures (where 𝐱 t k t depends only on past noisy tokens), which we call Causal Diffusion Forcing (CDF). For simplicity, we focus on a minimal implementation with a vanilla Recurrent Neural Network (RNN) [ 11 ] . Potential transformer implementation of Diffusion Forcing is also possible but we defer its discussion to Appendix B.1 .
中
DF 是训练并采样任意长度噪声 token 序列的框架;关键在于每个 token 的 kₜ 可随时间步独立变化。本文关注时间序列,因而用因果架构实例化:当前噪声 token 只依赖过去噪声 token,称为 CDF。为简洁起见,采用普通 RNN [11] 的最小实现;也可用 Transformer,见附录B.1。

(𝐱tkt)1≤t≤T

kt

𝐱tkt

SOURCE p.5 (approx.), HTML alg1, S033
EN
Algorithm 1 Diffusion Forcing Training
中
算法1:Diffusion Forcing 训练
SOURCE alg1.l1
EN
1: loop
中
1: 循环
SOURCE alg1.l2
EN
2: Sample tajectory of observations ( 𝐱 1 , … , 𝐱 T ) .
中
2: 采样观测轨迹 ( 𝐱 1 , … , 𝐱 T ) .

(𝐱1,…,𝐱T)

SOURCE alg1.l3
EN
3: for t = 1 , … , T do
中
3: 对 t = 1 , … , T 执行

t=1,…,T

SOURCE alg1.l4
EN
4: Sample independent noise level k t ∈ { 0 , 1 , … , K }
中
4: 采样独立噪声等级 k t ∈ { 0 , 1 , … , K }

kt∈{0,1,…,K}

SOURCE alg1.l5
EN
5: 𝐱 t k t = ForwardDiffuse ( 𝐱 t , k t )
中
5: 𝐱 t k t = 正向扩散 ( 𝐱 t , k t )

𝐱tkt=

(𝐱t,kt)

SOURCE alg1.l6
EN
6: Define ϵ t = 𝐱 t k t − α ¯ k t ​ 𝐱 t 1 − α ¯ k t
中
6: 定义 ϵ t = 𝐱 t k t − α ¯ k t ​ 𝐱 t 1 − α ¯ k t

ϵt=𝐱tkt−α¯kt​𝐱t1−α¯kt

SOURCE alg1.l7
EN
7: Update 𝐳 t ∼ p θ ​ ( 𝐳 t | 𝐳 t − 1 , 𝐱 t k t , k t ) .
中
7: 更新 𝐳 t ∼ p θ ​ ( 𝐳 t | 𝐳 t − 1 , 𝐱 t k t , k t ) .

𝐳t∼pθ​(𝐳t|𝐳t−1,𝐱tkt,kt)

SOURCE alg1.l8
EN
8: Set ϵ ^ t = ϵ θ ​ ( 𝐳 t − 1 , 𝐱 t k t , k t )
中
8: 设置 ϵ ^ t = ϵ θ ​ ( 𝐳 t − 1 , 𝐱 t k t , k t )

ϵ^t=ϵθ​(𝐳t−1,𝐱tkt,kt)

SOURCE alg1.l9
EN
9: end for
中
9: 结束 对
SOURCE alg1.l10
EN
10: L = MSELoss ( [ ϵ ^ 1 , … , ϵ ^ n ] , [ ϵ 1 , … , ϵ n ] )
中
10: L = 均方误差 ( [ ϵ ^ 1 , … , ϵ ^ n ] , [ ϵ 1 , … , ϵ n ] )

L=

([ϵ^1,…,ϵ^n],[ϵ1,…,ϵn])

SOURCE alg1.l11
EN
11: Backprop with L and update θ
中
11: 以此损失反向传播 L 并更新 θ

L

θ

SOURCE alg1.l12
EN
12: end loop
中
12: 结束 循环

SOURCE p.5 (approx.), HTML alg2, S034
EN
Algorithm 2 DF Sampling with Guidance
中
算法2:带引导的 DF 采样
SOURCE alg2.l1
EN
1: Input: Model θ , scheduling matrix 𝒦 , initial latent 𝐳 0 , guidance cost c ⁡ ( ⋅ ) .
中
1: 输入: Model θ , 日程矩阵 𝒦 , 初始潜变量 𝐳 0 , 引导代价 c ⁡ ( ⋅ ) .

θ

𝒦

𝐳0

c⁡(⋅)

SOURCE alg2.l2
EN
2: Initialize 𝐱 1 , … , 𝐱 T ∼ 𝒩 ⁡ ( 0 , σ K 2 ​ I ) .
中
2: Initialize 𝐱 1 , … , 𝐱 T ∼ 𝒩 ⁡ ( 0 , σ K 2 ​ I ) .

𝐱1,…,𝐱T∼𝒩⁡(0,σK2​I)

SOURCE alg2.l3
EN
3: for row m = M − 1 , … , 0 do
中
3: 对 row m = M − 1 , … , 0 执行

m=M−1,…,0

SOURCE alg2.l4
EN
4: for t = 1 , … , T do
中
4: 对 t = 1 , … , T 执行

t=1,…,T

SOURCE alg2.l5
EN
5: 𝐳 t new ∼ p θ ​ ( 𝐳 t ∣ 𝐳 t − 1 , 𝐱 t , 𝒦 m + 1 , t ) .
中
5: 𝐳 t new ∼ p θ ​ ( 𝐳 t ∣ 𝐳 t − 1 , 𝐱 t , 𝒦 m + 1 , t ) .

𝐳tnew∼pθ​(𝐳t∣𝐳t−1,𝐱t,𝒦m+1,t)

SOURCE alg2.l6
EN
6: k ← 𝒦 m , t , 𝐰 ∼ 𝒩 ⁡ ( 0 , 𝐈 ) .
中
6: k ← 𝒦 m , t , 𝐰 ∼ 𝒩 ⁡ ( 0 , 𝐈 ) .

k←𝒦m,t

𝐰∼𝒩⁡(0,𝐈)

SOURCE alg2.l7
EN
7: 𝐱 t new ← 1 α k ​ ( 𝐱 t − 1 − α k 1 − α ¯ k ​ ϵ θ ​ ( 𝐳 t new , 𝐱 t , k ) ) + σ k ​ 𝐰
中
7: 𝐱 t new ← 1 α k ​ ( 𝐱 t − 1 − α k 1 − α ¯ k ​ ϵ θ ​ ( 𝐳 t new , 𝐱 t , k ) ) + σ k ​ 𝐰

𝐱tnew←1αk​(𝐱t−1−αk1−α¯k​ϵθ​(𝐳tnew,𝐱t,k))+σk​𝐰

SOURCE alg2.l8
EN
8: Update 𝐳 t ← 𝐳 t new .
中
8: 更新 𝐳 t ← 𝐳 t new .

𝐳t←𝐳tnew

SOURCE alg2.l9
EN
9: end for
中
9: 结束 对
SOURCE alg2.l10
EN
10: 𝐱 1 : H ← AddGuidance ( 𝐱 1 : H new , ∇ 𝐱 log c ( 𝐱 1 : H new ) )
中
10: 𝐱 1 : H ← AddGuidance ( 𝐱 1 : H new , ∇ 𝐱 log c ( 𝐱 1 : H new ) )

𝐱1:H←

(𝐱1:Hnew,∇𝐱logc(𝐱1:Hnew))

SOURCE alg2.l11
EN
11: end for
中
11: 结束 对
SOURCE alg2.l12
EN
12: Return 𝐱 1 : T .
中
12: 返回 𝐱 1 : T .

𝐱1:T

SOURCE p.5 (approx.), HTML S3.SS2.p2.1, S035
EN
The RNN with weights θ maintains latents 𝐳 t capturing the influence of past tokens, and these evolve via dynamics 𝐳 t ∼ p θ ​ ( 𝐳 t | 𝐳 t − 1 , 𝐱 t k t , k t ) with a recurrent layer. When an incoming noisy observation 𝐱 t k t is made, the hidden state is updated in a Markovian fashion 𝐳 t ∼ p θ ​ ( 𝐳 t | 𝐳 t − 1 , 𝐱 t k t , k t ) 1 1 1 We implement 𝐳 t = p θ ​ ( 𝐳 t | 𝐳 t − 1 , 𝐱 t k t , k t ) to be deterministic, with 𝐳 t representing a distribution over beliefs rather than a sample from it. This allows training by backpropogating through the latent dynamics in Eq.( 3.1 ). . When k t = 0 , this is the posterior update in Bayes filtering; whereas when k t = K (and 𝐱 t K is pure noise and thus uninformative), this is equivalent to modeling the “prior distribution” p θ ​ ( 𝐳 t ∣ 𝐳 t − 1 ) in Bayes filtering. Given latent 𝐳 t , an observation model p θ ​ ( 𝐱 t 0 | 𝐳 t ) predicts 𝐱 t .
中
权重为 θ 的 RNN 以潜变量 zₜ 概括过去 token 的影响,并由递归层按 pθ(zₜ|zₜ₋₁,xₜᵏᵗ,kₜ) 演化。新噪声观测到来时,隐藏状态以马尔可夫方式更新。脚注1:实现中该映射是确定性的;zₜ 表示信念分布,而非从该分布抽取的样本,因而可以通过式(3.1)中的潜动态反向传播。kₜ=0 时,它对应贝叶斯滤波的后验更新;kₜ=K 时输入是无信息纯噪声,相当于先验 pθ(zₜ|zₜ₋₁)。给定潜状态,观测模型 pθ(xₜ⁰|zₜ) 预测干净 xₜ。

θ

𝐳t

𝐳t∼pθ​(𝐳t|𝐳t−1,𝐱tkt,kt)

𝐱tkt

𝐳t∼pθ​(𝐳t|𝐳t−1,𝐱tkt,kt)

𝐳t=pθ​(𝐳t|𝐳t−1,𝐱tkt,kt)

𝐳t

kt=0

kt=K

𝐱tK

pθ​(𝐳t∣𝐳t−1)

𝐳t

pθ​(𝐱t0|𝐳t)

𝐱t

训练。

EN
Training.
中
训练。

SOURCE p.5 (approx.), HTML S3.SS2.SSS0.Px1.p1.1, S037
EN
The dynamics model p θ ​ ( 𝐳 t | 𝐳 t − 1 , 𝐱 t k t , k t ) and the observation model p θ ​ ( 𝐱 t 0 | 𝐳 t ) together form a RNN unit. Such unit has the same input-output behavior as a standard conditional diffusion model, using a conditioning variable 𝐳 t − 1 and a noisy token 𝐱 t k t as input to predict the noise-free 𝐱 t = 𝐱 t 0 and thus, indirectly, the noise ϵ k t via affine reparametrization [ 30 ] . We can thus directly train (Causal) Diffusion Forcing with the conventional diffusion training objective. We parameterize the aforementioned unit in terms of noise prediction ϵ θ ​ ( 𝐳 t − 1 , 𝐱 t k t , k t ) . We then find parameters θ by minimizing the loss
中
动态模型和观测模型共同构成一个 RNN 单元。其输入输出与标准条件扩散模型一致:以 zₜ₋₁ 和噪声 token 为输入,预测干净 token,并经仿射重参数化间接预测噪声 [30]。因此可直接用常规扩散目标训练(因果)DF。我们将该单元参数化为噪声预测 εθ(zₜ₋₁,xₜᵏᵗ,kₜ),并最小化下列损失求得 θ。

pθ​(𝐳t|𝐳t−1,𝐱tkt,kt)

pθ​(𝐱t0|𝐳t)

𝐳t−1

𝐱tkt

𝐱t=𝐱t0

ϵkt

ϵθ​(𝐳t−1,𝐱tkt,kt)

θ

𝔼kt,𝐱t,ϵt𝐳t∼pθ​(𝐳t|𝐳t−1,𝐱tkt,kt)∑t=1T[‖ϵt−ϵθ​(𝐳t−1,𝐱tkt,kt)‖2], (3.1)

SOURCE p.5 (approx.), HTML S3.SS2.SSS0.Px1.p1.2, S038
EN
where we sample k 1 : T uniformly from [ K ] T , 𝐱 1 : T from our training data, and ϵ t ∼ 𝒩 ⁡ ( 0 , σ k t 2 ​ I ) in accordance with the forward diffusion process (see Algorithm 1 for pseudocode). Importantly, the loss ( 3.1 ) captures essential elements of Bayesian filtering and conditional diffusion. In Appendix D.1 , we further re-derive common techniques in diffusion model training for Diffusion Forcing, which proves extremely useful for video prediction experiments. In Appendix B.2 , we discuss the need of sampling k 1 : T uniformly. Finally, we prove the validity of this objective stated informally in the following Theorem 3.1 in Appendix A .
中
其中 k₁:ₜ 从 [K]ᵀ 均匀采样;干净序列来自训练集;噪声按正向过程的方差采样(伪代码见算法1)。重要的是,式(3.1)结合了贝叶斯滤波和条件扩散的核心。附录D.1把常见扩散训练技巧重新推导到 DF,在视频预测中极有用;附录B.2讨论均匀采样噪声序列的必要性。附录A证明以下非正式定理3.1。

k1:T

[K]T

𝐱1:T

ϵt∼𝒩⁡(0,σkt2​I)

k1:T

定理 3.1 (Informal).

EN
Abstract
中
定理 3.1 (Informal).

SOURCE p.5 (approx.), HTML S3.Thmtheorem1.p1.1, S039
EN
The Diffusion Forcing training procedure ( Algorithm 1 ) optimizes a reweighting of an Evidence Lower Bound (ELBO) on the expected log-likelihoods ln ⁡ p 𝛉 ​ ( ( 𝐱 t k t ) 1 ≤ t ≤ T ) , where the expectation is averaged over noise levels k 1 : T ∼ [ K ] T and 𝐱 t k t noised according to the forward process. Moreover, under appropriate conditions, optimizing ( 3.1 ) also maximizes a lower bound on the likelihood for all sequences of noise levels, simultaneously .
中
定理3.1:DF 训练过程(算法1)优化了部分加噪序列期望对数似然的证据下界(ELBO)的一个重新加权版本。期望对均匀采样的噪声等级序列取平均,各噪声 token 按正向过程产生。此外,在适当条件下,优化式(3.1)可同时最大化所有噪声等级序列似然的一个下界。

ln⁡p𝛉​((𝐱tkt)1≤t≤T)

k1:T∼[K]T

𝐱tkt

SOURCE p.6 (approx.), HTML S3.SS2.SSS0.Px1.p2.1, S040
EN
We remark that a special case of ‘all sequences of noise levels’ are those for which either k t = 0 or k t = K ; thus, one can mask out any prior token and DF will learn to sample from the correct conditional distribution, modeling the distribution of all possible sub-sequences of the training set.
中
“所有噪声等级序列”的特殊情形是:每个 kₜ 取 0 或 K。因此,可掩去任意过去 token,DF 仍会学习正确条件分布,建模训练集所有可能子序列的分布。

kt=0

kt=K

采样。

EN
Sampling.
中
采样。

SOURCE p.6 (approx.), HTML S3.SS2.SSS0.Px2.p1.1, S042
EN
Diffusion Forcing sampling is depicted in Algorithm 2 and is defined by prescribing a noise schedule on a 2D M × T grid 𝒦 ∈ [ K ] M × T ; columns correspond to time step t and rows indexed by m determine noise-level. 𝒦 m , t represents the desired noise level of the time-step t token for row m . To generate a whole sequence of length T , initialize the tokens 𝐱 1 : T to be white noise, corresponding to noise level k = K . We iterate down the grid row-by-row, denoising left-to-right across columns to the noise levels prescribed by 𝒦 . By the last row m = 0 , the tokens are clean, i.e. their noise level is 𝒦 0 , t ≡ 0 . Section D.5 discusses corner cases of this scheme; the hyperparameters ( α k , α ¯ k , σ k ) are set to their standard values [ 30 ] . The matrix 𝒦 specifies how fast each token gets denoised at every step of sequence diffusion. Since Diffusion Forcing is trained to denoise tokens of all sequences of noise levels, 𝒦 can be designed to flexibly achieve different behaviors without re-training the model.
中
算法2通过二维 M×T 日程网格 𝒦 定义采样:列为时间 t,行 m 规定噪声等级,𝒦ₘ,ₜ 是该行第 t 个 token 的目标噪声等级。生成长度 T 的序列时,先把所有 token 初始化为 k=K 的白噪声;逐行向下迭代,每行从左到右去噪至网格指定等级。最后 m=0 行所有等级均为0,得到干净 token。边界情形见D.5,α、ᾱ、σ 使用标准设定 [30]。𝒦 决定每个 token 在每个扩散步骤的去噪速度。模型训练覆盖所有噪声等级序列,因此只需设计不同 𝒦,即可灵活改变行为,而不必重新训练。

M×T

𝒦∈[K]M×T

t

m

𝒦m,t

t

m

T

𝐱1:T

k=K

𝒦

m=0

𝒦0,t≡0

(αk,α¯k,σk)

𝒦

𝒦

3.3 序列生成的新能力

EN
3.3 New Capabilities in Sequence Generation
中
3.3 序列生成的新能力

SOURCE p.6 (approx.), HTML S3.SS3.p1.1, S044
EN
We now explain the new capabilities this flexible sampling paradigm has to offer.
中
下面解释这一灵活采样范式产生的新能力。

原文图版

稳定自回归生成。

EN
Stabilizing autoregressive generation.
中
稳定自回归生成。

SOURCE p.6 (approx.), HTML S3.SS3.SSS0.Px1.p1.1, S046
EN
For high-dimensional, continuous sequences such as video, auto-regressive architectures are known to diverge, especially when sampling past the training horizon. In contrast, Diffusion Forcing can stably roll out long sequences even beyond the training sequence length by updating the latents using the previous latent associated with slightly “noisy tokens” for some small noise level 0 < k ≪ K . Our experiments (Sec. 4.1 ) illustrates the resulting marked improvements in long-horizon generation capabilities; App. B.4 provides further intuition.
中
视频等高维连续序列的自回归模型容易发散,尤其当采样长度超过训练时域。DF 则把先前 token 按很小的正噪声等级 0<k≪K 处理,并使用与此略带噪声 token 相应的先前潜状态更新后续潜状态,从而稳定生成超出训练长度的长序列。4.1节展示长时域生成的显著改善;B.4给出进一步直觉。

0<k≪K

让未来保持不确定。

EN
Keeping the future uncertain.
中
让未来保持不确定。

SOURCE p.6 (approx.), HTML S3.SS3.SSS0.Px2.p1.1, S048
EN
Beginning from a sequence of white noise tokens [ 𝐱 1 K , 𝐱 2 K , 𝐱 3 K ] ⊤ , we may denoise the first token fully and the second token partially, yielding [ 𝐱 1 0 , 𝐱 2 K / 2 , 𝐱 3 K ] ⊤ , then [ 𝐱 1 0 , 𝐱 2 0 , 𝐱 3 K / 2 ] ⊤ , and finally denoising all tokens fully to [ 𝐱 1 0 , 𝐱 2 0 , 𝐱 3 0 ] ⊤ . Interpreting the noise level as uncertainty, this “zig-zag” sampling scheme intuitively encodes the immediate future as more certain than the far future. Sec. 3.4 describes how this leads to more effective sequence guidance.
中
从三个白噪声 token 出发,可先将第一个完全去噪、第二个去噪到 K/2、第三个保持 K;再让前两个完全去噪、第三个保持 K/2;最后全变为零噪声。将噪声等级理解为不确定性,这种“之字形”日程使近未来比远未来更确定。3.4节说明它如何改善序列引导。

[𝐱1K,𝐱2K,𝐱3K]⊤

[𝐱10,𝐱2K/2,𝐱3K]⊤

[𝐱10,𝐱20,𝐱3K/2]⊤

[𝐱10,𝐱20,𝐱30]⊤

长时域引导。

EN
Long-horizon Guidance.
中
长时域引导。

SOURCE p.6 (approx.), HTML S3.SS3.SSS0.Px3.p1.1, S050
EN
In Line 10 of Algorithm 2 , one may add guidance to the partially diffused trajectory 𝐱 1 : T as in Sec. 2 . Due to the dependency of future tokens on the past, guidance gradients from future tokens can propagate backwards in time. The unique advantage of Diffusion Forcing is that, because we can diffuse future tokens without fully diffusing the past, the gradient guides the sampling of past tokens, thereby achieving long-horizon guidance while respecting causality. We elaborate on implementation details in Appendix B.3 . As we show in Section 4.2 , planning in this manner significantly outperforms guided full-sequence diffusion models.
中
可在算法2第10行按第2节,对部分扩散的轨迹加入引导。未来依赖过去,所以未来 token 的引导梯度能够沿时间反向传播。DF 的独特优势是:无需把过去完全扩散就能扩散未来,因此梯度可以引导过去 token 的采样,在尊重因果关系的同时实现长时域引导。实现细节见B.3;4.2节表明这种规划显著优于带引导的全序列扩散。

𝐱1:T

3.4 用于灵活序贯决策的 Diffusion Forcing

EN
3.4 Diffusion Forcing for Flexible Sequential Decision Making
中
3.4 用于灵活序贯决策的 Diffusion Forcing

SOURCE p.6 (approx.), HTML S3.SS4.p1.1, S052
EN
The capabilities offered by Diffusion Forcing motivate our novel framework for sequential decision making (SDM), with key applications to robotics and autonomous agents. Consider a Markov Decision Process defined by an environment with dynamics p ⁡ ( 𝐬 t + 1 | 𝐬 t , 𝐚 t ) , observation p ⁡ ( 𝐨 t | 𝐬 t ) and reward p ⁡ ( 𝐫 t | 𝐬 t , 𝐚 t ) . The goal is to train a policy π ( 𝐚 t | 𝐨 1 : t ) such that the expected cumulative reward of a trajectory 𝔼 [ ∑ t = 1 T 𝐫 t ] is maximized. We assign tokens 𝐱 t = [ 𝐚 t , 𝐫 t , 𝐨 t + 1 ] . A trajectory is a sequence 𝐱 1 : T , possibly of variable length; training is conducted as in Algorithm 1 . At each step t of execution, past (noise-free) tokens 𝐱 1 : t − 1 are summarized by a latent 𝐳 t − 1 . Conditioned on this latent, we sample, via Algorithm 2 , a plan 𝐱 ^ t : t + H , with 𝐱 ^ t = [ 𝐚 ^ t , 𝐫 ^ t , 𝐨 ^ t + 1 ] ⊤ containing predicted actions, rewards and observations. H is a look-ahead window, analogous to future predictions in model predictive control [ 20 ] . After taking planned action 𝐚 ^ t , the environment produces a reward 𝐫 t and next observation 𝐨 t + 1 , yielding next token 𝐱 t = [ 𝐚 ^ t , 𝐫 t , 𝐨 t + 1 ] ⊤ . The latent is updated according to the posterior p θ ​ ( 𝐳 t | 𝐳 t − 1 , 𝐱 t , 0 ) . Our framework enables functionality as both policy and planner :
中
DF 的能力促成了一种面向机器人和自主智能体的序贯决策框架。考虑由动态 p(sₜ₊₁|sₜ,aₜ)、观测 p(oₜ|sₜ) 和奖励 p(rₜ|sₜ,aₜ) 定义的马尔可夫决策过程。目标是训练 π(aₜ|o₁:ₜ),最大化轨迹的期望累积奖励。令 token xₜ=[aₜ,rₜ,oₜ₊₁];轨迹是可能变长的 token 序列,按算法1训练。执行到 t 时,无噪声过去由 zₜ₋₁ 概括;以其为条件,通过算法2采样计划 x̂ₜ:ₜ₊ₕ,包含动作、奖励及观测预测。H 类似模型预测控制的前瞻窗 [20]。执行计划动作后,环境返回实际奖励和新观测,组成真实新 token,再用零噪声后验更新潜状态。这使框架可同时充当策略与规划器。

p⁡(𝐬t+1|𝐬t,𝐚t)

p⁡(𝐨t|𝐬t)

p⁡(𝐫t|𝐬t,𝐚t)

π(𝐚t|𝐨1:t)

𝔼[∑t=1T𝐫t]

𝐱t=[𝐚t,𝐫t,𝐨t+1]

𝐱1:T

t

𝐱1:t−1

𝐳t−1

𝐱^t:t+H

𝐱^t=[𝐚^t,𝐫^t,𝐨^t+1]⊤

H

𝐚^t

𝐫t

𝐨t+1

𝐱t=[𝐚^t,𝐫t,𝐨t+1]⊤

pθ​(𝐳t|𝐳t−1,𝐱t,0)

灵活规划时域。

EN
Flexible planning horizon.
中
灵活规划时域。

SOURCE p.7 (approx.), HTML S3.SS4.SSS0.Px1.p1.1, S054
EN
Diffusion Forcing (a) can be deployed on tasks of variable horizon , because each new action is selected sequentially, and (b) its lookahead window H can be shortened to lower latency (using Diffusion Forcing as a policy ), or lengthened to perform long-horizon planning (via guidance described below), without re-training or modifications of the architecture. Note that (a) is not possible for full-sequence diffusion models like Diffuser [ 37 ] with full-trajectory generation horizons, whereas diffusion policies [ 10 ] need fixed, small lookahead sizes, precluding (b).
中
DF(a)逐步选择动作,因此能用于可变总时域任务;(b)可缩短前瞻 H 降低延迟,作为策略使用,也可增大 H 配合引导做长时域规划,不必重训或改架构。Diffuser [37] 等全轨迹生成模型无法实现(a),而扩散策略 [10] 通常需要固定的小前瞻窗,无法实现(b)。

H

灵活奖励引导。

EN
Flexible reward guidance.
中
灵活奖励引导。

SOURCE p.7 (approx.), HTML S3.SS4.SSS0.Px2.p1.1, S056
EN
As detailed in Appendix B.3 , Diffusion Forcing can plan via guidance using any reward (in place of log ⁡ c ) specified over future steps: this includes dense per-time step rewards on the entire trajectory ∑ t = 1 T 𝐫 t , dense rewards on a future lookahead ∑ t ′ = t t + H 𝐫 t , and sparse rewards indicating goal completion − ‖ 𝐨 T − 𝐠 ‖ 2 . Per-time step policies cannot take advantage of this latter, longer horizon guidance.
中
如B.3所述,可用任意定义在未来步骤上的奖励代替 log c:包括整条轨迹的稠密逐步奖励、未来前瞻窗内的稠密奖励,以及表示目标完成的稀疏奖励 −‖oₜ−g‖²。逐时刻策略无法利用后一类长时域引导。

log⁡c

∑t=1T𝐫t

∑t′=tt+H𝐫t

−‖𝐨T−𝐠‖2

蒙特卡洛引导(MCG)与未来不确定性。

EN
Monte Carlo Guidance (MCG), future uncertainty.
中
蒙特卡洛引导(MCG)与未来不确定性。

SOURCE p.7 (approx.), HTML S3.SS4.SSS0.Px3.p1.1, S058
EN
Causal Diffusion Forcing allows us to influence the generation of a token 𝐱 t k by guidance on the whole distribution of future 𝐱 t + 1 : T . Instead of drawing a single trajectory sample to calculate this guidance gradient, we can draw multiple samples of the future and average their guidance gradients. We call this Monte Carlo Guidance. In the spirit of so-called shooting methods like MPPI [ 64 ] , 𝐱 t k is then guided by the expected reward over the distribution of all future outcomes instead of one particular outcome. The effect of MCG is enhanced when combined with sampling schedules that keep the noise level of future tokens high when denoising immediate next tokens (e.g. the zig-zag schedule described in Sec. 3.3 ), accounting for greater uncertainty farther into the future. Appendix B.5 further justifies the significance of MCG, and why Diffusion Forcing uniquely takes advantage of it.
中
CDF 可根据整个未来分布的引导来影响当前 token xₜᵏ。不只抽取一条未来轨迹算梯度,而是多次采样未来,再平均引导梯度,这就是 MCG。与 MPPI [64] 等打靶方法的思想一致,当前 token 被所有未来结果分布的期望奖励引导,而非某个特定结果。当日程在对近期 token 去噪时令远期 token 维持高噪声(如3.3节之字形日程),MCG 效果更强,因为它考虑了远未来更大的不确定性。B.5进一步解释其意义及 DF 如何独特地利用它。

𝐱tk

𝐱t+1:T

𝐱tk

原文图版

SOURCE p.7 (approx.), HTML S3.F3, S059
EN
Figure 3 : Video Generation. Among tested methods, Diffusion Forcing generations are uniquely temporally consistent and do not diverge even when rolling out well past the training horizon. Please see the project website for video results.
中
图3:视频生成。在测试方法中,只有 DF 的生成既保持时间一致,又在远超训练时域的滚动生成中不发散。动态视频结果见项目网站。

4 实验

EN
4 Experiments
中
4 实验

SOURCE p.7 (approx.), HTML S4.p1.1, S061
EN
We extensively evaluate Diffusion Forcing’s merits as a generative sequence model across diverse applications in video and time series prediction, planning, and imitation learning. Please find the dataset and reproducibility details in the Appendix, as well as video results on the project website .
中
我们在视频与时间序列预测、规划和模仿学习等多类应用中广泛评估 DF 作为生成序列模型的优点。数据集与复现细节见附录,视频见项目网站。

4.1 视频预测:一致、稳定的序列生成与无限滚动

EN
4.1 Video Prediction: Consistent, Stable Sequence Generation and Infinite Rollout.
中
4.1 视频预测:一致、稳定的序列生成与无限滚动

SOURCE p.8 (approx.), HTML S4.SS1.p1.1, S063
EN
We train a convolutional RNN implementation of Causal Diffusion Forcing for video generative modeling on videos of Minecraft gameplay [ 69 ] and DMLab navigation [ 69 ] . At sampling time, we perform auto-regressive rollout with stabilization proposed in Sec. 3.3 . We consider two baselines, both leveraging the same exact RNN architecture: a next-frame diffusion baseline trained with teacher forcing [ 65 ] as well as a causal full-sequence diffusion model. Figure 3 displays qualitative results of roll-outs generated by Diffusion Forcing and baselines starting from unseen frames for both datasets. While Diffusion Forcing succeeds at stably rolling out even far beyond its training horizon (e.g. 1000 frames), teacher forcing and full-sequence diffusion baselines diverge quickly. Further, within the training horizon, we observe that full-sequence diffusion suffers from frame-to-frame discontinuity where video sequences jump dramatically, while Diffusion Forcing roll-outs show ego-motion through a consistent 3D environment. This highlights the ability of Diffusion Forcing to stabilize rollouts of high-dimensional sequences without compounding errors.
中
我们在 Minecraft 游戏视频和 DMLab 导航视频 [69] 上训练卷积 RNN 版 CDF。采样时用3.3节的稳定化方法自回归滚动。两个基线采用完全相同 RNN 架构:教师强制训练的下一帧扩散 [65],以及因果全序列扩散。图3展示从未见过的起始帧生成的结果。DF 即使远超训练时域(如1000帧)仍稳定,而教师强制和全序列扩散很快发散。在训练时域以内,全序列扩散也有明显帧间跳变;DF 则表现为在一致三维环境中的自运动。这突出了其抑制高维序列误差累积的能力。

1000

原文图版

SOURCE p.8 (approx.), HTML S4.SS1.tab1, S064
EN
Table 1 : Diffusion Forcing for Planning. ( top ) During sampling, Diffusion Forcing allows each time step to be denoised on different noise schedules, enabling us to account for causal uncertainty during guided planning. Diffusion Forcing keeps the far future more uncertain than the near future while Diffuser [ 37 ] puts them at the same noise level during sampling. ( bottom) Quantitatively, Diffusion Forcing achieves the highest average reward across runs. Diffuser fails dramatically when executing the actually generated actions, requiring a hand-crafted PD controller (indicated by the asterisk) and ignoring generated actions.
中
表1:DF 用于规划。(上)采样时每个时间步可按不同噪声日程去噪,从而在引导规划中考虑因果不确定性;DF 让远未来比近未来更不确定,而 Diffuser [37] 对各时刻使用相同噪声。(下)DF 的跨运行平均奖励最高。直接执行实际生成动作时,Diffuser 会严重失败;它需要忽略生成动作并使用手工 PD 控制器(星号所示)。

4.2 扩散规划:MCG、因果不确定性与灵活时域控制

EN
4.2 Diffusion Planning: MCG, Causal Uncertainty, Flexible Horizon Control.
中
4.2 扩散规划:MCG、因果不确定性与灵活时域控制

SOURCE p.8 (approx.), HTML S4.SS2.p1.1, S066
EN
Decision-making uniquely benefits from Diffusion Forcing’s capabilities. We evaluate our proposed decision-making framework in a standard offline RL benchmark, D4RL [ 18 ] . Specifically, we benchmark Diffusion Forcing on a set of 2D maze environments with sparse reward. An agent is tasked with reaching a designated goal position starting from a random starting position. In Appendix 16 we provide a detailed description of the environment. The benchmark provides a dataset of random walks through mazes (thus stochastic). We train one model per maze.
中
决策尤其能受益于 DF。我们在标准离线强化学习基准 D4RL [18] 的稀疏奖励二维迷宫中评估:智能体从随机起点到达指定目标。环境细节见附录F.2。基准给出迷宫随机行走数据,因此具有随机性;每个迷宫单独训练一个模型。

SOURCE p.8 (approx.), HTML S4.SS2.p2.1, S067
EN
We benchmark the proposed decision-making framework 3.4 with state-of-the-art offline RL methods and the recently introduced Diffuser [ 37 ] , a diffusion planning framework. See Fig. 4.1 for qualitative and quantitative results: DF outperforms Diffuser and all baselines across all 6 environments.
中
我们将3.4节决策框架与领先离线强化学习方法及新近的扩散规划器 Diffuser [37] 比较。定性和定量结果见表1:DF 在全部6个环境上均超过 Diffuser 与各基线。

6

蒙特卡洛引导的收益。

EN
Benefit of Monte Carlo Guidance.
中
蒙特卡洛引导的收益。

SOURCE p.8 (approx.), HTML S4.SS2.SSS0.Px1.p1.1, S069
EN
The typical goal for an RL problem is to find actions that maximize the expected future rewards, which we achieve through MCG. Full-sequence diffusion models such as Diffuser do not support sampling to maximize expected reward, as we formally derive in Section B.5 . To understand MCG’s importance, we ablate it in Section 4.1 . Removing MCG guidance degrades our performance, though Diffusion Forcing remains competitive even then.
中
强化学习通常要找最大化未来期望奖励的动作,MCG 实现了这一点。B.5形式化说明,Diffuser 等全序列扩散不支持按这种方式最大化期望奖励。为检验 MCG 的重要性,我们做去除消融;性能降低,但 DF 仍有竞争力。

因果建模的收益。

EN
Benefit of Modeling Causality.
中
因果建模的收益。

SOURCE p.9 (approx.), HTML S4.SS2.SSS0.Px2.p1.1, S071
EN
Unlike pure generative modeling, sequential decision-making takes actions and receives feedback. Due to compounding uncertainty, the immediate next actions are more important than those in the far future. Though Diffuser and subsequent models are trained to generate sequences of action-reward-state tuples [ 𝐚 t , 𝐫 t , 𝐨 t ] , directly executing the actions will lead to a trajectory that deviates significantly from the generated states. In other words, the generated states and actions are not causally consistent with each other. To address this shortcoming, Diffuser’s implementation ignores the generated actions and instead relies on a hand-crafted PD controller to infer actions from generated states. In Table 4.1 , we see that Diffuser’s performance drops dramatically when directly executing generated actions. In contrast, Diffusion Forcing’s raw action generations are self-consistent, outperforming even actions selected by combining Diffuser’s state predictions with a handcrafted PD controller.
中
不同于纯生成建模,序贯决策要执行动作并接收反馈。因为不确定性累积,近期动作比远期更重要。尽管 Diffuser 等训练生成动作—奖励—状态三元组,直接执行所生成动作却会使真实轨迹明显偏离所生成状态,即二者不满足因果一致性。Diffuser 的实现因此忽略生成动作,用手工 PD 控制器由生成状态推断动作。表1显示,直接执行其动作会使性能剧降。相反,DF 原生生成的动作自洽,甚至优于 Diffuser 状态预测加手工 PD 控制器。

[𝐚t,𝐫t,𝐨t]

灵活时域的收益。

EN
Benefit of Flexible Horizon.
中
灵活时域的收益。

SOURCE p.9 (approx.), HTML S4.SS2.SSS0.Px3.p1.1, S073
EN
Many RL tasks have a fixed horizon, requiring the planning horizon to shrink as an agent makes progress in the task. Diffusion Forcing accomplishes this by design, while full-sequence models like Diffuser perform poorly even with tweaks, as we explain in Appendix B.6 .
中
许多强化学习任务具有固定总时长,智能体推进任务时,剩余规划时域应缩短。DF 天然支持这一点;Diffuser 等全序列模型即使作调整仍表现较差,原因见B.6。

4.3 可控序贯组合生成

EN
4.3 Controllable Sequential Compositional Generation
中
4.3 可控序贯组合生成

SOURCE p.9 (approx.), HTML S4.SS3.p1.1, S075
EN
We demonstrate that by only modifying the sampling scheme, we can flexibly compose sub-sequences of sequences observed at training time. We consider a dataset of trajectories on a 2D, square plane, where all trajectories start from one corner and end up in the opposite corner, forming a cross shape. As shown in Fig. 1 , when no compositional behavior is desired, one can let DF keep full memory, replicating the cross-shaped distribution. When one desires compositionality, one can let the model generate shorter plans without memory using MPC, leading to the stitching of the cross’s sub-trajectories, forming a V-shaped trajectory. Due to limited space, we defer the result to Appendix E.2 .
中
只修改采样方案,就能灵活组合训练中所见序列的子序列。数据集由二维正方形平面上从一角到对角的轨迹构成,整体呈叉形。不需要组合时,DF 保留完整记忆,重现叉形分布;需要组合时,让模型以无记忆 MPC 生成较短计划,就能拼接叉形的子轨迹,形成 V 形轨迹。篇幅所限,结果见E.2。

原文图版

SOURCE p.9 (approx.), HTML S4.F4, S076
EN
Figure 4 : In our real robot task, a robot arm is asked to swap the slots of two fruits using a third slot. Since the fruits are input in random slots at the beginning, one cannot determine the next steps from a single observation without knowledge of the initial placement of the fruits. As illustrated in (a) and (b), the upper observation is the same but the desired outcome illustrated below can vary—the task thus requires remembering the initial configuration. In addition, as shown in (c), the same model that generates actions also synthesizes realistic video from just a single frame.
中
图4:真实机器人任务要求机械臂借助第三个槽位交换两个水果。初始槽位随机,所以如果不知道最初布局,仅凭单帧无法确定下一动作。如(a)(b)所示,上方观测相同,下方期望结果却可不同,必须记忆初始配置。此外(c)表明,生成动作的同一模型还能仅凭一帧合成真实感视频。

4.4 机器人:长时域模仿学习与鲁棒视觉运动控制

EN
4.4 Robotics: Long horizon imitation learning and robust visuomotor control
中
4.4 机器人:长时域模仿学习与鲁棒视觉运动控制

SOURCE p.9 (approx.), HTML S4.SS4.p1.1, S078
EN
Finally, we illustrate that Diffusion Forcing (DF) opens up new opportunities in the visuomotor control of real-world robots. Imitation learning [ 10 ] is a popular technique in robotic manipulation where one learns an observation-to-action mapping from expert demonstrations. However, the lack of memory often prevents imitation learning from accomplishing long-horizon tasks. DF not only alleviates this shortcoming but also provides a way to make imitation learning robust.
中
最后,我们说明 DF 为真实机器人视觉运动控制带来的新机会。模仿学习 [10] 从专家示范学习观测到动作的映射,广泛用于操作,但缺乏记忆常阻碍长时域任务。DF 不仅缓解这一缺点,还使模仿学习更鲁棒。

带记忆的模仿学习。

EN
Imitation Learning with Memory.
中
带记忆的模仿学习。

SOURCE p.9 (approx.), HTML S4.SS4.SSS0.Px1.p1.1, S080
EN
We collect a dataset of videos and actions by teleoperating with a Franka robot. In the chosen task, one needs to swap the position of an apple and an orange, using a third slot. See Fig. 4 for an illustration. The initial positions of the fruits are randomized such that there are two possible goal states. As illustrated in Fig. 4 , when one fruit is in the third slot, the desired outcome cannot be inferred from the current observation—a policy must remember the initial configuration to determine which fruit to move. In contrast to common behavior cloning methods, DF naturally incorporates memory in its latent state. We found that DF achieves 80 % success rate while diffusion policy [ 10 ] , a state-of-the-art imitation learning algorithm without memory, fails.
中
我们遥操作 Franka 机器人收集视频和动作,让它借第三槽交换苹果和橙子(图4)。随机初始布局产生两种可能目标。当一个水果位于第三槽时,仅当前观测无法判断目标,策略必须记住初始配置来决定移动哪个水果。不同于普通行为克隆,DF 的潜状态自然包含记忆。DF 成功率为80%,而没有记忆的领先模仿学习算法扩散策略 [10] 失败。

80%

对缺失或噪声观测的鲁棒性。

EN
Robustness to missing or noisy observations.
中
对缺失或噪声观测的鲁棒性。

SOURCE p.10 (approx.), HTML S4.SS4.SSS0.Px2.p1.1, S082
EN
Because it incorporates principles from Bayes filtering, Diffusion Forcing can perform imitation learning while being robust to noisy or missing observations. We demonstrate this by adding visual distractions and even fully occluding the camera during execution. DF allows us to easily indicate these observations as “noisy” by using k > 0 , in which case DF relies heavily on its prior model to predict actions. Consequently, the success rate is only lowered by 4 % to 76 % . In contrast, a next-frame diffusion model baseline attains a success rate of 48 % : it must treat perturbed observations as ground truth and suffers out-of-distribution error.
中
DF 结合贝叶斯滤波原理,可以在模仿学习中抵抗观测噪声与缺失。我们在执行中加入视觉干扰,甚至完全遮挡相机。只需用 k>0 标明观测“有噪声”,DF 就会更依赖先验来预测动作;成功率仅下降4个百分点,至76%。相比之下,下一帧扩散基线必须把扰动观测当作真值,遭遇分布外误差,成功率为48%。

k>0

4%

76%

48%

视频预训练的潜力。

EN
Potential for pre-training with video.
中
视频预训练的潜力。

SOURCE p.10 (approx.), HTML S4.SS4.SSS0.Px3.p1.1, S084
EN
Finally, in parallel to generating actions, Fig. 4 illustrates that Diffusion Forcing is capable of generating a video of the robot performing the task given only an initial frame, unifying diffusion policy/imitation learning and video generative modeling and paving the way to pre-training on unlabeled video.
中
除生成动作外,图4显示 DF 仅凭初始帧还能生成机器人执行任务的视频。这统一了扩散策略/模仿学习与视频生成建模,并为未标注视频预训练铺路。

4.5 时间序列预测:DF 是有竞争力的通用序列模型

EN
4.5 Time Series Forecasting: Diffusion Forcing is a Good General-purpose Sequence Model
中
4.5 时间序列预测:DF 是有竞争力的通用序列模型

SOURCE p.10 (approx.), HTML S4.SS5.p1.1, S086
EN
In Appendix E , we show that DF is competitive with prior diffusion [ 50 ] and transformer-based [ 51 ] work on multivariate time series forecasting, following the experimental setup of [ 54 ] .
中
附录E遵循 [54] 实验设置,展示 DF 在多变量时间序列预测上可与既有扩散 [50] 和 Transformer [51] 方法竞争。

5 讨论

EN
5 Discussion
中
5 讨论

局限性。

EN
Limitations.
中
局限性。

SOURCE p.10 (approx.), HTML S5.SS0.SSS0.Px1.p1.1, S089
EN
Our current causal implementation is based on an RNN. Applications to higher-resolution video or more complex distributions likely require large transformer models following instructions in Appendix B.1 . We do not investigate the scaling behavior of Diffusion Forcing to internet-scale datasets and tasks.
中
当前因果实现基于 RNN。更高分辨率视频或更复杂分布,可能需要按B.1所述使用大型 Transformer。本文未研究 DF 在互联网规模数据与任务上的扩展行为。

结论。

EN
Conclusion.
中
结论。

SOURCE p.10 (approx.), HTML S5.SS0.SSS0.Px2.p1.1, S091
EN
In this paper, we introduced Diffusion Forcing, a new training paradigm where a model is trained to denoise sets of tokens with independent, per-token noise levels. Applied to time series data, we show how a next-token prediction model trained with Diffusion Forcing combines the benefits of both next-token models and full-sequence diffusion models. We introduced new sampling and guidance schemes that lead to dramatic performance gains when applied to tasks in sequential decision making. Future work may investigate the application of Diffusion Forcing to domains other than time series generative modeling, and scale up Diffusion Forcing to larger datasets.
中
本文提出 DF:对具有逐 token 独立噪声等级的 token 集合去噪的新训练范式。在时间序列上,经 DF 训练的下一 token 模型兼具下一 token 和全序列扩散的优点。我们提出新的采样与引导方案,在序贯决策中显著改善性能。后续可将其用于时间序列生成之外的领域,并扩展到更大数据集。

致谢。

EN
Acknowledgements.
中
致谢。

SOURCE p.10 (approx.), HTML S5.SS0.SSS0.Px3.p1.1, S093
EN
This work was supported by the National Science Foundation under Grant No. 2211259, by the Singapore DSTA under DST00OECI20300823 (3D Self-Supervised Learning for Label-Efficient Vision), by the Intelligence Advanced Research Projects Activity (IARPA) via Department of Interior/ Interior Business Center (DOI/IBC) under 140D0423C0075, and by the Amazon Science Hub.
中
本工作获美国国家科学基金会项目2211259、新加坡 DSTA 项目 DST00OECI20300823(面向标签高效视觉的三维自监督学习)、美国情报高级研究计划局 IARPA 经内政部/内政业务中心 DOI/IBC 项目140D0423C0075,以及 Amazon Science Hub 支持。

附录A 理论论证

EN
Appendix A Theoretical Justification
中
附录A 理论论证

SOURCE p.14 (approx.), HTML A1.p1.1, S095
EN
In this section, we provide theoretical justification for the train of Diffusion Forcing. The main contributions can be summarized as follows:
中
本节为 DF 训练提供理论论证,主要贡献如下。

SOURCE p.14 (approx.), HTML A1.p2.1, S098
EN
We begin by stating an ELBO for general Markov forward processes q ⁡ ( ⋅ ) , and generative models p 𝜽 ​ ( ⋅ ) , and then specialize to Gaussian diffusion, thereby recovering our loss. We denote our Markov forward process q ⁡ ( ⋅ ) as
中
先针对一般马尔可夫正向过程 q 与生成模型 pθ 建立 ELBO,再特化为高斯扩散,恢复本文损失。正向过程 q 定义如下。

q⁡(⋅)

p𝜽​(⋅)

q⁡(⋅)

q(𝐱1:K∣𝐱0)=∏k=1Kq(𝐱k∣𝐱k−1), (A.1)

SOURCE p.14 (approx.), HTML A1.p2.2, S099
EN
and a parameterized probability model
中
参数化概率模型定义如下。
p𝜽​(((𝐱tk)1≤k≤K,𝐳t)t≥1) (A.2)

SOURCE p.14 (approx.), HTML A1.p2.3, S100
EN
We assume that p 𝜽 satisfies the Markov property that
中
假设 pθ 满足以下马尔可夫性质。

p𝜽

p𝜽(𝐳t,𝐱tkt∣𝐳1:t−1,(𝐱sks)1≤s<t)=p𝜽(𝐳t,𝐱kt∣𝐳t−1) (A.3)

SOURCE p.14 (approx.), HTML A1.p2.4, S101
EN
that is, the latent codes 𝐳 t − 1 is a sufficient statistic for 𝐱 k t given the history. We say that p 𝜽 has deterministic latents if p 𝜽 ( 𝐳 t ∣ 𝐳 1 : t − 1 , ( 𝐱 s k s ) 1 ≤ s < t , 𝐱 t k t ) is a Dirac delta.
中
即给定历史时,潜编码 zₜ₋₁ 是 xₜᵏᵗ 的充分统计量。若潜变量的条件分布为狄拉克 δ 分布,则称 pθ 具有确定性潜变量。

𝐳t−1

𝐱kt

p𝜽

p𝜽(𝐳t∣𝐳1:t−1,(𝐱sks)1≤s<t,𝐱tkt)

说明 1.

EN
Theorem 3.1 (Informal) .
中
说明 1.

SOURCE p.14 (approx.), HTML Thmremark1.p1.1, S102
EN
In order for p 𝜽 to have deterministic latents and correspond to a valid probability distribution, we need to view the latents 𝐳 t not as individual variables, but as a collection of variables 𝐳 t ( k 1 : t ) indexed by t ∈ [ T ] and the history of noise levels k 1 : t ∈ { 0 , 1 , … , K } t . In this case, simply setting 𝐳 t ( k 1 : t ) = ( k 1 : t , ( 𝐱 s k s ) 1 ≤ s ≤ t tautologically produces deterministic latents. The reason for indexing 𝐳 t ( k 1 : t ) with k 1 : t then arises because, otherwise, p 𝜽 ​ ( 𝐳 t ∣ ( ( 𝐱 s k s ) 1 ≤ s ≤ t , ( 𝐱 s k s ′ ) 1 ≤ s ≤ t ) ) would be ill-defined unless k s = k s ′ for all 1 ≤ s ≤ t , and thus, p 𝜽 would not correspond to a joint probability measure. The exposition and theorem that follows allow 𝐳 t ( k 1 : t ) to be indexed on past noise levels k 1 : t but suppresses dependence on k 1 : t to avoid notational confusion.
中
为了使确定性潜变量对应有效概率分布,不能把 zₜ 视为一个孤立变量,而应视为由时间 t 及噪声历史 k₁:ₜ 索引的变量集合 zₜ(k₁:ₜ)。简单地把完整噪声历史与相应噪声 token 一起存入 z,就可平凡地得到确定性潜变量。必须以噪声历史索引,是因为若同时对同一时刻不同噪声等级的观测作条件化,除非各等级完全相同,否则潜变量条件分布会失去明确定义,pθ 也就不对应联合概率测度。下文定理允许这种对噪声历史的依赖,但为减少符号混乱,将其省略。

p𝜽

𝐳t

𝐳t(k1:t)

t∈[T]

k1:t∈{0,1,…,K}t

𝐳t(k1:t)=(k1:t,(𝐱sks)1≤s≤t

𝐳t(k1:t)

k1:t

p𝜽​(𝐳t∣((𝐱sks)1≤s≤t,(𝐱sks′)1≤s≤t))

ks=ks′

1≤s≤t

p𝜽

𝐳t(k1:t)

k1:t

k1:t

A.1 主要结果

EN
A.1 Main Results
中
A.1 主要结果

SOURCE p.14 (approx.), HTML A1.SS1.p1.1, S104
EN
We can now state our main theorem, which provides an evidence lower bound (ELBO) on the expected log-likelihood of partially-noised sequences ( 𝐱 t k t ) 1 ≤ t ≤ T , under uniformly sampled levels k t and 𝐱 t k t obtained by noising according to q ⁡ ( ⋅ ) as in ( A.1 ). Notice that this formulation does not require an explicit for of q ⁡ ( ⋅ ) or p 𝜽 , but we will specialize to Gaussian diffusion in the following section.
中
下面给出主要定理:当各 kₜ 均匀采样,并按式(A.1)用 q 加噪时,部分噪声序列期望对数似然具有一个 ELBO。此表述不要求 q 或 pθ 的具体形式;下一节再特化为高斯扩散。

(𝐱tkt)1≤t≤T

kt

𝐱tkt

q⁡(⋅)

q⁡(⋅)

p𝜽

定理 A.1.

EN
Remark 1 .
中
定理 A.1.

SOURCE p.14 (approx.), HTML A1.Thmtheorem1.p1.1, S105
EN
Fix 𝐱 1 : T 0 . Define the expectation over the forward process with random noise level k 1 : T as
中
固定干净序列 x₁:ₜ⁰。带随机噪声等级的正向过程期望定义如下。

𝐱1:T0

k1:T

𝔼forward[⋅]:=𝔼k1,…,kT​∼unif​[K]𝔼𝐱sks∼q⁡(𝐱sks∣𝐱s0),1≤s≤T[⋅], (A.4)

SOURCE p.14 (approx.), HTML A1.Thmtheorem1.p1.2, S106
EN
and the expectation over the latents under p 𝛉 ​ ( ⋅ ) conditioned on k 1 : T , ( 𝐱 s k t ) 1 ≤ t ≤ T as
中
给定噪声等级及相应噪声观测,pθ 下潜变量的条件期望定义如下。

p𝛉​(⋅)

k1:T,(𝐱skt)1≤t≤T

𝔼p,𝐳1:T[⋅]:=𝔼𝐳s∼p⁡(𝐳s∣𝐳s−1,𝐱sks),s≤T[⋅∣k1:T,(𝐱tkt)1≤t≤T] (A.5)

SOURCE p.14 (approx.), HTML A1.Thmtheorem1.p1.3, S107
EN
Then, as long as p 𝛉 satisfies the Markov property,
中
只要 pθ 满足马尔可夫性质,就有以下结论。

p𝛉

𝔼forward[lnp𝜽((𝐱tkt)1≤t≤T)]≥C(𝐱1:T0)
+𝔼forward𝔼p,𝐳1:T[∑t=1T(1K+1lnp𝜽(𝐱t0∣𝐱t1,𝐳t−1)+∑j=2KjK+1D𝕂​𝕃(q(𝐱tj−1∣𝐱tj,𝐱t0)∥p𝜽(𝐱tj∣𝐱tj−1,𝐳t−1)))],

SOURCE p.14 (approx.), HTML A1.Thmtheorem1.p1.4, S108
EN
where C ( 𝐱 1 : T 0 ) is a constant depending only on 𝐱 1 : T 0 (the unnoised data). Moreover, if the latents are deterministic (i.e. p 𝛉 ​ ( 𝐳 t ∣ 𝐳 t − 1 , 𝐱 t k t ) is a Dirac distribution), then the inequality holds with inequality if and only if q ( 𝐱 t k t + 1 : T ∣ 𝐱 t k t ) ≡ p 𝛉 ( 𝐱 t k t + 1 : T ∣ 𝐱 t k t , 𝐳 t − 1 ) , i.e. the variational approximation is exact.
中
其中 C 仅依赖无噪声数据。如果潜变量确定,即相应条件分布为狄拉克分布,那么当且仅当所列 q 条件分布与 pθ 条件分布相同,也就是变分近似精确时,下界取等号。(底本此处“inequality with inequality”按上下文译为等号条件。)

C(𝐱1:T0)

𝐱1:T0

p𝛉​(𝐳t∣𝐳t−1,𝐱tkt)

q(𝐱tkt+1:T∣𝐱tkt)≡p𝛉(𝐱tkt+1:T∣𝐱tkt,𝐳t−1)

SOURCE p.15 (approx.), HTML A1.SS1.p2.1, S109
EN
The proof of the above theorem is given in Section A.2 . Remarkably, it involves only two inequalities! The first holds with equality under deterministic latents and the second holds if and only if variational approximation is exact: q ( 𝐱 t k t + 1 : T ∣ 𝐱 t k t ) ≡ p 𝜽 ( 𝐱 t k t + 1 : T ∣ 𝐱 t k t , 𝐳 t − 1 ) . This tightness of the ELBO suggests that the expression in Theorem A.1 is a relatively strong surrogate objective for optimizing the likelihoods.
中
证明见A.2。值得注意的是,证明仅涉及两次不等式:第一次在潜变量确定时取等号;第二次当且仅当变分近似精确时取等号。因此,该 ELBO 的紧致性说明定理A.1中的表达式是优化似然的较强替代目标。

q(𝐱tkt+1:T∣𝐱tkt)≡p𝜽(𝐱tkt+1:T∣𝐱tkt,𝐳t−1)

A.1.1 特化为高斯扩散

EN
A.1.1 Specializing to Gaussian diffusion
中
A.1.1 特化为高斯扩散

SOURCE p.15 (approx.), HTML A1.SS1.SSS1.p1.1, S111
EN
We now special Theorem A.1 to Gaussian diffusion. For now, we focus on the “ 𝐱 -prediction” formulation of diffusion, which is the one used in our implementation. The “ ϵ -prediction” formalism, used throughout the main body of the text, can be derived similarly (see Section 2 of [ 7 ] for a clean exposition). The following theorem follows directly by apply standard likelihood and KL-divergence computations for the DDPM [ 29 , 7 ] to Theorem A.1 .
中
现在将定理A.1特化为高斯扩散。先考虑实现实际采用的 x 预测形式;正文使用的 ε 预测形式可类似推导(清晰说明见 [7] 第2节)。将 DDPM [29,7] 的标准似然和 KL 散度计算应用于定理A.1,直接得到如下定理。

𝐱

ϵ

推论 A.2.

EN
Theorem A.1 .
中
推论 A.2.

SOURCE p.None (approx.), HTML A1.Thmtheorem2.p1.1, S112
EN
Let
中
令正向高斯过程为下式。
q⁡(𝐱k+1∣𝐱tk)=𝒩⁡(𝐱k,1−βk​𝐱k−1,βk​𝐈), (A.6)

SOURCE p.15 (approx.), HTML A1.Thmtheorem2.p1.2, S113
EN
and define α k = ( 1 − β k ) , α ¯ k = ∏ j = 1 k α j . Suppose that we parameterize p 𝛉 ​ ( 𝐱 t j ∣ 𝐱 t j + 1 , 𝐳 t − 1 ) = 𝒩 ⁡ ( μ 𝛉 ​ ( 𝐱 t j + 1 , 𝐳 t − 1 , j ) , σ j 2 ) , where further,
中
定义 αₖ=1−βₖ,ᾱₖ 为各 α 的累乘。假设逆过程参数化为均值 μθ、方差 σⱼ² 的高斯分布,并令均值满足下式。

αk=(1−βk)

α¯k=∏j=1kαj

p𝛉​(𝐱tj∣𝐱tj+1,𝐳t−1)=𝒩⁡(μ𝛉​(𝐱tj+1,𝐳t−1,j),σj2)

μ𝜽​(𝐱tj,𝐳t−1,j)=(1−α¯j−1)​αj1−α¯j​𝐱tj+(1−αj)​α¯j−11−α¯j​𝐱^𝜽​(𝐱tj,𝐳t−1,j),σj2:=(1−αj)​(1−α¯j−1)1−α¯j.

SOURCE p.15 (approx.), HTML A1.Thmtheorem2.p1.3, S114
EN
Then, as long as p 𝛉 satisfies the Markov property, we obtained
中
只要 pθ 满足马尔可夫性质,就得到下列界。

p𝛉

𝔼forward[lnp𝜽((𝐱tkt)1≤t≤T)]+C(𝐱1:T0) ≥𝔼forward𝔼p,𝐳1:T[∑t=1TjK+1∑j=1Kcj∥𝐱^𝜽0(𝐱tj,𝐳t−1,j)−𝐱t0∥2]
=𝔼forward𝔼p,𝐳1:T[∑t=1T𝟏{kt≥1}⋅ktckt∥𝐱^𝜽0(𝐱tkt,𝐳t−1,kt)−𝐱t0∥2],

SOURCE p.15 (approx.), HTML A1.Thmtheorem2.p1.4, S115
EN
where above, we define c j = ( 1 − α j ) 2 ​ α ¯ j − 1 2 ​ σ 2 ​ ( 1 − α ¯ j ) 2 .
中
其中 cⱼ 的定义为下列公式中给出的正权重,即 (1−αⱼ)²ᾱⱼ₋₁ 除以 2σ²(1−ᾱⱼ)²。

cj=(1−αj)2​α¯j−12​σ2​(1−α¯j)2

证明.

EN
Corollary A.2 .
中
证明.

SOURCE p.15 (approx.), HTML A1.SS1.SSS1.p2.1, S116
EN
The first inequality follows from the standard computations for the “ 𝐱 -prediction” formulation of Diffusion (see Section 2.7 of [ 7 ] and references therein). The second follows by replacing the sum over j with an expectation over k t ​ ∼ unif ​ { 0 , 1 , … , K } . ∎
中
第一项不等式来自扩散 x 预测的标准计算(见 [7] 第2.7节及其引文);第二项把对 j 的求和改写成 kₜ 在 {0,…,K} 上均匀采样的期望。证毕。

𝐱

j

kt​∼unif​{0,1,…,K}

SOURCE p.15 (approx.), HTML A1.SS1.SSS1.p3.1, S117
EN
We make a couple of remarks:
中
有以下几点说明。

A.1.2 覆盖所有子序列

EN
A.1.2 Capturing all subsequences
中
A.1.2 覆盖所有子序列

SOURCE p.15 (approx.), HTML A1.SS1.SSS2.p1.1, S122
EN
Theorem A.1 stipulates that, up to reweighting, the Diffusion Forcing objective optimizes a valid ELBO on the expected log-likelihoods over uniformly sampled noise levels. The following theorem can be obtained by a straightforward modification of the proof of Theorem A.1 generalizes this to arbitrary (possibly temporally correlated) sequences of noise.
中
定理A.1说明:忽略重加权,DF 优化均匀噪声等级下期望对数似然的有效 ELBO。对其证明稍作修改,便可推广到任意、可能在时间上相关的噪声等级序列。

定理 A.3.

EN
Proof.
中
定理 A.3.

SOURCE p.16 (approx.), HTML A1.Thmtheorem3.p1.1, S123
EN
Let 𝒟 be an arbitrary distribution over [ K ] T , and define P t ( j ∣ k 1 : t − 1 ) := Pr 𝒟 [ k t = j ∣ k 1 : t − 1 ] . Fix 𝐱 1 : T 0 . Define the expectation over the forward process with random noise level k 1 : T as
中
令 𝒟 为 [K]ᵀ 上任意分布,Pₜ(j|k₁:ₜ₋₁) 为给定过去等级后当前等级取 j 的条件概率。固定干净序列,将随机等级正向过程的期望定义如下。

𝒟

[K]T

Pt(j∣k1:t−1):=Pr𝒟[kt=j∣k1:t−1]

𝐱1:T0

k1:T

𝔼forward,𝒟[⋅]:=𝔼k1,…,kT∼𝒟𝔼𝐱sks∼q⁡(𝐱sks∣𝐱s0),1≤s≤T[⋅], (A.7)

SOURCE p.16 (approx.), HTML A1.Thmtheorem3.p1.2, S124
EN
and the expectation over the latent under p 𝛉 ​ ( ⋅ ) conditioned on k 1 : T , ( 𝐱 s k t ) 1 ≤ t ≤ T as
中
在给定等级及其噪声观测条件下,pθ 潜变量的期望定义如下。

p𝛉​(⋅)

k1:T,(𝐱skt)1≤t≤T

𝔼p,𝐳1:T[⋅]:=𝔼𝐳s∼p⁡(𝐳s∣𝐳s−1,𝐱sks),s≤T[⋅∣k1:T,(𝐱tkt)1≤t≤T] (A.8)

SOURCE p.14 (approx.), HTML A1.Thmtheorem3.p1.3, S125
EN
Then, as long as p 𝛉 satisfies the Markov property,
中
只要 pθ 满足马尔可夫性质,就有下列界。

p𝛉

𝔼forward,𝒟[lnp𝜽((𝐱tkt)1≤t≤T)]≥C(𝐱1:T0)+𝔼forward,𝒟𝔼p,𝐳1:T[∑t=1TΞt],where
Ξt:=(Pt(1∣k1:t−1)lnp𝜽(𝐱t0∣𝐱t1,𝐳t−1)+∑j=2KjPt(j∣k1:t−1)D𝕂​𝕃(q(𝐱tj−1∣𝐱tj,𝐱t0)∥p𝜽(𝐱tj∣𝐱tj−1,𝐳t−1))),

SOURCE p.16 (approx.), HTML A1.Thmtheorem3.p1.4, S126
EN
where C ( 𝐱 1 : T 0 ) is a constant depending only on 𝐱 1 : T 0 (the noise-free data), and where the inequality is an equality under the conditions that (a) p 𝛉 ​ ( 𝐳 t ∣ 𝐳 t − 1 , 𝐱 t k t ) is a Dirac distribution (deterministic latents), and (b) q ( 𝐱 t k t + 1 : T ∣ 𝐱 t k t ) ≡ p 𝛉 ( 𝐱 t k t + 1 : T ∣ 𝐱 t k t , 𝐳 t − 1 ) , i.e. the variational approximation is sharp.
中
其中 C 仅依赖无噪声数据;当且仅当(a)潜变量确定,(b)所列 q 与 pθ 条件分布一致,即变分近似紧致时,该不等式取等号。

C(𝐱1:T0)

𝐱1:T0

p𝛉​(𝐳t∣𝐳t−1,𝐱tkt)

q(𝐱tkt+1:T∣𝐱tkt)≡p𝛉(𝐱tkt+1:T∣𝐱tkt,𝐳t−1)

SOURCE p.16 (approx.), HTML A1.Thmtheorem3.p2.1, S127
EN
In particular, in the Gaussian case of Corollary A.2 , we have
中
尤其对推论A.2的高斯情形,有以下形式。
𝔼forward,𝒟[lnp𝜽((𝐱tkt)1≤t≤T)]+C(𝐱1:T0) ≥𝔼forward,𝒟𝔼p,𝐳1:T[∑t=1T𝟏{kt≥1}ktckt∥𝐱^𝜽0(𝐱tkt,𝐳t−1,kt)−𝐱t0∥2],

SOURCE p.16 (approx.), HTML A1.SS1.SSS2.p2.1, S128
EN
The most salient case for us is the restriction of 𝒟 to fixed sequences of noise k 1 , … , k T (i.e. Dirac distributions on [ K ] T ). In this case, P t ( j ∣ k 1 : t − 1 ) = 0 for all but j = k t , and thus our training objective need not be a lower bound on 𝔼 forward , 𝒟 [ ln ⁡ p 𝜽 ​ ( ( 𝐱 t k t ) 1 ≤ t ≤ T ) ] . However, the terms in the lower bound are, up to reweighting, an subset of those terms optimized in the training objective. Thus, in light of the remarks following Corollary A.2 , a fully expressive network can optimize all the terms in the loss simultaneously. We conclude that, for a fully expressive neural network, optimizing the training objective ( 3.1 ) is a valid surrogate for maximizing the likelihood of all possible noise sequences.
中
最重要的情形是把 𝒟 限制为某条固定噪声等级序列,即 [K]ᵀ 上的狄拉克分布。此时除 j=kₜ 外,各 Pₜ 为0,所以训练目标本身未必是该固定序列期望对数似然的下界。但真正下界中的项,经重加权后是训练目标所优化各项的子集。由推论A.2后的说明,足够有表达力的网络可以同时优化全部损失项。因此,对充分表达的神经网络,优化式(3.1)是最大化所有可能噪声序列似然的有效替代。

𝒟

k1,…,kT

[K]T

Pt(j∣k1:t−1)=0

j=kt

𝔼forward,𝒟[ln⁡p𝜽​((𝐱tkt)1≤t≤T)]

A.2 定理A.1的证明

EN
A.2 Proof of Theorem A.1
中
A.2 定理A.1的证明

SOURCE p.16 (approx.), HTML A1.SS2.p1.1, S130
EN
Define 𝔼 < t [ ⋅ ] as shorthand for 𝔼 k 1 : s ∼ unif [ K ] 𝔼 𝐱 s k s ∼ q ⁡ ( 𝐱 s k s ∣ 𝐱 s 0 ) , 1 ≤ s ≤ t − 1 𝔼 𝐳 s ∼ p ⁡ ( 𝐳 s ∣ 𝐳 s − 1 , 𝐱 s k s ) , s ≤ t [ ⋅ ] . We begin with the following claim
中
用 𝔼<ₜ 简记以下复合期望:对过去均匀噪声等级、由正向过程生成的噪声 token,以及模型条件潜变量依次取期望。先证明以下命题。

𝔼<t[⋅]

𝔼k1:s∼unif[K]𝔼𝐱sks∼q⁡(𝐱sks∣𝐱s0),1≤s≤t−1𝔼𝐳s∼p⁡(𝐳s∣𝐳s−1,𝐱sks),s≤t[⋅]

命题 1 (展开潜变量).

EN
Theorem A.3 .
中
命题 1 (展开潜变量).

SOURCE p.16 (approx.), HTML Thmclaim1.p1.1, S131
EN
The following lower bound holds:
中
下列下界成立。
𝔼forward[ln⁡p𝜽​((𝐱tkt)1≤t≤T)] ≥∑t=1T𝔼<t𝔼kt​∼unif​{0,1,…,K}𝔼𝐱tkt∼q⁡(𝐱tkt∣𝐱t0)[ln⁡p𝜽​(𝐱tkt∣𝐳t−1)], (A.9)

SOURCE p.16 (approx.), HTML Thmclaim1.p1.2, S132
EN
Moreover, this lower bound holds with equality if 𝐳 s ∼ p ⁡ ( 𝐳 s ∣ 𝐳 s − 1 , 𝐱 s k s ) is a Dirac distribution (i.e., deterministic latents).
中
此外,如果各潜变量的条件分布为狄拉克分布,即潜变量确定,那么该下界取等号。

𝐳s∼p⁡(𝐳s∣𝐳s−1,𝐱sks)

证明.

EN
Claim 1 (Expanding the latents) .
中
证明.

SOURCE p.16 (approx.), HTML A1.SS2.p2.1, S133
EN
Let’s fix a sequence k 1 : T . It holds that
中
固定噪声等级序列 k₁:ₜ。有以下恒等关系。

k1:T

p𝜽​((𝐱tkt)1≤t≤T) =∫𝐳1:T∏t=1Tp(𝐱tkt,𝐳t∣(𝐱sks,𝐳s)s<t)
=∫𝐳1:T∏t=1Tp(𝐱tkt,𝐳t∣𝐳t−1) (马尔可夫性质)
=∫𝐳1:T(𝐤)∏t=1Tp(𝐳t∣𝐳t−1,𝐱tkt)p𝜽(𝐱tkt∣𝐳t−1)
=𝔼𝐳s∼p⁡(𝐳s∣𝐳s−1,𝐱sks),s≤T∏t=1Tp𝜽​(𝐱tkt∣𝐳t−1). (重要性采样)

SOURCE p.17 (approx.), HTML A1.SS2.p2.2, S134
EN
Thus, by Jensen’s inequality,
中
由 Jensen 不等式可得下式。
ln⁡p𝜽​((𝐱tkt)1≤t≤T) ≥𝔼𝐳s∼p⁡(𝐳s∣𝐳s−1,𝐱sks),s≤T∑t=1Tlnp𝜽(𝐱tkt∣𝐳t−1)=𝔼p,𝐳1:T[∑t=1Tlnp𝜽(𝐱tkt∣𝐳t−1)],

SOURCE p.17 (approx.), HTML A1.SS2.p2.3, S135
EN
where the inequality is and equality when p 𝜽 ​ ( 𝐳 s ∣ 𝐳 s − 1 , 𝐱 s k s ) is a Dirac distribution. By applying 𝔼 forward to both sides of the above display, and invoking the Markov property of the latents, we conclude that
中
当潜变量条件分布为狄拉克分布时,不等式取等号。对上式两侧取正向过程期望,再用潜变量的马尔可夫性质,得到以下结论。

p𝜽​(𝐳s∣𝐳s−1,𝐱sks)

𝔼forward

𝔼forward[ln⁡p𝜽​((𝐱tkt)1≤t≤T)] ≥𝔼forward𝔼p,𝐳1:T[∑t=1Tlnp𝜽(𝐱tkt∣𝐳t−1)]
=∑t=1T𝔼<t𝔼kt​∼unif​{0,1,…,K}𝔼𝐱tkt∼q⁡(𝐱tkt∣𝐱t0)[ln⁡p𝜽​(𝐱tkt∣𝐳t−1)].

SOURCE p.17 (approx.), HTML A1.SS2.p3.1, S136
EN
We now unpack the terms obtained from the preceding claim.
中
现在展开上一命题得到的各项。

命题 2 (ELBO w.r.t. q).

EN
Proof.
中
命题 2 (ELBO w.r.t. q).

SOURCE p.None (approx.), HTML Thmclaim2.p1.1, S137
EN
It holds that
中
有下式。
𝔼𝐱tkt∼q⁡(𝐱tkt∣𝐱t0)[lnp𝜽(𝐱tkt∣𝐳t−1)]≥C1(𝐱0,kt)+[𝔼𝐱tkt:K∼q(𝐱tkt:K∣𝐱t0)lnp𝜽(𝐱tkt:K∣𝐳t−1)q(𝐱tkt+1:K∣𝐱t0)].

SOURCE p.17 (approx.), HTML Thmclaim2.p1.2, S138
EN
where C 1 ​ ( 𝐱 0 , k t ) is a constant depending only on 𝐱 0 and k t , and where the inequality holds with equality if and only if q ( 𝐱 t k t + 1 : T ∣ 𝐱 t k t ) ≡ p 𝛉 ( 𝐱 t k t + 1 : T ∣ 𝐱 t k t , 𝐳 t − 1 ) .
中
其中 C₁ 仅依赖干净数据与 kₜ。该不等式当且仅当所列 q 与 pθ 条件分布相同,即变分近似精确时取等号。

C1​(𝐱0,kt)

𝐱0

kt

q(𝐱tkt+1:T∣𝐱tkt)≡p𝛉(𝐱tkt+1:T∣𝐱tkt,𝐳t−1)

证明.

EN
Claim 2 (ELBO w.r.t. q ) .
中
证明.

SOURCE p.None (approx.), HTML A1.SS2.p4.1, S139
EN
We have that
中
我们有以下推导。
𝔼𝐱tkt∼q⁡(𝐱tkt∣𝐱t0)[ln⁡p𝜽​(𝐱tkt∣𝐳t−1)]
=𝔼𝐱tkt∼q⁡(𝐱tkt∣𝐱t0)[ln∫p𝜽(𝐱tkt:K∣𝐳t−1)d𝐱tkt+1:K]
=𝔼𝐱tkt∼q⁡(𝐱tkt∣𝐱t0)[ln(𝔼𝐱tkt+1:K∼q(𝐱tkt+1:K∣𝐱tkt)[p𝜽(𝐱tkt:K∣𝐳t−1)q(𝐱tkt+1:K∣𝐱tkt)])]
≥𝔼𝐱tkt∼q⁡(𝐱tkt∣𝐱t0)[𝔼𝐱tkt+1:K∼q(𝐱tkt+1:K∣𝐱tkt)[lnp𝜽(𝐱tkt:K∣𝐳t−1)q(𝐱tkt+1:K∣𝐱tkt)]] ((Jensen不等式))
=𝔼𝐱tkt:K∼q(𝐱tkt:K∣𝐱t0)[lnp𝜽(𝐱tkt:K∣𝐳t−1)q(𝐱tkt+1:K∣𝐱tkt)] (以下分布的马尔可夫性质 q⁡(⋅))
=C1(𝐱0,kt)+[𝔼𝐱tkt:K∼q(𝐱tkt:K∣𝐱t0)lnp𝜽(𝐱tkt:K∣𝐳t−1)q(𝐱tkt+1:K∣𝐱t0)],

SOURCE p.17 (approx.), HTML A1.SS2.p4.2, S140
EN
where the constant C 1 ( 𝐱 0 , k t ) = 𝔼 𝐱 t k t : K ∼ q ( 𝐱 t k t : K ∣ 𝐱 t 0 ) [ ln q ( 𝐱 t k t + 1 : K ∣ 𝐱 t 0 ) q ( 𝐱 t k t + 1 : K ∣ 𝐱 t k t ) ] depends only on 𝐱 0 and k t . To check the conditions for equality, note that if q ( 𝐱 t k t + 1 : T ∣ 𝐱 t k t ) ≡ p 𝜽 ( 𝐱 t k t + 1 : T ∣ 𝐱 t k t , 𝐳 t − 1 ) , then
中
其中所定义 C₁ 是正向过程下对数密度比的期望,只依赖干净数据和 kₜ。为检验等号条件,若所列 q 与 pθ 条件分布完全相同,则有下列恒等式。

C1(𝐱0,kt)=𝔼𝐱tkt:K∼q(𝐱tkt:K∣𝐱t0)[lnq(𝐱tkt+1:K∣𝐱t0)q(𝐱tkt+1:K∣𝐱tkt)]

𝐱0

kt

q(𝐱tkt+1:T∣𝐱tkt)≡p𝜽(𝐱tkt+1:T∣𝐱tkt,𝐳t−1)

𝔼𝐱tkt+1:K∼q(𝐱tkt+1:K∣𝐱tkt)[lnp𝜽(𝐱tkt:K∣𝐳t−1)q(𝐱tkt+1:K∣𝐱tkt)] =lnp𝜽(𝐱tkt∣𝐳t−1)+𝔼𝐱tkt+1:K∼q(𝐱tkt+1:K∣𝐱tkt)[lnp𝜽(𝐱tkt+1:K∣𝐳t−1,𝐱tkt)]

SOURCE p.17 (approx.), HTML A1.SS2.p4.3, S141
EN
Since ln ⁡ ( ⋅ ) is strictly concave, 𝔼 𝐱 t k t + 1 : K ∼ q ( 𝐱 t k t + 1 : K ∣ 𝐱 t k t ) [ ln p 𝜽 ( 𝐱 t k t ∣ 𝐳 t − 1 ) ] = 0 if and only if p 𝜽 ( 𝐱 t k t + 1 : K ∣ 𝐳 t − 1 , 𝐱 t k t ) = q ( 𝐱 t k t + 1 : K ∣ 𝐱 t k t ) . ∎
中
因为 log 严格凹,所列期望中的 Jensen 等号当且仅当相应 pθ 后验与 q 后验相同才成立。证毕。(底本该句的零值表达按原公式保留,等号条件与上文一致。)

ln⁡(⋅)

𝔼𝐱tkt+1:K∼q(𝐱tkt+1:K∣𝐱tkt)[lnp𝜽(𝐱tkt∣𝐳t−1)]=0

p𝜽(𝐱tkt+1:K∣𝐳t−1,𝐱tkt)=q(𝐱tkt+1:K∣𝐱tkt)

命题 3 (计算期望ELBO).

EN
Proof.
中
命题 3 (计算期望ELBO).
𝔼𝐱tkt:K∼q(𝐱tkt:K∣𝐱t0)lnp𝜽(𝐱tkt:K∣𝐳t−1)q(𝐱tkt+1:K∣𝐱0t)
=C3(𝐱0,kt)+𝟏{kt=0}lnp𝜽(𝐱t0∣𝐱t1,𝐳t−1)+∑j=1K−1𝟏{j≥kt}D𝕂​𝕃(q(𝐱tj∣𝐱tj+1,𝐱t0)∥p𝜽(𝐱tj∣𝐱tj+1,𝐳t−1)),

SOURCE p.17 (approx.), HTML Thmclaim3.p1.1, S142
EN
where C 2 ​ ( 𝐱 0 , k t ) is some other constant depending on 𝐱 0 and k t .
中
其中 C₂ 是另一个只依赖干净数据和 kₜ 的常数。

C2​(𝐱0,kt)

𝐱0

kt

证明.

EN
Claim 3 (Computing the expected ELBO) .
中
证明.

SOURCE p.18 (approx.), HTML A1.SS2.p5.1, S143
EN
The proof invokes similar manipulations to the standard ELBO derivation for diffusion, but with a few careful modifications to handle the fact that we only noise to level k t . As is standard, we require the identity
中
证明使用标准扩散 ELBO 推导的类似变换,但要仔细处理正向过程只加噪至 kₜ 这一点。照常,先用以下恒等式。

kt

q⁡(𝐱tj∣𝐱tj−1,𝐱t0)=q⁡(𝐱tj−1∣𝐱tj,𝐱t0)⋅q⁡(𝐱tj∣𝐱t0)q⁡(𝐱tj−1∣𝐱t0). (A.10)

第1部分:展开似然比

EN
Part 1: Expanding the likelihood ratios
中
第1部分:展开似然比

SOURCE p.18 (approx.), HTML A1.SS2.SSS0.Px1.p1.1, S145
EN
. Using the above identity, we obtain
中
利用上述恒等式,可得下式。
lnp𝜽(𝐱tkt:K∣𝐳t−1)q(𝐱tkt+1:K∣𝐱0t)
=ln⁡p⁡(𝐱tK∣𝐳t−1)+ln⁡p𝜽​(𝐱tkt∣𝐱tkt+1,𝐳t−1)q⁡(𝐱tkt+1∣𝐱t0)+∑j=kt+2Kln⁡p𝜽​(𝐱tj−1∣𝐱tj,𝐳t−1)q⁡(𝐱tj∣𝐱tj−1,𝐱t0)
=(i)​ln⁡p⁡(𝐱tK∣𝐳t−1)+ln⁡p𝜽​(𝐱tkt∣𝐱tkt+1,𝐳t−1)q⁡(𝐱tkt+1∣𝐱t0)+∑j=kt+2K(ln⁡p𝜽​(𝐱tj−1∣𝐱tj,𝐳t−1)q⁡(𝐱tj−1∣𝐱tj,𝐱tkt)+ln⁡q⁡(𝐱tj−1∣𝐱t0)q⁡(𝐱tj∣𝐱t0))
=(i​i)​ln⁡p⁡(𝐱tK∣𝐳t−1)+ln⁡p𝜽​(𝐱tkt∣𝐱tkt+1,𝐳t−1)q⁡(𝐱tkt+1∣𝐱t0)+ln⁡q⁡(𝐱tkt+1∣𝐱tkt)q⁡(𝐱tK∣𝐱tkt)+∑j=kt+1K−1ln⁡p𝜽​(𝐱tj∣𝐱tj+1,𝐳t−1)q⁡(𝐱tj∣𝐱tj+1,𝐱t0)
=ln⁡p⁡(𝐱tK∣𝐳t−1)q⁡(𝐱tK∣𝐱tkt)+ln⁡p𝜽​(𝐱tkt∣𝐱tkt+1,𝐳t−1)+∑j=kt+1K−1ln⁡p𝜽​(𝐱tj∣𝐱tj+1,𝐳t−1)q⁡(𝐱tj∣𝐱tj+1,𝐱t0)
=ln(q(𝐱tkt∣𝐱tkt+1)𝟏{kt≥1})+ln⁡p⁡(𝐱tK∣𝐳t−1)q⁡(𝐱tK∣𝐱tkt)+ln⁡p𝜽​(𝐱tkt∣𝐱tkt+1,𝐳t−1)q(𝐱tkt∣𝐱tkt+1)𝟏{kt≥1}+∑j=kt+1K−1ln⁡p𝜽​(𝐱tj∣𝐱tj+1,𝐳t−1)q⁡(𝐱tj∣𝐱tj+1,𝐱t0),

SOURCE p.18 (approx.), HTML A1.SS2.SSS0.Px1.p1.2, S146
EN
where ( i ) uses A.10 , ( i ​ i ) invokes a cancellation in the telescoping sum, and the final display follows from the computation
中
其中 (i) 使用式(A.10),(ii) 用望远镜求和的抵消,最后一式来自下列计算。

(i)

(i​i)

q(𝐱tkt∣𝐱tkt+1)𝟏{kt≥1}={1kt=0q⁡(𝐱tkt∣𝐱tkt+1)kt≥1. (A.11)

SOURCE p.18 (approx.), HTML A1.SS2.SSS0.Px1.p1.3, S147
EN
Observe that, because we don’t parameterize p ⁡ ( 𝐱 t K ∣ 𝐳 t − 1 ) , ln ( q ( 𝐱 t k t ∣ 𝐱 t k t + 1 ) 𝟏 { k t ≥ 1 } ) + ln ⁡ p ⁡ ( 𝐱 t K ∣ 𝐳 t − 1 ) q ⁡ ( 𝐱 t K ∣ 𝐱 t k t ) can be regarded as some constant C ′ ​ ( 𝐱 t k t , 𝐱 t k t + 1 , 𝐱 t K ) . Thus,
中
注意,我们并未参数化最大噪声等级处的 p(xₜᴷ|zₜ₋₁),所以所列项都可视为仅依赖对应噪声变量的常数 C′。于是得到下式。

p⁡(𝐱tK∣𝐳t−1)

ln(q(𝐱tkt∣𝐱tkt+1)𝟏{kt≥1})+ln⁡p⁡(𝐱tK∣𝐳t−1)q⁡(𝐱tK∣𝐱tkt)

C′​(𝐱tkt,𝐱tkt+1,𝐱tK)

lnp𝜽(𝐱tkt:K∣𝐳t−1)q(𝐱tkt+1:K∣𝐱0t)=C′(𝐱tkt,𝐱tkt+1,𝐱tK)+lnp𝜽​(𝐱tkt∣𝐱tkt+1,𝐳t−1)q(𝐱tkt∣𝐱tkt+1)𝟏{kt≥1}+∑j=kt+1K−1lnp𝜽​(𝐱tj∣𝐱tj+1,𝐳t−1)q⁡(𝐱tj∣𝐱tj+1,𝐱t0) (A.12)

第2部分:取期望

EN
Part 2: Taking expecations.
中
第2部分:取期望

SOURCE p.18 (approx.), HTML A1.SS2.SSS0.Px2.p1.1, S149
EN
We can now simplify to taking expectations. Observe that
中
现在可通过取期望简化。注意下列关系。
𝔼𝐱tkt:K∼q(𝐱tkt:K∣𝐱t0)lnp𝜽​(𝐱tj∣𝐱tj+1,𝐳t−1)q⁡(𝐱tj∣𝐱tj+1,𝐱t0)=D𝕂​𝕃(q(𝐱tj∣𝐱tj+1,𝐱t0)∥p𝜽(𝐱tj∣𝐱tj+1,𝐳t−1)),

SOURCE p.None (approx.), HTML A1.SS2.SSS0.Px2.p1.2, S150
EN
and similarly,
中
类似地,有下式。
𝔼𝐱tkt:K∼q(𝐱tkt:K∣𝐱t0)lnp𝜽​(𝐱tkt∣𝐱tkt+1,𝐳t−1)q(𝐱tkt∣𝐱tkt+1)𝟏{kt≥1}={ln⁡p𝜽​(𝐱t0∣𝐱t1,𝐳t−1)kt=0D𝕂​𝕃(q(𝐱tkt∣𝐱tkt+1,𝐱t0)∥p𝜽(𝐱tkt∣𝐱tj+1,𝐳t−1))kt≥1.

SOURCE p.18 (approx.), HTML A1.SS2.SSS0.Px2.p1.3, S151
EN
Finally, 𝔼 𝐱 t k t : K ∼ q ( 𝐱 t k t : K ∣ 𝐱 t 0 ) C ′ ( 𝐱 t k t , 𝐱 t k t + 1 , 𝐱 t K ) is a constant C 2 ​ ( k t , 𝐱 0 ) depending only on k t , 𝐱 0 . Thus, from ( A.12 )
中
最后,C′ 对正向过程取期望后,是仅依赖 kₜ 和干净数据的常数 C₂。因此,由式(A.12)得到以下结果。

𝔼𝐱tkt:K∼q(𝐱tkt:K∣𝐱t0)C′(𝐱tkt,𝐱tkt+1,𝐱tK)

C2​(kt,𝐱0)

kt,𝐱0

𝔼𝐱tkt:K∼q(𝐱tkt:K∣𝐱t0)lnp𝜽(𝐱tkt:K∣𝐳t−1)q(𝐱tkt+1:K∣𝐱0t)
=C2(kt,𝐱0)+𝟏{kt=0}lnp𝜽(𝐱t0∣𝐱t1,𝐳t−1)+∑j=max⁡{1,kt}K−1D𝕂​𝕃(q(𝐱tj∣𝐱tj+1,𝐱t0)∥p𝜽(𝐱tj∣𝐱tj+1,𝐳t−1))
=C2(kt,𝐱0)+𝟏{kt=0}lnp𝜽(𝐱t0∣𝐱t1,𝐳t−1)+∑j=1K−1𝟏{j≥kt}D𝕂​𝕃(q(𝐱tj∣𝐱tj+1,𝐱t0)∥p𝜽(𝐱tj∣𝐱tj+1,𝐳t−1)).

完成 ELBO 证明。

EN
Completing the proof of the ELBO.
中
完成 ELBO 证明。

SOURCE p.19 (approx.), HTML A1.SS2.SSS0.Px3.p1.1, S153
EN
We are now ready to complete the proof. By combining the previous two claims, we have
中
现在合并前两个命题,得到下式。
𝔼𝐱tkt∼q⁡(𝐱tkt∣𝐱t0)[ln⁡p𝜽​(𝐱tkt∣𝐳t−1)]
≥C3(𝐱0,kt)+𝟏{kt=0}lnp𝜽(𝐱t0∣𝐱t1,𝐳t−1)+∑j=1K−1𝟏{j≥kt}D𝕂​𝕃(q(𝐱tj∣𝐱tj+1,𝐱t0)∥p𝜽(𝐱tj∣𝐱tj+1,𝐳t−1)),

SOURCE p.19 (approx.), HTML A1.SS2.SSS0.Px3.p1.2, S154
EN
where C 3 ​ ( 𝐱 0 , k t ) = C 1 ​ ( 𝐱 0 , k t ) + C 2 ​ ( 𝐱 0 , k t ) and where again, the above is an equality when q ( 𝐱 t k t + 1 : T ∣ 𝐱 t k t ) ≡ p 𝜽 ( 𝐱 t k t + 1 : T ∣ 𝐱 t k t , 𝐳 t − 1 ) . Taking an expectation over k t ​ ∼ unif ​ { 0 , 1 , … , K } , we have
中
其中 C₃=C₁+C₂;同样,当所列 q 与 pθ 条件分布一致时取等号。再对 {0,…,K} 上均匀的 kₜ 取期望,得到下式。

C3​(𝐱0,kt)=C1​(𝐱0,kt)+C2​(𝐱0,kt)

q(𝐱tkt+1:T∣𝐱tkt)≡p𝜽(𝐱tkt+1:T∣𝐱tkt,𝐳t−1)

kt​∼unif​{0,1,…,K}

𝔼kt​∼unif​{0,1,…,K}[𝟏{kt=0}]=1K+1,𝔼kt​∼unif​{0,1,…,K}𝟏{j≥kt}=j+1K+1. (A.13)

SOURCE p.None (approx.), HTML A1.SS2.SSS0.Px3.p1.3, S155
EN
and consequently,
中
因此得到以下结果。
𝔼kt​∼unif​{0,1,…,K}𝔼𝐱tkt∼q⁡(𝐱tkt∣𝐱t0),1≤t≤Tln⁡p𝜽​((𝐱tkt)1≤t≤T)
≥C4(𝐱t0)+1K+1lnp𝜽(𝐱t0∣𝐱t1,𝐳t−1)+∑j=1K−1j+1K+1D𝕂​𝕃(q(𝐱tj∣𝐱tj+1,𝐱t0)∥p𝜽(𝐱tj∣𝐱tj+1,𝐳t−1))

SOURCE p.None (approx.), HTML A1.SS2.SSS0.Px3.p1.4, S156
EN
Invoking Claim 1 ,
中
应用命题1,可得下式。
𝔼forward[ln⁡p𝜽​((𝐱tkt)1≤t≤T)]
≥∑t=1T𝔼<t𝔼kt​∼unif​{0,1,…,K}𝔼𝐱tkt∼q⁡(𝐱tkt∣𝐱t0)[ln⁡p𝜽​(𝐱tkt∣𝐳t−1)]
=∑t=1T𝔼<t[C4(𝐱t0)+1K+1lnp𝜽(𝐱t0∣𝐱t1,𝐳t−1)+∑j=1K−1j+1K+1D𝕂​𝕃(q(𝐱tj∣𝐱tj+1,𝐱t0)∥p𝜽(𝐱tj∣𝐱tj+1,𝐳t−1))]

SOURCE p.19 (approx.), HTML A1.SS2.SSS0.Px3.p1.5, S157
EN
We conclude by observing that ∑ t = 1 T 𝔼 < t [ C 4 ​ ( 𝐱 t 0 ) ] is a constant C ( 𝐱 1 : T 0 ) , and that
中
最后注意,各时刻 C₄ 的过去期望之和是仅依赖整条干净序列的常数 C;并且有以下关系。

∑t=1T𝔼<t[C4​(𝐱t0)]

C(𝐱1:T0)

𝔼<t[lnp𝜽(𝐱t0∣𝐱t1,𝐳t−1)]=𝔼forward𝔼p,𝐳1:T[lnp𝜽(𝐱t0∣𝐱t1,𝐳t−1)]
𝔼<t[D𝕂​𝕃(q(𝐱tj∣𝐱tj+1,𝐱t0)∥p𝜽(𝐱tj∣𝐱tj+1,𝐳t−1))]
=𝔼forward𝔼p,𝐳1:T[D𝕂​𝕃(q(𝐱tj∣𝐱tj+1,𝐱t0)∥p𝜽(𝐱tj∣𝐱tj+1,𝐳t−1))],

SOURCE p.19 (approx.), HTML A1.SS2.SSS0.Px3.p1.6, S158
EN
since both terms only depend on k 1 : t − 1 , ( 𝐱 s k s ) 1 ≤ s ≤ t − 1 and 𝐳 1 : t − 1 . We conclude then that
中
原因是两项都只依赖过去噪声等级、过去噪声 token 与过去潜变量。因此得到下列结论。

k1:t−1,(𝐱sks)1≤s≤t−1

𝐳1:t−1

𝔼forward[lnp𝜽((𝐱tkt)1≤t≤T)]≥C(𝐱1:T0)
+𝔼forward𝔼p,𝐳1:T[∑t=1T(1K+1lnp𝜽(𝐱t0∣𝐱t1,𝐳t−1)+∑j=1K−1j+1K+1D𝕂​𝕃(q(𝐱tj∣𝐱tj+1,𝐱t0)∥p𝜽(𝐱tj∣𝐱tj+1,𝐳t−1)))],

SOURCE p.19 (approx.), HTML A1.SS2.SSS0.Px3.p1.7, S159
EN
as needed. Lastly, we recall that the above is an equality under the conditions that (a) p 𝜽 ​ ( 𝐳 t ∣ 𝐳 t − 1 , 𝐱 t k t ) is a Dirac distribution, and (b) q ( 𝐱 t k t + 1 : T ∣ 𝐱 t k t ) ≡ p 𝜽 ( 𝐱 t k t + 1 : T ∣ 𝐱 t k t , 𝐳 t − 1 ) , and we reindex j ← j + 1 to ensure consistency with indexing in standard expositions of the diffusion ELBO.
中
这就是所需结论。回顾等号条件:(a)潜变量条件分布为狄拉克分布;(b)所列 q 和 pθ 条件分布完全一致。最后重新编号 j←j+1,以与标准扩散 ELBO 的下标一致。

p𝜽​(𝐳t∣𝐳t−1,𝐱tkt)

q(𝐱tkt+1:T∣𝐱tkt)≡p𝜽(𝐱tkt+1:T∣𝐱tkt,𝐳t−1)

j←j+1

附录B 更多直觉与解释

EN
Appendix B Additional Intuitions and Explainations
中
附录B 更多直觉与解释

B.1 扩展至 Transformer 主干

EN
B.1 Extension to transformer backbone
中
B.1 扩展至 Transformer 主干

SOURCE p.20 (approx.), HTML A2.SS1.p1.1, S162
EN
While this paper focuses on a causal implementation of Diffusion Forcing with RNNs, it’s easy to adopt Diffusion Forcing with modern architectures like transformers. One can simply modify a transformer-based sequence diffusion model to train with independent noise levels across tokens and follow the techniques listed in Section D.1 . A strict implementation of causal Diffusion Forcing would involve a causal attention mask on the transformer. However, Diffusion Forcing’s fractional masking can do something more interesting: Consider the scenario that we use a transformer without a causal mask. We can still implement causality by controlling noise. By labeling the future as full white noise, there is no information leaked into the past tokens. By labeling future tokens as free of noise, we make the model completely non-causal. By labeling the future tokens as noisy, a slight amount of information about the future is provided for the prediction of past tokens. This effectively states that one only needs a non-causal architecture, but controlling fractional noise of the future, to achieve partial or complete causality. These extensions are beyond the scope of this paper, but we already verified their effectiveness and thus provide them as intuitions for future works.
中
虽然本文关注基于 RNN 的因果实现,但 DF 很容易适配现代 Transformer。只需让基于 Transformer 的序列扩散训练采用 token 独立噪声等级,并遵循D.1技巧。严格的因果 DF 要用因果注意力掩码。不过,部分掩码还有更有趣的用法:即使用没有因果掩码的 Transformer,也能通过控制噪声实现因果性。把未来标成白噪声,就不会向过去泄漏信息;把未来标成无噪声,模型就完全非因果;把未来标成部分噪声,则允许少量未来信息用于预测过去。因此,仅用非因果架构并控制未来噪声程度,就可能实现部分或完全因果性。这些扩展超出本文范围,但我们已验证有效,故作为后续工作的直觉提供。

B.2 为什么噪声等级必须独立

EN
B.2 The need for independent noise levels
中
B.2 为什么噪声等级必须独立

SOURCE p.20 (approx.), HTML A2.SS2.p1.1, S164
EN
When training Diffusion Forcing, we choose to sample per-token noise level following i.i.d uniform distribution from [ 1 , 2 ​ … ​ K ] . One may wonder about the necessity of this choice. Here we discuss the unique abilities of independent noise and the compute overhead added by it.
中
训练 DF 时,我们令逐 token 噪声等级从 [1,…,K] 独立同分布均匀采样。这个选择是否必要?下面讨论独立噪声的独有能力和新增计算开销。

[1,2​…​K]

SOURCE p.20 (approx.), HTML A2.SS2.p2.1, S165
EN
The use of independent noise confers a number of special capabilities in our model, including stabilization of autoregressive rollout 3.3 , modeling causal uncertainty 3.3 , and removing the need for expensive reconstruction guidance when conditioning on context B.6 . None of these capabilities can be achieved by full-sequence diffusion. AR-diffusion [ 67 ] and Rolling Diffusion [ 52 ] can only achieve the first and third one. There are more sampling-time applications such as flexible frame interpolation. Finally, we also saw the practical benefits of using independent noise in hyperparameter tuning. One can simply try different sampling schemes to figure out the most effective one for their applications. All these capabilities only require training the model once with Diffusion Forcing. In contrast, any tuning of the sampling scheme would require re-training the model for AR-diffusion and Rolling Diffusion.
中
独立噪声带来:3.3节的自回归滚动稳定化、因果不确定性建模,以及B.6中以历史为条件时避免昂贵重建引导。全序列扩散无法实现这些能力;AR-diffusion [67] 和 Rolling Diffusion [52] 只支持第一和第三项。还存在灵活插帧等采样期应用。独立噪声也便于调参:只需尝试不同采样日程,找出适合应用者。所有能力只需一次 DF 训练;AR-diffusion 和 Rolling Diffusion 若调采样方案,必须重训。

SOURCE p.20 (approx.), HTML A2.SS2.p3.1, S166
EN
On the other hand, we didn’t observe much computing overhead when comparing Diffusion Forcing to full-sequence diffusion, as soon as one closely follows our training techniques like D.1 . The empirical evidence is based on our experiments with an experimental transformer implementation of Diffusion Forcing and is thus not fully consistent with the main paper. However, we present the high-level descriptions below for readers interested in more insights: The complexity added by independent noise levels is in the temporal dimension. Therefore, we first adopt a standard technique for video diffusion models - image pre-training, to abstract away the complexity of the image pixels themselves. Then the complexity left is temporal prediction only. We then take the pre-trained image-only model and continue training it on video data. It turns out the sampling result of Diffusion Forcing with fewer training steps in this second stage is already better than that of full-sequence diffusion at convergence. We speculate that the better result is due to the same data-augmentation effect described in prior works [ 40 ] . This shows that the overhead added by independent noise is well-warranted when considering the overall training compute (including image pre-training).
中
另一方面,只要严格遵循D.1等训练技巧,我们没有观察到相对全序列扩散明显的额外计算开销。这一经验来自实验性 Transformer 版 DF,并非完全与正文实验一致。高层过程是:独立噪声新增的复杂性在时间维;先用视频扩散常见的图像预训练,把像素本身的复杂性抽离,剩下时间预测;再在视频上继续训练预训练图像模型。第二阶段较少训练步的 DF 已优于收敛后的全序列扩散。我们推测这源于 [40] 所述的数据增强效应。考虑包括图像预训练的总计算,独立噪声增加的开销是值得的。

B.3 以引导实现规划

EN
B.3 Guidance as planning
中
B.3 以引导实现规划

SOURCE p.20 (approx.), HTML A2.SS3.p1.1, S168
EN
As stated in Section 2 , one can use the gradient of the logarithmic of a classifier log ⁡ c ⁡ ( y | 𝐱 t k ) to guide the sampling process of diffusion model towards samples with a desired attribute y . For example, y can refer to the indicator of a success event. However, we can consider the logarithmic of a more general energy function c ⁡ ( 𝐱 t k ) . This has the interpretation as Pr ⁡ ( y | 𝐱 t k ) , where Pr ⁡ [ y = 1 ∣ 𝐱 t k ] = e c ⁡ ( 𝐱 t k ) . Some popular candidate energies include
中
如第2节,可用分类器对数概率的梯度引导采样至具有属性 y 的结果,例如成功事件。但也可考虑更一般的能量函数 c,其指数可解释为成功的条件概率。一些常用能量候选如下。

log⁡c⁡(y|𝐱tk)

y

y

c⁡(𝐱tk)

Pr⁡(y|𝐱tk)

Pr⁡[y=1∣𝐱tk]=ec⁡(𝐱tk)

c(𝐱tk)=𝔼[∑t′>t𝐫′(𝐱t′kt′)∣𝐱tk], (B.1)

SOURCE p.20 (approx.), HTML A2.SS3.p1.2, S169
EN
corresponding to a cost-to-go; we can obtain unbiased estimates of this gradient by using cumulative reward c ~ ( 𝐱 t k ) = ∑ t ′ > t 𝐫 ′ ( 𝐱 t ′ k t ′ ) . We can also use goal distance c = − ‖ 𝐱 T k T − 𝐠 ‖ 2 as a terminal reward. We provide details about the guidance function deployed in the maze2d planning experiment in Appendix D.5 .
中
它们对应剩余代价;可用未来累积奖励构造该梯度的无偏估计。也可用末端位置至目标的负平方距离作为终端奖励。maze2d 实验实际引导函数见D.5。

c~(𝐱tk)=∑t′>t𝐫′(𝐱t′kt′)

c=−‖𝐱TkT−𝐠‖2

B.4 加噪如何稳定长时域生成

EN
B.4 Noising and stabilizing long-horizon generations
中
B.4 加噪如何稳定长时域生成

SOURCE p.20 (approx.), HTML A2.SS4.p1.1, S171
EN
Here, we explain in detail how we use noising to stabilize long-horizon generation. At each time t , during the denoising, we maintain a latent 𝐳 t − 1 k small from the previous time step, with 0 < k small ≪ K corresponding to some small amount of noise. We then do next token diffusion to diffuse the token 𝐱 t across noise levels 𝐱 t K , 𝐱 t K − 1 , … , 𝐱 t 0 (corresponding to Algorithm 2 with horizon T = 1 , initial latent 𝐳 t − 1 k , and noise schedule 𝒦 m , 1 = m ); this process also produces latents 𝐳 t K , 𝐳 t K − 1 , … , 𝐳 t 0 associated with each noise level. From these, we use the latent 𝐳 t k small to repeat the process. This noised latent can be interpreted as an implementation of conditioning on 𝐱 t k small in an autoregressive process. In a potential transformer implementation of Diffusion Forcing as we discussed in Appendix B.1 , one can instead run a forward diffusion on a fully diffused token to achieve stabilization.
中
每个时刻 t 去噪时,都保留上一时刻小正噪声等级 k_small 对应的潜状态 zₜ₋₁。以它为初始潜变量做下一 token 扩散,把当前 token 从 K 逐级去噪至0(即算法2取 T=1,日程 𝒦ₘ,₁=m)。这也得到各噪声等级对应的潜变量。选择当前 k_small 的潜变量,重复过程。此带噪声潜状态可解释为自回归过程以略带噪声的当前 token 为条件。若采用B.1的 Transformer,可对已完全去噪 token 再做正向加噪以稳定生成。

t

𝐳t−1ksmall

0<ksmall≪K

𝐱t

𝐱tK,𝐱tK−1,…,𝐱t0

T=1

𝐳t−1k

𝒦m,1=m

𝐳tK,𝐳tK−1,…,𝐳t0

𝐳tksmall

𝐱tksmall

SOURCE p.21 (approx.), HTML A2.SS4.p2.1, S172
EN
It is widely appreciated that adding noise to data ameliorates long-term compounding error in behavior cloning applications [ 39 , 43 ] , and even induces robustness to non-sequential adversarial attacks [ 13 ] . In autoregressive video generation, the noised 𝐱 t k small is in-distribution for training, because Diffusion Forcing trains from noisy past observation in its training objective. Hence, this method can be interpreted as a special case of the DART algorithm for behavior cloning [ 43 ] , where the imitiator (in our case, video generator) is given actions (in our case, next video frames) from noisy observations (in our case, noised previous frames). Somewhat more precisely, because we use both tokens at training time to train Diffusion Forcing, and using slightly noised tokens for autoregression at test time, our approach inherits the theoretical guarantee of the HINT algorithm [ 5 ] .
中
数据加噪能缓解行为克隆中的长期误差累积 [39,43],也能增强对非序列对抗攻击的鲁棒性 [13]。自回归视频中,略带噪声的前一帧属于训练分布,因为 DF 的目标本来就以带噪声过去观测训练。它可视为行为克隆 DART [43] 的特例:模仿者(这里为视频生成器)从噪声观测(带噪声前帧)预测动作(下一帧)。更准确地,DF 训练覆盖这两种 token,并在测试自回归时使用略带噪声 token,因此继承 HINT 算法 [5] 的理论保证。

𝐱tksmall

B.5 为什么蒙特卡洛引导依赖 DF

EN
B.5 Why Monte Carlo Guidance relies on Diffusion Forcing
中
B.5 为什么蒙特卡洛引导依赖 DF

SOURCE p.21 (approx.), HTML A2.SS5.p1.1, S174
EN
Monte Carlo Guidance provides substantial variance reduction in our estimate of cost-to-go guidance ( B.1 ). This technique crucially relies on the ability to roll out future tokens from current ones to use these sample rollouts to get Monte Carlo estimates for gradients. This is not feasible with full-sequence diffusion, because this requires denoising all tokens in tandem; thus, for a given fixed noise level, there is no obvious source of randomness to use for the Monte Carlo estimate. It may be possible to achieve variable horizon via the trick proposed in the following subsection to simulate future rollouts, but to our knowledge, this approach is nonstandard.
中
MCG 大幅降低剩余代价引导估计的方差。它关键依赖:能从当前 token 滚动采样未来,用多条未来样本估计梯度。全序列扩散必须同步去噪全部 token,固定噪声等级下没有明显可用于蒙特卡洛估计的随机源。也许可以用下一节技巧模拟未来并得到可变时域,但据我们所知,这不是标准做法。

B.6 替换技巧能让全序列扩散具有灵活时域吗?

EN
B.6 Does the replacement technique lead to flexible horizons in full-sequence diffusion?
中
B.6 替换技巧能让全序列扩散具有灵活时域吗?

SOURCE p.21 (approx.), HTML A2.SS6.p1.1, S176
EN
A naive way to obtain flexible horizon generation in full-sequence diffusion is via the “replacement trick”: consider a full sequence model trained to diffuse 𝐱 1 : T , which we partition into 𝐱 1 : t − 1 , 𝐱 t : T ] . Having diffused tokens 𝐱 1 : t − 1 , we can attempt to denoise tokens of the form [ 𝐱 ~ 1 : t − 1 k , 𝐱 t : T k ] , where we fix 𝐱 ~ 1 : t − 1 k = 𝐱 1 : t − 1 to be the previously generated token, and only have score gradients update the remaining 𝐱 t : T k . One clear disadvantage of this method is inefficiency - one still needs to diffuse the whole sequence even when there is one step left at t = T − 1 . What’s more, [ 32 ] points out that this approach of conditioning, named “conditioning by replacement”, is both mathematically unprincipled and can lead to inconsistency in the generated sequence. The best fix proposed by [ 32 ] incorporates an additional gradient term with respect to 𝐱 t : T at every diffusion step; this is still an incomplete fix and suffers the computation cost of an extra backward propagation for every sampling step.
中
朴素办法是“替换技巧”:将固定长度序列分成已生成的过去和待生成的未来。在后续去噪中,固定过去部分为先前生成 token,仅用分数梯度更新未来。明显缺点是低效:即使只剩一步,仍要扩散整条序列。此外,[32] 指出这种“通过替换条件化”的方法缺乏数学原则,会使生成序列不一致。[32] 最好的修复是在每一步增加对未来 token 的额外梯度项;但修复仍不完整,并使每次采样多付出一次反向传播开销。

𝐱1:T

𝐱1:t−1,𝐱t:T]

𝐱1:t−1

[𝐱~1:t−1k,𝐱t:Tk]

𝐱~1:t−1k=𝐱1:t−1

𝐱t:Tk

t=T−1

𝐱t:T

B.7 与贝叶斯滤波的进一步联系

EN
B.7 Further connection to Bayesian filtering
中
B.7 与贝叶斯滤波的进一步联系

SOURCE p.21 (approx.), HTML A2.SS7.p1.1, S178
EN
The core idea of Diffusion Forcing can be interpreted as using diffusion to construct an interpolation between prior distribution and posterior distribution of a Bayes filter. Consider the hybrid distribution p ⁡ ( 𝐳 t | 𝐳 t − 1 , 𝐱 t k ) . When k = 0 , this hybrid distribution becomes the posterior p ⁡ ( 𝐳 t | 𝐳 t − 1 , 𝐱 t ) . On the other hand, when k = K , the hybrid distribution becomes p ⁡ ( 𝐳 t | 𝐳 t − 1 , 𝐧 ) for 𝐧 ∼ 𝒩 ⁡ ( 0 , 𝐈 ) . Since the independent Gaussian noise term 𝐧 contains no information about 𝐳 , this is exactly the prior distribution p ⁡ ( 𝐳 t | 𝐳 t − 1 ) . By varying k between K and 0 , the same neural network can parameterize everything between prior and posterior.
中
DF 的核心可理解为用扩散在贝叶斯滤波的先验与后验之间插值。考虑混合条件分布 p(zₜ|zₜ₋₁,xₜᵏ):k=0 时成为有真实观测的后验;k=K 时输入为独立高斯噪声,不包含潜状态信息,因此恰为先验 p(zₜ|zₜ₋₁)。令 k 在 K 与0之间变化,同一网络就能参数化先验与后验之间的全部分布。

p⁡(𝐳t|𝐳t−1,𝐱tk)

k=0

p⁡(𝐳t|𝐳t−1,𝐱t)

k=K

p⁡(𝐳t|𝐳t−1,𝐧)

𝐧∼𝒩⁡(0,𝐈)

𝐧

𝐳

p⁡(𝐳t|𝐳t−1)

k

K

0

原文图版

SOURCE p.21 (approx.), HTML A2.F5, S179
EN
Figure 5: Diffusion Forcing is trained on independent level of noises at different timesteps. As a result, we can control the noise level k to achieve different effects on conditioning and prediction.
中
图5:DF 在不同时间步以独立噪声等级训练。因此,可控制噪声等级 k,使条件化和预测产生不同效果。

k

B.8 与其他序列训练方案的联系

EN
B.8 Connection to other sequence training schemes
中
B.8 与其他序列训练方案的联系

SOURCE p.22 (approx.), HTML A2.SS8.p1.1, S181
EN
Noise as masking provides a unified view of different sequence training schemes. The following exposition uses a length 3 sequence as an example: We always start with fully masked sequence [ 𝐱 1 K , 𝐱 2 K , 𝐱 3 K ] with the goal of denoising it a “clean sequence” of zero noise. [ 𝐱 1 0 , 𝐱 2 0 , 𝐱 3 0 ] . Assume all diffusions are sampled with 3 -step DDIM.
中
把噪声视为掩码,可以统一各类序列训练方案。以长度3为例:总从三个完全掩码白噪声 token 出发,目标是得到三个零噪声干净 token;假设扩散均用3步 DDIM 采样。

3

[𝐱1K,𝐱2K,𝐱3K]

[𝐱10,𝐱20,𝐱30]

3

自回归。

EN
Autoregressive.
中
自回归。

SOURCE p.22 (approx.), HTML A2.SS8.SSS0.Px1.p1.1, S183
EN
In teacher forcing, one trains a model to predict the next token conditioned on prior observations. One can train next-token diffusion models with teacher forcing such as [ 50 ] : feed neural network with past observations as well as a current observation and ask it to predict clean current observation. A typical training pair can have the input of [ 𝐱 1 0 , 𝐱 2 0 , 𝐱 3 K ] ⊤ and target of [ 𝐱 1 0 , 𝐱 2 0 , 𝐱 3 0 ] ⊤ .
中
教师强制根据过去真实观测训练下一 token 预测。可像 [50] 一样训练下一 token 扩散:输入历史与当前噪声观测,要求预测干净当前观测。例如输入为前两个干净 token 加第三个白噪声 token,目标为三个干净 token。

[𝐱10,𝐱20,𝐱3K]⊤

[𝐱10,𝐱20,𝐱30]⊤

SOURCE p.22 (approx.), HTML A2.SS8.SSS0.Px1.p2.1, S184
EN
At sampling time, one fully diffuses the next token before adding the diffused observation to history to perform an autoregressive rollout. The diffusion process would thus look like
中
采样时先完全去噪下一个 token,再将它纳入历史,执行自回归滚动;过程如下。
[𝐱1K,𝐱2K,𝐱3K]⊤
[𝐱1K//2,𝐱2K,𝐱3K]⊤,
[𝐱10,𝐱2K,𝐱3K]⊤,
[𝐱10,𝐱2K//2,𝐱3K]⊤
[𝐱10,𝐱20,𝐱3K]⊤,
[𝐱10,𝐱20,𝐱3K//2]⊤,
[𝐱10,𝐱20,𝐱30]⊤.

SOURCE p.22 (approx.), HTML A2.SS8.SSS0.Px1.p2.2, S185
EN
Notably, Diffusion Forcing can also perform this sampling scheme at sampling time for applications like imitation learning, when one wants to diffuse the next action as fast as possible.
中
DF 也支持此采样方案,适合模仿学习等需要尽快生成下一动作的应用。

全序列扩散。

EN
Full Sequence Diffusion.
中
全序列扩散。

SOURCE p.22 (approx.), HTML A2.SS8.SSS0.Px2.p1.1, S187
EN
Full sequence diffusion models accept a noisy sequence and denoises level-by-level
中
全序列扩散接收整个噪声序列,逐噪声等级同步去噪,如下所示。
[𝐱1K,𝐱2K,𝐱3K]⊤
[𝐱1K//2,𝐱2K//2,𝐱3K//2]⊤,
[𝐱10,𝐱20,𝐱30]⊤.

SOURCE p.22 (approx.), HTML A2.SS8.SSS0.Px2.p1.2, S188
EN
Notably, Diffusion Forcing can also perform this sampling scheme at sampling time.
中
DF 同样能在采样时采用此方案。

带因果不确定性的 DF

EN
Diffusion Forcing with causal uncertainty
中
带因果不确定性的 DF

SOURCE p.22 (approx.), HTML A2.SS8.SSS0.Px3.p1.1, S190
EN
As shown in Figure 2 , to model causal uncertainty, Diffusion Forcing keeps the far future more uncertain than the near future by having a larger noise level k , at any time of diffusion. An example pattern looks like this:
中
如图2,为建模因果不确定性,DF 在扩散的任一时刻都使远未来噪声等级更大,从而比近未来更不确定。示例如下。

k

[𝐱1K,𝐱2K,𝐱3K]⊤
[𝐱1K//2,𝐱2K,𝐱3K]⊤,
[𝐱10,𝐱2K//2,𝐱3K]⊤,
[𝐱10,𝐱20,𝐱3K//2]⊤
[𝐱10,𝐱20,𝐱30]⊤

SOURCE p.22 (approx.), HTML A2.SS8.SSS0.Px3.p1.2, S191
EN
Notable, [ 66 ] is the first one to propose such a linear uncertainty sampling scheme for causal diffusion models, although Diffusion Forcing provides a generalization of such scheme in combination with other abilities.
中
值得指出,[66] 首先为因果扩散模型提出这种线性不确定性采样;DF 则将它与其他能力结合,给出了更一般的方案。

带稳定化的 DF

EN
Diffusion Forcing with stablization
中
带稳定化的 DF

SOURCE p.22 (approx.), HTML A2.SS8.SSS0.Px4.p1.1, S193
EN
Previously we introduced the autoregressive sampling scheme that Diffusion Forcing can also do. However, such a scheme can accumulate single-step errors because it treats predicted 𝐱 as ground truth observation. Diffusion Forcing addresses this problem by telling the model that generated images should be treated as noisy ground truth, as shown in 2 .
中
DF 也能做前述自回归采样,但把预测当作真实观测会累积单步误差。DF 通过告诉模型“生成图像应视为有噪声的真值”来缓解(图2)。

𝐱

SOURCE p.22 (approx.), HTML A2.SS8.SSS0.Px4.p2.1, S194
EN
It first fully diffuses the first token,
中
先完全去噪第一个 token,如下所示。
[𝐱1K,𝐱2K,𝐱3K]⊤
[𝐱1K//2,𝐱2K,𝐱3K]⊤,
[𝐱10,𝐱2K,𝐱3K]⊤

SOURCE p.22 (approx.), HTML A2.SS8.SSS0.Px4.p2.2, S195
EN
Then, it feed the diffused 𝐱 1 0 into the model but tell it is of a slightly higher noise level, as 𝐱 1 1 to diffuse 𝐱 2 .
中
再把已去噪的第一个 token 输入模型,但告知其处于略高噪声等级1,用来生成第二个 token。

𝐱10

𝐱11

𝐱2

[𝐱11,𝐱2K//2,𝐱3K]⊤
[𝐱11,𝐱20,𝐱3K]⊤

SOURCE p.23 (approx.), HTML A2.SS8.SSS0.Px4.p2.3, S196
EN
Then, it feeds the diffused 𝐱 2 0 into the model but tells it is of a higher noise level, as 𝐱 2 1 .
中
随后输入完全去噪的第二个 token,同样把它标为较高噪声等级1,继续生成。

𝐱20

𝐱21

[𝐱11,𝐱21,𝐱3K//2]⊤,
[𝐱11,𝐱21,𝐱30]⊤.

附录C 扩展相关工作

EN
Appendix C Extended Related Work
中
附录C 扩展相关工作

重建被掩码 token。

EN
Reconstructing masked tokens.
中
重建被掩码 token。

SOURCE p.23 (approx.), HTML A3.SS0.SSS0.Px1.p1.1, S199
EN
Masked Autoencoders for images [ 27 ] and videos [ 17 ] are a popular method for representation learning in pixel space. They have been extended to perform diffusion to generate masked patches conditioned on unmasked ones [ 63 , 19 ] .
中
图像 [27] 和视频 [17] 的掩码自编码器,是像素空间表示学习的常用方法;它们还被扩展为以未掩码块为条件,扩散生成被掩码块 [63,19]。

把图像生成转为序列生成。

EN
Casting Image Generation as Sequence Generation.
中
把图像生成转为序列生成。

SOURCE p.23 (approx.), HTML A3.SS0.SSS0.Px2.p1.1, S201
EN
[ 61 , 8 ] show that even generative modeling of non-sequential data, such as images, can be fruitfully cast as sequence generative modeling.
中
[61,8] 表明,即使是图像等非序列数据,其生成建模也能有效转化为序列生成。

非扩散的概率序列模型。

EN
Non-Diffusion Probabilistic Sequence Models.
中
非扩散的概率序列模型。

SOURCE p.23 (approx.), HTML A3.SS0.SSS0.Px3.p1.1, S203
EN
[ 12 ] parameterize token-to-token transitions via a variational auto-encoder. This makes them probabilistic, but does not directly maximize the joint probability of sequences, but rather, enables sampling from the distribution of single-step transitions.
中
[12] 用变分自编码器参数化 token 间转移。这使转移具有概率性,但不直接最大化整个序列的联合概率,而是支持从单步转移分布采样。

具有可变噪声等级的序列扩散。

EN
Sequence Diffusion with Varying Noise Levels.
中
具有可变噪声等级的序列扩散。

SOURCE p.23 (approx.), HTML A3.SS0.SSS0.Px4.p1.1, S205
EN
Most similar to our work is AR-Diffusion [ 66 ] which similarly aims to train next-token prediction models for sequence diffusion. Key differences are that AR-Diffusion proposes a noise level that is linearly dependent on the position of each word in the sequence, while our critical contribution is to have each noise level be independent , as this uniquely enables our proposed sampling schemes, such as stabilizing auto-regressive generation and conditioning on corrupted observations. Further, AR-Diffusion only explores language modeling and does not explore guidance, while we investigate Diffusion Forcing as a broadly applicable sequence generative model with particular applications to sequential decision-making. In particular, we introduce Monte-Carlo Guidance as a novel guidance mechanism. Another closely related work is Rolling Diffusion [ 52 ] , which proposes to diffuse a sequence with near future more certain and far future more uncertain, resembling the causally uncertain sampling scheme of Diffusion Forcing. Like AR-Diffussion, Rolling Diffusion’s training noise levels are linearly dependent on the positions of tokens and must use the exact same noise level scheme at sampling time. It, therefore, shares the aforementioned limitations of AR-Diffusion as well.
中
最相近的是 AR-Diffusion [66],同样训练下一 token 模型做序列扩散。关键区别是:其噪声等级线性依赖单词位置,而我们令每个等级独立,这使自回归稳定化、损坏观测条件化等采样方案成为可能。AR-Diffusion 只研究语言,没有研究引导;我们把 DF 作为广泛适用的序列模型,特别研究序贯决策,并提出 MCG。另一相关工作 Rolling Diffusion [52] 令近未来较确定、远未来较不确定,类似 DF 的因果不确定性日程。但它与 AR-Diffusion 一样,训练等级线性依赖 token 位置,采样必须沿用完全相同方案,因此也有上述限制。

附录D 更多方法细节

EN
Appendix D Additional Method Details
中
附录D 更多方法细节

D.1 融合信噪比重新加权

EN
D.1 Fused SNR reweighting
中
D.1 融合信噪比重新加权

SOURCE p.23 (approx.), HTML A4.SS1.p1.1, S208
EN
SNR reweighting [ 24 ] is a widely used technique to accelerate the convergence of image diffusion models. In short, it reweighs the diffusion loss proportional to the signal-to-noise ratio (SNR) of noisy 𝐱 k . In Diffusion Forcing, conditioning variable 𝐳 t − 1 can also contain a non-trivial amount of information about 𝐱 t , in addition to 𝐱 t k t . For example, in a deterministic markovian system, if 𝐱 t − 1 k t − 1 has its noise level k t − 1 = 0 , the posterior state 𝐳 t − 1 contains all the information needed to predict 𝐱 t 0 regardless of the noise level of 𝐱 t k t .
中
SNR 重新加权 [24] 广泛用于加速图像扩散收敛:简言之,让扩散损失权重正比于噪声样本的信噪比。在 DF 中,除当前噪声 token 外,条件变量 zₜ₋₁ 也可能包含关于当前干净 token 的大量信息。例如确定性马尔可夫系统中,如果前一观测噪声等级为0,后验潜状态就包含预测当前干净 token 所需的全部信息,而与当前 token 的噪声等级无关。

𝐱k

𝐳t−1

𝐱t

𝐱tkt

𝐱t−1kt−1

kt−1=0

𝐳t−1

𝐱t0

𝐱tkt

SOURCE p.23 (approx.), HTML A4.SS1.p2.1, S209
EN
Therefore we re-derive SNR reweighting to reflect this change in Diffusion Forcing. We call this technique Fused SNR reweighting. We follow the intuition of original SNR reweighting to loosely define SNR in a sequence with independent levels of noises at different time steps. Denote S t as the normalized SNR reweighting factor for 𝐱 t k t following its normal derivation in diffusion models. For example, if one uses min snr strategy [ 24 ] , its reweighting factor will always fall between [ 0 , C ] which we divide by C to get S t ∈ [ 0 , 1 ] . Define signal decay factor 0 < γ < 1 , measuring what proportion of signal in 𝐱 t − 1 k t − 1 contribute to denoising 𝐱 t k t . This is the simple exponential decay model of sequential information. Now, define cumulated SNR recursively as the running mean of S t : S ¯ t = γ ​ S ¯ t − 1 + ( 1 − γ ) ​ S t to account for signals contributed by the entire noisy history to the denoising at time step t . The other factor that contributes to the denoising is S t of noisy observation 𝐱 t k t . To combine them, we use a simplified model for independent events. Notice S t and S ¯ t always falls in range [ 0 , 1 ] , and therefore can be reinterpreted as probabilities of having all the signal one needs to perfect denoise 𝐱 t k t . Since the noise level at t is independent of prior noise levels, we can view S t and S ¯ t − 1 as probabilities of independent events and thus can composed to define a joint probability S t ′ = 1 − ( 1 − S t ) ​ ( 1 − S ¯ t − 1 ) , and we use this S t ′ as our fused SNR reweighting factor for diffusion training.
中
因此,我们重新推导 SNR 权重以反映 DF 的变化,称为融合 SNR 重新加权。沿用原 SNR 的直觉,在逐时刻噪声独立的序列中宽泛定义信噪比。令 Sₜ 为按普通扩散推导后归一化的当前 SNR 权重;例如 min-SNR [24] 权重在 [0,C],除以 C 后在 [0,1]。用信号衰减率 0<γ<1 表示过去信号对当前去噪的贡献比例,采用简单指数衰减模型。递归累积信噪比为 S̄ₜ=γS̄ₜ₋₁+(1−γ)Sₜ,以计入整个噪声历史。另一信息来源是当前噪声观测本身的 Sₜ。二者都在 [0,1],可简化解释为“具备完美去噪所需全部信息”的概率。因当前噪声独立于历史噪声,将 Sₜ 与 S̄ₜ₋₁ 视为独立事件概率,合成为 S′ₜ=1−(1−Sₜ)(1−S̄ₜ₋₁),并把它用作扩散训练的融合 SNR 权重。

St

𝐱tkt

[0,C]

C

St∈[0,1]

0<γ<1

𝐱t−1kt−1

𝐱tkt

St

S¯t=γ​S¯t−1+(1−γ)​St

t

St

𝐱tkt

St

S¯t

[0,1]

𝐱tkt

t

St

S¯t−1

St′=1−(1−St)​(1−S¯t−1)

St′

SOURCE p.23 (approx.), HTML A4.SS1.p3.1, S210
EN
In our experiments, we choose to follow the min-SNR reweighting strategy [ 24 ] to derive the S . Our Fused SNR reweighting proves extremely useful to accelerate the convergence of video prediction, while we didn’t observe a boost on non-image domains so we didn’t use it there.
中
实验按 min-SNR [24] 得到 S。融合权重对加快视频预测收敛极有用;非图像领域未观察到收益,因而未使用。

S

D.2 架构

EN
D.2 Architecture
中
D.2 架构

视频扩散

EN
Video Diffusion
中
视频扩散

SOURCE p.24 (approx.), HTML A4.SS2.SSS0.Px1.p1.1, S213
EN
We choose both the raw image 𝐱 and latent state 𝐳 to be 2D tensors with channel, width, and height. For simplicity, we use the same width and height for 𝐱 and 𝐳 . We then implement the transition model p ⁡ ( 𝐱 t k t | 𝐳 t − 1 ) with a typical diffusion U-net [ 47 ] . We use the output of the U-net as the input to a gated recurrent unit (GRU) and use 𝐳 t − 1 as the hidden state feed into a GRU. The output of GRU is treated as 𝐳 t . For observation model p ⁡ ( 𝐱 t | 𝐳 t ) , we use a 1 -layer resnet [ 28 ] followed by a conv layer. We combine these two models to create an RNN layer, where the latent of a particular time step is 𝐳 t − 1 , input is 𝐱 t k t and output is 𝐱 ^ . One can potentially obtain better results by training Diffusion Forcing with a causal transformer architecture. However, since RNN is more efficient for online decision-making, we also stick with it for video prediction and it already gives us satisfying results.
中
原始图像 x 与潜状态 z 均为含通道、宽和高的二维空间张量,为简便二者宽高相同。转移模型使用典型扩散 U-Net [47],其输出与上一潜状态一起输入门控循环单元 GRU,输出作为新潜状态。观测模型用一层 ResNet [28] 后接卷积。二者组合为 RNN 层,以前一潜变量和当前噪声图像为输入,输出干净图像估计。因果 Transformer 或许能更好,但 RNN 在在线决策中更高效,所以视频也使用 RNN,结果已令人满意。

𝐱

𝐳

𝐱

𝐳

p⁡(𝐱tkt|𝐳t−1)

𝐳t−1

𝐳t

p⁡(𝐱t|𝐳t)

1

𝐳t−1

𝐱tkt

𝐱^

SOURCE p.24 (approx.), HTML A4.SS2.SSS0.Px1.p2.1, S214
EN
We choose the number of channels in 𝐳 to be 16 for DMlab and 32 for Minecraft. In total, our Minecraft model consists of 36 million parameters and our DMlab model consists of 24 million parameters. We can potentially obtain a better Minecraft video prediction model with more parameters, but we defer that to future works to keep the training duration reasonable ( < 1 day). In maze planning, the number of total parameters is 4.33 million.
中
潜状态通道数:DMLab 为16,Minecraft 为32;总参数量分别为2400万和3600万。更多参数可能改善 Minecraft,但为把训练控制在一天以内,留待后续。迷宫规划模型共433万参数。

𝐳

16

32

36

24

<1

4.33

非视频扩散

EN
Non-Video Diffusion
中
非视频扩散

SOURCE p.24 (approx.), HTML A4.SS2.SSS0.Px2.p1.1, S216
EN
For non-spatial 𝐱 that is not video nor images, we use residue MLPs [ 60 ] instead of Unet as the backbone for the dynamics model. Residue MLP is basically the ResNet [ 28 ] equivalent for MLP. Similar to video prediction, we feed the output of resMLP into a GRU along with 𝐳 t − 1 to get 𝐳 t . Another ResMLP serves as the observation model.
中
对非视频、非图像、无空间结构的 x,动态模型主干改用残差 MLP [60],即 MLP 版 ResNet [28]。同视频模型,残差 MLP 输出与前一潜状态送入 GRU 得到新潜状态;另一残差 MLP 充当观测模型。

𝐱

𝐳t−1

𝐳t

D.3 扩散参数化

EN
D.3 Diffusion parameterization
中
D.3 扩散参数化

SOURCE p.24 (approx.), HTML A4.SS3.p1.1, S218
EN
In diffusion models, there are three equivalent prediction objectives, 𝐱 0 , ϵ [ 29 ] , and v parameterization [ 53 ] . Different objectives lead to different reweighting of loss at different noise levels, together with SNR reweighting. For example, ϵ parameterization and v parameterization are essential in generating pixel data that favors high-frequency details.
中
扩散有 x₀、ε [29] 与 v [53] 三种等价预测目标;它们结合 SNR 权重,对不同噪声等级产生不同的损失重新加权。例如 ε 与 v 参数化对强调高频细节的像素生成很重要。

𝐱0

ϵ

v

ϵ

v

SOURCE p.24 (approx.), HTML A4.SS3.p2.1, S219
EN
In our experiments, we use v parameterization for video prediction and found it essential to both convergence speed and quality.
中
视频预测使用 v 参数化,它对收敛速度和质量都至关重要。

v

SOURCE p.24 (approx.), HTML A4.SS3.p3.1, S220
EN
We observe that 𝐱 0 parameterization is strongly favorable in planning and imitation learning, likely because they don’t favor an artificial emphasis on high-frequency details. We observe the benefits of v-parameterization in time-series prediction.
中
规划和模仿学习明显更适合 x₀ 参数化,可能因为不需要人为强调高频细节。时间序列预测则观察到 v 参数化有益。

𝐱0

D.4 噪声日程

EN
D.4 Noise schedule
中
D.4 噪声日程

SOURCE p.24 (approx.), HTML A4.SS4.p1.1, S222
EN
We use sigmoid noise schedule [ 9 ] for video prediction, linear noise schedule for maze planning, and cosine schedule for everything else.
中
视频预测用 sigmoid 噪声日程 [9],迷宫规划用线性日程,其余用余弦日程。

D.5 带引导采样的实现细节

EN
D.5 Implementation Details of Sampling with Guidance
中
D.5 带引导采样的实现细节

采样噪声的边界情形

EN
Corner case of sampling noise
中
采样噪声的边界情形

SOURCE p.24 (approx.), HTML A4.SS5.SSS0.Px1.p1.1, S225
EN
In our sampling algorithm, due to the flexibility of the scheduling matrix 𝒦 , there are corner cases when 𝐱 t k t is required to stay at its same noise level during a sampling step. The core question of this corner case is whether we should update 𝐱 t k t at all. One option is just copying over the old value. The other option is to run a backward diffusion followed by a forward diffusion back to its old noise level to resample under the diffusion process. While we conclude this can be an open question, we prefer the later approach, resampling, and use it in Monte Carlo Guidance to generate multiple samples. We note that even if one takes the first approach, the guidance gradient can still flow back in the time steps before t as the dynamics model p ⁡ ( 𝐳 t | 𝐱 t k t , 𝐳 t − 1 ) can still propagate the guidance gradient to 𝐳 t − 1 .
中
灵活日程矩阵会出现某 token 在一次采样步骤中噪声等级不变的边界情形。此时是否更新 token?一种选择是复制原值;另一种是先逆扩散,再正向扩散回原等级,以重新采样。我们认为这仍是开放问题,但更偏好后者,并用它在 MCG 中生成多个样本。即使采用复制,引导梯度仍可经动态模型传至前一潜状态和更早时间步。

𝒦

𝐱tkt

𝐱tkt

t

p⁡(𝐳t|𝐱tkt,𝐳t−1)

𝐳t−1

SOURCE p.24 (approx.), HTML A4.SS5.SSS0.Px1.p2.1, S226
EN
Other than Monte Carlo Guidance, this corner case only happens when k t = 0 or k t = K throughout our experiments. That is, we chose our 𝒦 such that once any token gets diffused slightly, it will keep diffusing. In the case of k t = K , keeping 𝐱 t k t at the same noise level implies it will stay as white noise, and we don’t even need to sample another white noise. In case k t = 0 , the time step is already completely diffused either approach should give us the same result so we just opt for copying over for simplicity.
中
除 MCG 外,实验中这一情形只出现在 kₜ=0 或 K:日程设计为 token 一旦开始去噪,就持续去噪。kₜ=K 时保持白噪声,无需重抽;kₜ=0 时已完全去噪,两种办法应相同,故为简单起见复制。

kt=0

kt=K

𝒦

kt=K

𝐱tkt

kt=0

迷宫规划引导

EN
Guidance for maze planning
中
迷宫规划引导

SOURCE p.24 (approx.), HTML A4.SS5.SSS0.Px2.p1.1, S228
EN
In maze planning, our main baseline Diffuer [ 37 ] discards the reward from the dataset and directly plans with the goal position and velocity. We adopt the same convention for Diffusion Forcing. One can perform guidance on goal position using log-likelihood ‖ 𝐩 T − 𝐠 ‖ , but a flexible horizon model should not require users to manually specify a T to reach its goal, instead we want it to try to reach the goal for any possible horizon. Therefore we use the reward model ∑ t ‖ 𝐩 T − 𝐠 ‖ so any time step can be the final step to reach the goal. This objective is challenging due to the non-convex nature of 2D maze, but we found Diffusion Forcing can still reliably find plans without bumping into walls. However, we also observe that the agent tend to leave the goal location due to the nature of the provided dataset - the goal location is just one possible waypoint for the robot to pass through, and there are no trajectories that simply stay at the goal. We also tried this reward for guidance with Diffuser, but it didn’t work even with a good amount of tuning.
中
主要基线 Diffuser [37] 丢弃数据集奖励,直接以目标位置和速度规划;DF 也遵循此约定。可用终端位置与目标距离引导,但灵活时域模型不应要求用户手工指定何时到达,而应在任意可能时域争取到达。因此我们用各时刻目标距离之和作为奖励,使任一时刻都可成为到达终点。二维迷宫的非凸性使该目标困难,但 DF 仍能可靠找到不撞墙计划。也观察到智能体到达后离开目标:数据集只把目标当作可能经过的路点,没有停留示范。我们尝试在 Diffuser 中用同样奖励,即使大量调参也未成功。(底本此段距离及求和公式的符号、下标保持原样;优化方向按“趋近目标”的叙述理解。)

‖𝐩T−𝐠‖

T

∑t‖𝐩T−𝐠‖

D.6 性能优化

EN
D.6 Performance Optimization
中
D.6 性能优化

SOURCE p.25 (approx.), HTML A4.SS6.p1.1, S230
EN
Accelerating the diffusion sampling of Diffusion Forcing is similar to that of normal diffusion models. We adopt DDIM [ 58 ] sampling for the diffusion of each token. While we use K = 1000 steps of diffusion, we sample with only 100 DDIM for video prediction and 50 for non-video domains.
中
加速 DF 采样与普通扩散相似。每个 token 采用 DDIM [58]:训练扩散步数 K=1000,视频仅用100步 DDIM,非视频领域用50步。

K=1000

100

50

SOURCE p.25 (approx.), HTML A4.SS6.p2.1, S231
EN
While Diffusion Forcing can be implemented with transformers, we use an RNN as the backbone for Diffusion Forcing experiments it’s widely used in decision-making for its flexibility and efficiency in online decision-making systems. To further reduce training time and GPU memory usage, we use frame-stacking to stack multiple observed images as a single 𝐱 . This is due to the fact that adjacent tokens can be very similar - e.g. recording the same motion at higher fps can lead to this. We deem that it’s wasteful if we roll out the dynamics model multiple times to generate almost identical tokens. For video datasets, we manually examine how many time steps it takes to require a minimal level of prediction power instead of copying frames over. There is another reason why we use frame stacking - many diffusion model techniques such as different noise schedules are designed to model 𝐱 with correlated elements or redundancy. Low-dimensional systems may need drastically different hyperparameters when they lack the data redundancy these techniques are tested on. Frame stacking is thus also helpful for our non-image experiments so we can start with canonical hyperparameters of diffusion models. We use a frame stack of 4 for DMlab video prediction, 8 for Minecraft, and 10 for maze planning.
中
尽管可用 Transformer,本文使用 RNN,因为它在在线决策中灵活、高效。为节省训练和显存,把多帧堆叠成一个 token:相邻帧可能极相似,为几乎相同帧多次展开动态模型很浪费。视频中,人工检查需要隔多少步才真正需要预测而不是复制帧。另一个原因是:噪声日程等扩散技巧往往面向内部相关、有冗余的数据;低维系统缺乏此冗余时,可能需要完全不同超参数。帧堆叠也让非图像实验可从标准扩散超参出发。DMLab 堆4帧、Minecraft 堆8帧、迷宫规划堆10步。

𝐱

𝐱

4

8

10

SOURCE p.25 (approx.), HTML A4.SS6.p3.1, S232
EN
At sampling time, we also have a design choice to reduce compute usage, as reflected in line 8 of Algorithm 2 . In line 8, we directly assign 𝐳 t new to 𝐳 t , instead of recalculating 𝐳 t with posterior model p ⁡ ( 𝐳 t | 𝐳 t − 1 , 𝐱 t new , k − 1 ) . Since the model is trained to condition on 𝐳 t estimated from arbitrary noisy history, we recognize that both are valid approaches. The reason why the choose line 8 is twofold. First, it cuts the compute by half, avoiding computing posterior every step. Second, this happens to be what we want for stabilization - 𝐳 t new already contains the information of the clean 𝐱 t new under our simplified observation model, and happens to be estimated with k = k t , a noise level higher than that of 𝐱 t new . This happens to implement the behavior we want for stabilization.
中
算法2第8行还有节省计算的选择:直接把新计算潜变量赋给当前潜变量,而不按已经更新的观测和低一级噪声重算后验。因为训练本来就覆盖任意噪声历史,两种方案都有效。选择第8行有两个原因:第一,避免每步重算后验,将计算减半;第二,它正好实现所需稳定化——简化观测模型下,新潜变量已经包含新干净观测的信息,但估计时采用比新观测更高一级的噪声等级。

𝐳tnew

𝐳t

𝐳t

p⁡(𝐳t|𝐳t−1,𝐱tnew,k−1)

𝐳t

8

𝐳tnew

𝐱tnew

k=kt

𝐱tnew

D.7 因果不确定性的采样日程

EN
D.7 Sampling schedule for causal uncertainty
中
D.7 因果不确定性的采样日程

SOURCE p.25 (approx.), HTML A4.SS7.p1.1, S234
EN
Inference is depicted in Algorithm 2 and Figure 2 . In Equation D.1 , we illustrate a specific instantiation of the 𝒦 matrix we used for causal planning. For simplicity, we denote the case where a latent 𝐳 0 is given and aim to generate 𝐱 1 : H + 1 .
中
推理见算法2和图2。式(D.1)展示因果规划实际使用的日程矩阵。为简便,假设给定初始潜变量 z₀,目标是生成 x₁:ₕ₊₁。

𝒦

𝐳0

𝐱1:H+1

𝒦pyramid=[KKK...KK−1KK...KK−2K−1K...K⋱123...H012...H−1⋱000...1000...0] (D.1)

SOURCE p.25 (approx.), HTML A4.SS7.p2.1, S235
EN
Diffusion Forcing begins by sampling our sequences as white noise with noise level K . It then denoises along each row m = 1 , … , M of 𝒦 in decreasing order. It does so by proceeding sequentially through frames t = 1 , … , T , updating the latent (Line 5 of Algorithm 2 ), and then partially applying the backward process to noise level k = 𝒦 m , t dictated by the scheduling matrix 𝒦 (Line 6-7 of Algorithm 2 ). We call a 𝒦 like this pyramid scheduling, as the tokens in the far future are kept at higher noise level than near future.
中
先以等级 K 的白噪声初始化序列,再按噪声等级递减顺序遍历矩阵各行。每行依次经过各帧,更新潜状态(算法2第5行),再执行部分逆过程去噪至矩阵指定等级(第6—7行)。这种日程称为金字塔日程,因为远未来始终比近未来具有更高噪声。

K

m=1,…,M

𝒦

t=1,…,T

k=𝒦m,t

𝒦

𝒦

D.8 迷宫规划指标

EN
D.8 Metrics for Maze Planning
中
D.8 迷宫规划指标

SOURCE p.25 (approx.), HTML A4.SS8.p1.1, S237
EN
We report the episode reward of Diffusion Forcing for different maze planning environments in Table 4.1 . However, we found that the episode reward isn’t necessarily a good metric: Intuitively, maze planning should reward smart agents that can find the fastest route to the goal, not a slow-walking agent that goes there at the end of the episode. The dataset never contains data on the behavior of staying at the goal, so agents are supposed to walk away after reaching the goal with sequence planning methods. Diffuser may had an unfair advantage of just generating slow plans, which happens to let the agent stay in the neighborhood of the goal for more steps and get a very high reward as a result. This metric seems to exploit flaws in the environment design - a good design would involve a penalty of longer time taken to reach the goal. Therefore, in future works based on our paper, we encourage alternative metrics like the time it takes to reach the goal for the first time, which Diffusion Forcing excels at.
中
表1报告各迷宫的回合奖励,但它未必是好指标。直觉上应奖励最快找到目标的聪明智能体,而非慢走到回合末尾才抵达者。数据中没有停留于目标的行为,序列规划方法到达后会离开。Diffuser 生成较慢计划,反而可能在目标附近多停留几步,获得不公平的高奖励。这似乎利用了环境设计缺陷;更合理的设计应惩罚到达耗时。因此建议后续工作使用首次到达目标时间等替代指标,DF 在该方面表现优秀。

D.9 时间序列回归实现细节

EN
D.9 Implementation Details of Timeseries Regression
中
D.9 时间序列回归实现细节

SOURCE p.26 (approx.), HTML A4.SS9.p1.1, S239
EN
We follow the implementation of pytorch-ts, where the validation set is a random subset of the training set with the same number of sequences as the test set. We use early stopping when validation crps-sum hasn’t increased for 6 epochs. We leverage the same architecture (1 mlp and 4 grus) as well as a batch size of 32.
中
遵循 pytorch-ts:验证集是训练集中随机抽取的子序列,数量与测试集相同。验证 CRPS-sum 连续6轮未改善时早停(底本此处写“未增加”,按E.1一致的最小化指标解释)。架构相同,为1个 MLP 和4个 GRU,批量32。

D.10 计算资源

EN
D.10 Compute Resources
中
D.10 计算资源

SOURCE p.26 (approx.), HTML A4.SS10.p1.1, S241
EN
All of our experiments use f ​ p ​ 16 mixed precision training. Time series, maze planning, compositionally, and visual imitation experiments can be trained with a single 2080 ​ T ​ i with 11 GB of memory. We tune the batch size such that we fully use the memory of GPUs. This translates to a batch size of 2048 for maze planning and compositional experiments, and 32 for visual imitation learning. While we use early stopping on the validation set for time series experiments, we did not carefully search for the minimal number of training steps required, though the model usually converges between 50 k to 100 ​ k steps. The above environments thus usually take 4 − 8 hours to train although there is without doubt a significant potential for speed up.
中
所有实验采用 fp16 混合精度。时间序列、迷宫规划、组合生成和视觉模仿学习均可在11GB显存的单张2080 Ti上训练。批量尽量占满显存:迷宫与组合实验2048,视觉模仿32。时间序列用验证早停;未仔细搜索最少训练步数,一般在5万至10万步收敛。上述环境通常训练4—8小时,仍有很大加速潜力。

f​p​16

2080​T​i

11

2048

32

50

100​k

4−8

SOURCE p.26 (approx.), HTML A4.SS10.p2.1, S242
EN
Video prediction is GPU intensive. We use 8 A100 GPUs for both video prediction datasets. We train for 50 ​ K steps with a batch size of 8 × 16 . It usually takes 12 hours to converge at 40 ​ K steps of training (occasional validation time also included).
中
视频预测更耗 GPU:两个数据集均使用8张 A100,训练5万步,批量8×16。通常约4万步、12小时收敛,含间歇验证时间。

8

50​K

8×16

12

40​K

附录E 更多实验结果

EN
Appendix E Additional Experiment Results
中
附录E 更多实验结果

E.1 多变量概率时间序列预测

EN
E.1 Multivariate Probabilistic Time Series Forecasting
中
E.1 多变量概率时间序列预测

原文图版

SOURCE p.26 (approx.), HTML A5.F6, S245
EN
Figure 6: Prediction intervals of Diffusion Forcing for the first prediction window of the test set in the Electricity time series dataset. Only the first 16 features out of 370 are plotted.
中
图6:Electricity 测试集第一个预测窗的 DF 预测区间。370个特征中仅绘出前16个。

SOURCE p.26 (approx.), HTML A5.SS1.p1.1, S246
EN
To illustrate Diffusion Forcing’s new training objective does not degrade it as a generic sequence model, we evaluate Diffusion Forcing on high-dimensional and long-horizon sequence prediction tasks in time series prediction. We adopt multiple time series datasets with real-world applications from GluonTS [ 2 ] and evaluate Diffusion Forcing with strong baselines with standard metrics in this domain. In this section, we mainly focus on the results and analysis. For a detailed description of datasets and the metric, we refer the reader to Appendix F.4 .
中
为说明新目标并不损害 DF 作为通用序列模型的能力,我们评估高维、长时域时间序列预测。采用 GluonTS [2] 的多个真实应用数据集,与强基线按领域标准指标比较。本节集中报告结果和分析;数据与指标细节见F.4。

问题定义

EN
Problem Formulation
中
问题定义

SOURCE p.26 (approx.), HTML A5.SS1.SSS0.Px1.p1.1, S248
EN
Let 𝑿 = { 𝐱 t } t = 1 T be a sequence (multivariate time series) of D -dimensional observations 𝐱 t ∈ ℝ D of some underlying dynamical process, sampled in discrete time steps t ∈ { 1 , … , T } , where T ∈ ℕ . In the problem setting of probabilistic time series forecasting, the sequence 𝑿 = { 𝑿 c , 𝑿 p } is split into two subsequences at time step t 0 ∈ ℕ with 1 < t 0 ≤ T : the context window 𝑿 c := { 𝐱 t } t = 1 t 0 − 1 (also called history or evidence) of length t 0 − 1 , and the prediction window 𝑿 p := { 𝐱 t } t = t 0 T of length T − t 0 + 1 (also known as the prediction horizon). Then, the task is to model the conditional joint probability distribution
中
设 X={xₜ} 为底层动态过程按离散时间采样的 D 维观测序列。概率预测在 t₀ 将其划分为上下文窗 Xc(历史/证据,长度 t₀−1)及预测窗 Xp(时域,长度 T−t₀+1)。目标是建模下面预测窗样本的条件联合分布。

𝑿={𝐱t}t=1T

D

𝐱t∈ℝD

t∈{1,…,T}

T∈ℕ

𝑿={𝑿c,𝑿p}

t0∈ℕ

1<t0≤T

𝑿c:={𝐱t}t=1t0−1

t0−1

𝑿p:={𝐱t}t=t0T

T−t0+1

q(𝐱t0:T∣𝐱1:t0−1):=∏t=t0Tq(𝐱t∣𝐱1:t−1) (E.1)

SOURCE p.27 (approx.), HTML A5.SS1.SSS0.Px1.p1.2, S249
EN
over the samples in the prediction window. If we know the distribution in ( E.1 ), we can sample forecast prediction sequences given some initial context from the evidence sequence. However, most time-dependent data generation processes in nature have complex dynamics and no tractable formulation of q ( 𝐱 t 0 : T ∣ 𝐱 1 : t 0 − 1 ) . Instead, we construct a statistical model that approximates the generative process in ( E.1 ) and estimates quantiles via Monte Carlo sampling of simulated trajectories. In this way, confidence levels or uncertainty measures can be calculated, and point forecasts can be produced as the mean or median trajectory [ 36 ] .
中
若知道式(E.1)的分布,就可根据历史上下文采样预测序列。但自然界时间相关过程动态复杂,通常没有可计算的条件分布形式。我们用统计模型逼近生成过程,通过模拟轨迹的蒙特卡洛采样估计分位数,得到置信水平或不确定性;平均或中位轨迹可作为点预测 [36]。

q(𝐱t0:T∣𝐱1:t0−1)

结果。

EN
Results.
中
结果。
方法ExchangeSolarElectricityTrafficTaxiWikipedia
VES [36].005±.000.900±.003.880±.004.350±.002——
VAR [45].005±.000.830±.006.039±.001.290±.001——
VAR-Lasso [45].012±.000.510±.006.025±.000.150±.002—3.100±.004
GARCH [62].023±.000.880±.002.190±.001.370±.001——
DeepAR [55]—.336±.014.023±.001.055±.003—.127±.042
LSTM-Copula [54].007±.000.319±.011.064±.008.103±.006.326±.007.241±.033
GP-Copula [54].007±.000.337±.024.025±.002.078±.002.208±.183.086±.004
KVAE [41].014±.002.340±.025.051±.019.100±.005—.095±.012
NKF [14]—.320±.020.016±.001.100±.002—.071±.002
Transformer-MAF [51].005±.003.301±.014.021±.000.056±.001.179±.002.063±.003
TimeGrad [50].006±.001.287±.020.021±.001.044±.006.114±.020.049±.002
ScoreGrad sub-VP SDE [68].006±.001.256±.015.019±.001.041±.004.101±.004.043±.002
DF(本文).003±.001.289±.002.023±.001.040±.004.075±.002.085±.007

SOURCE p.27 (approx.), HTML A5.SS1.SSS0.Px2.p1.2, S251
EN
We evaluate the effectiveness of Diffusion Forcing as a sequence model on the canonical task of multivariate time series forecasting by following the experiment setup of [ 54 , 51 , 50 , 59 , 68 ] Concretely, we benchmark Diffusion Forcing on the datasets Solar, Electricity, Traffic, Taxi, and Wikipedia. These datasets have different dimensionality, domains, and sampling frequencies, and capture seasonal patterns of different lengths. The features of each dataset are detailed in Table . We access the datasets from GluonTS [ 2 ] , and set the context and prediction windows to the same length for each dataset. Additionally, we employ the same covariates as [ 50 ] . We evaluate the performance of the model quantitatively by estimating the Summed Continuous Ranked Probability Score CRPS sum via quantiles. As a metric, CRPS sum measures how well a forecast distribution matches the ground truth distribution. We provide detailed descriptions of the metric in Appendix F.4 . We benchmark with other diffusion-based methods in time series forecastings, such as TimeGrad [ 50 ] and the transformer-based Transformer-MAF [ 51 ] . In particular, the main baseline of interest, TimeGrad [ 50 ] , is a next-token diffusion sequence model trained with teacher forcing. We track the CRPS sum metric on the validation set and use early stopping when the metric has not improved for 6 consecutive epochs, while all epochs are fixed to 100 batches across datasets. We then measure the CRPS sum on the test set at the end of the training, which we report in Table . We use the exact same architecture and hyperparameters for all time series datasets and experiments. Diffusion Forcing outperforms all prior methods except for [ 68 ] with which Diffusion Forcing is overall tied, except for the Wikipedia dataset, on which Diffusion Forcing takes fourth place. Note that time series is not the core application of Diffusion Forcing, and that we merely seek to demonstrate that the Diffusion Forcing objective is applicable to diverse domains with no apparent trade-off in performance over baseline objectives.
中
表2:时间序列预测结果。报告六个数据集测试集 CRPS-sum,越低越好;本方法均值和标准差来自5个不同训练种子。表中各方法完整数值以重排后的表格保留。

遵循 [54,51,50,59,68],在多变量概率时间序列预测这一标准任务中评估 DF,具体包括 Solar、Electricity、Traffic、Taxi、Wikipedia 等数据,维度、领域、采样频率和季节周期均不同。数据来自 GluonTS [2],每个数据集的上下文窗与预测窗等长,并采用与 [50] 相同协变量。用分位数估计求和连续排序概率分数 CRPS-sum,以衡量预测与真值分布匹配程度,详见F.4。比较包括 TimeGrad [50] 和 Transformer-MAF [51];关键基线 TimeGrad 是教师强制训练的下一 token 扩散模型。跟踪验证 CRPS-sum,连续6轮未改善则早停;所有数据集每轮固定100批。训练结束后测测试 CRPS-sum。所有时间序列数据和实验采用完全相同架构与超参数。除 ScoreGrad [68] 外,DF 优于此前方法;与其总体相当,但 Wikipedia 上 DF 仅居第四。时间序列并非 DF 核心应用,此处旨在说明该目标可适用于多领域,且相对基线目标未表现出明显性能代价。

E.2 更多组合生成结果

EN
E.2 Additional results in compositional generation
中
E.2 更多组合生成结果

SOURCE p.27 (approx.), HTML A5.SS2.p1.1, S253
EN
Since Diffusion Forcing models the joint distribution of any subset of a sequence, we can leverage this unique property to achieve compositional behavior - i.e., Diffusion Forcing can sample from the distribution of subsets of the trajectory and compose these sub-trajectories into new trajectories.
中
DF 建模序列任意子集的联合分布,因此能从轨迹子集分布采样,再将子轨迹组合为新轨迹。

SOURCE p.27 (approx.), HTML A5.SS2.p2.1, S254
EN
In particular, we show that we can also have flexible control over how compositional Diffusion Forcing is. As shown in 7 , consider a dataset of trajectories on a 2D, square plane, where all trajectories start from one corner and end up in the opposite corner, forming a cross shape. When no compositional behavior is desired, one can let the models replicate the cross-shaped distribution by allowing full memory of the HMM model. When one desires compositional such as generating a V-shaped trajectory, which stitches two sub-trajectories together, one can let the model generate shorter plans with no-memory context using MPC. (Add figures).
中
还可灵活控制组合程度。如图7,二维正方形上的数据轨迹从一角到对角,形成叉形。保留 HMM 完整记忆时,模型重现叉形;需要拼接两个子轨迹形成 V 形时,以无记忆上下文执行短时域 MPC。

原文图版

SOURCE p.None (approx.), HTML A5.F6.sf1, S255
EN
(a) Dataset
中
(a) 数据集

原文图版

SOURCE p.None (approx.), HTML A5.F6.sf2, S256
EN
(b) W/ memory
中
(b) 有记忆

原文图版

SOURCE p.None (approx.), HTML A5.F6.sf3, S257
EN
(c) W/o memory
中
(c) 无记忆

SOURCE p.28 (approx.), HTML A5.F7, S258
EN
Figure 7 : Given a dataset of trajectories ( 6(a) ), Diffusion Forcing models the joint distribution of all subsequences of arbitrary length. At sampling time, we can sample from the trajectory distribution by sampling Diffusion Forcing with full horizon ( 6(b) ) or recover Markovian dynamics by disregarding previous states ( 6(c) ).
中
图7:给定轨迹数据集,DF 建模任意长度全部子序列的联合分布。采样时,采用完整时域可从原轨迹分布抽样;忽略过去状态则恢复马尔可夫动态。底本子图引用6(a)—6(c)沿用其内容,图号按图7识别。

E.3 更多视频预测结果(未挑选样本)

EN
E.3 Additional results in video prediction (wo/ cherry picking)
中
E.3 更多视频预测结果(未挑选样本)

不使用滑动窗口的无限滚动

EN
Infinite Rollout without sliding window
中
不使用滑动窗口的无限滚动

SOURCE p.28 (approx.), HTML A5.SS3.SSS0.Px1.p1.1, S261
EN
Diffusion Forcing can rollout longer than maximum training horizon without sliding window . That is, we run Diffusion Forcing’s RNN continuously without ever reinitializing 𝐳 0 . This is a surprising effect we observed from the rollout stabilization property of Diffusion Forcing. In Figure 8 , 10 , we use Diffusion Forcing to generate video sequences of length 180 and visualize subsampled sequences. Notably, Diffusion Forcing used in these visualizations is trained with a maximum length of 72 frames for Minecraft and 36 frames for DMLab, illustrating it can rollout 2x-5x times longer than it’s trained on without sliding window . In addition, we also tried rolling these models out for 2000 frames and without seeing the model blowing up on both datasets. There are occasional cases where the Minecraft agent gets stuck and the entire screen is the “dirt” block, but this is more of a dataset issue 16 and the agent is able to recover after it turns around.
中
DF 无需滑动窗口即可生成超出最大训练时域的序列:连续运行 RNN,从不重置初始潜变量。这是稳定化带来的令人意外的现象。图8、10生成180帧并稀疏展示;Minecraft 最大训练长度72帧,DMLab 为36帧,因此无滑窗已扩展约2—5倍。我们还尝试2000帧,两个数据集均未见模型崩溃。Minecraft 偶尔卡住,满屏泥土方块,这更像数据集问题;转身后能恢复。

𝐳0

180

72

36

2000

原文图版

SOURCE p.28 (approx.), HTML A5.F8, S262
EN
Figure 8 : Visualization shows Diffusion Forcing trained on 72 frames is able to rollout 180 frames on Minecraft dataset without sliding window . The visualization shows a non-cherry-picked subsampling of these 180 frames, although Diffusion Forcing can roll out much longer (such as 2000 frames) on this dataset.
中
图8:Minecraft 上以72帧训练的 DF 能无滑窗滚动180帧。展示的是对这180帧未挑选的稀疏采样;模型实际还能生成更长,如2000帧。

72

180

180

原文图版

SOURCE p.29 (approx.), HTML A5.F9, S263
EN
Figure 9 : Diffusion Forcing trained on 72 frames is able to rollout 180 frames on Minecraft dataset without sliding window . The visualization shows a non-cherry-picked subsampling of these 180 frames, although Diffusion Forcing can roll out much longer (such as 2000 frames) on this dataset. The first few frames marked in red are the ground truth images of the dataset used for conditioning.
中
图9:Minecraft 上以72帧训练的 DF 能无滑窗滚动180帧。展示未挑选的稀疏帧;可生成更长,如2000帧。红色标记的前几帧是真实数据,用作条件。

72

180

180

原文图版

SOURCE p.30 (approx.), HTML A5.F10, S264
EN
Figure 10 : Visualization shows Diffusion Forcing trained on 36 frames is able to rollout 180 frames on DMLab dataset without sliding window . The visualization shows a non-cherry-picked subsampling of these 180 frames, although Diffusion Forcing can roll out almost infinitely on this dataset. The first few frames marked in red are the ground truth images of the dataset used for conditioning.
中
图10:DMLab 上以36帧训练的 DF 能无滑窗滚动180帧。展示未挑选稀疏帧;模型可在该数据上近乎无限滚动。红色前几帧为条件真值。

36

180

180

原文图版

SOURCE p.30 (approx.), HTML A5.F11, S265
EN
Figure 11 : Visualization shows Diffusion Forcing trained on 36 frames is able to rollout 180 frames on DMLab dataset without sliding window . The visualization shows a non-cherry-picked subsampling of these 180 frames, although Diffusion Forcing can roll out almost infinitely on this dataset. The first few frames marked in red are the ground truth images of the dataset used for conditioning.
中
图11:DMLab 上以36帧训练的 DF 能无滑窗滚动180帧。展示未挑选稀疏帧;模型可近乎无限滚动。红色前几帧为条件真值。

36

180

180

一致性

EN
Consistency
中
一致性

SOURCE p.28 (approx.), HTML A5.SS3.SSS0.Px2.p1.1, S267
EN
We also present additional results where we only generate within our maximum training length. As shown in figure 13 12 , Diffusion Forcing can generate consistent videos. Results are not cherry-picked.
中
我们还提供只在最大训练长度以内生成的结果。如图12、13,DF 能生成一致视频,结果未挑选。

原文图版

原文图版

SOURCE p.32 (approx.), HTML A5.F12, S268
EN
Figure 12 : Additional non-cherry-picked video prediction results on DMLab dataset, generated within maximum training length. The first few frames marked in red are the ground truth images of the dataset used for conditioning.
中
图12:DMLab 在最大训练长度内的额外、未挑选视频预测结果。红色前几帧为条件真值。

原文图版

原文图版

SOURCE p.33 (approx.), HTML A5.F13, S269
EN
Figure 13 : Additional non-cherry-picked video prediction results on the Minecraft dataset, generated within maximum training length. The first few frames marked in red are the ground truth images of the dataset used for conditioning.
中
图13:Minecraft 在最大训练长度内的额外、未挑选视频预测结果。红色前几帧为条件真值。

E.4 更多规划结果

EN
E.4 Additional results in planning
中
E.4 更多规划结果

SOURCE p.29 (approx.), HTML A5.SS4.p1.1, S271
EN
We provide some additional visualizations of causal planning in 15 . We also present additional visualization of Diffusion Forcing performing model predictive control in action. As shown in figure 14 , Diffusion Forcing can generate plans of shorter horizons since it’s flexible horizon.
中
图15提供更多因果规划可视化;还展示 DF 实际运行模型预测控制的过程。如图14,由于时域灵活,DF 可生成更短计划。

原文图版

SOURCE p.34 (approx.), HTML A5.F14, S272
EN
Figure 14 : Example MPC planning for maze medium environment. Blue indicated trajectories actually executed already. Red is the plan.
中
图14:中型迷宫中的 MPC 示例。蓝色为已实际执行轨迹,红色为计划。

原文图版

原文图版

SOURCE p.34 (approx.), HTML A5.F15, S273
EN
Figure 15 : Example plans generated for maze medium (above) and maze large (below) environments.
中
图15:中型迷宫(上)与大型迷宫(下)的计划生成示例。

E.5 真实机器人实验设置

EN
E.5 Real robot experiment setup
中
E.5 真实机器人实验设置

SOURCE p.30 (approx.), HTML A5.SS5.p1.1, S275
EN
In Figure 16 we visualize our robot experiment setup with corruption on observation. The dataset is collected when the target bag isn’t present, while we test with such a bag in the scene zero-shot for the imitation learning experiment with observation corruption. The typical failure mode is when the robot no longer reacts to the visual clues of the randomized location of objects. We didn’t observe the robot act wildly due to visual distractors.
中
图16展示观测受污染的机器人设置。训练收集数据时桌上没有 Target 购物袋,测试时零样本加入该袋,进行受污染观测模仿实验。典型失败是机器人不再响应物体随机位置的视觉线索;未观察到它因视觉干扰而胡乱行动。

原文图版

SOURCE p.35 (approx.), HTML A5.F16, S276
EN
Figure 16 : We randomly throw a target bag on the table as a strong visual distractor. Diffusion Forcing can be prompted to treat observation as corrupted rather than ground truth.
中
图16:随机把 Target 购物袋扔在桌上,作为强视觉干扰。可提示 DF 把观测视为损坏,而非真值。

附录F 数据集更多细节

EN
Appendix F Additional details about datasets
中
附录F 数据集更多细节

F.1 视频扩散数据集

EN
F.1 Dataset for video diffusion
中
F.1 视频扩散数据集

SOURCE p.30 (approx.), HTML A6.SS1.p1.1, S279
EN
We adopt the video prediction dataset Minecraft and DMlab used by TECO [ 69 ] .
中
采用 TECO [69] 使用的 Minecraft 与 DMLab 视频预测数据。

Minecraft 导航

EN
Minecraft Navigation
中
Minecraft 导航

SOURCE p.31 (approx.), HTML A6.SS1.SSS0.Px1.p1.1, S281
EN
The Minecraft navigation dataset consists of first-person-view videos of random walks in the Minecraft ‘swamp‘ biome. The agent walks via a technique called ‘sprint jump‘ which allows it to jump across blocks without getting stuck at 1 block obstacles. The agent walks straight most of the time, with small chances of turning left or right. The height and width of the video is 128 pixels and we trim long videos to subsequences of 72 frames. The dataset comes with paired action data but we discard them to bring more stochasticity to the prediction task. Due to limited compute, we only train on about 10 % of the total subsequences.
中
数据是在 Minecraft 沼泽生物群系中随机行走的第一人称视频。智能体采用“疾跑跳跃”,能跨过单方块障碍而不被卡住;大多数时间直走,偶尔左右转。视频128×128像素,长视频裁为72帧子序列。虽提供配对动作,我们将其舍弃,以增加预测随机性。计算有限,只训练约10%的子序列。

128

72

10%

SOURCE p.31 (approx.), HTML A6.SS1.SSS0.Px1.p2.1, S282
EN
One problem we noticed about the dataset is when the agent runs into obstacles with a height of 2 blocks or more. In this case, the agent will get stuck and the entire video sequence will consist of grey granite patterns or brown dirty patterns. This leads to a huge amount of frames with these patterns, making video models predict meaningless frames. Yet, we deem this as a problem of this dataset itself.
中
数据的问题是遇到两格或更高障碍时,智能体会卡住,整个视频只剩灰色花岗岩或棕色泥土纹理。这类帧很多,使模型预测无意义图像;我们认为这是数据集本身的问题。

DMLab 导航

EN
DMLab Navigation
中
DMLab 导航

SOURCE p.32 (approx.), HTML A6.SS1.SSS0.Px2.p1.1, S284
EN
Deepmind Lab navigation dataset consists of random walks in a 3D maze environment. For DMLab, the resolution is 64 pixels and we use subsequences of 48 frames. We also disregard the provided actions due to training.
中
DeepMind Lab 数据是在三维迷宫中的随机行走。分辨率64×64像素,使用48帧子序列,训练时同样舍弃提供的动作。(E.3所报36帧训练长度与本节48帧存在底本口径差异,均原样保留。)

64

48

SOURCE p.32 (approx.), HTML A6.SS1.SSS0.Px2.p2.1, S285
EN
We note that the VQ-VAE latent that stable video diffusion [ 4 ] diffuses is also only 128 × 128 × 3 , indicating Diffusion Forcing has the potential to scale up to higher resolution images with pre-trained image encoder and decoders. Due to the sheer size of the datasets, we only use about 10 % of the total data sequences for training due to limited computing, as we observe that doing so already allows us to make good generations from initial frames from the test set.
中
Stable Video Diffusion [4] 所扩散的 VQ-VAE 潜变量也只有128×128×3,这表明 DF 有潜力借助预训练图像编解码器扩展到高分辨率。数据量极大且计算有限,我们只用约10%序列训练;观察到从测试初始帧已能生成良好视频。

128×128×3

10%

F.2 规划数据集

EN
F.2 Dataset for planning
中
F.2 规划数据集

SOURCE p.32 (approx.), HTML A6.SS2.p1.1, S287
EN
D4RL [ 18 ] is a standard offline RL benchmark featuring a wide range of reinforcement learning environments. Each environment is associated with a provided dataset of offline interactions with the environment featuring state, action, and reward trajectories.
中
D4RL [18] 是标准离线强化学习基准,含多类环境;每个环境提供状态、动作与奖励轨迹组成的离线交互数据。

SOURCE p.32 (approx.), HTML A6.SS2.p2.1, S288
EN
Like Diffuer [ 37 ] , we choose the 3 maze environments as they are challenging long-horizon, multi-modal, sparse reward problems uniquely suited for visualization and evaluating planning algorithms. The IDs for the 3 used environments are “maze2d-medium-v1”, “maze2d-large-v1”, “maze2d-umaze-v1”. In each environment, one controls the acceleration of a robot to walk it towards a goal. The observation space is 4 dimensional, featuring 2D location and velocity. The action space is 2D acceleration. The agent always receives a random start location and the goal is to reach a fixed goal position for each maze. The agent receives a reward of 1 if it is within a circle of radius 0.5 centered at the goal state, and 0 otherwise.
中
同 Diffuser [37],选择三个迷宫,因为它们是长时域、多模态、稀疏奖励问题,适合可视化及评估规划。环境为 maze2d-medium-v1、maze2d-large-v1、maze2d-umaze-v1。控制二维加速度使机器人到达目标;观测4维,包括二维位置与速度;动作2维。起点随机,每个迷宫目标固定。进入以目标为心、半径0.5的圆内奖励1,否则0。

4

SOURCE p.33 (approx.), HTML A6.SS2.p3.1, S289
EN
The offline RL dataset for the maze environments consists of random walks in the maze. Specifically, the authors first designate all intersections and turn in the maze as waypoints and code an agent to navigate between waypoints with some randomization. As a result, the random walks are generated in a way that the path is collision-free with the walls. The random walks introduce stochasticity to the dataset, as trajectories in the dataset are never towards a specific goal.
中
离线数据由随机行走组成。作者先把交叉口和转弯设为路点,再编程令智能体随机地在路点间导航,因而与墙无碰撞。轨迹不朝特定目标,给数据引入随机性。

SOURCE p.33 (approx.), HTML A6.SS2.p4.1, S290
EN
There are a few choices adopted from our main baseline Diffuser [ 37 ] : we disregard the reward in the dataset and plan with goals only. We also evaluate a multi-goal variant of each environment (labeled as “multi” in Table 4.1 ), where the goal is randomized just like the starting position.
中
沿用主要基线 Diffuser [37] 的选择:舍弃数据奖励,只按目标规划;还评估每环境的多目标变体,目标同起点一样随机,表中标为 multi。

F.3 机器人学习数据集

EN
F.3 Dataset for robot learning
中
F.3 机器人学习数据集

SOURCE p.33 (approx.), HTML A6.SS3.p1.1, S292
EN
We choose a long horizon robotic manipulation task as described in Section 4.4 : Consider a tabletop with three slots where we can place objects. One places an apple at slot A or slot B randomly, and then places an orange at the other slot between A and B. A robot is challenged to swap the position of two fruits using the third slot C. That is, it can only move a fruit to an empty slot at a time. For example, when the apple is at slot A and the orange is at slot B, it may move the apple to slot C, leaving slot A empty. Then move the orange to slot A and finally move the apple from slot C to slot B. In figure 4 , we illustrate the non-markovian property of the task: When the apple is at slot B and the orange is at slot C, one cannot tell what the immediate action is without knowing the initial positions of objects.
中
任务见4.4:桌面三个槽,苹果随机在A或B,橙子在另一个;借空槽C交换两个水果,每次只能移到空槽。例如苹果A、橙子B,可先苹果A→C,再橙子B→A,最后苹果C→B。图4说明其非马尔可夫性:当苹果B、橙子C时,不知道初始布局就无法决定当前动作。

SOURCE p.33 (approx.), HTML A6.SS3.p2.1, S293
EN
We put stickers on the table indicating a circular region occupied by any slot. Each circular region is designed to be about double the diameter of a fruit. To make sure the task requires visual feedback, we also randomize the location of a fruit inside the slot. We collected 150 expert demonstrations of a Franka robot performing the task using VR teleoperation and impedance control. Among them, each initial slot configuration makes up half of the dataset. We record videos from two camera views, one from a hand camera and one in the front capturing all three slots. Each demonstration also comes with 6 dof actions of the robot hand. During the data collection, since one successful demonstration will swap the position of two objects, its end configuration will naturally serve as the starting configuration of the other randomized location, which we leverage to save time.
中
桌上贴纸标出槽位圆形区域,直径约水果两倍;还随机水果在槽内的位置,确保必须视觉反馈。用 VR 遥操作和阻抗控制收集 Franka 的150条专家示范,两种初始配置各半。记录手部相机和拍摄全部三槽的前视相机;每条示范含机械手6自由度动作。成功交换后,终态自然成为另一随机配置的初态,我们利用这点节省采集时间。

150

6

SOURCE p.33 (approx.), HTML A6.SS3.p3.1, S294
EN
Each demonstration comprises 500 − 600 frames and actions. We train Diffusion Forcing on the entire sequence. However, since adjacent frames are visually close, we pad and downsample the videos to 40 frames where each frame is bundled with 15 actions.
中
每条示范500—600帧及动作。DF 在整条序列上训练,但相邻帧视觉接近,因此填充、降采样为40帧,每帧绑定15个动作。

500−600

40

15

F.4 时间序列数据集

EN
F.4 Dataset for time series
中
F.4 时间序列数据集
数据集维度数值域频率训练步数预测长度
Exchange8正实数工作日6,07130
Solar137正实数小时7,00924
Electricity370正实数小时5,83324
Traffic963(0,1)小时4,00124
Taxi1,214自然数30分钟1,48824
Wikipedia2,000自然数日79230

SOURCE p.33 (approx.), HTML A6.SS4.p1.2, S296
EN
We use a set of time series datasets accessible via GluonTS [ 2 ] , which are adopted from prior works like [ 72 , 42 , 56 ] . These datasets capture real-world data of high-dimensional dynamics like monetary exchange rates or the electricity grid. In Table , we provide a summary of the features of these datasets, such as the dimensionality, the domains, the sampling frequency, the length of the multivariate sequence in the training set, and the prediction length. We access the datasets in Table via GluonTS and wrap the data processing functions implemented in GluonTS in our own dataloaders. Each dataset consists of one long multivariate sequence, which is the training split, and a set of short sequences that make up the test split. We construct a validation set of the same cardinality as the held-out test set as a randomly sampled subset of subsequences from the training set. All splits are normalized by the mean and the standard deviation of the features in the training split.
中
表3:用于时间序列预测的 GluonTS 数据特征。表内维度、数值域、频率、训练长度和预测长度完整重排保留。数据由 GluonTS [2] 提供,沿用 [72,42,56] 等既有工作,覆盖汇率、电网等真实高维动态。我们用自己的数据加载器封装 GluonTS 预处理。每个数据集由一条长多变量训练序列与一组短测试序列组成;验证集从训练序列中随机抽子序列,数量与留出测试集相同。全部划分均用训练特征的均值和标准差归一化。

协变量

EN
Covariates
中
协变量

SOURCE p.34 (approx.), HTML A6.SS4.SSS0.Px1.p1.1, S298
EN
Often, statistical models that approximate ( E.1 ) benefit from manually curated features as additional input to the observations. A sequence of covariates 𝑪 = { 𝐜 t } t = 1 T can be constructed to help the model recognize seasonal patterns and other temporal dependencies. We follow the implementation in [ 51 ] to construct the covariate sequence as a function of the frequency of each dataset in Table . As such, our covariates are composed of lagged inputs, as well as learned embeddings and handcrafted temporal features that encode information such as the hour of the day or the day of the month, depending on the sampling rate of the particular time series that is being modeled. Therefore, covariates are known for the entire interval [ 1 , T ] , even at inference. We can easily incorporate covariates into the probabilistic framework as
中
统计模型常受益于额外人工特征。可构造协变量序列帮助识别季节性及其他时间依赖。遵循 [51],按采样频率构造:包括滞后输入、学习的嵌入,以及依数据频率而定的小时、日期等手工时间特征。因此即使推理时,整个区间协变量也已知。可按下式纳入概率框架。

𝑪={𝐜t}t=1T

[1,T]

q(𝐱t0:T∣𝐱1:t0−1,𝐜1:T):=∏t=t0Tq(𝐱t∣𝐱1:t0−1,𝐜1:T). (F.1)

SOURCE p.35 (approx.), HTML A6.SS4.SSS0.Px1.p1.2, S299
EN
The benefit obtained from covariates is highly dependent on the characteristics of both the dataset and the model used, as well as the feature engineering practices followed.
中
协变量收益高度依赖数据、模型特征及特征工程方式。

指标

EN
Metric
中
指标

SOURCE p.35 (approx.), HTML A6.SS4.SSS0.Px2.p1.1, S301
EN
The Continuous Ranked Probability Score (CRPS) [ 46 ] is a scoring function that measures how well the forecast distribution matches the ground truth distribution:
中
连续排序概率分数 CRPS [46] 衡量预测分布与真值分布匹配程度,定义如下。
CRPS(F,x)=∫ℝ(F(z)−𝕀{x≤z})2dz,

SOURCE p.35 (approx.), HTML A6.SS4.SSS0.Px2.p1.2, S302
EN
where F ⁡ ( z ) is the univariate cumulative distribution function (CDF) over the predicted value, x is a ground truth observation, and 𝕀 { x ≤ z } is the indicator function that is one if x ≤ z and zero otherwise. By summing the D -dimensional time series along the feature dimension for simulated samples (resulting in F ^ sum ​ ( t ) ) and ground truth data (as ∑ i x i , t 0 ), we can report the CRPS sum
中
其中 F(z) 是预测值的一维累积分布,x 为真实观测,指示函数在 x≤z 时为1,否则0。对模拟样本和真值的 D 维序列沿特征求和,可得到预测和的分布与真值和,再报告下列 CRPS-sum。

F⁡(z)

x

𝕀{x≤z}

x≤z

D

F^sum​(t)

∑ixi,t0

CRPSsum

CRPSsum=𝔼t∼𝒰⁡(t0,T)​[CRPS⁡(F^sum​(t),∑ixi,t0)]

SOURCE p.35 (approx.), HTML A6.SS4.SSS0.Px2.p1.3, S303
EN
as the average over the prediction window. The lower the CRPS sum value, the better the predicted distribution match the data distribution.
中
该指标对预测窗口取平均;数值越低,预测分布越接近数据分布。

CRPSsum

SOURCE p.35 (approx.), HTML A6.SS4.SSS0.Px2.p2.1, S304
EN
First, we manually sum the time series along the feature dimension and estimate the CDF F ^ sum ​ ( t ) via 19 quantile levels at each time step t from 100 sampled trajectories. We then use the implementation in GluonTs [ 2 ] to compute the CRPS , which we report as CRPS sum in Table . While we aggregate the data manually, we verify that the numerical error relative to the GluonTS implementation remains orders of magnitude below the precision threshold of the reported metric.
中
具体地,先人工沿特征维求和;每时刻从100条采样轨迹取19个分位等级,估计预测和的累积分布。再用 GluonTS [2] 实现算 CRPS,以 CRPS-sum 报于表中。虽然聚合自行完成,我们验证了相对 GluonTS 实现的数值误差,比所报指标的精度阈值低若干数量级。

F^sum​(t)

t

CRPS

CRPSsum

参考文献(英文原书目)

参考文献(英文原书目) [1] A. Ajay, Y. Du, A. Gupta, J. Tenenbaum, T. Jaakkola, and P. Agrawal. Is conditional generative modeling all you need for decision-making? arXiv preprint arXiv:2211.15657 , 2022. [2] A. Alexandrov, K. Benidis, M. Bohlke-Schneider, V. Flunkert, J. Gasthaus, T. Januschowski, D. C. Maddix, S. Rangapuram, D. Salinas, J. Schulz, L. Stella, A. C. Türkmen, and Y. Wang. Gluonts: Probabilistic and neural time series modeling in python. Journal of Machine Learning Research , 21(116):1–6, 2020. [3] C. Berner, G. Brockman, B. Chan, V. Cheung, P. Debiak, C. Dennison, D. Farhi, Q. Fischer, S. Hashme, C. Hesse, R. Józefowicz, S. Gray, C. Olsson, J. Pachocki, M. Petrov, H. P. de Oliveira Pinto, J. Raiman, T. Salimans, J. Schlatter, J. Schneider, S. Sidor, I. Sutskever, J. Tang, F. Wolski, and S. Zhang. Dota 2 with large scale deep reinforcement learning. CoRR , abs/1912.06680, 2019. [4] A. Blattmann, T. Dockhorn, S. Kulal, D. Mendelevitch, M. Kilian, D. Lorenz, Y. Levi, Z. English, V. Voleti, A. Letts, V. Jampani, and R. Rombach. Stable video diffusion: Scaling latent video diffusion models to large datasets, 2023. [5] A. Block, A. Jadbabaie, D. Pfrommer, M. Simchowitz, and R. Tedrake. Provable guarantees for generative behavior cloning: Bridging low-level stability and high-level behavior. In Thirty-seventh Conference on Neural Information Processing Systems , 2023. [6] T. B. Brown, B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, S. Agarwal, A. Herbert-Voss, G. Krueger, T. Henighan, R. Child, A. Ramesh, D. M. Ziegler, J. Wu, C. Winter, C. Hesse, M. Chen, E. Sigler, M. Litwin, S. Gray, B. Chess, J. Clark, C. Berner, S. McCandlish, A. Radford, I. Sutskever, and D. Amodei. Language models are few-shot learners. CoRR , abs/2005.14165, 2020. [7] S. H. Chan. Tutorial on diffusion models for imaging and vision. arXiv preprint arXiv:2403.18103 , 2024. [8] M. Chen, A. Radford, R. Child, J. Wu, H. Jun, D. Luan, and I. Sutskever. Generative pretraining from pixels. In International conference on machine learning , pages 1691–1703. PMLR, 2020. [9] T. Chen. On the importance of noise scheduling for diffusion models, 2023. [10] C. Chi, Z. Xu, S. Feng, E. Cousineau, Y. Du, B. Burchfiel, R. Tedrake, and S. Song. Diffusion policy: Visuomotor policy learning via action diffusion, 2024. [11] K. Cho, B. van Merrienboer, Ç. Gülçehre, F. Bougares, H. Schwenk, and Y. Bengio. Learning phrase representations using RNN encoder-decoder for statistical machine translation. CoRR , abs/1406.1078, 2014. [12] J. Chung, K. Kastner, L. Dinh, K. Goel, A. C. Courville, and Y. Bengio. A recurrent latent variable model for sequential data. Advances in neural information processing systems , 28, 2015. [13] J. Cohen, E. Rosenfeld, and Z. Kolter. Certified adversarial robustness via randomized smoothing. In international conference on machine learning , pages 1310–1320. PMLR, 2019. [14] E. de Bézenac, S. S. Rangapuram, K. Benidis, M. Bohlke-Schneider, R. Kurle, L. Stella, H. Hasson, P. Gallinari, and T. Januschowski. Normalizing kalman filters for multivariate time series analysis. In Advances in Neural Information Processing Systems , volume 33, 2020. [15] J. Devlin, M. Chang, K. Lee, and K. Toutanova. BERT: pre-training of deep bidirectional transformers for language understanding. CoRR , abs/1810.04805, 2018. [16] P. Dhariwal and A. Nichol. Diffusion models beat gans on image synthesis. CoRR , abs/2105.05233, 2021. [17] C. Feichtenhofer, Y. Li, K. He, et al. Masked autoencoders as spatiotemporal learners. Advances in neural information processing systems , 35:35946–35958, 2022. [18] J. Fu, A. Kumar, O. Nachum, G. Tucker, and S. Levine. D4RL: datasets for deep data-driven reinforcement learning. CoRR , abs/2004.07219, 2020. [19] S. Gao, P. Zhou, M.-M. Cheng, and S. Yan. Masked diffusion transformer is a strong image synthesizer. In Proceedings of the IEEE/CVF International Conference on Computer Vision , pages 23164–23173, 2023. [20] C. E. Garcia, D. M. Prett, and M. Morari. Model predictive control: Theory and practice—a survey. Automatica , 25(3):335–348, 1989. [21] F. Gers, J. Schmidhuber, and F. Cummins. Learning to forget: continual prediction with lstm. In 1999 Ninth International Conference on Artificial Neural Networks ICANN 99. (Conf. Publ. No. 470) , volume 2, pages 850–855 vol.2, 1999. [22] D. Hafner, T. P. Lillicrap, J. Ba, and M. Norouzi. Dream to control: Learning behaviors by latent imagination. CoRR , abs/1912.01603, 2019. [23] D. Hafner, T. P. Lillicrap, I. Fischer, R. Villegas, D. Ha, H. Lee, and J. Davidson. Learning latent dynamics for planning from pixels. CoRR , abs/1811.04551, 2018. [24] T. Hang, S. Gu, C. Li, J. Bao, D. Chen, H. Hu, X. Geng, and B. Guo. Efficient diffusion training via min-snr weighting strategy, 2024. [25] N. Hansen, X. Wang, and H. Su. Temporal difference learning for model predictive control, 2022. [26] W. Harvey, S. Naderiparizi, V. Masrani, C. Weilbach, and F. Wood. Flexible diffusion modeling of long videos. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh, editors, Advances in Neural Information Processing Systems , volume 35, pages 27953–27965. Curran Associates, Inc., 2022. [27] K. He, X. Chen, S. Xie, Y. Li, P. Dollár, and R. Girshick. Masked autoencoders are scalable vision learners. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition , pages 16000–16009, 2022. [28] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. CoRR , abs/1512.03385, 2015. [29] J. Ho, A. Jain, and P. Abbeel. Denoising diffusion probabilistic models. Advances in Neural Information Processing Systems (NeurIPS) , 33:6840–6851, 2020. [30] J. Ho, A. Jain, and P. Abbeel. Denoising diffusion probabilistic models. CoRR , abs/2006.11239, 2020. [31] J. Ho and T. Salimans. Classifier-free diffusion guidance, 2022. [32] J. Ho, T. Salimans, A. Gritsenko, W. Chan, M. Norouzi, and D. J. Fleet. Video diffusion models, 2022. [33] S. Hochreiter and J. Schmidhuber. Long short-term memory. Neural Comput. , 9(8):1735–1780, nov 1997. [34] A. Hu, L. Russell, H. Yeo, Z. Murez, G. Fedoseev, A. Kendall, J. Shotton, and G. Corrado. Gaia-1: A generative world model for autonomous driving. arXiv preprint arXiv:2309.17080 , 2023. [35] S. Huang, Z. Wang, P. Li, B. Jia, T. Liu, Y. Zhu, W. Liang, and S.-C. Zhu. Diffusion-based generation, optimization, and planning in 3d scenes. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition , pages 16750–16761, 2023. [36] R. Hyndman, A. B. Koehler, J. K. Ord, and R. D. Snyder. Forecasting with Exponential Smoothing: The State Space Approach . Springer Science & Business Media, 2008. [37] M. Janner, Y. Du, J. B. Tenenbaum, and S. Levine. Planning with diffusion for flexible behavior synthesis. Proceedings of the International Conference on Machine Learning (ICML) , 2022. [38] A. Katharopoulos, A. Vyas, N. Pappas, and F. Fleuret. Transformers are rnns: Fast autoregressive transformers with linear attention. CoRR , abs/2006.16236, 2020. [39] L. Ke, J. Wang, T. Bhattacharjee, B. Boots, and S. Srinivasa. Grasping with chopsticks: Combating covariate shift in model-free imitation learning for fine manipulation. In 2021 IEEE International Conference on Robotics and Automation (ICRA) , pages 6185–6191. IEEE, 2021. [40] D. Kingma and R. Gao. Understanding diffusion objectives as the elbo with simple data augmentation. Advances in Neural Information Processing Systems , 36, 2024. [41] R. G. Krishnan, U. Shalit, and D. Sontag. Structured inference networks for nonlinear state space models. In AAAI , 2017. [42] G. Lai, W. Chang, Y. Yang, and H. Liu. Modeling long- and short-term temporal patterns with deep neural networks. CoRR , abs/1703.07015, 2017. [43] M. Laskey, J. Lee, R. Fox, A. Dragan, and K. Goldberg. Dart: Noise injection for robust imitation learning. In Conference on robot learning , pages 143–156. PMLR, 2017. [44] X. L. Li, J. Thickstun, I. Gulrajani, P. Liang, and T. B. Hashimoto. Diffusion-lm improves controllable text generation, 2022. [45] H. Lütkepohl. New Introduction to Multiple Time Series Analysis . Springer Science & Business Media, 2005. [46] J. E. Matheson and R. L. Winkler. Scoring rules for continuous probability distributions. Management Science , 22(10):1087–1096, 1976. [47] A. Nichol and P. Dhariwal. Improved denoising diffusion probabilistic models. CoRR , abs/2102.09672, 2021. [48] B. Peng, E. Alcaide, Q. Anthony, A. Albalak, S. Arcadinho, S. Biderman, H. Cao, X. Cheng, M. Chung, L. Derczynski, X. Du, M. Grella, K. Gv, X. He, H. Hou, P. Kazienko, J. Kocon, J. Kong, B. Koptyra, H. Lau, J. Lin, K. S. I. Mantri, F. Mom, A. Saito, G. Song, X. Tang, J. Wind, S. Woźniak, Z. Zhang, Q. Zhou, J. Zhu, and R.-J. Zhu. RWKV: Reinventing RNNs for the transformer era. In H. Bouamor, J. Pino, and K. Bali, editors, Findings of the Association for Computational Linguistics: EMNLP 2023 , pages 14048–14077, Singapore, Dec. 2023. Association for Computational Linguistics. [49] C. Raffel, N. Shazeer, A. Roberts, K. Lee, S. Narang, M. Matena, Y. Zhou, W. Li, and P. J. Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. CoRR , abs/1910.10683, 2019. [50] K. Rasul, C. Seward, I. Schuster, and R. Vollgraf. Autoregressive Denoising Diffusion Models for Multivariate Probabilistic Time Series Forecasting. In Proceedings of the 38th International Conference on Machine Learning , volume 139 of Proceedings of Machine Learning Research , 2021. [51] K. Rasul, A.-S. Sheikh, I. Schuster, U. M. Bergmann, and R. Vollgraf. Multivariate probabilistic time series forecasting via conditioned normalizing flows. In International Conference on Learning Representations , 2021. [52] D. Ruhe, J. Heek, T. Salimans, and E. Hoogeboom. Rolling diffusion models. arXiv preprint arXiv:2402.09470 , 2024. [53] T. Salimans and J. Ho. Progressive distillation for fast sampling of diffusion models. CoRR , abs/2202.00512, 2022. [54] D. Salinas, M. Bohlke-Schneider, L. Callot, R. Medico, J. Gasthaus, and R. Medico. High-dimensional multivariate forecasting with low-rank gaussian copula processes. In NeurIPS , 2019. [55] D. Salinas, V. Flunkert, J. Gasthaus, and T. Januschowski. Deepar: Probabilistic forecasting with autoregressive recurrent networks. International Journal of Forecasting , 36(3):1181–1191, 2020. [56] D. Salinas, V. Flunkert, J. Gasthaus, and T. Januschowski. Deepar: Probabilistic forecasting with autoregressive recurrent networks. International Journal of Forecasting , 36(3):1181–1191, 2020. [57] J. Sohl-Dickstein, E. Weiss, N. Maheswaranathan, and S. Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In Proceedings of the International Conference on Machine Learning (ICML) , 2015. [58] J. Song, C. Meng, and S. Ermon. Denoising diffusion implicit models. CoRR , abs/2010.02502, 2020. [59] B. Tang and D. S. Matteson. Probabilistic transformer for time series analysis. In A. Beygelzimer, Y. Dauphin, P. Liang, and J. W. Vaughan, editors, Advances in Neural Information Processing Systems , 2021. [60] H. Touvron, P. Bojanowski, M. Caron, M. Cord, A. El-Nouby, E. Grave, A. Joulin, G. Synnaeve, J. Verbeek, and H. Jégou. Resmlp: Feedforward networks for image classification with data-efficient training. CoRR , abs/2105.03404, 2021. [61] A. Van den Oord, N. Kalchbrenner, L. Espeholt, O. Vinyals, A. Graves, et al. Conditional image generation with pixelcnn decoders. Advances in neural information processing systems , 29, 2016. [62] R. van der Weide. Go-garch: A multivariate generalized orthogonal garch model. Journal of Applied Econometrics , 17(5):549–564, 2002. [63] C. Wei, K. Mangalam, P.-Y. Huang, Y. Li, H. Fan, H. Xu, H. Wang, C. Xie, A. Yuille, and C. Feichtenhofer. Diffusion models as masked autoencoders. In Proceedings of the IEEE/CVF International Conference on Computer Vision , pages 16284–16294, 2023. [64] G. Williams, A. Aldrich, and E. Theodorou. Model predictive path integral control using covariance variable importance sampling. arXiv preprint arXiv:1509.01149 , 2015. [65] R. J. Williams and D. Zipser. A Learning Algorithm for Continually Running Fully Recurrent Neural Networks. Neural Computation , 1(2):270–280, 06 1989. [66] T. Wu, Z. Fan, X. Liu, Y. Gong, Y. Shen, J. Jiao, H.-T. Zheng, J. Li, Z. Wei, J. Guo, N. Duan, and W. Chen. Ar-diffusion: Auto-regressive diffusion model for text generation, 2023. [67] T. Wu, Z. Fan, X. Liu, H.-T. Zheng, Y. Gong, J. Jiao, J. Li, J. Guo, N. Duan, W. Chen, et al. Ar-diffusion: Auto-regressive diffusion model for text generation. Advances in Neural Information Processing Systems , 36:39957–39974, 2023. [68] T. Yan, H. Zhang, T. Zhou, Y. Zhan, and Y. Xia. Scoregrad: Multivariate probabilistic time series forecasting with continuous energy-based generative models, 2021. [69] W. Yan, D. Hafner, S. James, and P. Abbeel. Temporally consistent transformers for video generation, 2023. [70] R. Yang, P. Srivastava, and S. Mandt. Diffusion probabilistic modeling for video generation. Entropy , 25(10):1469, 2023. [71] S. Yao, D. Yu, J. Zhao, I. Shafran, T. L. Griffiths, Y. Cao, and K. Narasimhan. Tree of thoughts: Deliberate problem solving with large language models, 2023. [72] H. Yu, N. Rao, and I. S. Dhillon. Temporal regularized matrix factorization. CoRR , abs/1509.08333, 2015.

工程联动批注(原创,区别于论文译文)

  • S3:V:/_astra_sprint_hub/logs/S3/final_message.md 的一期闭环结果显示单步动作延迟与接触恢复是不同问题。DF 的含历史潜变量可提供恢复线索,但它没有证明能消除 S3 的数据覆盖缺口。可把接触标志、相对位置与恢复状态加入 token,再对闭环分布单独评估;本文80%成功率来自其水果交换任务,不是本机推块成绩。
  • S7:V:/rectified-flow-distill-bench/DELIVERY_REPORT.md 的 Shortcut 单步 SWD=0.1819 评估的是噪声到图像映射。DF 独立噪声轴解决序列条件化和误差传播,并不直接把每 token 的50/100步 DDIM降成一步;两种方法沿不同维度互补。
  • S8:V:/_astra_sprint_hub/logs/S8/final_message.md 的事件流与光流可作为观测 token;缺帧/遮挡置信度可映射噪声等级,但需先标定,不应把任意噪声设定当作已验证鲁棒性。
  • S9:V:/_astra_sprint_hub/logs/S9/final_message.md 的世界系三维表示和SDF约束解决坐标及碰撞问题。DF 的奖励梯度是软引导,不等价于硬约束投影;先统一坐标,再决定引导能量和安全验收。

统一术语

English 中文
Diffusion Forcing 扩散强制;方法名保留英文
token 序列单元;保留token以兼容帧、动作块和向量
causal uncertainty 因果不确定性
Monte Carlo Guidance 蒙特卡洛引导
ELBO 证据下界
teacher forcing 教师强制
noise schedule 噪声日程
Show Translation & Notation Audit Notes

许可与底本

  • Boyuan Chen, Diego Marti Monso, Yilun Du, Max Simchowitz, Russ Tedrake, Vincent Sitzmann. Diffusion Forcing: Next-token Prediction Meets Full-Sequence Diffusion. NeurIPS 2024。
  • 收录 arXiv:2407.01392v4(2024-12-10),官方英文PDF35页。
  • 2026-11-25核查 https://arxiv.org/abs/2407.01392v4 的 view license,明确指向 https://creativecommons.org/licenses/by/4.0/ 。页面证据:work/abs.html。
  • 原作采用 CC BY 4.0。本译本署名全部原作者,链接原文与许可,并注明中文翻译、重新排版、HTML转换修复由 Codex 完成;原作者未参与译文。没有添加与该许可冲突的使用限制。

全文范围与对照

  • 304个正文、标题、图注及列表块逐块中英对照,覆盖摘要、正文1–5、致谢及附录A–F;另有36个算法逐行/定理标题双语辅助块。
  • 保留50个独立公式表/多行公式组及段内原式;数学用原生 MathML 排印。原式与中文说明相邻;变量符号未改为仅有文字概述。
  • 保留原始图版,包括附录视频帧、规划与真实机器人照片。21个唯一图像文件来自官方HTML;另提供图2的官方PDF四倍渲染高清裁图,源页3、裁框 [108,68,507,215] pt。
  • 两张失效的HTML ctable(时间序列结果表2、数据集特征表3)依据官方PDF重建为表格,完整保留各行数值、标准差和表注。英文参考文献72条保留。
  • paper.md 按文档顺序保留中英段落、公式、图、表和书目;reader.html 与PDF为中文精译排版。工程联动批注单独标为原创,位于MD全文之后。
  • source_map.json 以官方HTML锚点为精确定位;PDF页码由三词组匹配生成,是导航近似值,跨页段落和短标题请优先使用HTML锚点。

已处理的原作与转换问题

  1. 默认噪声与物理时间分开。 下标t为序列时间,上标k为噪声等级;未混成同一轴。
  2. 外括号缺失产生CLOSE。 原PDF第14页 Remark 1 中条件概率表达式的外层 pθ( 缺闭合括号,官方HTML Thmremark1.p1.m9 因而生成可见的 CLOSE 运算符。核对该条件概率的两个嵌套括号后,在译本MathML中补外层右括号 ),保持条件变量不变;不是删除不理解的单词。
  3. HTML表格宏失效。 原HTML的 ctable/FL/ML/NN/LL 展开失败,不作为正文保留,改用官方PDF的实际表格。没有把原始宏当作“英文书目”。
  4. 组合图分页。 初稿把图7三个子图放大到独立页并造成段尾孤页;已改为同一行三子图,修复误分页。最终45页。
  5. 底本未删编辑提示。 E.2的“Add figures”仅在此记录,不放入译文正文,现成图7承担图示。
  6. 底本错引。 指向附录16的环境引用解析为F.2;正文图/表4.1解析为实际规划表1,并记录在此。
  7. 早停方向。 D.9写“hasn’t increased”,但E.1明确CRPS越低越好且以未改善早停。译文采用“连续6轮未改善”,保留原文中英对照供核对。
  8. DMLab帧数。 E.3称最大训练长度36帧,F.1写48帧子序列;二者均原样保留并标注差异,不自行编造统一实验设置。
  9. 官方PDF色彩字典警告。 PyMuPDF读取原版时会对数个源对象报告 could not parse color space;实际图2已渲染目视核对,完整原版不改写。译本主要使用官方HTML原图,最终页图显示正常。

最终验收

  • 官方原版35页,中文精译45页。中文、公式、表格及原图经过 fitz 实际渲染审查。
  • 重点查看1、3、18、23、36–39、45页;18页括号修复、组合图压缩与大面积视频图版均有最终页图。
  • 每页同时检查文字与实际墨量。38–39页为高密度视频图版,文本少但墨量约56–57%,不是空白页。
  • 全PDF未检出原始反斜杠宏、裸数学定界符或可见 OPEN/CLOSE;中英MD图像链接全部存在,无 .tmp.html。
  • verification.json 保存页数、字节数、逐页文字/墨量、公式/辅助块统计和验收结果。work/build_df.py 保存可重复的构建步骤;最终附加书签和PDF元信息。
  • 本次CPU/网络/无头排版,不重跑论文或一期GPU实验。