L ONG - TERM F ORECASTING USING T ENSOR -T RAIN RNN S
Anonymous authors
Paper under double-blind review
A BSTRACT
We present Tensor
Train RNN ( TT
RNN
), a novel family of neural sequence ar
- chitectures for multivariate forecasting in environments with nonlinear dynam- ics
Long-term forecasting in such systems is highly challenging, since there exist long term temporal dependencies, higher order correlations and sensitivity to error propagation.
Our proposed tensor recurrent architecture addresses these issues by learning the nonlinear dynamics directly using higher order moments and high-order state transition functions.
Furthermore
, we decompose the higher order structure using the tensor train
TT decomposition to reduce the number of parameters while preserving the model performance.
We theoretically establish the approximation properties of Tensor-Train RNNs for general sequence inputs and such guarantees are not available for usual RNNs.
We also demonstrate signiﬁcant long-term prediction improvements over general RNN and LSTM architectures on a range of simulated environments with nonlinear dynamics, as well on real-world climate and trafﬁc data.
I NTRODUCTION
One of the central questions in science is forecasting: given the past history, how well can we predict the future?
In many domains with complex multivariate correlation structures and nonlinear dynamics, forecasting is highly challenging since the system has long-term temporal dependencies and higher-order dynamics.
Examples of such systems abound in science and engineering, from biological neural network activity, ﬂuid turbulence, to climate and trafﬁc systems (see Figure 1).
Since current forecasting systems are unable to faithfully represent the higher-order dynamics, they have limited ability for accurate long-term forecasting.
Therefore, a key challenge is accurately modeling nonlinear dynamics and obtaining stable long-term predictions, given a dataset of realizations of the dynamics.
Here, the forecasting problem can be stated as follows: how can we efﬁciently learn a model that, given only few initial states, can reliably predict a sequence of future states over a long horizon of T time-steps?
Common approaches to forecasting involve linear time series models such as auto-regressive moving average (ARMA), state space models such as hidden Markov model (HMM), and deep neural networks.
We refer readers to a survey on time series forecasting by (Box et al., 2015) and the references therein.
A recurrent neural network (RNN), as well as its memory-based extensions such as the LSTM, is a class of models that have achieved good performance on sequence prediction tasks from demand forecasting (Flunkert et al., 2017) to speech recognition (Soltau et al., 2016) and video analysis (LeCun et al., 2015).
Although these methods can be effective for short-term, smooth dynamics, neither analytic nor data-driven learning methods tend to generalize well to capturing long-term nonlinear dynamics and predicting them over longer time horizons.
To address this issue, we propose a novel family of tensor-train recurrent neural networks that can learn stable long-term forecasting.
These models have two key features: they 1) explicitly model the higher-order dynamics , by using a longer history of previous hidden states and high-order state interactions with multiplicative memory units; and 2) they are scalable by using tensor trains , a structured low-rank tensor decomposition that greatly reduces the number of model parameters, while mostly preserving the correlation structure of the full-rank model.
In this work, we analyze Tensor-Train RNNs theoretically, and also experimentally validate them over a wide range of forecasting domains.
Our contributions can be summarized as follows:
• We describe how TT-RNN s encode higher-order non-Markovian dynamics and high-order state interactions.
To address the memory issue, we propose a tensor-train (TT) decomposition that makes learning tractable and fast.
• We provide theoretical guarantees for the representation power of TT-RNN s for nonlinear dynamics, and obtain the connection between the target dynamics and TT-RNN approximation.
In contrast, no such theoretical results are known for standard recurrent networks.
• We validate TT-RNN s on simulated data and two real-world environments with nonlinear dynamics (climate and trafﬁc).
Here, we show that TT-RNN s can forecast more accurately for signiﬁcantly longer time horizons compared to standard RNNs and LSTMs
. F ORECASTING USING T ENSOR -T RAIN RNN S
Forecasting Nonlinear Dynamics
Our goal is to learn an efﬁcient model f for sequential multivariate forecasting in environments with nonlinear dynamics.
Such systems are governed by dynamics that describe how a system state x t ∈ R d evolves using a set of nonlinear differential equations:
[Equation]
where ξ i can be an arbitrary (smooth) function of the state x t and its derivatives.
Continous time dynamics are usually described by differential equations while difference equations are employed for discrete time.
In continuous time, a classic example is the ﬁrst-order Lorenz attractor, whose realizations showcase the “butterﬂy-effect”, a characteristic set of double-spiral orbits.
In discretetime, a non-trivial example is the 1-dimensional Genz dynamics, whose difference equation is:
[Equation]
where x t denotes the system state at time t and c, w are the parameters.
Due to the nonlinear nature of the dynamics, such systems exhibit higher-order correlations, long-term dependencies and sensitivity to error propagation, and thus form a challenging setting for learning.
Given a sequence of initial states x 0 . . .
x t , the forecasting problem aims to learn a model f
[Equation]
that outputs a sequence of future states x t +1 . .
x T .
Hence, accurately approximating the dynamics ξ is critical to learning a good forecasting model f and accurately predicting for long time horizons.
First-order Markov Models In deep learning, common approaches for modeling dynamics usually employ ﬁrst-order hidden-state models, such as recurrent neural networks (RNNs).
An RNN with a single RNN cell recursively computes the output y t from a hidden state h t using:
[Equation]
where f is the state transition function, g is the output function and θ are model parameters.
An RNN only considers the most recent hidden state in its state transition function.
A common parametrization scheme for (4) is a nonlinear activation function applied to a linear map of x t and h t − 1 as:
[Equation]
where f is the activation function (e.g. sigmoid, tanh ) for the state transition, W hx , W xh and W hh are transition weight matrices and b h , b x are biases.
RNNs have many different variations, including
LSTMs (Hochreiter & Schmidhuber, 1997) and GRUs (Chung et al., 2014).
For instance, LSTM cells use a memory-state, which mitigate the “exploding gradient” problem and allow RNNs to propagate information over longer time horizons.
Although RNNs are very expressive, they compute h t only using the previous state h t − 1 and input x t .
Such models do not explicitly model higher-order dynamics and only implicitly model long-term dependencies between all historical states h 0 . . .
h t , which limits their forecasting effectiveness in environments with nonlinear dynamics.
2. T ENSORIZED R ECURRENT N EURAL N ETWORKS
To effectively learn nonlinear dynamics, we propose Tensor-Train RNNs, or TT-RNN s, a class of higher-order models that can be viewed as a higher-order generalization of RNNs.
We developed
TT-RNN s with two goals in mind: explicitly modeling 1) L -order Markov processes with L steps of temporal memory and 2) polynomial interactions between the hidden states h · and x t .
First, we consider longer “history”: we keep length L historic states: h t , · · · , h t − L :
[Equation]
[Equation]
) where f is an activation function.
In principle, early work (Giles et al., 1989) has shown that with a large enough hidden state size, such recurrent structures are capable of approximating any dynamics.
Second, to learn the nonlinear dynamics ξ efﬁciently, we also use higher-order moments to approximate the state transition function.
We construct a higher-order transition tensor by modeling a degree P polynomial interaction between hidden states.
Hence, the TT-RNN with standard RNN cell is deﬁned by:
[Equation]
where α index the hidden dimension, i · index historic hidden states and P is the polynomial degree.
Here, we deﬁned the L -lag hidden state as:
[Equation]
We included the bias unit 1 to model all possible polynomial expansions up to order P in a compact form.
The TT-RNN with LSTM cell, or “TLSTM”, is deﬁned analogously as:
[Equation]
where ◦ denotes the Hadamard product.
Note that the bias units are again included.
TT-RNN serves as a module for sequence-to-sequence (Seq2Seq) framework (Sutskever et al., 2014), which consists of an encoder-decoder pair (see Figure 2).
We use tensor-train recurrent cells both the encoder and decoder.
The encoder receives the initial states and the decoder predicts x t +1 , . . .
, x T .
For each timestep t , the decoder uses its previous prediction y t as an input.
2. T ENSOR - TRAIN N ETWORKS
Unfortunately, due to the “curse of dimensionality”, the number of parameters in W α with hidden size H grows exponentially as O ( HL P ) , which makes the high-order model prohibitively large to train.
To overcome this difﬁculty, we utilize tensor networks to approximate the weight tensor.
Such networks encode a structural decomposition of tensors into low-dimensional components and have been shown to provide the most general approximation to smooth tensors (Or´us, 2014).
The most commonly used tensor networks are linear tensor networks (LTN), also known as tensor-trains in numerical analysis or matrix-product states in quantum physics (Oseledets, 2011).
A tensor train model decomposes a P -dimensional tensor W into a network of sparsely connected low-dimensional tensors {A d ∈ R r
[Equation]
× r d } as:
[Equation]
as depicted in Figure (3).
When r 0 = r P = 1 the { r d } are called the tensor-train rank.
With tensortrain, we can reduce the number of parameters of TT-RNN from ( HL +1) P to ( HL +1)
R 2 P , with
R = max d r d as the upper bound on the tensor-train rank.
Thus, a major beneﬁt of tensor-train is that they do not suffer from the curse of dimensionality, which is in sharp contrast to many classical tensor decompositions, such as the Tucker decomposition.
A PPROXIMATION RESULTS FOR TT-RNN
A signiﬁcant beneﬁt of using tensor-trains is that we can theoretically characterize the representation power of tensor-train neural networks for approximating high-dimensional functions.
We do so by analyzing a class of functions that satisﬁes some regularity condition.
For such functions, tensor-train decompositions preserve weak differentiability and yield a compact representation.
We combine this property with neural network estimation theory to bound the approximation error for
TT-RNN with one hidden layer in terms of: 1) the regularity of the target function f , 2) the dimension of the input space, 3) the tensor train rank and 4) the order of the tensor.
In the context of TT-RNN , the target function f ( x ) , with x = s ⊗ . . .
⊗ s , describes the state transitions of the system dynamics, as in (6).
Let us assume that f ( x ) is a Sobolev function: f ∈ H kµ , deﬁned on the input space I
=
I
×
I 2 × · · · I d , where each I i is a set of vectors.
The space H kµ is deﬁned as the functions that have bounded derivatives up to some order k
and are L µ -integrable:
[Equation]
where D ( i ) f is the i -th weak derivative of f and µ ≥ 0 .
Any Sobolev function admits a Schmidt decomposition: f ( · ) =
[Equation]
i =
(cid:112) λ ( i
[Equation]
γ ( · ; i ) ⊗ φ ( i ; · ) , where { λ } are the eigenvalues and { γ } , { φ } are the associated eigenfunctions.
Hence, we can decompose the target function f ∈ H kµ
as:
[Equation]
where {A d ( α d − 1 , · , α d ) } are basis functions {A d ( α d − 1 , x d , α d ) }
= (cid:112) λ
d − 1 ( α d − 1 ) φ ( α d − 1 ; x d ) } , satisfying (cid:104)A d ( i, · , m ) , A d ( i, · , m ) (cid:105) =
δ mn .
We can truncate (13) to a low dimensional subspace ( r < ∞ ), and obtain the functional tensor-train (FTT) approximation of the target function f :
[Equation]
In practice, TT-RNN implements a polynomial expansion of the state s as in (6), using powers [ s , s ⊗ 2 , · · · , s ⊗ p ] to approximate f TT , where p is the degree of the polynomial.
We can then bound the approximation error using TT-RNN , viewed as a one-layer hidden neural network:
[Figure]
Theorem 3.1.
Let the state transition function f ∈ H kµ be a H¨older continuous function deﬁned on a input domain
I = I 1 ×· · ·× I d , with bounded derivatives up to order k and ﬁnite Fourier magnitude distribution C f .
Then a single layer Tensor Train RNN can approximate f with an estimation error of (cid:15) using with h hidden units:
[Equation]
where C f = (cid:82)
| ω | 1 | ˆ f ( ω ) dω | , d is the size of the state space, r is the tensor-train rank and p is the degree of high-order polynomials i.e., the order of tensor.
For the full proof, see the Appendix.
From this theorem we see: 1) if the target f becomes smoother, it is easier to approximate and 2) polynomial interactions are more efﬁcient than linear ones in the large rank region: if the polynomial order increases, we require fewer hidden units n .
This result applies to the full family of TT-RNN s, including those using vanilla RNN or LSTM as the recurrent cell, as long as we are given a state transitions ( x t , s t ) (cid:55)→ s t
+1 (e.g. the state transition function learned by the encoder).
E XPERIMENTS 4. D ATASETS
We validated the accuracy and efﬁciency of TT-RNN on one synthetic and two real-world datasets, as described below; Detailed preprocessing and data statistics are deferred to the Appendix.
Genz dynamics The Genz “product peak” (see Figure 4 a) is one of the Genz functions (Genz, 1984), which are often used as a basis for high-dimensional function approximation.
In particular, (Bigoni et al., 2016) used them to analyze tensor-train decompositions.
We generated 10 ,samples of length 100 using (2) with w = 0 .
5 , c = 1 .
and random initial points.
Trafﬁc The trafﬁc data (see Figure 4 b) of Los Angeles County highway network is collected from
California department of transportation http://pems.dot.ca.gov/ .
The prediction task is to predict the speed readings for 15 locations across LA, aggregated every 5 minutes.
After upsampling and processing the data for missing values, we obtained 8 , 784 sequences of length 288 .
Climate The climate data (see Figure 4 c) is collected from the U.S. Historical Climatology Network (USHCN) ( http://cdiac.ornl.gov/ftp/ushcn_daily/ ).
The prediction task is to predict the daily maximum temperature for 15 stations.
The data spans approximately 124 years.
After preprocessing, we obtained 6 , 954 sequences of length 366 .
4. L ONG - TERM F ORECASTING E VALUATION
Experimental Setup To validate that TT-RNN s effectively perform long-term forecasting task in (3), we experiment with a seq2seq architecture with TT-RNN using LSTM as recurrent cells
[Figure]
(TLSTM).
For all experiments, we used an initial sequence of length t 0 as input and varied the forecasting horizon T .
We trained all models using stochastic gradient descent on the length- T sequence regression loss L ( y, ˆ y ) =
(cid:80) Tt =
1 || ˆ y t − y t || 22 , where y t = x t +1 , ˆ y t are the ground truth and model prediction respectively.
For more details on training and hyperparameters, see the Appendix.
We compared TT-RNN against 2 set of natural baselines: 1st-order RNN (vanilla RNN, LSTM), and matrix RNNs (vanilla MRNN, MLSTM), which use matrix products of multiple hidden states without factorization (Soltani & Jiang, 2016)).
We observed that TT-RNN with RNN cells outperforms vanilla RNN and MRNN, but using LSTM cells performs best in all experiments.
We also evaluated the classic ARIMA time series model and observed that it performs ∼ 5% worse than LSTM.
Long-term Accuracy For trafﬁc , we forecast up to 18 hours ahead with 5 hours as initial inputs.
For climate , we forecast up to 300 days ahead given 60 days of initial observations.
For Genz dynamics , we forecast for 80 steps given 5 initial steps.
All results are averages over 3 runs.
We now present the long-term forecasting accuracy of TLSTM in nonlinear systems.
Figure 5 shows the test prediction error (in RMSE) for varying forecasting horizons for different datasets.
We can see that TLSTM notably outperforms all baselines on all datasets in this setting.
In particular,
TLSTM is more robust to long-term error propagation.
We observe two salient beneﬁts of using
TT-RNN s over the unfactorized models.
First, MRNN and MLSTM can suffer from overﬁtting as the number of weights increases.
Second, on trafﬁc , unfactorized models also show considerable instability in their long-term predictions.
These results suggest that tensor-train neural networks learn more stable representations that generalize better for long-term horizons.
Visualization of Predictions To get intuition for the learned models, we visualize the best performing TLSTM and baselines in Figure 6 for the Genz function “corner-peak” and the statetransition function.
We can see that TLSTM can almost perfectly recover the original function, while LSTM and MLSTM only correctly predict the mean.
These baselines cannot capture the dynamics fully, often predicting an incorrect range and phase for the dynamics.
[Table]
In Figure 7 we show predictions for the real world trafﬁc and climate dataset.
We can see that the
TLSTM corresponds signiﬁcantly better with ground truth in long-term forecasting.
As the ground truth time series is highly chaotic and noisy, LSTM often deviates from the general trend.
While both MLSTM and TLSTM can correctly learn the trend, TLSTM captures more detailed curvatures due to the inherent high-order structure.
Speed Performance Trade-off We now investigate potential trade-offs between accuracy and computation.
Figure 8 displays the validation loss with respect to the number of steps, for the best performing models on long-term forecasting.
We see that TT-RNN s converge signiﬁcantly faster than other models, and achieve lower validation-loss.
This suggests that TT-RNN has a more efﬁcient representation of the nonlinear dynamics, and can learn much faster as a result.
Hyper-parameter Analysis The TLSTM model is equipped with a set of hyper-parameters, such as tensor-train rank and the number of lags.
We perform a random grid search over these hyperparameters and showcase the results in Table 1.
In the top row, we report the prediction RMSE for the largest forecasting horizon w.r.t tensor ranks for all the datasets with lag 3 .
When the rank is too low, the model does not have enough capacity to capture non-linear dynamics.
when the rank is too high, the model starts to overﬁt.
In the bottom row, we report the effect of changing lags (degree of orders in Markovian dynamics).
For each setting, the best r is determined by cross-validation.
For different forecasting horizon, the best lag value also varies.
[Figure]
Chaotic Nonlinear Dynamics We have also evaluated TT-RNN on long-term forecasting for chaotic dynamics, such as the Lorenz dynamics (see Figure 9a).
Such dynamics are highly sensitive to input perturbations: two close points can move exponentially far apart under the dynamics.
This makes long-term forecasting highly challenging, as small errors can lead to catastrophic longterm errors.
Figure 9 shows that TT-RNN can predict up to T = 40 steps into the future, but diverges quickly beyond that.
We have found no state-of-the-art prediction model is stable in this setting.
R ELATED W ORK
Classic work in time series forecasting has studied auto-regressive models, such as the ARMA or
ARIMA model (Box et al., 2015), which model a process x ( t ) linearly, and so do not capture nonlinear dynamics.
Our method contrasts with this by explicitly modeling higher-order dependencies.
Using neural networks to model time series has a long history.
More recently, they have been applied to room temperature prediction, weather forecasting, trafﬁc prediction and other domains.
We refer to (Schmidhuber, 2015) for a detailed overview of the relevant literature.
From a modeling perspective, (Giles et al., 1989) considers a high-order RNN to simulate a deterministic ﬁnite state machine and recognize regular grammars.
This work considers a second order mapping from inputs x ( t ) and hidden states h ( t ) to the next state.
However, this model only considers the most recent state and is limited to two-way interactions.
(Sutskever et al., 2011) proposes multiplicative RNN that allow each hidden state to specify a different factorized hidden-to-hidden weight matrix.
A similar approach also appears in (Soltani & Jiang, 2016), but without the factorization.
Our method can be seen as an efﬁcient generalization of these works.
Moreover, hierarchical
RNNs have been used to model sequential data at multiple resolutions, e.g. to learn both short-term and long-term human behavior (Zheng et al., 2016).
Tensor methods have tight connections with neural networks.
For example, (Cohen et al., 2016) shows convolutional neural networks have equivalence to hierarchical tensor factorizations.
(Novikov et al., 2015; Yang et al., 2017) employs tensor-train to compress large neural networks and reduce the number of weights.
(Yang et al., 2017) forms tensors from reshaping inputs and decomposes the input-output weights.
Our model forms tensors from high-order hidden states and decomposes the hidden-output weights.
(Stoudenmire & Schwab, 2016) propose to parameterizes the supervised learning models with matrix-product states for image classiﬁcation.
This work however, to the best of our knowledge, is the ﬁrst work to consider tensor networks in RNNS for sequential prediction tasks for learning in environments with nonlinear dynamics.
C ONCLUSION AND D ISCUSSION
In this work, we considered forecasting under nonlinear dynamics.
We propose a novel class of RNNs – TT-RNN .
We provide approximation guarantees for TT-RNN and characterize its representation power.
We demonstrate the beneﬁts of TT-RNN to forecast accurately for signiﬁcantly longer time horizon in both synthetic and real-world multivariate time series data.
As we observed, chaotic dynamics still present a signiﬁcant challenge to any sequential prediction model.
Hence, it would be interesting to study how to learn robust models for chaotic dynamics.
In other sequential prediction settings, such as natural language processing, there does not (or is not known to) exist a succinct analytical description of the data-generating process.
It would be interesting to further investigate the effectiveness of TT-RNN s in such domains as well.
A PPENDIX 7. T HEORETICAL A NALYSIS
We provide theoretical guarantees for the proposed TT-RNN model by analyzing a class of functions that satisfy some regularity condition.
For such functions, tensor-train decompositions preserve weak differentiability and yield a compact representation.
We combine this property with neural network estimation theory to bound the approximation error for TT-RNN with one hidden layer, in terms of: 1) the regularity of the target function f , 2) the dimension of the input space, and 3) the tensor train rank.
In the context of TT-RNN , the target function f ( x ) with x = s ⊗ . . .
⊗ s , is the system dynamics that describes state transitions, as in (6).
Let us assume that f ( x ) is a Sobolev function: f ∈ H kµ , deﬁned on the input space I
=
I
×
I 2 × · · · I d , where each I i is a set of vectors.
The space H kµ is deﬁned as the set of functions that have bounded derivatives up to some order k
and are L µ -integrable:
[Equation]
where D ( i ) f is the i -th weak derivative of f and µ ≥ 0 .
Any Sobolev function admits a Schmidt decomposition: f ( · ) = (cid:80) ∞
i =
(cid:112) λ ( i ) γ ( · ; i ) ⊗ φ ( i ; · ) , where { λ } are the eigenvalues and { γ } , { φ } are the associated eigenfunctions.
Hence, we can decompose the target function f ∈ H kµ
as:
[Equation]
where {A d ( α d − 1 , · , α d ) } are basis functions {A d ( α d − 1 , x d , α d ) }
= (cid:112) λ
d − 1 ( α d − 1 ) φ ( α d − 1 ; x d ) } , satisfying (cid:104)A d ( i, · , m ) , A d ( i, · , m ) (cid:105) =
δ mn .
We can truncate Eqn 13 to a low dimensional subspace ( r < ∞ ), and obtain the functional tensor-train (FTT) approximation of the target function f :
[Equation]
FTT approximation in Eqn 13 projects the target function to a subspace with ﬁnite basis.
And the approximation error can be bounded using the following Lemma:
Lemma 7.1 (FTT Approximation Bigoni et al.
Let f ∈ H
kµ be a H¨older continuous function, deﬁned on a bounded domain
I = I 1 × · · · × I d ⊂ R d with exponent α > 1 / 2 , the FTT approximation error can be upper bounded as
[Equation]
for r ≥ 1 and
[Equation]
) for k >
Lemma 7.1 relates the approximation error to the dimension d , tensor-train rank r ,and the regularity of the target function k .
In practice, TT-RNN implements a polynomial expansion of the input states s , using powers [ s , s ⊗ 2 , · · · , s ⊗ p ] to approximate f TT , where p is the degree of the polynomial.
We can further use the classic spectral approximation theory to connect the TT-RNN structure with the degree of the polynomial, i.e., the order of the tensor.
Let I 1 × · · · × I d
= I ⊂ R d .
Given a function f and its polynomial expansion P TT , the approximation error is therefore bounded by:
Lemma 7.2 (Polynomial Approximation) .
Let f ∈ H kµ for k > 0 .
Let P be the approximating polynomial with degree p , Then
[Equation]
Here | f | 2 k,µ =
(cid:80) | i | =
k (cid:107) D ( i )
f (cid:107) 2 is the semi-norm of the space H kµ .
C ( k ) is the coefﬁcient of the spectral expansion.
By deﬁnition, H kµ is equipped with a norm (cid:107) f (cid:107) 2 k,µ =
(cid:80) | i |≤ k (cid:107) D
( i ) f (cid:107) 2 and a semi-norm
| f | 2 k,µ =
(cid:80) | i | =
k (cid:107) D ( i )
f
(cid:107) 2 .
For notation simplicity, we muted the subscript µ and used (cid:107) · (cid:107) for (cid:107) · (cid:107) L µ .
So far, we have obtained the tensor-train approximation error with the regularity of the target function f .
Next we will connect the tensor-train approximation and the estimation error of neural networks with one layer hidden units.
Given a neural network with one hidden layer and sigmoid activation function, following Lemma describes the classic result of describes the error between a target function f and the single hidden-layer neural network that approximates it best:
Lemma 7.3 (NN Approximation Barron (1993)) .
Given a function f with ﬁnite Fourier magnitude distribution C f , there exists a neural network of n hidden units f n , such that
[Equation]
where C f = (cid:82)
| ω | 1 | ˆ f ( ω ) | dω with Fourier representation f ( x ) = (cid:82)
e iωx ˆ f ( ω ) dω .
We can now generalize Barron’s approximation lemma 7.3 to TT-RNN .
The target function we are approximating is the state transition function f () =
f
( s ⊗· · ·⊗ s ) .
We can express the function using
FTT, followed by the polynomial expansion of the states concatenation P TT .
The approximation error of TT-RNN , viewed as one layer hidden
[Equation]
Where p is the order of tensor and r is the tensor-train rank.
As the rank of the tensor-train and the polynomial order increase, the required size of the hidden units become smaller, up to a constant that depends on the regularity of the underlying dynamics f .
7. T RAINING AND H YPERPARAMETER S EARCH
We trained all models using the RMS-prop optimizer and employed a learning rate decay of 0 .schedule.
We performed an exhaustive search over the hyper-parameters for validation.
Tablereports the hyper-parameter search range used in this work.
Hyper-parameter search range
[Table]
For all datasets, we used a 80% − 10% − 10% train-validation-test split and train for a maximum of 1 e 4 steps.
We compute the moving average of the validation loss and use it as an early stopping criteria.
We also did not employ scheduled sampling, as we found training became highly unstable under a range of annealing schedules.
7. D ATASET D ETAILS
Genz Genz functions are often used as basis for evaluating high-dimensional function approximation.
In particular, they have been used to analyze tensor-train decompositions (Bigoni et al., 2016).
There are in total 7 different Genz functions.
(1) g 1 ( x ) = cos(2 πw + cx ) , (2) g 2 ( x ) =
( c
[Equation]
+ ( x
[Equation]
−
[Equation]
−
[Equation] [Equation]
g
[Equation]
= (
[Equation] [Equation]
(6) g 6 ( x ) = (cid:26) 0 x > w e cx else .
For each function, we generated a dataset with 10 , 000 samples using (2) with w = 0 .
5 and c = 1 . 0 and random initial points draw from a range of [ − 0 . 1 , 0 . 1] .
Trafﬁc We use the trafﬁc data of Los Angeles County highway network collected from California department of transportation http://pems.dot.ca.gov/ .
The dataset consists of 4 month speed readings aggregated every 5 minutes .
Due to large number of missing values ( ∼ 30% ) in the raw data, we impute the missing values using the average values of non-missing entries from other sensors at the same time.
In total, after processing, the dataset covers 35 136 , time-series.
We treat each sequence as daily trafﬁc of 288 time stamps.
We up-sample the dataset every 20 minutes, which results in a dataset of 8 784 sequences of daily measurements.
We select 15 sensors as a joint forecasting tasks.
Climate We use the daily maximum temperature data from the U.S. Historical Climatology
Network (USHCN) daily ( http://cdiac.ornl.gov/ftp/ushcn_daily/ ) contains daily measurements for 5 climate variables for approximately 124 years.
The records were collected across more than 1 200 locations and span over 45 384 days.
We analyze the area in California which contains 54 stations.
We removed the ﬁrst 10 years of day, most of which has no observations.
We treat the temperature reading per year as one sequence and impute the missing observations using other non-missing entries from other stations across years.
We augment the datasets by rotating the sequence every 7 days, which results in a data set of 5 928 sequences.
We also perform a DickeyFuller test in order to test the null hypothesis of whether a unit root is present in an autoregressive model.
The test statistics of the trafﬁc and climate data is shown in
Table 3, which demonstrate the non-stationarity of the time series.
[Table]
7. P REDICTION V ISUALIZATIONS
Genz functions are basis functions for multi-dimensional Figure 10 visualizes different Genz functions, realizations of dynamics and predictions from TLSTM and baselines.
We can see for “oscillatory”, “product peak” and “Gaussian ”, TLSTM can better capture the complex dynamics, leading to more accurate predictions.
[Figure]
7. M ORE C HAOTIC D YNAMICS R ESULTS
Chaotic dynamics such as Lorenz attractor is notoriously different to lean in non-linear dynamics.
In such systems, the dynamics are highly sensitive to perturbations in the input state: two close points can move exponentially far apart under the dynamics.
We also evaluated tensor-train neural networks on long-term forecasting for Lorenz attractor and report the results as follows:
Lorenz The Lorenz attractor system describes a two-dimensional ﬂow of ﬂuids (see Figure 9):
[Equation]
This system has chaotic solutions (for certain parameter values) that revolve around the so-called
Lorenz attractor.
We simulated 10 000 trajectories with the discretized time interval length 0 .
We sample from each trajectory every 10 units in Euclidean distance.
The dynamics is generated using σ = 10 ρ = 28 , β = 2 . 667 .
The initial condition of each trajectory is sampled uniformly random from the interval of [ − 0 . 1 , 0 . 1] .
Figure 11 shows 45 steps ahead predictions for all models.
HORNN is the full tensor TT-RNN using vanilla RNN unit without the tensor-train decomposition.
We can see all the tensor models perform better than vanilla RNN or MRNN.
TT-RNN shows slight improvement at the beginning state.
[Figure]