暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
Autoregressive Denoising Diffusion Models for Multivariate Probabilistic Time.pdf
719
11页
0次
2023-10-12
25墨值下载
Autoregressive Denoising Diffusion Models for Multivariate Probabilistic Time
Series Forecasting
Kashif Rasul
1
Calvin Seward
1
Ingmar Schuster
1
Roland Vollgraf
1
Abstract
In this work, we propose
TimeGrad
, an autore-
gressive model for multivariate probabilistic time
series forecasting which samples from the data
distribution at each time step by estimating its gra-
dient. To this end, we use diffusion probabilistic
models, a class of latent variable models closely
connected to score matching and energy-based
methods. Our model learns gradients by optimiz-
ing a variational bound on the data likelihood and
at inference time converts white noise into a sam-
ple of the distribution of interest through a Markov
chain using Langevin sampling. We demonstrate
experimentally that the proposed autoregressive
denoising diffusion model is the new state-of-the-
art multivariate probabilistic forecasting method
on real-world data sets with thousands of corre-
lated dimensions. We hope that this method is a
useful tool for practitioners and lays the founda-
tion for future research in this area.
1. Introduction
Classical time series forecasting methods such as those
in (Hyndman & Athanasopoulos, 2018) typically provide
univariate point forecasts, require hand-tuned features to
model seasonality, and are trained individually on each time
series. Deep learning based time series models (Benidis
et al., 2020) are popular alternatives due to their end-to-end
training of a global model, ease of incorporating exogenous
covariates, and automatic feature extraction abilities. The
task of modeling uncertainties is of vital importance for
downstream problems that use these forecasts for (business)
decision making. More often the individual time series
for a problem data set are statistically dependent on each
other. Ideally, deep learning models need to incorporate
this inductive bias in the form of multivariate (Tsay, 2014)
probabilistic methods to provide accurate forecasts.
1
Zalando Research, M
¨
uhlenstraße 25, 10243 Berlin, Germany.
Correspondence to: Kashif Rasul <kashif.rasul@zalando.de>.
To model the full predictive distribution, methods typically
resort to tractable distribution classes or some type of low-
rank approximations, regardless of the true data distribution.
To model the distribution in a general fashion, one needs
probabilistic methods with tractable likelihoods. Till now
several deep learning methods have been proposed for this
purpose such as autoregressive (van den Oord et al., 2016c)
or generative ones based on normalizing flows (Papamakar-
ios et al., 2019) which can learn flexible models of high
dimensional multivariate time series. Even if the full likeli-
hood is not be tractable, one can often optimize a tractable
lower bound to the likelihood. But still, these methods re-
quire a certain structure in the functional approximators, for
example on the determinant of the Jacobian (Dinh et al.,
2017) for normalizing flows. Energy-based models (EBM)
(Hinton, 2002; LeCun et al., 2006) on the other hand have
a much less restrictive functional form. They approximate
the unnormalized log-probability so that density estimation
reduces to a non-linear regression problem. EBMs have
been shown to perform well in learning high dimensional
data distributions at the cost of being difficult to train (Song
& Kingma, 2021).
In this work, we propose autoregressive EBMs to solve the
multivariate probabilistic time series forecasting problem
via a model we call
TimeGrad
and show that not only are
we able to train such a model with all the inductive biases
of probabilistic time series forecasting, but this model per-
forms exceptionally well when compared to other modern
methods. This autoregressive-EBM combination retains the
power of autoregressive models, such as good performance
in extrapolation into the future, with the flexibility of EBMs
as a general purpose high-dimensional distribution model,
while remaining computationally tractable.
The paper is organized as follows. In Section 2 we first set
up the notation and detail the EBM of (Ho et al., 2020)
which forms the basis of our per time-step distribution
model. Section 3 introduces the multivariate probabilis-
tic time series problem and we detail the
TimeGrad
model.
The experiments with extensive results are detailed in Sec-
tion 4. We cover related work in Section 5 and conclude
with some discussion in Section 6.
arXiv:2101.12072v2 [cs.LG] 2 Feb 2021
Autoregressive Denoising Diffusion Models for Multivariate Probabilistic Time Series Forecasting
2. Diffusion Probabilistic Model
Let
x
0
q
X
(x
0
)
denote the multivariate training vector
from some input space
X = R
D
and let
p
θ
(x
0
)
denote the
probability density function (PDF) which aims to approxi-
mate
q
X
(x
0
)
and allows for easy sampling. Diffusion mod-
els (Sohl-Dickstein et al., 2015) are latent variable models of
the form
p
θ
(x
0
) :=
R
p
θ
(x
0:N
) dx
1:N
, where
x
1
, . . . , x
N
are latents of dimension
R
D
. Unlike in variational autoen-
coders (Kingma & Welling, 2019) the approximate posterior
q(x
1:N
|x
0
),
q(x
1:N
|x
0
) = Π
N
n=1
q(x
n
|x
n1
)
is not trainable but fixed to a Markov chain (called the
forward process) that gradually adds Gaussian noise to the
signal:
q(x
n
|x
n1
) := N(x
n
;
p
1 β
n
x
n1
, β
n
I).
The forward process uses an increasing variance sched-
ule
β
1
, . . . , β
N
with
β
n
(0, 1)
. The joint distribution
p
θ
(x
0:N
)
is called the reverse process, and is defined as
a Markov chain with learned Gaussian transitions starting
with
p(x
N
) = N(x
N
; 0, I)
, where each subsequent transi-
tion of
p
θ
(x
0:N
) := p(x
N
1
n=N
p
θ
(x
n1
|x
n
)
is given by a parametrization of our choosing denoted by
p
θ
(x
n1
|x
n
) := N(x
n1
; µ
θ
(x
n
, n), Σ
θ
(x
n
, n)I), (1)
with shared parameters
θ
. Both
µ
θ
: R
D
× N R
D
and
Σ
θ
: R
D
× N R
+
take two inputs, namely the variable
x
n
R
D
as well as the noise index
n N
. The goal of
p
θ
(x
n1
|x
n
)
is to eliminate the Gaussian noise added in
the diffusion process. The parameters
θ
are learned to fit
the data distribution
q
X
(x
0
)
by minimizing the negative log-
likelihood via a variational bound using Jensen’s inequality:
min
θ
E
q(x
0
)
[log p
θ
(x
0
)]
min
θ
E
q(x
0:N
)
[log p
θ
(x
0:N
) + log q(x
1:N
|x
0
)].
This upper bound can be shown to be equal to
min
θ
E
q(x
0:N
)
"
log p(x
N
)
N
X
n=1
log
p
θ
(x
n1
|x
n
)
q(x
n
|x
n1
)
#
.
(2)
As shown by (Ho et al., 2020), a property of the forward
process is that it admits sampling
x
n
at any arbitrary noise
level
n
in closed form, since if
α
n
:= 1 β
n
and
¯α
n
:=
Π
n
i=1
α
i
its cumulative product, we have:
q(x
n
|x
0
) = N(x
n
;
¯α
n
x
0
, (1 ¯α
n
)I). (3)
By using the fact that these processes are Markov chains,
the objective in (2) can be written as the KL-divergence
between Gaussian distributions:
log p
θ
(x
0
|x
1
) + D
KL
(q(x
N
|x
0
)||p(x
N
))
+
N
X
n=2
D
KL
(q(x
n1
|x
n
, x
0
)||p
θ
(x
n1
|x
n
)), (4)
and (Ho et al., 2020) shows that by the property (3) the
forward process posterior in these KL divergences when
conditioned on
x
0
, i.e.
q(x
n1
|x
n
, x
0
)
are tractable given
by
q(x
n1
|x
n
, x
0
) = N(x
n1
; ˜µ
n
(x
n
, x
0
),
˜
β
n
I),
where
˜µ
n
(x
n
, x
0
) :=
¯α
n1
β
n
1 ¯α
n
x
0
+
α
n
(1 ¯α
n1
)
1 ¯α
n
x
n
and
˜
β
n
:=
1 ¯α
n1
1 ¯α
n
β
n
. (5)
Further, (Ho et al., 2020) shows that the KL-divergence
between Gaussians can be written as:
D
KL
(q(x
n1
|x
n
, x
0
)||p
θ
(x
n1
|x
n
)) =
E
q
1
θ
k˜µ
n
(x
n
, x
0
) µ
θ
(x
n
, n)k
2
+ C, (6)
where
C
is a constant which does not depend on
θ
. So
instead of a parametrization (1) of
p
θ
that predicts
˜µ
, one can
instead use the property (3) to write
x
n
(x
0
, ) =
¯α
n
x
0
+
1 ¯α
n
for
N(0, I)
and the formula for
˜µ
to obtain
that
µ
θ
must predict
(x
n
β
n
/
1 ¯α
n
)/
α
n
, but since
x
n
is available to the network, we can choose:
µ
θ
(x
n
, n) =
1
α
n
x
n
β
n
1 ¯α
n
θ
(x
n
, n)
,
where
θ
is a network which predicts
N(0, I)
from
x
n
,
so that the objective simplifies to:
E
x
0
,
β
2
n
θ
α
n
(1 ¯α
n
)
k
θ
(
¯α
n
x
0
+
1 ¯α
n
, n)k
2
(7)
resembling the loss in Noise Conditional Score Networks
(Song & Ermon, 2019; 2020) using score matching. Once
trained, to sample from the reverse process
x
n1
p
θ
(x
n1
|x
n
) (1) we can compute
x
n1
=
1
α
n
x
n
β
n
1 ¯α
n
θ
(x
n
, n)
+
p
Σ
θ
z
where
z N(0, I)
for
n = N, . . . , 2
and
z = 0
when
n = 1
. The full sampling procedure for
x
0
, starting
from white noise sample
x
N
, resembles Langevin dynamics
where we sample from the most noise-perturbed distribution
and reduce the magnitude of the noise scale until we reach
the smallest one.
of 11
25墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜