<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Factor Augmented Tensor-on-Tensor Neural Networks</title></titleStmt>
			<publicationStmt>
				<publisher>AAAI Press</publisher>
				<date>04/11/2025</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10630154</idno>
					<idno type="doi">10.1609/aaai.v39i21.34455</idno>
					<title level='j'>Proceedings of the AAAI Conference on Artificial Intelligence</title>
<idno>2159-5399</idno>
<biblScope unit="volume">39</biblScope>
<biblScope unit="issue">21</biblScope>					

					<author>Guanhao Zhou</author><author>Yuefeng Han</author><author>Xiufan Yu</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[<p>This paper studies the prediction task of tensor-on-tensor regression in which both covariates and responses are multi-dimensional arrays (a.k.a., tensors) across time with arbitrary tensor order and data dimension. Existing methods either focused on linear models without accounting for possibly nonlinear relationships between covariates and responses, or directly employed black-box deep learning algorithms that failed to utilize the inherent tensor structure. In this work, we propose a Factor Augmented Tensor-on-Tensor Neural Network (FATTNN) that integrates tensor factor models into deep neural networks. We begin with summarizing and extracting useful predictive information (represented by the ``factor tensor'') from the complex structured tensor covariates, and then proceed with the prediction task using the estimated factor tensor as input of a temporal convolutional neural network. The proposed methods effectively handle nonlinearity between complex data structures, and improve over traditional statistical models and conventional deep learning approaches in both prediction accuracy and computational cost. By leveraging tensor factor models, our proposed methods exploit the underlying latent factor structure to enhance the prediction, and in the meantime, drastically reduce the data dimensionality that speeds up the computation. The empirical performances of our proposed methods are demonstrated via simulation studies and real-world applications to three public datasets. Numerical results show that our proposed algorithms achieve substantial increases in prediction accuracy and significant reductions in computational time compared to benchmark methods.</p>]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Introduction</head><p>Motivated by a wide range of industrial and scientific applications, forecasting tasks using one tensor series to predict another have become increasingly prevalent in various fields. In finance, tensor models are used to forecast future stock prices by analyzing multi-dimensional stock attributes over time <ref type="bibr">(Tran et al. 2017)</ref>. In meteorology, tensor models predict future weather conditions using historical data formatted as multi-dimensional tensors (latitude, longitude, time, etc.) <ref type="bibr">(Bilgin et al. 2021)</ref>. In neuroscience, tensor models are employed to process medical imaging like MRI/fMRI scans <ref type="bibr">(Wei et al. 2023)</ref>. Though predictive modeling of tensors has emerged rapidly over the past decade, most existing studies primarily focus on scenarios when either covariates or responses are tensors, such as scalar-on-tensor regression <ref type="bibr">(Guo, Kotsia, and Patras 2011;</ref><ref type="bibr">Zhou, Li, and Zhu 2013;</ref><ref type="bibr">Wimalawarne, Tomioka, and Sugiyama 2016;</ref><ref type="bibr">Li et al. 2018;</ref><ref type="bibr">Ahmed, Raja, and Bajwa 2020)</ref>, matrix-on-tensor regression <ref type="bibr">(Hoff 2015;</ref><ref type="bibr">Kossaifi et al. 2020)</ref>, and tensor-on-vector regression <ref type="bibr">(Li and Zhang 2017;</ref><ref type="bibr">Sun and Li 2017)</ref>. Tensoron-tensor<ref type="foot">foot_0</ref> prediction, when both covariates and responses are tensors, remains a challenging task due to the inherent complexities of tensor structures.</p><p>One commonly used strategy for tensor-on-tensor modeling is to flatten the tensors into matrices (or even vectors) <ref type="bibr">(Kilmer and Martin 2011;</ref><ref type="bibr">Choi and Vishwanathan 2014</ref>) so that matrix-based analytical tools become applicable. However, flattening can lead to a loss of spatial or temporal information, especially for datasets that are inherently dependent on data structures. For instance, in image processing, the relative positions of pixels carry important information about object shapes, which is lost when the image is flattened.</p><p>Alternatively, there is a handful of recent works on tensoron-tensor regression models that do not adopt flattening but deal with the tensor structures directly <ref type="bibr">(Lock 2018;</ref><ref type="bibr">Liu, Liu, and Zhu 2020;</ref><ref type="bibr">Gahrooei et al. 2021;</ref><ref type="bibr">Luo and Zhang 2024)</ref>. However, these methods posit a linear prediction model between covariates and responses, limiting their capacity to capture potential nonlinear relationships.</p><p>Another emerging trend in tensor-on-tensor prediction involves neural networks, such as recurrent neural networks (RNN), convolutional neural networks (CNN), recurrent convolutional neural networks (RCNN), and temporal convolutional networks (TCN), to name a few. Deep neural network is a powerful tool in prediction tasks owing to its ability to learn intricate patterns from complex datasets. Structured with multiple layers of interconnected neurons, neural networks excel in capturing nonlinearity in data. Nevertheless, they often operate in a black-box manner and typically require extensive computational resources.</p><p>In this work, we develop a Factor Augmented Tensor-on-Tensor Neural Network (FATTNN) for forecasting a sequence of tensor responses using tensor covariates of arbitrary tensor order and data dimensions. One key innovation of our method is the integration of tensor factor models into deep neural networks for tensor-on-tensor regression. Factor models have been a widely utilized tool in matrix/vector data analysis <ref type="bibr">(Bai and Ng 2002;</ref><ref type="bibr">Stock and Watson 2002;</ref><ref type="bibr">Pan and Yao 2008;</ref><ref type="bibr">Lam and Yao 2012)</ref> for understanding common dependence among multi-dimensional covariates. In recent years, researchers have advanced the methodology of factor models to the context of tensor time series <ref type="bibr">(Chen et al. 2022;</ref><ref type="bibr">Chen, Yang, and Zhang 2022;</ref><ref type="bibr">Han et al. 2024a,b;</ref><ref type="bibr">Han, Chen, and Zhang 2022;</ref><ref type="bibr">Han and Zhang 2023;</ref><ref type="bibr">Chen, Han, and Yu 2024;</ref><ref type="bibr">Yu et al. 2024)</ref>. In our models, we borrow the strengths from tensor factor models, offering a more general approach than traditional vector factor analysis for prediction <ref type="bibr">(Sen, Yu, and Dhillon 2019;</ref><ref type="bibr">Fan, Xue, and Yao 2017;</ref><ref type="bibr">Yu, Yao, and Xue 2022)</ref>.</p><p>Our contributions can be summarized in three folds.</p><p>&#8226; We propose a FATTNN model for tensor-on-tensor prediction that integrates tensor factor models into deep neural networks. Via a tensor factor model, FATTNN exploits the latent factor structures among the complex structured tensor covariates, and extracts useful predictive information for subsequent modeling. The utilization of the factor model reduces the data dimension drastically while preserving the tensorial data structures, contributing to substantial increases in prediction accuracy and significant reductions in computational time. &#8226; In addition to the improved prediction accuracy and reduced computation cost, FATTNN offers several advantages over existing methods. First, it preserves the inherent tensor structure without any flattening or tensor contraction operations, preventing the possible loss of spatial or temporal information. Second, the utilization of neural networks equips FATTNN with exceptional capability in modeling nonlinearity in response-covariate relationships. &#8226; FATTNN provides a comprehensive framework for the general supervised learning question of predicting tensor responses using tensor covariates. Although initially introduced under the problem settings of tensor-on-tensor time series forecasting, the proposed framework is not limited to time series data, but can accommodate a variety of data types. With different types of factor models and choices of neural network architectures tailored to specific characteristics of the data, FATTNN can be naturally adapted to tensor-on-tensor regression for various data types.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Related Work</head><p>Neural networks are powerful tools for processing complex tensor data. Early works involve RNN and its variations (e.g., Long Short-Term Memory (LSTM) networks) to accommodate the temporal dependence, and CNN to capture the temporal and spatial relationships underlying the data structures. Recently, more advanced architectures have been proposed, integrating the strengths of traditional models to capture the increasingly complex data dependence in a more powerful and efficient manner. Notable examples include convolutional LSTM (ConvLSTM) <ref type="bibr">(Shi et al. 2015)</ref>, recurrent CNN (RCNN) <ref type="bibr">(Liang and Hu 2015)</ref>, and temporal convolutional networks (TCN) <ref type="bibr">(Bai, Kolter, and Koltun 2018)</ref>. Another popular thread is to incorporate a tensor decomposition procedure in the model training to reduce computational complexity and potentially enhance interpretability. Recent examples include tensorizing neural networks <ref type="bibr">(Novikov et al. 2015)</ref>, convolutional tensor-train LSTM (Conv-TT-LSTM) <ref type="bibr">(Su et al. 2020)</ref>, tensor regression networks <ref type="bibr">(Kossaifi et al. 2020</ref>) and its efficient variant using tensor dropout <ref type="bibr">(Kolbeinsson et al. 2021)</ref>. Methods may vary depending on how the tensor decomposition is conducted <ref type="bibr">(Fang et al. 2022;</ref><ref type="bibr">Wang and Zhe 2022;</ref><ref type="bibr">Tao, Tanaka, and Zhao 2024)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Preliminaries</head><p>Notation. Before proceeding, we first set up some notation.</p><p>..,i K denote the (i 1 , . . . , i K )th entry of the tensor X and X [I 1 , . . . , I K ] denotes the subtensor of X for I 1 &#8838; {1, . . . , d 1 }, . . . , I K &#8838; {1, . . . , d K }. The matricization operation mat k (&#8226;) unfolds an order-K tensor along mode k to a matrix, say</p><p>and its detailed definition is provided in the appendix. The Frobenius norm of tensor X is defined as</p><p>. The Tucker rank of an order-K tensor X , denoted by Tucrank(X ), is defined as a K-tuple (r 1 , ..., r K ), where r k = rank(mat k (X )). Any Tucker rank-(r 1 , ..., r K ) tensor X admits the following Tucker decomposition <ref type="bibr">(Tucker 1966</ref>):</p><p>and its detailed definition is provided in Appendix A. The following abbreviations are used to denote the tensor-matrix product along multiple modes:</p><p>&#215;pq is the tensor response variable. For some newly observed covariates {X t } n+m t=n+1 , the forecasting task of tensor-on-tensor time series regression is to accurately predict the corresponding future tensor responses {Y t } n+m t=n+1 , given the observed time series {(X t , Y t )} n t=1 and the new covariates {X t } n+m t=n+1 . Here, m is the forecast horizon. In subsequent discussions, we denote the series in training time range as X (tr) = {X t } n t=1 and Y (tr) = {Y t } n t=1 , and the covariates in forecasting time range as X (te) = {X t } n+m t=n+1 .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Methodology: Factor Augmented Tensor-on-Tensor Time Series Regression</head><p>In this section, we introduce our Factor Augmented Tensoron-Tensor Neural Network, dubbed as FATTNN. Our work explores a broad category of challenges known as tensoron-tensor regression, which seeks to elucidate the relationships between covariates and responses that may manifest as scalars, vectors, matrices, or higher-order tensors. As illustrated in Figure <ref type="figure">1</ref>, our method consists of two components. First, factor tensor features are extracted by low-rank tensor factorization. Second, we develop a Tensor-on-Tensor Neural Network based on Temporal Convolutional Network (TCN) <ref type="bibr">(Bai, Kolter, and Koltun 2018)</ref>. In the first subsection, we present a tensor factor model. This model can capture global patterns among the observed time series covariate tensors, by representing each of the original covariate tensor X t as a multilinear combination of r 1 &#215; &#8226; &#8226; &#8226; &#215; r K basis across each tensor mode k plus noise, where r k &#8810; d k . It offers a more general approach than the traditional vector factor analysis for prediction <ref type="bibr">(Sen, Yu, and Dhillon 2019;</ref><ref type="bibr">Fan, Xue, and Yao 2017;</ref><ref type="bibr">Luo et al. 2022;</ref><ref type="bibr">Yu, Yao, and Xue 2022;</ref><ref type="bibr">Fan and Gu 2023)</ref>, and preserves the tensor structures of features. It also provides dimension reduction, which significantly reduces computational complexity. In the second subsection, we describe how the output from the global tensor factor model can be used as an input covariate for a TCN to predict future response tensors.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Tensor Factor Model (TFM)</head><p>Our representation learning module utilizes low rank tensor factorization for covariate tensor. The idea is to factorize the training covariate tensors</p><p>Specifically, the model can be expressed as</p><p>where E t is idiosyncratic noise of the tensor X t , and t is a time point. Here the k-mode product of X &#8712; R d1&#215;d2&#215;...&#215;d K with a matrix</p><p>, the matrix factor model can be written as</p><p>The latent core tensor F t , which typically encapsulates the most critical information, generally possesses dimensions significantly smaller than those of X t . Thus, the covariate tensor X t can be thought of to be comprised of a basis tensor features F t that capture the global patterns in the whole data-set, and all the original covariates are multilinear combinations of these basis tensor features. In the next subsection, we will discuss how a TCN can be utilized to leverage the temporal structure of the training data.</p><p>For predicting future response tensors, given a new covariate tensor X t , we can also extract low-dimensional feature tensors F t using the estimated deterministic loading matrices A k and model (1). This approach efficiently captures the essential characteristics from the high-dimensional input data.</p><p>The reduced dimensionality allows for more efficient data processing and analysis while retaining essential features.</p><p>To capture the underlying tensor features of the covariates, we employ a Time series Inner-Product Unfolding Procedure (TIPUP). It utilizes the linear temporal dependence among the covariates. The TIPUP method performs singular value decomposition (SVD) for each tensor mode k = 1, ..., K:</p><p>The estimation methods in (2) can be further enhanced through an iterative refinement algorithm, detailed in the appendix. The factor tensors in the training data thus can be estimated by</p><p>In the next proposition, we demonstrate the provable benefits of using a tensor factor model with Tucker low-rank structure (1). Specifically, we establish the convergence rates of the linear space of the loading matrices, which in turn ensure the accuracy of the estimated factor tensors. Proposition 1. Assume each elements of the idiosyncratic noise E t in (1) are i.i.d. N (0, 1). The ranks r 1 , ..., r K are fixed. The factor process F t is weakly stationary and its crossouter-product process is ergodic in the sense of</p><p>, where the elements of E(F t &#8855; F t ) are all finite. In addition, the condition numbers of</p><p>&#8741;A k &#8741; 2 and grow as dimensions d k increases. Then, the iterative TIPUP estimator satisfies</p><p>Tensor-on-Tensor Neural Network based TCN</p><p>If we are equipped with a TCN that identifies the temporal patterns in the training dataset (X (tr) , Y (tr) ), we can use this model to enhance the temporal structures in (F (tr) , Y (tr) ). Thus, a TCN is applied to the input sequence of estimated factor tensors F 1 , . . . , F t along with the corresponding output sequence of response tensors Y 1 , . . . , Y t to encapsulate the temporal dynamics. Let &#951;(&#8226;) represent this network. The whole temporal network &#951;(&#8226;) can be trained using the lowrank factor tensors F 1 , . . . , F n derived from training dataset.</p><p>In the literature, factor-augmented linear regression has been well studied recently in statistics, economics and machine learning <ref type="bibr">(Stock and Watson 2002;</ref><ref type="bibr">Bai and Ng 2006;</ref><ref type="bibr">Bair et al. 2006;</ref><ref type="bibr">Fan, Xue, and Yao 2017;</ref><ref type="bibr">Bing et al. 2021</ref>).</p><p>The trained temporal network &#951;(&#8226;) can be effectively utilized for multi-step look-ahead prediction in a standard approach. The factor tensors for future time steps can be estimated using F n+h = X n+h &#215; K k=1 A &#8868; k , where h &gt; 0. Using the historical data points of factor tensors F t , 1 &#8804; t &#8804; n + h -1, the prediction for the subsequent time step, Y n+h , is generated by Y n+h = &#951;( F 1 , ..., F n+h ).</p><p>Our hybrid forecasting model incorporates a TCN that inputs past data points from the original raw response time series and the estimated factor tensors, enhancing prediction accuracy. The pseudo-code for our model is outlined in Algorithm 1. Due to space limitations, the determination of the rank of the factor process is discussed in Appendix A. Algorithm 1: Factor Augmented Tensor-on-Tensor Neural Network (FATTNN) 1: Input: Observed tensor time series (X 1 , Y 1 ), . . . , (X n , Y n ), X n+1 , . . . , X n+m , rank r k for each mode k, forecasting horizon m. 2: Output: Forecasts Y n+1 , . . . , Y n+m .<ref type="foot">foot_1</ref>: Compute the factor tensor F t for t = 1, . . . , n, by TIPUP (2) or its iterative version in Algorithm S.1. 4: Fit a TCN &#951;(&#8226;) to the input sequence of factor tensors F 1 , . . . , F n and the output sequence of response tensor Y 1 , ..., Y n to capture the temporal dynamics. 5: Forecast Y n+1 , . . . , Y n+m using the fitted TCN. 6: for h = 1 to m do 7:</p><p>8:</p><p>Y n+h = &#951;( F 1 , . . . , F n+h ). 9: end for 10: return Y n+1 , . . . , Y n+m .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Numerical Results</head><p>In this section, we investigate the finite-sample performance of our proposed FATTNN methods via simulation studies and real-world applications. Specifically, we implement the proposed FATTNN 2 with TIPUP algorithm to estimate the factor structures. For benchmark methods, we consider one traditional statistical model -the multiway tensor-on-tensor regression <ref type="bibr">(Lock 2018</ref>) (denoted by Multiway), and four state-of-the-art deep learning approaches, including the temporal convolutional network <ref type="bibr">(Bai, Kolter, and Koltun 2018)</ref> of Y regressed on X (denoted by TCN), the long short-term memory network (Hochreiter and Schmidhuber 1997) (de-2 Our code is available in the supplementary material. noted by LSTM) , the convolutional tensor-train LSTM <ref type="bibr">(Su et al. 2020</ref>) (denoted by Conv-TT-LSTM), and tensor regression layer <ref type="bibr">(Kossaifi et al. 2020</ref>) (denoted by TRL). Evaluation Metrics. We evaluate the performance of various methods with emphasis on two aspects: prediction accuracy and computational efficiency. To evaluate prediction accuracy, we compute the Mean Squared Error (MSE) over the testing data, i.e., MSE = (</p><p>where D test denotes the testing set, n test is the number of samples in the testing set D test , and (Y (obs) i , Y (pred) i</p><p>) are the observed and predicted values of the i-th tensor response. In addition, we record the computational time of different methods to evaluate computational efficiency.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Simulation Studies</head><p>Data Generating Process. We carry out simulation studies under different scenarios with various configurations of sample size, data dimensions, tensor ranks, and relationships between covariates and responses. Recall that</p><p>We begin with generating the low-rank core tensor F t from a tensor autoregressive model vec(F t ) = &#934; &#8226; vec(F t-1 ) + vec(W t ) for t = 1, . . . , n. Here, vec(F t ) denotes the vectorization 3 of a tensor F t , W t &#8712; R r1&#215;&#8226;&#8226;&#8226;&#215;r K is an error tensor in which every element is randomly generated from a normal distribution. The coefficient matrix</p><p>&#215;r k is a matrix with i.i.d. standard normal entries and orthonormalized through QR decomposition. The tensor time series F t is randomly initiated in a distance past, and we discard the first 500 time points to stabilize the process.</p><p>Next, we generate the tensor covariates X t from F t , following</p><p>where &#955; is a scalar that controls the signal-to-noise ratio in the tensor factor model. In our experiments, we set &#955; = ( K k=1 r k ) 1/2 . The loading matrices A k &#8712; R d k &#215;r k are generated with independent N (0, 1) entries, and then orthonormalized using QR decomposition. The error E t &#8712; R d1&#215;&#8226;&#8226;&#8226;&#215;d K is also generated with each element independently drawn from normal distributions.</p><p>Then, we generate the tensor responses Y t from F t , using Y t = &#10216;S(F t ), &#923;&#10217; L + U t , t = 1, . . . n. Here S(F t ) := (s(F t,i1,...,i K )) 1&#8804;i1&#8804;r1,...,1&#8804;i K &#8804;r K &#8712; R r1&#215;&#8226;&#8226;&#8226;&#215;r K applies an element-wise transformation s(&#8226;) to each entry of F t . We consider the following experimental configurations: (1) (d1, d2, d3) = (25, 25, 12),(r1, r2, r3) = (3, 3, 2), (p1, p2, p3) = (6, 8, 6), n = 500, s(z) = cos(z), &#963; 2 u = 1.</p><p>(2) (d1, d2, d3) = (30, 6, 12), (r1, r2, r3) = (6, 3, 2), (p1, p2, p3) = (8, 6, 4), n = 400, s(z) = log(|z|), &#963; 2 u = 1.</p><p>(3) (d1, d2, d3) = (12, 3, 12), (r1, r2, r3) = (4, 3, 4), (p1, p2, p3) = (3, 3, 3), n = 100, s(z) = log(e (z) + 1), &#963; 2 u = 0.5.</p><p>Simulation Evaluations. In each setting, we use 70% for training the models and 30% for model evaluation. Comparisons of MSE, and computational time are summarized in Table 1. All reported metrics are averaged over 20 replications. Experiments were run on the research computing cluster provided by the University Center for Research Computing. From Table 1, we can see that FATTNN consistently improves over the rest benchmark methods by a large margin.</p><p>The improvements can be attributed to two facets: (a) the utilization of tensor factors, summarizing useful predictive information effectively and reducing the number of noise covariates, and (b) the utilization of neural networks, possessing extraordinary ability in capturing complex relationships in the data and therefore exhibiting exceptional predictive power. On a separate note, Table <ref type="table">1</ref> reveals the evident computational advantage of FATTNN compared to other neural network models such as TCN, owing to the effective dimension reduction through tensor factor models.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Real Data Examples</head><p>We evaluate the performance of different methods using five prediction tasks on three real-world datasets. The information about sample sizes in the datasets, data dimensions of covariates (d 1 , . . . , d K ) and responses (p 1 , . . . , p q ), and the ranks of core tensors (r 1 , . . . , r K ) utilized in the analyses are summarized in Table <ref type="table">2</ref>. For the prediction tasks using the New York Taxi data and FMRI image datasets, we split the data into training sets (70%) and testing (30%). For the prediction tasks using the FAO dataset, we use 80% data for training and 20% for testing due to its relatively small sample size. We compare the prediction accuracy and computation time of six methods illustrated in the simulation section. The numerical prediction results along with the corresponding computational time are summarized in Table <ref type="table">3</ref>.</p><p>Prediction Task Simulation 1 Simulation 2 Simulation 3 Test MSE TCN 9.812 (3.13) 670.5 (25.8) 1074 (32.6) FATTNN 6.353 (2.52) 511.9 (22.5) 696.7 (26.4) MultiWay 12.31 (3.51) 805.1 (28.4) 1670 (40.3) LSTM 10.48 (3.23) 878.3 (29.6) 807.8 (28.3) TRL 12.29 (3.50) 852.6 (29.0) 2003 (38.4) Conv-TT-LSTM 10.32 (3.15) 1643 (39.5) 2812 (52.8) Computational Time (hh:mm:ss) TCN 01:22:02 01:26:30 00:11:16 FATTNN 00:16:18 00:17:54 00:03:41 MultiWay 00:20:15 00:12:30 00:01:03 LSTM 00:03:36 00:03:01 00:02:09 TRL 00:02:25 00:01:30 00:00:50 Conv-TT-LSTM 03:02:15 05:31:25 00:35:37 Table 1: Comparisons of prediction accuracy (measured by MSE over the testing data) and computational time (in the format of hh:mm:ss) in simulation studies (1) The United Nations Food and Agriculture Organization (FAO) Crops and Livestock Products Data.</p><p>The database provides agricultural statistics (including crop, livestock, and forestry sub-sectors) collected from countries and territories since 1961. It is publicly available at <ref type="url">https://www.fao.org</ref>. Our analyses focus on 11 crops and 5 livestock products from 46 countries in East Asia, North America, South America, and Europe from 1961 to 2022. Detailed information about the types of crops, livestock, and countries are presented in Table <ref type="table">S</ref>.1 of Appendix B. We study two prediction tasks: (i) using Yield and Production data of 11 different crops for 33 countries in East Asia, North America, and Europe (i.e., X t &#8712; R 33&#215;2&#215;11 ) to predict the Yield and Production quantities of the same crops for 13 selected countries in South America (i.e., Y t &#8712; R 13&#215;2&#215;11 ); and (ii) using four agricultural statistics (Producing Animals, Animals-slaughtered, Milk Animals, Laying) associated with 5 kinds of livestock of 26 selected countries in Europe (i.e., X t &#8712; R 26&#215;4&#215;5 ) to predict three metrics (Area-harvested, Production, and Yield) of 11 crops in the same countries (i.e., Y t &#8712; R 26&#215;3&#215;11 ). Observing high variability in the raw data, we adopt a log transformation on the raw series and fit our models using log-transformed data.</p><p>Table <ref type="table">3</ref> shows that FATTNN brings in substantial reductions in MSE compared to other methods. In task (i), FAT-TNN yields 47.3%, 39.5%, 58.3%, 52.8%, and 86.1% reductions in MSE compared to TCN, Multiway, TRL, LSTM, and Conv-TT-LSTM, respectively, and in task (ii), the improvements are 33.4%, 54.9%, 67.3%, 36.7%, and 68.9% reductions in MSE, respectively. The table also shows that the upper bound of the bootstrap CI for FAT-TNN is smaller than the lower bounds of the CIs for almost all the benchmarks, indicating FATTNN possesses a statistically significant increase in prediction accuracy. What's more, FATTNN produces the shortest CI, implying the lowest variability among the methods compared. As reflected by the table, FATTNN computes much faster than TCN, about 3.6 times faster in task (i) and 2 times faster in task (ii). We also provide graphical comparisons between ground truth and predictions from different methods; see Figure <ref type="figure">2</ref>. The plots confirm that FATTNN yields results that most closely</p><p>Prediction Task Sample Size Dimension of Xt Dimension of Yt Rank of Ft FAO crop &#8764; crop 62 (33,2,11) (13,2,11) (6,2,4) FAO crop &#8764; livestock 62 (26,4,5) (26,3,11) (6,4,2) NYC taxi -midtown 504 (2,12,12,8) (12,12,8) (2,4,4,2) NYC taxi -downtown 504 (2,19,19,8) (19,19,8) (2,4,4,2) FMRI data 1452 (25,64,64) (1,64,64) (8,23,23)  <ref type="bibr">14.11 [10.83, 17.58] 7.437 [6.18, 11.44] 12.29 [11.86, 32.45] 17.84 [15.89, 22.74] 15.76 [13.16, 18.34] 53.39 [52.41, 63</ref>.95] FAO crop &#8764; livestock 32. <ref type="bibr">53 [24.87,</ref><ref type="bibr">36.10] 21.65 [19.56,</ref><ref type="bibr">25.10] 48.04 [45.56,</ref><ref type="bibr">165.80] 66.25 [56.85,</ref><ref type="bibr">76.13] 34.23 [30.47,</ref><ref type="bibr">38.48] 69.61 [69.06,</ref><ref type="bibr">15.52] 7.399 [6.53,</ref><ref type="bibr">8.03] 22.84 [20.86,</ref><ref type="bibr">44.79] 8.565 [7.89,</ref><ref type="bibr">10.12] 8.404 [7.95,</ref><ref type="bibr">9.63] 25.80 [21.55,</ref><ref type="bibr">28.62</ref>] NYC taxi -downtown 14. <ref type="bibr">58 [13.36, 17.42] 9.493 [8.46, 11.03] 28.10 [23.99, 52.12] 12.43 [10.82, 14.50] 12.45 [11.09, 14.38] 42.18 [36.27, 47.66</ref>] FMRI data 0.1236 0.06634 0.1397 0.07902 0.1964 0.03871 [0.0997, 0.148] [0.053, 0.075] [0.135, 0.158] [0.072, 0.084] [0.163, 0.224] [0.0337, 0.0914] Computational Time (hh:mm:ss) FAO crop &#8764; crop 00:55:33 00:15:28 00:03:18 00:09:41 00:02:08 00:20:07 FAO crop &#8764; livestock 00:24:34 00:12:57 00:03:21 00:07:53 00:01:55 00:16:18 NYC taxi -midtown 01:57:15 00:34:34 00:04:52 00:19:26 00:05:01 01:54:28 NYC taxi -downtown 03:25:55 00:32:46 00:25:35 00:22:09 00:05:34 03:07:05 FMRI data 03:54:50 00:20:58 10:01:20 00:43:51 00:06:27 17:27:05 Note: Numbers in the square brackets are bootstrap confidence intervals (CIs) of test MSE over 100 bootstrapping replications.</p><p>Table 3: Comparisons of prediction accuracy (measured by MSE over the testing data) and computational time (in the format of hh:mm:ss) of different methods in real-world applications align with the ground-truth patterns.</p><p>(2) New York City (NYC) Taxi Trip Data. The data contains 24-hour taxi pick-up and drop-off information of 69 areas in New York City for all the business days in 2014 and 2015. It is publicly available at <ref type="url">https://www.nyc.gov</ref>. Considering the autoregressive nature of this taxi data, we include the lag-1 response as an additional covariate when fitting the models. We focus on two prediction tasks: using the pick-up and drop-off data from 6:00-14:00 to predict the pick-up and drop-off outcomes from 14:00-22:00 in 12 districts in Midtown Manhattan and 19 districts in Downtown Manhattan, respectively. A detailed Manhattan district map is provided in Figure S.3 of Appendix B. The Midtown prediction task yields a tensor covariate and response (X t , Y t ) &#8712; R 2&#215;12&#215;12&#215;8 &#215; R 12&#215;12&#215;8 for each business day, in which the 1st dimension stands for the observed information at time t, concatenated with lag 1 response, the 2nd and 3rd dimensions encode the pick-up and drop-off districts, and the 4th dimension represents the hour of day. Similarly, the Downtown prediction task involves (X t , Y t ) &#8712; R 2&#215;19&#215;19&#215;8 &#215; R 19&#215;19&#215;8 for each business day.</p><p>From Table <ref type="table">3</ref>, we observe FATTNN significantly outperforms all other approaches in terms of prediction accuracy, with 42.5%, 67.6%, 13.6%, 12.0%, and 71.3% reductions in MSE compared to TCN, Multiway, TRL, LSTM, and Conv-TT-LSTM, respectively, in Midtown traffic prediction. In Downtown traffic prediction, FATTNN shows 34.9%, 66.2%, 23.6%, 23.7%, and 77.5% reductions in MSE compared to TCN, Multiway, TRL, LSTM, and Conv-TT-LSTM, respectively. As shown in the table, FATTNN is much more computationally efficient than TCN which directly feeds tensor observations into a convolutional network, about 6.4 times faster than TCN in Downtown prediction and 3.4 times faster in Midtown prediction. Figure <ref type="figure">3</ref> visualizes the comparisons using a 5-day moving average of ground-truth values and predicted pick-up and drop-off volumes by day (where we sum the number of pick-up and drop-off across 8-hour testing periods). FATTNN-predicted lines appear to be closer to the ground-truth lines than TCN-predicted lines in most plots.</p><p>(3) Functional Magnetic Resonance Imaging (FMRI) Data. We consider the Haxby dataset <ref type="bibr">(Haxby et al. 2001</ref>), a well-known public dataset for research in brain imaging and cognitive neuroscience, which can be retrieved from the "NiLearn" Python library. The data contains slices of 64 &#215; 64 FMRI brain images collected from 1452 samples. We use the first 25 slices of each sample to predict the 26th slice of that sample, i.e., (X t , Y t ) &#8712; R 25&#215;64&#215;64 &#215; R 1&#215;64&#215;64 .</p><p>Conv-TT-LSTM yields the lowest MSE in this task. This is not surprising as Conv-TT-LSTM is specifically designed for image prediction while FATTNN is more suitable for timeseries tensor prediction. Other than Conv-TT-LSTM, FAT-TNN still outperforms other methods. Additionally, though Conv-TT-LSTM has the best prediction accuracy, it is quite computationally heavy -about 50 times slower than FATTNN. The FATTNN is also 2 times faster than the TRL method which has the 3rd lowest MSE in this task.</p><p>In summary, our proposed FATTNN performs the best in the four prediction tasks on FAO and NYC datasets. In the FMRI dataset, the FATTNN yields higher MSE than Conv-TT-LSTM, a method specialized in image prediction. That being said, FATTNN has a huge computational advantage over Conv-TT-LSTM. We also observe that Conv-TT-LSTM underperforms other methods in the FAO and NYC datasets by a large margin, when the prediction tasks are not focusing on image data. To summarize, the FATTNN demonstrates the overall best performance on all the prediction tasks, and strikes an ideal balance between prediction accuracy and computational cost. The FATTNN achieves substantial increases  in prediction accuracy compared to benchmark methods. At the same time, the computational costs of FATTNN methods are much lower compared to TCN and Conv-TT-LSTM, ranging from 2 to 50 times faster.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Summary &amp; Discussion</head><p>In this paper, we propose FATTNN, a hybrid method that integrates a tensor factor model into deep neural networks, for tensor-on-tensor time series forecasting. The key advantage of FATTNN is its ability to exploit and utilize the underlying tensor structure among the covariate tensors. Through a low-rank tensor factor representation, we preserve the tensor structures and, in the meantime, drastically reduce the data dimensionality, leading to enhanced prediction results and reduced computational costs. This approach unifies the strengths of both factor models and neural networks. Numer-ical studies confirm that our proposed methods successfully achieve substantial increases in prediction accuracy and significant reductions in computational time, compared to traditional linear tensor-on-tensor regression models (which often fail to capture the intricate nonlinearity in covariate-response relationships), conventional deep learning methods (that often operate in a black-box manner without making use of the inherent structures among observations), and state-of-the-art tensor-decomposition-based learning methods.</p><p>Limitation and Extension. Though we presented our models for the purpose of tensor-on-tensor time series forecasting, our proposed FATTNN framework is not confined to temporal data but can accommodate a variety of data types. The main idea of FATTNN is to use a low-rank tensor factor model to capture the intrinsic patterns among the observed covariates, and then proceed with a neural network to model the intricate relationships between covariates and responses. When handling time series tensors, we adopt TIPUP factorization and TCN to fully capitalize on their temporal nature. For nontemporal data, the TIPUP-TCN-based FATTNN is still applicable for tensor-on-tensor prediction tasks, but the strengths of TIPUP and TCN may not be fully utilized. For higherorder tensors (e.g. K &gt; 4 ), Tensor-Train <ref type="bibr">(Oseledets 2011)</ref> and Hierarchical Tucker decompositions <ref type="bibr">(Lubich et al. 2013</ref>) may be better suited. This limitation can be easily rectified: with appropriate choices of factor models and neural network architectures, the proposed FATTNN can be naturally adapted to any simple (e.g., i.i.d observations) or complex tensor-type data (e.g., image, network, text, video). To extend beyond time series data, different types of factor models and neural network architectures should be deployed, depending on the nature of the data. For example, for graph data, Graph Neural Network is a more suitable alternative to TCN. For text data, Transformer models could substitute for the TCN in our FAT-TNN framework. An extended discussion on the generality of the FATTNN framework is presented in Appendix C. Our proposed FATTNN is flexible in accommodating different types of tensor factor models and deep learning architectures for tensor-on-tensor prediction using diverse data types.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>Following the literature, we distinguish "tensor-on-tensor regression" from "tensor regression". "Tensor regression" refers to regression models with tensor covariates and scalar responses. "Tensor-on-tensor regression" refers to regression models with both tensor covariates and tensor responses. As a matter of fact, tensoron-tensor regression encompasses tensor regression.The Thirty-Ninth AAAI Conference on Artificial Intelligence </p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_1"><p>We'd like to clarify that our proposed FATTNN approach does not involve tensor vectorization in the model fitting. This vectorization is solely for the convenience of data generation in simulation.</p></note>
		</body>
		</text>
</TEI>
