Despite Flow Matching and diffusion models having emerged as powerful generative paradigms for continuous variables such as images and videos, their application to high-dimensional discrete data, such as language, is still limited.
In this work, we present Discrete Flow Matching, a novel discrete flow paradigm designed specifically for generating discrete data.
Discrete Flow Matching offers several key contributions: (i) it works with a general family of probability paths interpolating between source and target distributions; (ii) it allows for a generic formula for sampling from these probability paths using learned posteriors such as the probability denoiser ( x -prediction) and noise-prediction ( ϵ -prediction); (iii) practically, focusing on specific probability paths defined with different schedulers improves generative perplexity compared to previous discrete diffusion and flow models; and (iv) by scaling Discrete Flow Matching models up to 1.7B parameters, we reach 6.7% Pass@1 and 13.4% Pass@10 on HumanEval and 6.7% Pass@1 and 20.6% Pass@10 on 1-shot MBPP coding benchmarks.
Our approach is capable of generating high-quality discrete data in a non-autoregressive fashion, significantly closing the gap between autoregressive models and discrete flow models.
Despite the remarkable success of diffusion and flow models in generating continuous spatial signals such as images ( Ho et al., 2020 ; Rombach et al., 2022 ; Esser et al., 2024 ) and videos ( Singer et al., 2022 ; Blattmann et al., 2023 ) , their performance still falters when applied to discrete sequential data compared to autoregressive models. Recent progress in adapting diffusion and flow models to the discrete setting has been made via mostly two approaches: embedding the discrete data in continuous space and applying continuous diffusion ( Dieleman et al., 2022 ; Stark et al., 2024 ) or designing diffusion or flow processes over discrete state spaces ( Austin et al., 2021a ; Campbell et al., 2022 ) .
In this paper, we pursue the discrete flow approach of Campbell et al. (2024) and introduce Discrete Flow Matching, a theoretical framework and algorithmic methodology for discrete flow models that yields a state-of-the-art discrete non-autoregressive generative approach. Surprisingly, Discrete Flow Matching exhibits similarities with the continuous Flow Matching ( Lipman et al., 2022 ) approach proposed for continuous signals. Notably, its generating probability velocity , employed in the sampling algorithm, is identical in form to its continuous counterpart. Additionally, Discrete Flow Matching offers the following advancements and simplifications over prior methods: It encompasses a more comprehensive family of probability paths transforming source (noise) distributions into target (data) distributions, accommodating arbitrary source-target couplings and time-dependent schedulers. Furthermore, it provides a unified formulation for the generating probability velocity directly expressed in terms of the learned posteriors and schedulers, along with a unified and general theory and algorithm for corrector sampling and iterations. In practice, we observe that path and corrector schedulers are pivotal, and their proper tuning leads to substantial improvements in generation quality. We have trained a 1.7B parameter Discrete Flow Matching model on the same data mix as in Llama-2 ( Touvron et al., 2023 ) and CodeLlama ( Roziere et al., 2023 ) , achieving 6.7% Pass@1 and 13.4% Pass@10 on HumanEval and 6.7% Pass@1 and 20.6% Pass@10 on 1-shot MBPP coding benchmarks; Figure 1 shows some code generation examples. In conditional text generation our model produces texts with a generative perplexity score of 9.7 as measured by the Llama-3 8B model, surpassing a 1.7B autoregressive model that achieves 22.3 and not far from the Llama-2 7B model that achieves 8.3 in generative perplexity score. We strongly believe that Discrete Flow Matching represents a significant step in bridging the performance gap between discrete diffusion and autoregressive models, and that further enhancements are possible by exploring the vast design space that Discrete Flow Matching has to offer.
Figure 1 : Code generation examples using Discrete Flow Matching . Code condition is marked in gray , model generation is marked in yellow . Left sub-figure presents the standard left-to-right prompting; Middle and Right sub-figures, presents complex infilling setup. 图 1:离散流匹配的代码生成示例。灰色为给定代码条件,黄色为模型生成。左图为标准从左到右提示,中、右图为复杂代码填空。
2 Discrete Flow Matching 2 离散流匹配
2.1 Setup and notations 2.1 设置与记号
SOURCE PDF p.2 · S2.SS1.p1.1
EN
In discrete sequence modeling, we denote a sequence x as an array of N elements (x1,x2,…,xN) . Each element, or token , within this sequence is selected from a vocabulary of size d . Consequently, the entire set of possible sequences is given by D=[d]N , where [d]={1,…,d} . A random variable taking values in the space D is denoted by X and its corresponding probability mass function (PMF) is P(X=x) . For simplicity, throughout the paper, we sometimes omit the random variable X and use p(x) to denote the PMF.
中
在离散序列建模中,序列 x 表示为含 N 个元素的数组 (x1,x2,…,xN)。每个元素或词元(token)从大小为 d 的词表中选取。因此所有可能序列构成 D=[d]N,其中 [d]={1,…,d}。取值于 D 的随机变量记为 X,其概率质量函数(PMF)为 P(X=x)。为简便,全文有时省略随机变量 X,直接用 p(x) 表示 PMF。
SOURCE PDF p.2 · S2.SS1.p2.1
EN
To describe marginalization properties, we denote p(xi) the xi marginal of p , i.e. , p(xi)=∑xiˉp(x) , where xiˉ=(…,xi−1,xi+1,…)∈[d]N−1 are all the arguments excluding i . Similarly, p(xiˉ)=∑xip(x) , and xi∈[d] . A useful PMF is the delta function, δy , y∈\gD , which is defined by
中
为描述边缘化,记 p(xi) 为 p 关于第 i 个分量的边缘分布,即 p(xi)=∑xiˉp(x);其中 xiˉ=(…,xi−1,xi+1,…)∈[d]N−1 表示除 i 外的全部分量。同样,p(xiˉ)=∑xip(x),且 xi∈[d]。一个有用的 PMF 是 delta 函数 δy(y∈D),定义如下。
δy(x)=i=1∏Nδyi(xi), where δyi(xi)={10xi=yixi=yi.
SOURCE PDF p.2 · S2.SS1.p2.2
EN
With the marginal notation δy(xi)=δyi(xi) and δy(xiˉ)=δyiˉ(xiˉ)=∏j=iδyj(xj) which simplifies notation.
In discrete generative models our goal is to transform source samples X0∼p to target samples X1∼q . Our training data, consist of pairs X0 and X1 that are sampled from a joint distribution π(x,y) , satisfying the marginals constraints p(x)=∑y∈\gDπ(x,y),q(y)=∑x∈\gDπ(x,y) , i.e.,
In the simplest case, the training pairs X0 and X1 are sampled independently from the source and target distributions respectively,
中
最简单的情形,是分别从源分布和目标分布独立抽取训练样本 X0,X1。
(X0,X1)∼p(X0)q(X1).
SOURCE PDF p.2 · S2.SS2.p1.3
EN
Example: source and couplings. Common instantiations of source distribution p are: (i) adding a special token value often referred to as a ‘mask’ or ‘dummy’ token, denoted here by \dummy , and setting the source distribution to be all-mask sequences, i.e. , p(x)=δ\dummy(x) ; and (ii) using uniform distribution over \gD , which is equivalent to drawing each xi independently to be some value in [d] with equal probability, denoted p(x)=pu(x) . In this paper we focus mainly on (i). We further consider two choices of couplings π : Independent coupling, which we call unconditional coupling (U-coupling), π(x0,x1)=p(x0)q(x1) . A random sample that realizes this choice have the form
中
例:源分布与耦合。常见源分布 p 有:(i)增加一个称为 mask 或 dummy 的特殊词元,此处记为 M(M 指原文 m,即双线体小写 m 所表示的同一掩码词元),并把源分布设为全掩码序列,即 p(x)=δM(x);(ii)在 D 上取均匀分布,相当于每个 xi 独立地等概率选取 [d] 中的一个值,记为 p(x)=pu(x)。本文主要研究(i)。进一步考察两类耦合 π:独立耦合称为无条件耦合(U-coupling),π(x0,x1)=p(x0)q(x1)。实现这一耦合的随机样本具有下式形式。
(X0,X1)=((\dummy,…,\dummy),X1),
SOURCE PDF p.3 · S2.SS2.p1.4
EN
where X1∼q(X1) is a random sample from the training set. The second choice of coupling π(x0,x1)=p(x0∣x1)q(x1) , which we find improves conditional sampling, partially masks inputs with samples of the form
where X1∼q(X1) and \sI∈{0,1}N is a random variable indicating the conditioning, ⊙ denotes the entry-wise product, and \one∈\RealN is the vector of all ones. We call this conditional coupling (C-coupling).
We follow the Flow Matching approach ( Lipman et al., 2022 ; Liu et al., 2022 ; Albergo and Vanden-Eijnden, 2022 ) that uses a predefined probability path pt interpolating p and q , i.e. ,
to train the generative model taking a source sample X0∼p to a target sample X1∼q . We use arbitrary coupling of source and target ( Pooladian et al., 2023 ; Tong et al., 2023 ) , π(x0,x1) , and the symmetric Flow Matching path ( Albergo and Vanden-Eijnden, 2022 ) to define the marginal probability path,
pt(x)=x0,x1∈\gD∑pt(x∣x0,x1)π(x0,x1), where pt(x∣x0,x1)=i=1∏Npt(xi∣x0,x1),
SOURCE PDF p.3 · S2.SS3.p1.3
EN
and pt(xi∣x0,x1) is a time-dependent probability on the space of tokens [d] conditioned on the pair x0,x1 , and satisfying p0(xi∣x0,x1)=δx0(xi) and p1(xi∣x0,x1)=δx1(xi) . If the conditional path pt(xi∣x0,x1) satisfies these boundary conditions then the marginal path pt(x) satisfies ( 6 ).
In developing the framework, we would like to consider as general as possible set of probability paths that are also tractable to learn within the Flow Matching framework. We consider conditional probability paths as a convex sum of m conditional probabilities wj(xi∣x0,x1) , i.e. ,
中
构建框架时,我们希望覆盖尽可能一般、同时又能在流匹配框架内切实学习的概率路径。考虑把条件概率路径写成 m 个条件概率 wj(xi∣x0,x1) 的凸组合,即下式。
pt(xi∣x0,x1)=j=1∑mκti,jwj(xi∣x0,x1),
SOURCE PDF p.3 · S2.SS3.p2.2
EN
where ∑jκti,j=1 and κti,j≥0 are collectively called the scheduler . Note that the scheduler can be defined independently for each location in the sequence i∈[N] or uniformly for all tokens, κti,j=κtj .
A simple yet useful instance of these conditional paths is reminiscent of the continuous Flow Matching paths formulated as convex interpolants,
中
下式是一个简单而有用的条件路径实例,它类似于连续流匹配中用凸插值构造的路径。
pt(xi∣x0,x1)=(1−κt)δx0(xi)+κtδx1(xi),
SOURCE PDF p.3 · S2.SS3.p3.2
EN
where the scheduler κt satisfies κ0=0 , κ1=1 , and monotonically increasing in t . Another interesting instantiation of ( 8 ) is adding uniform noise with some probability depending on t ,
中
调度器 κₜ 满足 κ₀=0、κ₁=1,且关于 t 单调递增。式(8)的另一个有趣实例,是以随时间变化的概率添加均匀噪声。
Figure 2 : Discrete flow in D = [ d ] N with d = 4 , N = 2 (middle-left) versus continuous flow in R N , N = 2 (left). The rate of change of probability of a state (gray disk) is given by the divergence operator shown in the continuous case (middle right) and the discrete case (right). 图 2:D=[d]ᴺ 中 d=4、N=2 的离散流(中左)与 N=2 的连续流(左)。灰色圆盘状态的概率变化率由散度算子给出;中右、右分别为连续与离散散度。
2.4 Generating Probability Velocities 2.4 生成概率速度
SOURCE PDF p.4 · S2.SS4.p1.1
EN
Continuous generating velocity. Sampling in continuous Flow Matching is performed by updating the current (continuous) sample Xt∈\RealN , t∈[0,1) , according to a learned generating velocity field uti(Xt) , i∈[N] . Euler sampling follows the (deterministic) rule
where h>0 is a user-defined time step. Note that ( 11 ) is updating separately each of the sample coordinates, Xti , i∈[N] , see e.g. , Figure 2 , left. The velocity uti(Xt) can be either directly modeled with a neural network, or parameterized via the denoiser (a.k.a. x -prediction) or noise-prediction (a.k.a. \eps -prediction), see left column in Table 1 . If, for all t∈[0,1) , starting at Xt∼pt and sampling with ( 11 ) provides Xt+h∼pt+h+o(h) 1 1 1 The o(hℓ) notation means a function going to zero faster than hℓ as h\too0 , i.e. , hℓo(hℓ)⟶h\too00 . then we say that ut generates pt .
For defining Flow Matching in the discrete setting, we follow Campbell et al. (2024) and consider a Continuous-Time discrete Markov Chain (CTMC) paradigm, namely the sample Xt is jumping between states in \gD , depending on a continuous time value t∈[0,1] . Similar to the continuous Flow Matching setting described above, we focus on a model that predicts the rate of probability change of the current sample Xt in each of its N tokens, see Figure 2 , middle-left. Then, each token of the sample Xt∼pt is updated independently by
where we call ut the probability velocity as reminiscent of the velocity field in continuous Flow Matching, and as in the continuous case, we define:
中
我们把 uₜ 称为概率速度,呼应连续流匹配中的速度场。类似连续情形,作如下定义。
Definition 1 . 定义 1
SOURCE PDF p.4 · S2.Thmtheorem1.p1.1
EN
Probability velocity ut generates the probability path pt if, for all t∈[0,1) and given a sample Xt∼pt , the sample Xt+h defined in ( 12 ) satisfies Xt+h∼pt+h+o(h) .
Algorithm 1 formulates a basic sampling algorithm given a generating probability velocity ut . In order for the r.h.s. of ( 12 ) to define a proper PMF for sufficiently small h>0 , it is necessary and sufficient that the probability velocity satisfies the conditions
Now the main question is how to find a probability velocity ut that generates the probability path defined in equations 7 and 8 ?
A key insight in Flow Matching ( Lipman et al., 2022 ) is that ut can be constructed as a marginalization of conditional probability velocities, uti(xi,z∣x0,x1) , generating the corresponding conditional probability paths pt(xi∣x0,x1) .
This can also be shown to hold in the discrete CTMC setting ( Campbell et al., 2024 ) , where a reformulation in our context and notation is as follows.
Given a conditional probability velocity uti(xi,z∣x0,x1) generating a conditional probability path pt(x∣x0,x1) , the marginal velocity defined by
generates the marginal probability path pt(x) , where by Bayes’ rule
中
生成边缘概率路径 pₜ(x),其中由 Bayes 公式得到下式。
pt(x0,x1∣z)=pt(z)pt(z∣x0,x1)π(x0,x1).
SOURCE PDF p.5 · S2.SS4.SSS0.Px1.p4.1
EN
For completeness we provide a simple proof of this theorem in Section E.2 . The proof, similar to the continuous Flow Matching case, shows that ut and pt satisfy the (discrete version of the) Continuity Equation.
To provide the mathematical tool for showing that a probability velocity ut does indeed generate the probability path pt , and also to further highlight the similarities to the continuous case, we next formulate the Kolmogorov Equations , which describe the state probability rate p˙t(x) , x∈\gD , in CTMC as a Continuity Equation (CE). The Continuity Equation, similarly to Kolmogorov Equations, describes p˙t(x) , x∈\RealN in the continuous case , and is formulated as the Partial Differential Equation (PDE)
where the divergence operator \divvx(v) applied to a vector field v:\RealN\too\RealN is defined by
中
其中,对向量场 v:RN→RN 的散度算子定义如下。
\divvx(v)=i=1∑N∂xivi(x),
SOURCE PDF p.5 · S2.SS4.SSS0.Px2.p1.4
EN
and intuitively means the total flux leaving x , see Figure 2 (middle-right). This gives an intuitive explanation to the Continuity Equation: the rate of the probability p˙t(x) of a state x∈\RealN equals the total incoming probability flux , ptut , at x . In the discrete case (CTMC) the Continuity Equation (( 16 )) holds as is, once the discrete divergence operator is properly defined, i.e. , to measure the outgoing flux from a discrete state. In more detail, given some vector field, which in the discrete case is a scalar-valued function over pairs of states, v:\gD×\gD\too\Real , the discrete divergence is
中
直观上,它表示离开 x 的总通量,见图 2 中右图。这给出了连续性方程的直观解释:状态 x 的概率变化率等于该处总流入概率通量 pₜuₜ。离散情形(CTMC)只要恰当定义离散散度、使它度量离开离散状态的通量,式(16)即可原样成立。具体而言,离散向量场是定义在状态对上的标量函数 v:D×D→R,其离散散度为下式。
\divvx(v)=z∈\gD∑\bracv(z,x)−v(x,z),
SOURCE PDF p.5 · S2.SS4.SSS0.Px2.p1.5
EN
where v(z,x) represents the flux x\tooz and v(x,z) represent the opposite flux z\toox ; see Figure 2 , right. Now, in our case (see Figure 2 , middle-left), the probability flux at a state x∈\gD involves all sequences with at most one token difference from x , i.e. , the probability flux ptut at x takes the form v(x,z)=pt(z)uti(xi,z) and v(z,x)=pt(x)uti(zi,x) for z and x that differ only in the i -th token, v(x,x)=pt(x)∑i=1Nuti(xi,x) , and v(x,z)=0 for all other (z,x)∈\gD×\gD . A direct calculation now shows (see Section E.1 ):
中
这里 v(z,x) 表示 x→z 的通量,v(x,z) 表示反向 z→x 的通量,见图 2 右图。本文中(见图 2 中左),状态 x 处的概率通量仅涉及与 x 至多相差一个词元的序列。若 z 与 x 仅第 i 个词元不同,则 v(x,z)=pt(z)uti(xi,z)、v(z,x)=pt(x)uti(zi,x);自环通量为 v(x,x)=pt(x)∑iuti(xi,x);其余状态对的 v(x,z) 为零。直接计算得到下式,详见附录 E.1。
Checking that a probability velocity ut generates a probability path pt (in the sense of Definition 1 ) amounts to verifying the Continuity Equation (( 16 )). Indeed, using arguments from Campbell et al. (2024) and the discrete divergence operator, the PMF of Xt+h defined by sampling according to ( 12 ) is
where we assume Xt∼pt , the first equality uses the identity ∏i\bracai+hbi=∏iai+h∑i(∏j=iaj)bi+o(h) , the second equality uses ( 19 ), and the previous-to-last equality uses the Continuity Equation (( 16 )). This shows that if the Continuity Equation holds then ut generates pt in the sense of Definition 1 .
Conditional and marginal generating velocities. We provide the probability velocities generating the conditional probability paths pt(x∣x0,x1) defined in equations 7 and 8 . Then, using the marginalization formula in ( 14 ) we end up with a closed-form marginal velocity for the probability paths pt(x) . In Section E.3 we show
where pt(x0,x1∣z) (defined in ( 15 )) is the posterior probability of x0,x1 conditioned on the current state Xt=z .
A useful instantiation of the general velocity in ( 22 ) is when considering the path family in ( 9 ), for which w1(xi∣x0,x1)=δx1(xi) , w2(xi∣x0,x1)=δx0(xi) , κti,1=κt , κti,2=1−κt , κ˙t≥0 ( i.e. , monotonically non-decreasing in t ) and in this case ( 22 ) reads as
中
其中式(15)定义的 pt(x0,x1∣z) 是给定当前状态 Xₜ=z 的端点后验。对于式(9)的路径族,一般速度式(22)有一个有用的特例:w1=δx1、w2=δx0、κti,1=κt、κti,2=1−κt,并且 κ˙t≥0,即随 t 单调不减。此时式(22)化为下式。
Table 1 : Generating (marginal) velocity fields have identical form for the continuous and discrete Flow Matching when using denoiser/noise-prediction parameterization; x ^ 1∣ t ( z ) = E X 1 ∼ p t ( ⋅ ∣ z ) X 1 is the standard continuous denoiser (a.k.a. x -prediction) and x ^ 0∣ t ( z ) = E X 0 ∼ p t ( ⋅ ∣ z ) X 0 is the standard noise-prediction (a.k.a. ϵ -prediction). 表 1:用去噪器或噪声预测器参数化时,连续与离散流匹配的生成(边缘)速度具有相同形式。蓝色 x̂₁|ₜ(z) 是标准连续去噪器 E[X₁|z](x 预测),红色 x̂₀|ₜ(z) 是标准噪声预测器 E[X₀|z](ε 预测)。
Sampling backward in time. 反向时间采样
SOURCE PDF p.6 · S2.SS4.SSS0.Px3.p1.1
EN
We can also sample backwards in time by following the sampling rule Xt−hi∼δXti(⋅)−huti(⋅,Xt) . In this case −uti(xi,z) should satisfy ( 13 ). A (backward-time) generating probability velocity can then be achieved from ( 22 ) with the simple change to the coefficients ati,j and bti,j , see Section E.4 . For pt defined with ( 9 ) the generating velocity is
Remarkably, the generating velocity fields in 24 and 25 take the exact same form as the generating (a.k.a. marginal) velocity fields in continuous flow matching when parameterized via the denoiser or noise-prediction parameterizations and using the same schedulers, see Table 1 and Section E.9 for explanation of the continuous case. In Section E.4 we provide the backward-time version of Theorem 3 .
Combining the forward-time u^t ( ( 24 )) and backward-time uˇt ( ( 25 )), i.e. ,
中
将前向时间速度 u^t(式 24)与反向时间速度 uˇt(式 25)作下列组合。
uˉti(xi,z)=αtu^ti(xi,z)−βtuˇti(xi,z),
SOURCE PDF p.7 · S2.SS4.SSS0.Px4.p1.2
EN
provides a valid forward-time probability velocity field ( i.e. , satisfies ( 13 )) for t∈(0,1) as long as αt,βt>0 . This velocity field can be used for two types of corrector sampling: (i) When αt−βt=1 sampling with uˉt leads to corrector sampling where intuitively each step moves 1+βt forward in time and −βt backwards, which allows reintroducing noise into the sampling process; and (ii) when αt−βt=0 sampling with uˉt when fixing t∈(0,1) leads to corrector iterations where limit samples distribute according to pt . In Section E.6 we prove:
For perfectly trained posteriors and αt,βt>0 , t∈(0,1) , uˉt in ( 26 ) is a probability velocity, i.e. , satisfies ( 13 ), and: (i) For αt−βt=1 , uˉt provides a probability velocity generating pt ; (ii) For αt−βt=0 , repeatedly sampling with uˉt at fixed t∈(0,1) and sufficiently small h is guaranteed to converge to a sample from pt .
One simplification to ( 26 ) can be done in the case of paths constructed with conditional as in ( 9 ), independent coupling π(x0,x1)=p(x0)q(x1) , and i.i.d. source p(x0)=∏i=1Np(x0i) , e.g. , p(x0i) is uniform over [d] or δ\dummy(x0i) . In this case, the backward-time formula in ( 25 ) take an equivalent simpler form
which does not require estimation of the posterior p0∣t . See Section E.5 for the derivation.
中
这一简式不需要估计后验 p₀|ₜ,推导见附录 E.5。
Training. 训练
SOURCE PDF p.7 · S2.SS4.SSS0.Px5.p1.1
EN
Equation 22 shows that for generating samples from a probabilty path pt(x) we require the posteriors w^tj(xi∣Xt) . Training such posteriors can be done by minimizing the loss
where t is sampled according to some distribution in [0,1] (we used uniform), (X0,X1)∼π(X0,X1) , Xt∼pt(Xt∣X0,X1) , and Yji∼wj(Yji∣X0,X1) ; θ∈\Realp denotes the learnable parameters. In the common case we use in this paper of learning a single posterior, i.e. , the probability denoiser p1∣t , the loss takes the form \gL(θ)=−∑i∈[N]\Et,(X0,X1),Xtlogp1∣t(X1i∣Xt) . In Section E.7 we prove:
The minimizer of \gL (( 28 )) is w^tj(xi∣Xt) (( 23 )).
中
损失 L(式 28)的极小化解是式(23)的 w^tj(xi∣Xt)。
SOURCE PDF p.8,S2.T2
Table 2: Generative perplexity on unconditional text generation compared to prior work. All models are sampled without the use of temperature or corrector steps. Double precision sampling results are reported in Table 5 . 表 2:无条件文本生成的生成困惑度比较;所有模型均不使用温度或校正步骤。双精度采样结果见表 5。
3 Related work 3 相关工作
SOURCE PDF p.7 · S3.p1.1
EN
In the section we cover the most related work to ours; in Appendix A we cover other related work.
中
本节讨论与本文最相关的研究,其他相关工作见附录 A。
SOURCE PDF p.7 · S3.p2.1
EN
Discrete Flows ( Campbell et al., 2024 ) is probably the most related work to ours. We build upon their CTMC framework and offer the following generalizations and simplifications: We consider arbitrary couplings (X0,X1) , and offer a novel and rather general family of probability paths (( 8 )) for which we provide the generating probability velocities in a unified closed-form formula (equations 22 - 25 ). These in particular recreate the same formulas as the continuous Flow Matching counterpart (Table 1 ). We furthermore develop a general corrector velocity (( 26 )) that unifies both corrector iterations ( Song et al., 2020 ; Campbell et al., 2022 ) and stochastic sampling of Campbell et al. (2024) .
We show that particular choices of noise schedulers κt ( κt=t reproduces Campbell et al. (2024) ) and corrector schedulers provide a boost in results. Lastly, we opted for the term probability velocity for uti(xi,Xt) as it is not precisely a rate matrix in the state space \gD×\gD used in CTMC since uti(xi,z) for all i∈[N] define multiple self-edges z\tooz .
Masked modeling ( Ghazvininejad et al., 2019 ; Chang et al., 2022 ) . In case of a masked model, i.e. , when the source distribution is p(x)=δ\dummy(x) , we achieve an interesting connection with MaskGit showing it is actually an instance of Discrete Flow Matching with a small yet crucial change to its sampling algorithm. First, in Section E.8 we prove that in the masked setting, the probability denoiser p1∣t is time-independent :
For paths defined by equations 7 and 9 with source p(x)=δ\dummy(x) the posterior pt(x0,x1∣z)=p(x0,x1∣z) is time-independent. Consequently, the probability denoiser p1∣t(xi∣z)=p1(xi∣z) is also time-independent.
This shows that the probability denoiser can be learned with no time dependence, similar to the unmasking probabilities in MaskGit. During sampling however, there are two main differences between our sampling and MaskGit sampling. First, unmasking of tokens in our algorithm is done according to the probability δXt(xi)+huti(xi,Xt) independently for each token xi , i∈[N] . This procedure is justified as it samples from the correct probability asymptotically via the derivation of the Continuity Equation 20 . This is in contrast to MaskGit that prioritizes the token to be unmasked according to some confidence . In the experiments section we show that MaskGit’s prioritization, although has some benefit in the very low NFE regime, is actually introducing a strong bias in the sampling procedure and leads to inferior overall results. Secondly, using corrector sampling allows for reintroducing masks to already unmasked tokens in a way that is still guaranteed to produce samples from pt , see Theorem 4 ; we find this to have a significant positive effect on the generation quality.
Discrete diffusion. D3PM ( Austin et al., 2021a ) and Argmax flows ( Hoogeboom et al., 2021 ) introduced diffusion in discrete spaces by proposing a corruption process for categorical data. A later work by Campbell et al. (2022) introduced discrete diffusion models with continuous time, and Lou et al. (2023) proposed learning probability ratios, extending score matching ( Song and Ermon, 2019 ) to discrete spaces.
Table 3 : Generative perplexity on conditional text generation. 表 3:条件文本生成的生成困惑度。
SOURCE PDF p.9,S3.T4
Table 4 : Execution based code generation evaluation. 表 4:基于代码执行的生成评估。
4 Experiments 4 实验
SOURCE PDF p.8 · S4.p1.1
EN
We evaluate our method on the tasks of language modeling, code generation, and image generation. For language modeling, we compare the proposed method against prior work considering the widely used generative perplexity metric. We scale the models to 1.7 billion parameters and present results on coding tasks, i.e., HumanEval ( Chen et al., 2021 ) , MBPP ( Austin et al., 2021b ) , demonstrating the most promising results to date in a non-autoregressive context. In image generation, we present results for a fully discrete CIFAR10 ( Krizhevsky et al., 2009 ) . Further details of the experimental setup for each model are provided in Appendix G .
Experimental setup. In our experiments we used the masked source, i.e. , p=δ\dummy , and trained with both unconditional coupling (U-coupling, ( 4 )) and conditional couplings (C-coupling, ( 5 )) with the probability path defined in equations 7 , 9 and in one case 10 . We trained a probability denoiser (loss in ( 28 )) and sampled using the generating velocity in ( 24 ) and Algorithm 1 . We used a particular choice of probability path scheduler κt , as well as corrector steps defined by a scheduler αt and temperature annealing. We found the choice of these schedulers to be pivotal for the model’s performance. In Appendix D we perform an ablation study, evaluating various scheduler choices.
We experimented with our method in three settings: (i) Small model (150M parameters) - comparison to other non-autoregressive baselines in unconditional text generation; (ii) Large model (1.7B parameters) - comparison to autoregressive models in conditional text generation; and (iii) Large model (1.7B parameters) - conditional code generation. As computing exact likelihood for non-autoregressive model is a challenge, for (i),(ii) we use the generative perplexity metric ( Appendix G measured with GPT2 ( Radford et al., 2019 ) , Llama-2 ( Touvron et al., 2023 ) , and Llama-3, and we also monitor the sentence entropy ( Appendix G ) to measure diversity of tokens and flag repetitive sequences, which typically yield low perplexity. Throughout our experiments we noticed entropy ≥6 usually corresponds to diverse texts. For (iii) we evaluated using the success rate of coding tasks.
Evaluation against prior work. We evaluate our method against prior work on non-autoregressive modeling. For a fair comparison, all methods are trained on a 150M parameters models using the OpenWebText ( Gokaslan and Cohen, 2019 ) dataset. We also fix all sampling hyperparameters to the most basic settings, i.e. , no temperature, top probability, corrector steps, etc. For our method we tried two paths defined by equations 9 and 10 . Results are reported in Table 2 , where our method outperforms all baselines in generative perplexity for all numbers of function evaluations (NFE).
中
与既有工作的评估。我们与非自回归建模的已有方法比较。为公平起见,全部方法都在 OpenWebText(Gokaslan 与 Cohen,2019)上训练 1.5 亿参数模型,且采样超参数均固定为最基本设置,即不使用温度、top probability 截断、校正步骤等。本文方法尝试了式(9)、(10)两条路径。表 2 表明,在所有函数评估次数(NFE)设置下,我们的生成困惑度均优于全部基线。
SOURCE PDF p.9 · S4.SS1.p3.1
EN
Conditional text generation. In this experiment, we train both C-coupling and U-coupling 1.7B parameters Discrete Flow Matching models with paths defined by ( 9 ) on a large scale data mix ( Touvron et al., 2023 ) . Table 3 presents the generative perplexity of conditional generations from our method; the conditions we used are the prefixes of the first 1000 samples in OpenWeb dataset. We also compare to existing state-of-the-art autoregressive models. Our results demonstrate that our model effectively narrows the gap in generative perplexity with autoregressive models, while maintaining an entropy comparable to the recent Llama-3 8B model. Furthermore, we note the C-coupling trained model produces slightly better perplexity in conditional tasks than the U-coupling model. In Appendix I we present qualitative conditional samples produced by our U-coupling model.
Code generation. Here we trained our basic setting of a 1.7B parameters Discrete Flow Matching model with U-coupling and path as in ( 9 ) on a code-focused data mix ( Roziere et al., 2023 ) . Table 4 presents results on HumanEval and MBPP (1-shot) for pass@ {1,10,25} . In Table 4 , ‘Oracle length’ evaluates the performance of our model when conditioning on the length of the solution. This is done by inserting an ‘end of text’ token in the same position of the ground truth solution. Our method achieves non-trivial results on both tasks, which to the best of our knowledge is the first instance of a non-autoregressive method being capable of non-trivial coding tasks. In Appendix C , we analyze the proposed method for code infilling, which can be achieved as our model allows non-autoregressive generation.
Lastly, in Appendix H we show qualitative examples of success and failure cases produced by our model on the coding tasks, and in Section H.3 we show examples of code infilling.
Figure 3 : FID and Inception scores vs. number of function evaluations (NFE). 图 3:FID 与 Inception Score 随函数评估次数 NFE 的变化。
SOURCE PDF p.10 · S4.SS2.p1.1
EN
We performed a fully discrete image generation, without using any metric or neighboring information between color values. We trained an Discrete Flow Matching model with U-coupling and path as in ( 9 ) on CIFAR10 to predict discrete color value for tokens, i.e. , d=256 , with sequence length of N=32×32×3 . For generative quality we evaluate the Fréchet Inception Distance (FID) ( Heusel et al., 2017 ) . Ablations for the probability path schedulers are provided in Figure 8 in the Appendix G .
In Figure 3(a) we compare our method with: (i) MaskGIT ( Chang et al., 2022 ) ; and (ii) ( Campbell et al., 2024 ) which coincides with our method for a linear scheduler. More details in Appendix G . As can be seen in the Figure 3(a) , our method outperforms both baselines, achieving 3.63 FID at 1024 NFE. In fig. 3(b) we observe a similar trend when evaluating Inception score. As discussed above, MaskGit sampling performs better for low NFE but quickly deteriorates for higher NFE. We attribute this to a bias introduced in the sampling process via the confidence mechanism.
We introduce Discrete Flow Matching, a generalization of continuous flow matching and discrete flows that provides a large design space of discrete non-autoregressive generative models. Searching within this space we were able to train large scale language models that produce generated text with an improved generative perplexity compared to current non-autoregressive methods and able to solve coding tasks at rates not achievable before with non-autoregressive models, as far as we are aware. While reducing the number of network evaluations required to generate a discrete sample compared to autoregressive models, Discrete Flow Matching still does not achieve the level of sampling efficiency achieved by its continuous counterpart, flagging an interesting future work direction. Another interesting direction is to explore the space of probability paths in ( 8 ) (or a generalization of which) beyond what we have done in this paper. We believe discrete non-autoregressive models have the potential to close the gap and even surpass autoregressive models as well as unlock novel applications and use cases. As our work introduces an alternative modeling paradigm to discrete sequential data such as language and code, we feel it does not introduce significant societal risks beyond those that already exist with previous large language models.
Ahn et al. (2024) Janice Ahn, Rishu Verma, Renze Lou, Di Liu, Rui Zhang, and Wenpeng Yin. Large language models for mathematical reasoning: Progresses and challenges. arXiv preprint arXiv:2402.00157 , 2024.
Albergo and Vanden-Eijnden (2022) Michael S Albergo and Eric Vanden-Eijnden. Building normalizing flows with stochastic interpolants. arXiv preprint arXiv:2209.15571 , 2022.
Austin et al. (2021a) Jacob Austin, Daniel D Johnson, Jonathan Ho, Daniel Tarlow, and Rianne Van Den Berg. Structured denoising diffusion models in discrete state-spaces. Advances in Neural Information Processing Systems , 34:17981–17993, 2021a.
Austin et al. (2021b) Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, et al. Program synthesis with large language models. arXiv preprint arXiv:2108.07732 , 2021b.
Besnier and Chen (2023) Victor Besnier and Mickael Chen. A pytorch reproduction of masked generative image transformer, 2023.
Blattmann et al. (2023) Andreas Blattmann, Tim Dockhorn, Sumith Kulal, Daniel Mendelevitch, Maciej Kilian, Dominik Lorenz, Yam Levi, Zion English, Vikram Voleti, Adam Letts, et al. Stable video diffusion: Scaling latent video diffusion models to large datasets. arXiv preprint arXiv:2311.15127 , 2023.
Brown et al. (2020) Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems , 33:1877–1901, 2020.
Campbell et al. (2022) Andrew Campbell, Joe Benton, Valentin De Bortoli, Thomas Rainforth, George Deligiannidis, and Arnaud Doucet. A continuous time framework for discrete denoising models. Advances in Neural Information Processing Systems , 35:28266–28279, 2022.
Campbell et al. (2024) Andrew Campbell, Jason Yim, Regina Barzilay, Tom Rainforth, and Tommi Jaakkola. Generative flows on discrete state-spaces: Enabling multimodal flows with applications to protein co-design. arXiv preprint arXiv:2402.04997 , 2024.
Chang et al. (2022) Huiwen Chang, Han Zhang, Lu Jiang, Ce Liu, and William T Freeman. Maskgit: Masked generative image transformer. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition , pages 11315–11325, 2022.
Chang et al. (2023) Huiwen Chang, Han Zhang, Jarred Barber, AJ Maschinot, Jose Lezama, Lu Jiang, Ming-Hsuan Yang, Kevin Murphy, William T Freeman, Michael Rubinstein, et al. Muse: Text-to-image generation via masked generative transformers. arXiv preprint arXiv:2301.00704 , 2023.
Chen et al. (2021) Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374 , 2021.
Chen et al. (2022) Ting Chen, Ruixiang Zhang, and Geoffrey E. Hinton. Analog bits: Generating discrete data using diffusion models with self-conditioning. ArXiv , 2022.
Copet et al. (2024) Jade Copet, Felix Kreuk, Itai Gat, Tal Remez, David Kant, Gabriel Synnaeve, Yossi Adi, and Alexandre Défossez. Simple and controllable music generation. Advances in Neural Information Processing Systems , 36, 2024.
Dhariwal and Nichol (2021) Prafulla Dhariwal and Alexander Nichol. Diffusion models beat gans on image synthesis. Advances in neural information processing systems , 34:8780–8794, 2021.
Dieleman et al. (2022) Sander Dieleman, Laurent Sartran, Arman Roshannai, Nikolay Savinov, Yaroslav Ganin, Pierre H Richemond, Arnaud Doucet, Robin Strudel, Chris Dyer, Conor Durkan, et al. Continuous diffusion for categorical data. arXiv preprint arXiv:2211.15089 , 2022.
Esser et al. (2024) Patrick Esser, Sumith Kulal, Andreas Blattmann, Rahim Entezari, Jonas Müller, Harry Saini, Yam Levi, Dominik Lorenz, Axel Sauer, Frederic Boesel, et al. Scaling rectified flow transformers for high-resolution image synthesis. arXiv preprint arXiv:2403.03206 , 2024.
Ferruz and Höcker (2022) Noelia Ferruz and Birte Höcker. Controllable protein design with language models. Nature Machine Intelligence , 4(6):521–532, 2022.
Ghazvininejad et al. (2019) Marjan Ghazvininejad, Omer Levy, Yinhan Liu, and Luke Zettlemoyer. Mask-predict: Parallel decoding of conditional masked language models. arXiv preprint arXiv:1904.09324 , 2019.
Han et al. (2022) Xiaochuang Han, Sachin Kumar, and Yulia Tsvetkov. Ssd-lm: Semi-autoregressive simplex-based diffusion language model for text generation and modular control. arXiv preprint arXiv:2210.17432 , 2022.
Hassid et al. (2024) Michael Hassid, Tal Remez, Tu Anh Nguyen, Itai Gat, Alexis Conneau, Felix Kreuk, Jade Copet, Alexandre Defossez, Gabriel Synnaeve, Emmanuel Dupoux, et al. Textually pretrained speech language models. Advances in Neural Information Processing Systems , 36, 2024.
He et al. (2022) Zhengfu He, Tianxiang Sun, Kuan Wang, Xuanjing Huang, and Xipeng Qiu. Diffusionbert: Improving generative masked language models with diffusion models. In Annual Meeting of the Association for Computational Linguistics , 2022.
Heusel et al. (2017) Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochreiter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In Advances in Neural Information Processing Systems (NeurIPS) , 2017.
Ho et al. (2020) Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in neural information processing systems , 33:6840–6851, 2020.
Hoogeboom et al. (2021) Emiel Hoogeboom, Didrik Nielsen, Priyank Jaini, Patrick Forré, and Max Welling. Argmax flows and multinomial diffusion: Learning categorical distributions. Advances in Neural Information Processing Systems , 34:12454–12465, 2021.
Imani et al. (2023) Shima Imani, Liang Du, and Harsh Shrivastava. Mathprompter: Mathematical reasoning using large language models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 5: Industry Track) , pages 37–42, 2023.
Kreuk et al. (2022) Felix Kreuk, Gabriel Synnaeve, Adam Polyak, Uriel Singer, Alexandre Défossez, Jade Copet, Devi Parikh, Yaniv Taigman, and Yossi Adi. Audiogen: Textually guided audio generation. arXiv preprint arXiv:2209.15352 , 2022.
Krizhevsky et al. (2009) Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. arXiv , 2009.
Li et al. (2023) Raymond Li, Loubna Ben Allal, Yangtian Zi, Niklas Muennighoff, Denis Kocetkov, Chenghao Mou, Marc Marone, Christopher Akiki, Jia Li, Jenny Chim, et al. Starcoder: may the source be with you! arXiv preprint arXiv:2305.06161 , 2023.
Li et al. (2022) Xiang Lisa Li, John Thickstun, Ishaan Gulrajani, Percy Liang, and Tatsunori Hashimoto. Diffusion-lm improves controllable text generation. ArXiv , 2022.
Lin et al. (2022) Zheng-Wen Lin, Yeyun Gong, Yelong Shen, Tong Wu, Zhihao Fan, Chen Lin, Weizhu Chen, and Nan Duan. Genie : Large scale pre-training for generation with diffusion model. In ArXiv , 2022.
Lipman et al. (2022) Yaron Lipman, Ricky TQ Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. arXiv preprint arXiv:2210.02747 , 2022.
Liu et al. (2022) Xingchao Liu, Chengyue Gong, and Qiang Liu. Flow straight and fast: Learning to generate and transfer data with rectified flow. arXiv preprint arXiv:2209.03003 , 2022.
Lou et al. (2023) Aaron Lou, Chenlin Meng, and Stefano Ermon. Discrete diffusion language modeling by estimating the ratios of the data distribution. arXiv preprint arXiv:2310.16834 , 2023.
Lovelace et al. (2022) Justin Lovelace, Varsha Kishore, Chao gang Wan, Eliot Shekhtman, and Kilian Q. Weinberger. Latent diffusion for language generation. ArXiv , 2022.
Madani et al. (2023) Ali Madani, Ben Krause, Eric R Greene, Subu Subramanian, Benjamin P Mohr, James M Holton, Jose Luis Olmos, Caiming Xiong, Zachary Z Sun, Richard Socher, et al. Large language models generate functional protein sequences across diverse families. Nature Biotechnology , 41(8):1099–1106, 2023.
Norris (1998) James R Norris. Markov chains . Number 2. Cambridge university press, 1998.
Peebles and Xie (2022) William Peebles and Saining Xie. Scalable diffusion models with transformers. arXiv preprint arXiv:2212.09748 , 2022.
Pooladian et al. (2023) Aram-Alexandre Pooladian, Heli Ben-Hamu, Carles Domingo-Enrich, Brandon Amos, Yaron Lipman, and Ricky TQ Chen. Multisample flow matching: Straightening flows with minibatch couplings. arXiv preprint arXiv:2304.14772 , 2023.
Radford et al. (2019) Alec Radford, Jeff Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. 2019. https://api.semanticscholar.org/CorpusID:160025533 .
Rombach et al. (2022) Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition , pages 10684–10695, 2022.
Romera-Paredes et al. (2024) Bernardino Romera-Paredes, Mohammadamin Barekatain, Alexander Novikov, Matej Balog, M Pawan Kumar, Emilien Dupont, Francisco JR Ruiz, Jordan S Ellenberg, Pengming Wang, Omar Fawzi, et al. Mathematical discoveries from program search with large language models. Nature , 625(7995):468–475, 2024.
Roziere et al. (2023) Baptiste Roziere, Jonas Gehring, Fabian Gloeckle, Sten Sootla, Itai Gat, Xiaoqing Ellen Tan, Yossi Adi, Jingyu Liu, Tal Remez, Jérémy Rapin, et al. Code llama: Open foundation models for code. arXiv preprint arXiv:2308.12950 , 2023.
Savinov et al. (2021) Nikolay Savinov, Junyoung Chung, Mikolaj Binkowski, Erich Elsen, and Aaron van den Oord. Step-unrolled denoising autoencoders for text generation. arXiv preprint arXiv:2112.06749 , 2021.
Singer et al. (2022) Uriel Singer, Adam Polyak, Thomas Hayes, Xi Yin, Jie An, Songyang Zhang, Qiyuan Hu, Harry Yang, Oron Ashual, Oran Gafni, et al. Make-a-video: Text-to-video generation without text-video data. arXiv preprint arXiv:2209.14792 , 2022.
Song and Ermon (2019) Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. Advances in neural information processing systems , 32, 2019.
Song et al. (2020) Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. arXiv preprint arXiv:2011.13456 , 2020.
Stark et al. (2024) Hannes Stark, Bowen Jing, Chenyu Wang, Gabriele Corso, Bonnie Berger, Regina Barzilay, and Tommi Jaakkola. Dirichlet flow matching with applications to dna sequence design. arXiv preprint arXiv:2402.05841 , 2024.
Su et al. (2024) Jianlin Su, Murtadha Ahmed, Yu Lu, Shengfeng Pan, Wen Bo, and Yunfeng Liu. Roformer: Enhanced transformer with rotary position embedding. Neurocomputing , 568:127063, 2024.
Tong et al. (2023) Alexander Tong, Nikolay Malkin, Guillaume Huguet, Yanlei Zhang, Jarrid Rector-Brooks, Kilian Fatras, Guy Wolf, and Yoshua Bengio. Improving and generalizing flow-based generative models with minibatch optimal transport. arXiv preprint arXiv:2302.00482 , 2023.
Touvron et al. (2023) Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288 , 2023.
Zhang et al. (2024) Qiang Zhang, Keyang Ding, Tianwen Lyv, Xinda Wang, Qingyu Yin, Yiwen Zhang, Jing Yu, Yuhao Wang, Xiaotong Li, Zhuoyi Xiang, et al. Scientific large language models: A survey on biological & chemical domains. arXiv preprint arXiv:2401.14656 , 2024.
Zhao et al. (2023) Wayne Xin Zhao, Kun Zhou, Junyi Li, Tianyi Tang, Xiaolei Wang, Yupeng Hou, Yingqian Min, Beichen Zhang, Junjie Zhang, Zican Dong, et al. A survey of large language models. arXiv preprint arXiv:2303.18223 , 2023.
Zheng et al. (2024) Kaiwen Zheng, Yongxin Chen, Hanzi Mao, Ming-Yu Liu, Jun Zhu, and Qinsheng Zhang. Masked diffusion models are secretly time-agnostic masked models and exploit inaccurate categorical sampling. arXiv preprint arXiv:2409.02908 , 2024.
Ziv et al. (2024) Alon Ziv, Itai Gat, Gael Le Lan, Tal Remez, Felix Kreuk, Alexandre Défossez, Jade Copet, Gabriel Synnaeve, and Yossi Adi. Masked audio generation using a single non-autoregressive transformer. arXiv preprint arXiv:2401.04577 , 2024.
Appendix A Related works, continuation 附录 A 其他相关工作
SOURCE PDF p.14 · A1.p1.1
EN
We provide here some more details on relevant related works.
中
这里进一步介绍相关研究。
Continuous diffusion and flows. 连续扩散与流
SOURCE PDF p.14 · A1.SS0.SSS0.Px1.p1.1
EN
Another line of works has been exploring the use of continuous space diffusion for discrete data, typically operating in the logits space ( Dieleman et al., 2022 ; Li et al., 2022 ; Han et al., 2022 ; Lin et al., 2022 ; Chen et al., 2022 ) . An additional body of work has been focusing on the adoption of latent diffusion-like modeling ( Lovelace et al., 2022 ; He et al., 2022 ) . Stark et al. (2024) proposed to learn a continuous Flow Matching on the probability simplex with Dirichlet paths.
Autoregressive models have been a significant area of focus in recent years, particularly in the context of natural language processing and machine learning ( Zhao et al., 2023 ) . Autoregressive modeling, in its most fundamental form, utilizes the chain rule to learn the joint sequence probability by breaking it down into next-token conditional probabilities. GPT-2 ( Radford et al., 2019 ) , showcased the power of autoregressive language models in generating coherent and contextually relevant text over long passages. Its successor, GPT-3 ( Brown et al., 2020 ) , further pushed the boundaries, demonstrating impressive performance across a range of tasks without task-specific training data. Later models were adapted to other domains such as, code ( Roziere et al., 2023 ; Li et al., 2023 ; Chen et al., 2021 ) , biology ( Zhang et al., 2024 ; Ferruz and Höcker, 2022 ; Madani et al., 2023 ) , math ( Romera-Paredes et al., 2024 ; Imani et al., 2023 ; Ahn et al., 2024 ) , audio ( Kreuk et al., 2022 ; Copet et al., 2024 ; Hassid et al., 2024 ) and more.
Masked generative modeling proposes to mask a variable portion of the input sequence and training a model to predict this masked section. Ghazvininejad et al. (2019) proposed Mask-Predict, a masked language modeling with parallel decoding. Savinov et al. (2021) extended the mask-modeling approach by employing an additional loss term that incorporates rolling model predictions. MaskGIT ( Chang et al., 2022 ) followed a similar path, for the task of class-conditioned image synthesis, Chang et al. (2023) extended this approach to high-quality textually guided image generation over low-resolution images followed by a super-resolution module. Recently, Ziv et al. (2024) proposed a text-to-music method, which relies on the MaskGIT foundations while observing that span masking boosts the quality of the generated sequence significantly.
Appendix B Further implementation details 附录 B 更多实现细节
Safe sampling. 安全采样
SOURCE PDF p.14 · A2.SS0.SSS0.Px1.p1.1
EN
When sampling according to Algorithm 1 using the generating probability velocity in ( 22 ), an arbitrary step size h>0 can make some probabilities in δXti(⋅)+huti(⋅,Xt) negative and consequently require clamping and injecting further error into the sampling process that can in turn accumulate to a non-negligible global sampling error. A simple fix that guarantees a valid probability distribution while keeping the o(h) sampling error at the relatively manageable price of potentially more function evaluations is using the following adaptive step size in Algorithm 1 : at time t∈[0,1) use
As can be verified with the general probability velocity formula in ( 22 ), the above choice for hadaptive guarantees δXti(⋅)+huti(⋅,Xt) is a valid PMF. As mostly used in this paper, for the probability denoiser parameterization (( 24 )) the adaptive step is
During the training phase, we sample N0∼U(0,N) and adjust the input sequence in accordance with the mask \sI .
中
训练阶段,采样 N0∼U(0,N),按掩码 I 相应调整输入序列。
SOURCE PDF p.15 · A2.SS0.SSS0.Px2.p2.1
EN
During conditional sampling with Algorithm 1 we replace, after each update step, the relevant tokens with the conditioned ones, i.e. , X~=\sI⊙Y+(\one−\sI)⊙X , where X is the current sample, Y is the condition, and \sI is the condition’s mask.
For mask modeling, i.e. , p=δ\dummy , we have seen that the probability denoiser is time-independent (see Proposition 6 ). Consequently, when sampling with Algorithm 1 and ut from ( 24 ) without corrector sampling one is not required to recompute the forward pass p1∣t(⋅∣Xt) if Xt is identical to Xt−h ( i.e. , no \dummy has been unmasked). This means that the NFE of Algorithm 1 in this case is bounded by the number of tokens N .
For a trained posterior w^t(xi∣z) of a conditional probability path as in ( 9 ) with a scheduler κt , the velocity is given by equations 24 or 25 , where w^t(xi∣z) is either p1∣t(xi∣z) or p0∣t(xi∣z) respectively. In this case, we can apply the velocities in equations 24 and 25 for sampling with any scheduler κt′ , using the change of scheduler formula for posteriors,
where w^t′(xi∣z) , is the posterior of the scheduler κt′ , t′=κκt′−1 , and κ−1 is the inverse of κ . The scheduler change formula in ( 32 ) is proved in Proposition 8 . We note that by Proposition 6 , for mask modeling, i.e. , p=δ\dummy , the posterior w^t(xi∣z) is time independent. Hence, in that case, the posterior is not affected by a scheduler change.
Figure 4 : Pass@1 and compiles@1 scores for the 1.5B parameter models as a function of the input masking rations on HumanEval. 图 4:HumanEval 上,原文所称 15 亿参数模型的 Pass@1、compiles@1 随输入掩码比例的变化。
SOURCE PDF p.15 · A3.p1.1
EN
We additionally evaluate the proposed method considering the task of code infilling. In which, we are provided with an input prompt that contains various spans of masked tokens, and our goal is to predict them based on the unmasked ones. See Figure 1 (middle and right sub-figures) for a visual example. Notice, this evaluation setup is the most similar to the training process.
For that, we randomly mask tokens with respect to several masking rations, p∈{0.0,0.1,0.2,…,1.0} , from HumanEval and report both pass@1 and compiles@1 metrics. For the purpose of this analysis, we provide the oracle length for each masked span. In other words, the model predicts the masked tokens for already given maks length. Results for the 1.5B parameters models can be seen in Figure 4 . As expected, both pass@1 and compiles@1 keep improving as we decrease the level of input masking. Interestingly, when considering the fully masked sequence, providing the oracle prediction length significantly improves the pass@1 scores (6.7 vs. 11.6).
(b) Corrector scheduler t a ( 1 − t ) b . (b)校正调度器 tᵃ(1−t)ᵇ。
(c) Temperature scheduler ( 1 − t ) a . (c)温度调度器 (1−t)ᵃ。
Train and sampling path scheduler choice ( κ t ). 训练与采样路径调度器选择(κₜ)
SOURCE PDF p.16 · A4.SS0.SSS0.Px1.p1.1
EN
We study how the choice of the probability path scheduler affects the model performance. For that, we consider a parametric family of cubic polynomial with parameters a,b :
中
我们研究概率路径调度器的选择如何影响性能,考察由参数 a、b 控制的三次多项式族如下。
κt≜−2t3+3t2+a(t3−2t2+t)+b(t3−t2).
SOURCE PDF p.16 · A4.SS0.SSS0.Px1.p1.2
EN
Note that κ0=0 and κ1=0 and a and b are setting the derivative of κt at t=0 and t=1 , respectively. We visualize this κt with choices of a,b∈{0,1,2} in Figure 5(a) .
Figure 6 : Path scheduler choice during training using various of constant temperature values. 图 6:不同固定温度下,训练时路径调度器选择的效果。
SOURCE PDF p.16 · A4.SS0.SSS0.Px1.p2.1
EN
To test the effect of path schedulers in training we have trained 150M parameters models for all choices of a,b∈{0,1,2,3} . We then generate 1000 samples from each model. The samples are computed using Algorithm 1 with the path scheduler the model was trained on, and with temperature levels τ∈{0.8,0.9,1} , where temperature is applied via
We then evaluate the generative perplexity of these samples with GPT-2. Figure 6 shows the results. The graphs indicate that, in the context of text modality, the cubic polynomial scheduler with a≡0,b≡2 (equivalent to a square function) achieves the highest performance. Consequently, we exclusively used this scheduler for the language models.
In our experiments we only applied corrector sampling to our large models (U-coupling and C-coupling; 1.7B parameters). We used the optimal path schedulers from previous section and considered the following parametric family of schedulers for the corrector sampling:
where, we set βt=αt−1 and generate 1000 samples using Algorithm 1 with parameter values a,b∈{0,0.25,0.5} and α∈{10,15,20} . We then evaluated generative perplexity for these samples with Llama-2, showing results in Figure 7 . These plots indicate that smaller values of a and b result in lower perplexity values, albeit with somewhat reduced entropy. We therefore opted for setting a=b=0.25 that strikes a good balance between perplexity and entropy.
Computing the discrete divergence (( 18 )) of the flux ptut at a state x amounts to adding outgoing flux from x and subtracting the incoming flux into x . Using the fact that δz(xiˉ)=1 if and only if z=x or z differs from x only at the i -th token, gives:
中
计算状态 x 处通量 pₜuₜ 的离散散度(式 18),就是加上离开 x 的通量、减去进入 x 的通量。利用 δz(xiˉ)=1 当且仅当 z=x 或 z 与 x 仅在第 i 个词元不同,得到下列计算。
that gives ( 37 ) after noting that δx(ziˉ)=δz(xiˉ) .
中
再注意 δx(ziˉ)=δz(xiˉ),即得到式(37)。
E.2 Conditional velocities lead to marginal velocities E.2 从条件速度到边缘速度
SOURCE PDF p.18 · A5.SS2.p1.1
EN
We provide a simple proof for Theorem 2 , originally proved in Campbell et al. (2024) : Restated theorem
Given a conditional probability velocity uti(xi,Xt∣x0,x1) generating a conditional probability path pt(x∣x0,x1) , the marginal velocity defined by
since κti,j≥0 , w^t(xi∣z)≥0 , and κti,jκ˙ti,j−κti,ℓκ˙ti,ℓ≥0 since ℓ=argminj∈[m]κti,jκ˙ti,j .
Second, we show that ut satisfies the Continuity Equation (( 16 )).
To that end we write ( 8 ) as
Therefore if the Continuity equation holds and −ut satisfies the conditions in ( 13 ) then given Xt∼pt , ( 45 ) provides an approximation Xt−h∼pt−h+o(h) . The change to the generating probability velocity in ( 22 ) to accommodate reverse time sampling is to replace the argmin in ( 41 ) with argmax,
The probability velocity −ut , where ut defined in ( 21 ) with ℓ=argmaxj∈[m]\bracκ˙ti,j/κti,j is a backward-time generating probability velocity for the conditional paths pt(x∣x0,x1) defined in equations 7 and 8 .
due to ℓ being now the argmax of κti,jκ˙ti,j . Therefore −ut satisfies ( 13 ). Lastly, we notice that the proof of the Continuity Equation follows through exactly the same also in this case.
E.5 Backward-time generating velocity for i.i.d. source p ( x 0 ) and simple paths E.5 独立同分布源与简单路径的反向速度
SOURCE PDF p.21 · A5.SS5.p1.1
EN
Here we consider the case of probability paths defined via the conditionals in ( 9 ) with independent coupling π(x0,x1)=p(x0)q(x1) and i.i.d. source distribution p(x0)=∏i=1Np(x0i) , where p(x0i) is some PMF over [d] . In this case one can simplify the time-backward sampling formula in ( 25 ) by using the following one which is equivalent ( i.e. , their difference is divergence free and consequently generate the same probability path pt ):
where in the second to last equality we used the fact that the paths we are considering have the form: pt(xiˉ∣x0,x1)=∏j∈[N]∖i\bracκtδx1(xj)+(1−κt)δx0(xj) , and therefore do not depend on the i -th source token, x0i .
中
倒数第二个等号利用了此处路径的乘积形式:pt(xiˉ∣x0,x1)=∏j=i[κtδx1(xj)+(1−κt)δx0(xj)],因而不依赖源端第 i 个词元 x0i。
E.6 Corrector steps E.6 校正步骤
SOURCE PDF p.22 · A5.SS6.p1.2
EN
For perfectly trained posteriors and αt,βt>0 , t∈(0,1) , uˉt in ( 26 ) is a probability velocity, i.e. , satisfies ( 13 ), and: (i) For αt−βt=1 , uˉt provides a probability velocity generating pt ; (ii) For αt−βt=0 , repeatedly sampling with uˉt at fixed t∈(0,1) and sufficiently small h is guaranteed to converge to a sample from pt .
Since ( 51 ) is a sum of PMFs with coefficients that sum up to zero the first condition in ( 13 ), i.e. , ∑xiuˉti(xi,Xt)=0 holds. The second condition in ( 13 ) holds since for t∈(0,1) we have 1−κtαtκ˙t,κtβtκ˙t≥0 .
Now,
For sufficiently small h>0 therefore p(x∣z) is a convex combination of PMFs (in red) x and consequently is itself a PMF in x , that is p(x∣z) is a probability transition matrix, and pt(x) is its stationary distribution, i.e. , it is an eigenvector of p(x∣z) with eigenvalue 1 , which is maximal. To prove convergence of the iterations in ( 53 ) we are left with showing that p(x∣z) is irreducible and a-periodic, see Norris (1998) (Theorem 1.8.3). Irreducibly of p(x∣z) can be shown by connecting each two states z,z′ by changing one token at a time, and assuming that p1∣t or p0∣t are strictly positive (which is usually the case since as at-least one of them is defined as soft-max of finite logits); a-periodicity is proved by showing p(x∣x)>0 which is true as the coefficient of δz(x) is greater than zero for sufficiently small h>0 . Lastly, note that the iteration in ( 53 ) changes one token at a time. An approximation to this sampling can be achieved using our standard parallel sampling via ( 12 ), justified by ( 20 ).
that amounts to minimizing the Cross Entropy loss between w^t(xi∣Xt;θ) and w^t(xi∣Xt) for all i∈[N] , the minimizer of which satisfies w^t(xi∣Xt;θ)≡w^t(xi∣Xt) .
中
上述计算等价于对所有 i 最小化 w^t(xi∣Xt;θ) 与 w^t(xi∣Xt) 之间的交叉熵,极小化解满足 w^t(xi∣Xt;θ)≡w^t(xi∣Xt)。
E.8 Time-independent posterior for masked modeling E.8 掩码模型中与时间无关的后验
SOURCE PDF p.23 · A5.SS8.p1.2
EN
For paths defined by equations 7 and 9 with source p(x)=δ\dummy(x) the posterior pt(x0,x1∣z)=p(x0,x1∣z) is time-independent. Consequently, the probability denoiser p1∣t(xi∣z)=p1(xi∣z) is also time-independent.
For completeness we provide the formulas for denoiser ( x -prediction) and noise-prediction ( \eps -prediction) parameterizations of the generating velocity field u:[0,1]×\RealN\too\RealN appearing in Table 1 .
In Continuous Flow Matching one can chose several ways to define the probability paths ( Lipman et al., 2022 ; Liu et al., 2022 ; Albergo and Vanden-Eijnden, 2022 ; Pooladian et al., 2023 ; Tong et al., 2023 ) :
The conditional generating velocity field ut(x∣x1) for pt(x∣x1) , i.e. , satisfy the Continuity Equation 16 , takes the form ( Lipman et al., 2022 )
This shows the continuous Flow Matching noise-prediction parameterization of the generating velocity field in Table 1 .
中
这便得到表 1 中连续流匹配生成速度场的噪声预测参数化。
E.10 Scheduler change formula E.10 调度器变换公式
Proposition 8 . 命题 8
SOURCE PDF p.24 · A5.Thmtheorem8.p1.1
EN
Assume a conditional probability path as in ( 9 ), then for any two schedulers κt,κt′ , and w^t(xi∣z),w^t′(xi∣z) their corresponding posteriors as in ( 23 ),
One potential benefit of non-autoregressive decoding is improved latency due to a significantly lower number of decoding steps. To demonstrate that, we measure the average latency of the proposed method compared with the autoregressive alternative using a single A100 GPU with 80 GB of RAM. We calculate the average latency time on the HumanEval benchmark using a batch size of 1. When considering 256 NFEs, the proposed method was found to be ∼ 2.5x faster than the autoregressive model (19.97 vs. 50.94 seconds on average per example). However, when considering 512 NFEs, both methods reach roughly the same latency. These results make sense as the number of tokens in most of the examples in HumanEval are below 512. Notice, that these results analyze latency and not model throughput. Due to the kv-caching mechanism following the autoregressive approach will result in significantly better throughput compared to the proposed approach Ziv et al. (2024) . We leave the construction of a kv-cache mechanism to the proposed approach for future research.
We use three splits of data. First is OpenWebText ( Gokaslan and Cohen, 2019 ) . Second is the same mix used in Llama-2 ( Touvron et al., 2023 ) , including textual and code data. For the code-focused models we use the same split used in CodeLlama ( Roziere et al., 2023 ) . For the small models, we use OpenWebText. For the big models we use the Llama-2 and CodeLlama mixes.
We train two sizes of models: small (150M parameters) and large (1.7B parameters). For the small model we used a DiT transformer architecture ( Peebles and Xie, 2022 ) with 12 layers, 12 attention heads, and hidden dimension of 768. We also used GPT2 tokenizer. The small models were trained on OpenWebText. For the large model, we use also used a DiT transformer architecture but with 48 layers, 24 attention heads, and hidden dimension of 1536 ( Peebles and Xie, 2022 ) . For these models we used a tiktoken tokenizer. The large models were trained on the Llama-2 mix and the CodeLlama mix.
For both models we used ROPE ( Su et al., 2024 ) embedding with θ=10000 . Models are trained with Adam optimizer with β1=0.9 and β2=0.999 . We use dropout rate of 0.1. Models are trained with a warm-up of 2500 steps, with a peak learning rate of 3e-4. We train the big models with batch size of 4096 for 1.3 million iterations and the big models with batch size of 512 for 400 thousand iterations.
We report the entropy of tokens within a sequence, averaged over all generated sequences. This intuitively quantifies the diversity of tokens within a given sequence. It’s important to note that when computing sequence entropy, tokens not present in the sequence are excluded from consideration.
The generative perplexity metric is the average likelihood of generated text evaluated with a second (usually stronger) model. We report the generative perplexity when averaged over 1000 samples.
Zheng et al. (2024) demonstrated that sampling from a high-dimensional distribution with full precision can lead to a similar affect as sampling with temperature. We evaluate our model using a categorical sampler in double precision. Table 5 presents the results of baselines compared to our method.
Table 5: Double precision sampling. Generative perplexity on unconditional text generation compared to prior work. All models are sampled without the use of temperature or corrector steps. 表 5:双精度采样的无条件文本生成困惑度比较;所有模型均不使用温度或校正步骤。
G.2 Image G.2 图像
Models. 模型
SOURCE PDF p.26 · A7.SS2.SSS0.Px1.p1.1
EN
For all our experiments on CIFAR10 we use the U-Net architecture as in Dhariwal and Nichol (2021) , with following three changes to make it fully discrete and time independent (as we used mask modeling): (i) We replace the first layer with an embedding table of size 257×96 , and we stack the channel features such that the input to the U-Net is of shape 288×32×32 . (ii) We enlarge the size of the final layer to output a tensor of shape 3×32×32×257 . (iii) We remove the time dependency from architecture. The hyper-parameters of the architecture: channels 96 , depth 5, channels multiple [3,4,4], heads channels 64, attention resolution 16, dropout 0.4, which gives a total parameters count of 113M. We optimize the network using Adam optimizer with β1=0.9 and β2=0.999 , a learning rate of 1e-4. We trained with an effective batch size pf 512 for roughly 300K iterations.
Figure 8 shows FID of our method with four different schedulers: Linear, Quadratic, Cubic, Cosine, both for training and evaluation. That is, for each scheduler we trained a model and evaluate FID with all four schedulers. We observe a high variance in FID between different schedulers, with the Cubic scheduler generally performing the best on both training and evaluation.
Figure 8 : Comparison of FID on CIFAR10 with four schedulers: Linear, Quadratic, Cubic, Cosine, for both train and evaluation. Corrector sampling is not used in this experiment ( i.e. , α t = 0 in ( 26 )), and temperature is set to 1. 图 8:CIFAR10 上四种调度器(线性、二次、三次、余弦)在训练与评估组合下的 FID。此实验不使用校正采样(原文写式 26 的 αₜ=0),温度为 1。
Comparison with baselines. 基线比较
SOURCE PDF p.27 · A7.SS2.SSS0.Px3.p1.1
EN
In the following, we provide implementation details for producing Figure 3(a) , that compares our schedulers and sampling algorithm with those employed by previous works.
中
下面给出图 3(a) 的实现细节,该图比较本文调度器、采样算法与先前方法的设置。
Cubic Scheduler (Ours). 三次调度器(本文)
SOURCE PDF p.27 · A7.SS2.SSS0.Px4.p1.1
EN
For the Cubic scheduler we set the corrector scheduler as above to,
中
对于三次调度器,校正调度器按前述方式设置如下。
αt=1+αta(1−t)b,βt=αt−1,
SOURCE PDF p.27 · A7.SS2.SSS0.Px4.p1.2
EN
and we search over the parameters a,b∈{0,0.25,0.5,1,2,2.5,3} , and α∈{6,8,10,12,14} . Additionally, we search over the temperature ∈{1,0.9,0.8} . We find that a=2 , b=0.25 , α=12 give best FID.
Linear Scheduler ( Campbell et al., 2024 ) . 线性调度器(Campbell 等,2024)
SOURCE PDF p.27 · A7.SS2.SSS0.Px5.p1.1
EN
For the linear scheduler we search over two additional hyper-parameters of the method: (i) For corrector scheduler as in ( 26 ), we set αt=1+tη , βt=αt−1 , where η is the stochasticity parameter as in Campbell et al. (2024) , and search over η∈{0,1,2,5,10,15} . (ii) We search over temperature in {1,0.9,0.8} . Finally, we find that the best FID is a achieved by η=10 and temperature 0.9 .
MaskGIT ( Chang et al., 2022 ) . MaskGIT(Chang 等,2022)
SOURCE PDF p.27 · A7.SS2.SSS0.Px6.p1.1
EN
For the MaskGIT we train and sample with the Cosine scheduler κ(t)=1−cos\parr2πt which is reported to achieve best results by Chang et al. (2022) . For sampling we adjust the code from the re-implementation of Besnier and Chen (2023) . In addition, we also search over the temperature in {1,0.9,0.8,0.7,0.6,0.5} , and we find the best FID is achieved by temperature 1.
代码注释逐项:若 x 存在于 arr,返回其下标,否则 −1;检查基本情形;若元素就在中间直接返回;若元素小于中间值,则只可能在左半数组;否则只可能在右半数组;若数组中不存在该元素,则返回 −1。
SOURCE PDF p.35,A8.SS3.fig4
代码注释逐项:Python 实现 Dijkstra 单源最短路,图用邻接矩阵表示;辅助函数从尚未进入最短路树的顶点里寻找距离最小者;初始化下一节点的最小距离;搜索未进入最短路树的最近顶点;实现邻接矩阵图的单源最短路;从尚未处理的顶点中选最小距离顶点,首次迭代 u 总等于 src;将该顶点加入最短路树;仅当现有距离大于新距离、且邻点未进入树时,更新所选顶点的相邻顶点距离。输出表头 Vertex / Distance from Source=顶点/距源点距离。原生成代码中的索引等实现保持原样。
Appendix I Textual generations 附录 I 文本生成例子
SOURCE PDF p.36 · A9.p1.1
EN
We present below example generations for the proposed method together with several baseline methods. We provide both conditional and unconditional generations. For the conditional generations, we mark the prompt in gray.
The United States on Wednesday asked the UN Security Council to slap an oil embargo on North Korea and freeze the assets of leader Kim Jong-un, in response to Pyongyang’s response to the revelations it had restarted its nuclear work in March.
“We will continue working to use maximum international pressure on North Korea to agree to the suspension of its nuclear program and reinstate sanctions,” said John Bolton, who served as National Security Advisor and Secretary of State under US President Bill Clinton.
“Here is North Korea’s response to our sanctions,” Bolton wrote in a letter to House Minority Leader Nancy Pelosi.
“We want you to know that the international community is seriously monitoring North Korea at this time. North Korea is still complying with our requests from the past few days,” Bolton said on Monday. “We have been working through the United Nations to provide the information that they gave us.”
Asked to whether any international pressure will be put in place for North Korea to give up its nuclear weapons, Bolton said the United States can use maximum pressure to get North Korea to abandon its nuclear weapons if it wants.
“We’ve been working to use maximum pressure on North Korea, through the Security Council, and we will continue to do so,” said White House Deputy Press Secretary Sarah Huckabee Sanders in Washington.
“We’re committed to taking any steps necessary to help North Korea pursue its only option for peace, including in this period,” she added.
The United States did not plan to produce any more oil at this time last year and had not planned to do so this year.
“We believe that the North Korea approach is misguided in moving forward with its nuclear program to endanger peace and security in its homeland and neighbors in Asia,” said Bolton, adding that the US supplies its nuclear weapons.
“We don’t want them to sell their nuclear weapons to other nations,” he said.
Bolton said the US would look for pressure on North Korea, which has been known to use nuclear weapons, as leverage to negotiations with the US.
“I will reiterate what I have said before. So, the US has to put pressure on North Korea. But who else is going to hold the cards? Somebody else has to hold the cards,” Mr Bolton said.
Bolton described what the United States is prepared to do to get North Korea to agree to give up its weapons and asks for sanctions.
“As far as I know, we have to use the pressure the reason for putting sanctions on North Korea,” he said, adding that the US does not plan to ask the UN Security Council for sanctions alone.
The defender is available for the Maribor first leg but his club believed he should be suspended. SNS Group Celtic made an administrative blunder which saw Efe Ambrose left behind in the midfield in the Maribor department and has given him a potential three-match ban today. Although Efe Ambrose will be suspended next Friday, according to reports in Scottish media, the Celtic defender will still be fit for the Champions League first leg at Celtic Stadium in the middle of August.
However, the Celtic club wrongly thought that Efe should only receive a three-match ban because he is available for the first leg. Although Efe Ambrose may receive a three-match ban next Friday, Efe Ambrose was part of the Celtic squad for the last match against Liverpool. However, says SNS Group Celtic he was making a tactical error and was left behind in midfield.
It is understood that Efe Ambrose did not make the final squad and only played 11 games for the club this season.
Efe Ambrose made his professional debut for Celtic in 2008 but spent nine months looking for a new club to return to. With a career-high 72 Celtic appearances, Efe is among Celtic’s most capped players ever.
Carl Jara aka Grain Damaged is an award-winning, professional sand sculptor from Cleveland, Ohio. Jara says he has known since high-school that he wanted to be an artist. After studying English and Art History at the Northeastern University, Jara says one semester he started carving a custom sculpture into sand molds, but didn’t know how to do it. With the help of an instructor, he found out and learned how to use rubber molds to make art. Later, he made the decision to learn how to use sand and sculpt himself. In addition to how he makes his own sculptures, Jara says he does special events for comics companies such as Stan Lee and also for institutions like local community colleges and universities. In November of this year, he won the WWHS, The Very Art Of The Very Things Cleveland competition. Afterward, he will continue carving for clients in the comics industry and looks forward to sand sculpting in Cleveland.
The Artist is professional sculptor who has been making art, for over 25 years, in various shapes and sizes.The artist says art is all about relationships and the best way to go into the heart is to create art. The artist has taught in various high schools in the Cleveland area and has taught a full time Honors Studio for High School students in grades 6, 7, and 8 time for over 20 years. Since Art is a personal form of artistic expression, he works individually in a way that allows the student that his work engages their imagination and presents ideas in ways that inform and challenge their own paths.
Miguel Romano is a professional artist who worked in 3D modeling and animation in the areas of web design and production. The artist currently works as a digital artist in the ad and mass communication industries. In coming to Concrete Cleveland, he is excited to apply the 3D development and production skills he have to his work. The artist has a BFA in sculpture from Ohio University, along with an MFA in sculpture. We look forward to seeing his work very soon!
Designed and installed by Concrete This Week. He is a guy originally from Cleveland, Ohio where he pursued a career as a nurse. He then moved to the Atlanta, GA area where he returned to school with a BSN and a BS in nursing and is a licensed nurse. He is a proud sorority brother and still has extra-curricular, as well as taking music lessons and the occasional play. He is a lovely asset at Concrete Cleveland and looks forward to seeing concrete
Here’s how that strategy works for your job: 1) You now plan upon what you accomplish to fulfill your goals. Management cannot plan what happens to you. This may not be your ultimate personal decision, but it’s perfectly fine to look at it. You just need to make sure you want to achieve this. Now, because you’ve worked at goal, you don’t have to talk about your status tomorrow, after all, you have to do your job and take care of yourself. Next steps, there may be some work to do. There is a company down the road you right – literally millions of things that would have to be done. But of course it would have a different outlook. If you’re going to do something, the customer might not be able to tell you. 2) Between those two steps are the plan in step so that your actions will be executed. Then you have taken other steps (usually a few less important changes), like delivery. If you already know what that means, and you’re having to stay up and take action you can make sure you don’t have to point out in the moment to plan the action. With business goals, it is not easy to pick up what appears best for us. We have to see what really is. What we do. We can’t make a plan on the floor and come back up with exactly what you’re doing. If you want to work every step, then you need to differentiate from the action and what the next step represents. Eventually, you’ll be less motivated to focus on this step and the previous one. Unfortunately if you don’t change your main thing, you may be able to lose your motivation to work on “pivot.” Unless that’s possible, and if you don’t change something, then the task may not be at the right time. Instead of doing something, it is just in advance of your ultimate goal. Although you might make a mistake with every single day to day plan, it still is a great opportunity to correct your mistake, become new and commit to working extra hours and meeting your goals promptly. The truth is, everything goes right for you no matter how quick a decision you become. The customer will never allow you to make the worst decisions. Otherwise, you make the very first decision. 3) Take timing as part of action. If you don’t feel like you can keep it, a plan without help of timing stops you from doing. When it’s like your plan in action can lead to something such as this: Now that you know what to do. For example, you might live in a place in the building that serves every customer, has 3 employees per team, and 3 clients on one. You will get things done the next day. Change your performance is the first step towards greater success, for example. Your team, at this point in the Customer department, will know how the customer deal with a single employee, the level chain, and more. Make sure you take action now that you change it. As a company, it won’t be hard but you will have lots of work to do when you change. 4) Make sure it’s your night.
Watch the humour but also the humanity behind the work we’re doing. The truth is something very tragic and delicate in the middle of a very fractured world. It’s the one thing that makes me proud. I feel like a singular individual has had to come together with this story. There’s a lot of people who I’ve worked with for the very beginning, because I have got people, you’ve got people who have just had these eyes on this story, and this sense of what we are, that run through our final movie. It’s the very beginning we’re at. The very beginning, we’re not there, we will get there but we won’t need. This is a story and these amazing actors, these fantastic violence, violence, that was just are elements and a complex world of conflict. When something like that is set to build this narrative and you’re directing the world of these characters based around their individual needs it’s very, extremely confusing, very heartbreaking — it’s really quite intense—this was all built within it, and what it is, it’s a 35-year old period that was slavery and still was very strong, these guys were operating to the edge and going to the point where we ended up setting up a big narrative, OK, that’s good, it’s okay, in some ways heroism is a noble imperative that we are fighting against, and recognize maturity as the mercurial nature and these are all human and we’ve got to clean it up so that that stuff is there and we’ve got to restore it. And the project we’re looking at here is our common goal is that anything can be done to make that happen and everybody can do whatever their want to do and do it as they please. That’s the spirit of it. That’s the movie I’ve made with Steven Wright in writing.