Abstract
Current developments in long-term time series forecasting suggest that Multi-Layer Perceptron- (MLP) based architectures, when modeled properly, can outperform the previous state-of-the-art Transformer- or Convolution-based models. Following this trend, the current work analyzes the most prevalent MLP models and proposes a new architecture, the Decomposer-Dense (D-Dense) model. D-Dense integrates core components of the aforementioned models, specifically mixing rounds as proposed by the TSMixer model and the Residual component and overall workflow of the TiDE design. Fundamental ideas from Transformer models are also implemented; the Decomposition block and a Gating mechanic that regulate the trend and seasonal components of the input. The presented models are optimized and tested on a practical forecasting problem that emulates real-world scenarios. The results indicate that the D-Dense model produces the most accurate forecasts overall, with a clear statistical significance on a quarter of the series. An ablation study is also performed which clearly reveals that every addition within the D-Dense design provides a forecasting benefit. The Decomposition process, and especially the Gate, show only a slight accuracy increase in the presented generic retail problem but without having a significant computational cost, and they provide a direct method of handling retail sectors in which demand is strictly tied to trendy or seasonal items.
1. Introduction
Traditional time series forecasting (TSF) problems attempt to predict the short future, meaning a limited range of future values, oftentimes simply one step ahead. Long-term time series forecasting (LTSF) is the process of predicting multiple time steps into the future, hence introducing higher complexity and necessitating specialized forecasting methods to generate accurate results [1]. Multiple TSF problems benefit greatly, in practice, from a long-term approach, such as weather prediction [2], financial management [3] and energy forecasting [4,5], as acquiring knowledge early can lead to pivotal strategic decisions. Retail demand forecasting is another prime example of the benefits of LTSF solutions, especially under multivariate scenarios, as retail businesses handle multiple products and must always have sufficient stock whilst also dealing with multiple perishable goods [6]. Therefore, predicting sales or stock long into the future optimizes their supply chain workflow [7]. Additionally, the inability to generate accurate forecasts renders any business vulnerable to inaccurate risk estimation [8].
Within recent years, two very popular and widely successful methods of tackling multivariate LTSF problems are Deep Neural Networks (DNNs) based on either Convolution or Attention [9,10,11]. By design, both techniques are able to output long horizon forecasts (LHF) within a single prediction, hence directly generating LTSF outputs [12,13]. These DNNs are also able to handle different types of secondary data/features, known as covariates, and integrate them in the forecasting process depending on the specific architecture of the given DNN. Covariates fall under one of the three following categories:
- Static Covariates: values that remain static over time and usually change per individual time series (component) but might be shared across multiple components.
- Past Covariates: time varying values that are known in the past at prediction time
- Future Covariates: time varying values that are known in the future at prediction time, usually in the form of estimations or predefined/scheduled variables.
Interestingly, recent bibliographic developments in LTSF problems suggest a trend towards developing pure Multilayer Perceptron- (MLP) based DNNs and report more accurate forecasts than the previously dominant Attention-based models [14]. This trend began with the work of [15] in which a very simplistic linear network, LTSF-linear, and two variations outperformed current state-of-the-art DNNs, hence questioning the necessity for complex architectures against straightforward linear or MLP-based approaches. Consequently, current research focuses on developing deeper networks that combine the architectural philosophies behind popular Attention-based models with MLP-based blocks as their core component. Two resulting architectures are the TSMixer [16] and TiDE [17] models, which are currently shown to match and circumstantially outperform state-of-the-art DNN techniques.
This observed trend invites a plethora of potential model designs that combine and enhance the newly proposed MLP-based models with the bibliographically mature DNN modeling principles. Therefore, we are motivated to analyze the current architectural choices to introduce and merge core utilities of popular models, within the MLP-based trend, to additively enrich the research with the goal of achieving more accurate long-term forecasts.
As a result, the Decomposer-Dense (D-Dense) model is constructed to unite the perceived advantages of multiple MLP- and Attention-based designs whilst maintaining the low computational cost benefits offered. The novelty offered by the proposed model does not rely on any individual component by itself but rather the architectural advantages of multiple newly proposed architectures combined in a single functional design. Each addition serves a specific and well-defined role so that the resulting D-Dense model is able to offer incremental contributions to the existing MLP forecasting research. The produced results support the theorized architectural benefits and extend the novelty of its unique structural design.
The contributions of the current work are the following:
- The introduction of D-Dense which is showcased to produce the most accurate predictions and outperforms the MLP-based competition.
- A detailed ablation study that showcases that advantages of each addition, hence pinpointing the potential use-cases of each substructure.
- Comparison of the popular MLP-based models within a practical multiwindow long-term scenario, which better emulates real-world application.
The structure of the current work is as follows: Section 2 presents the bibliographic background of LTSF DNNs and their evolution in recent years. In Section 3, the employed models are presented, including the definition of the proposed D-Dense design. Section 4 introduces the dataset, the experimental setup and the optimization process. Section 5 reveals the test results as well as the ablation study. Finally, in Section 6 we discuss our findings and conclude our work.
2. Bibliographic Background
The DNN LTSF literature over the past 5 years reveals multiple advancements in model architecture and includes Convolutional Neural Networks (CNN) and Transformers, which was the earlier trend, as well as the recent trend of MLPs. LSTM hybrids are also heavily utilized.
CNN architectures traditionally employed 1D convolutions on the time series data to generate forecasts. The SCINet [18] model presents a hierarchical downsample-convolve-interact architecture with multiple convolution filters via which it is able to effectively model time series with complex temporal dynamics. Inspired by the earlier TCN model [12,19], MICN [20] employs multiple convolution kernels but applies them both locally and globally. ModernTCN [21] also expands on the TCN architecture by introducing depthwise separable convolutions for extracting time dependencies and convolutional feed-forward networks for variable dependencies. Finally, TimesNet [22,23] applies non- traditional 1D-to-2D transformations which enable the model to learn both intra- and inter-period variations.
Transformer architectures, originally popularized by their immense success in natural language and computer vision problems, set an early trend for attention-based LTSF solutions. The Informer [24] reduces the computational complexity of the original Transformer and employs self-attention distilling to handle longer inputs. The Autoformer [25] includes a decomposition block to extract the trend and seasonal components of its input. Furthermore, the FEDformer [26] employs different kernels within its decomposition block to extract and mix multiple trend components. Pyra-former [27] is introduced with its novel hierarchical pyramid attention. Lastly, PatchTST handles time series as overlapped patches and subsequently extracts patch-wise dependencies.
Meanwhile, multiple MLP DNNs are setting a new trend for LTSF problems. N-BEATS [28,29] introduces the first widely successful MLP DNN which achieves high accuracy by simply building stacks of fully connected layers. Further improving their accuracy, N-HiTs [30] employs hierarchical interpolation and multi-rate data sampling which enable sequential construction of its predictions. Most importantly, LTSF-linear [15], alongside DLinear and NLinear, showcases that simple linear models can outperform all the aforementioned Transformer-based architectures, which motivates research towards MLP DNNs as accurate and lightweight LTSF solutions. As a result, TiDE [17,31] and TSMixer [16,32] are proposed and, once again, outperform the transformer models.
3. Modeling
Within the following paragraphs, every DNN model employed throughout the paper is presented primarily focusing on and detailing the TSMixer and TiDE designs as they are integral to the proposed and later analyzed D-Dense architecture. The N-BEATS and N-HiTS models are also briefly overviewed as they are slightly modified and used within the study for the purpose of richer comparison.
3.1. N-BEATS and N-HiTS
N-BEATS [29] and N-HiTS [30] are deep neural architectures that learn to separate trends from seasonal patterns and combine them into a future forecast. N-BEATS achieves this with stacked dense blocks that continuously regress polynomial components, while N-HiTS refines the same idea with multi-resolution convolutions that capture both local and long-range dynamics more efficiently. Both are traditionally univariate but can be applied in a multivariate fashion by flattening the time series matrix. In addition, a linear projection is also performed to reduce the dimensionality of the input as operating on the raw flattened matrix is extremely memory intensive.
3.2. TSMixer
The TSMixer architecture [16] incorporates simple and repeated feed-forward operations to extract both time- and feature-dependent correlations, and it is visualized in Figure 1. The foundational blocks of TSMixer are the Time Mixing and Feature Mixing blocks. Given a matrix with L rows representing the time steps and C columns representing the features (values and covariates), the Feature Mixing block operates on the columns whilst the Time Mixing block operates on the rows, hence the transposed matrix.
Figure 1.
The TSMixer architecture.
In more detail, for an input matrix , the Time Mixing operation is defined as
where denotes the columns of the input, are the weights, are the biases of the linear layer, is the elementwise rectified linear unit function, is the dropout function, and represents a Layer Normalization.
The Feature Mixing operation is similarly defined as
where
denotes the rows of the input, are the weights, are the biases of the linear layers, and , and are the same operations defined in (1).
Before any mixing is performed, the past features and the static covariates need to be reformed. The past feature matrix is temporally projected, meaning a linear transformation is applied row-wise to resize the time axis from length to the desired forecasting window . The static covariates are represented by a vector size ; therefore, they are repeated and stacked to create a matrix of size .
Initially, the reshaped past feature matrix and the future covariates matrix are both Feature Mixed and then the mixing rounds begin: (1) the static covariates matrix is Feature Mixed, (2) the Feature Mixed past, future and static outputs are concatenated and (3) the resulting matrix is Time Mixed then Feature Mixed. This process may be repeated for any number of rounds with the output of each round being the input for the next. The final output of the model is produced via a fully-connected MLP which appropriately resizes the output of the mixing process to match the expected forecasting window.
3.3. TiDE
The TiDE architecture [17], presented in Figure 2, depends on the MLP-based Residual Block, which is utilized as an encoder, decoder and to reshape inputs.
Figure 2.
The TiDE architecture.
Given an input matrix , the Residual operation is defined as
denotes the rows of the input, are the weights, are the biases of the linear layers, and , and are the same operations defined in (1).
Initially, the static covariates vector size is repeated and stacked to form a matrix of size . The past and future covariate matrices are inputted into Residual blocks to reduce their feature (column) dimension and hence undergo feature projection. The projected past matrix, the static matrix and the original lookback matrix (the matrix containing the past values) are concatenated and are now ready for the Encoder–Decoder process. Importantly, the input of the Encoder is flattened so that the Residual operation is performed both feature- and timewise on all data points.
The final output of the decoder is always shaped so that the time (row) dimension equals the forecasting window and is therefore able to concatenate with the projected future matrix to then enter a final Residual block and create the final output. A global residual connection is also present that connects the output to the linear transformation of the lookback matrix so that the purely linear model is always a sub-model within the current architecture.
3.4. D-Dense
The proposed D-Dense architecture, visualized in Figure 3, combines the fundamental structural components of both TiDE and TSMixer whilst also utilizing promising techniques presented in multiple popular models. Its core sequence resembles that of the TiDE encoder–decoder but the inputs are now heavily analyzed and preprocessed before the encoding. More specifically, there are three main major components: the Decomposition block, the Gate and the Residual Mixing.
Figure 3.
The D-Dense architecture.
The Decomposition block receives the lookback matrix as input and outputs its trend and seasonal components. This scheme, that is successfully used in the Autoformer [25] and the FEDformer [26] architectures, simply applies a moving average of window size to extract the trend with the remainder residual being the seasonal component. The decomposition is lossless, as the two components always sum up to the original input, and it is applied independently along the time axis for multivariate problems.
The Gate function receives the trend and seasonal components directly from the Decomposition block and learns a per-timestep, per-feature balance between the two. Gating is a very common practice in deeper networks, being a single linear transformation followed by a sigmoid, producing weights that control how much of each component contributes to the final target representation. This helps the model to directly understand if a given time series is more trend- or season-dependent and properly adjust to it before any encoding.
In detail, given the seasonal matrix and the trend matrix produced by the Decomposition function, the Gate Weight is defined as
where
and denote the rows of the inputs, the is the concatenation function, are the weights, are the biases of the Gate Weight and is the element-wise sigmoid function. The final function is then defined as
where is the element-wise multiplication. The produced output is then concatenated with the rest of the covariates, following the TiDE design.
The core component of the D-Dense Encoder–Decoder setup is the Residual Mixing. Instead of TiDE’s single Residual operation, which applies on the feature axis, D-Dense employs a mixing scheme inspired by TSMixer. To apply the Residual Block on the time axis, all that needs to change is a simple transposition of the input and output identical to the Time Mixing as analyzed in (1). Then, by applying a normal Residual Block to the output of the time-mixed Residual, a full Residual Mixing has been performed. The Residual Mixing operation is therefore defined as
where denotes the input and is the Residual Block operation as defined in (4). This process is used both in the encoder and the decoder of D-Dense. Because of Mixing and its ability to operate on both axes, the input is not flattened, hence reducing the memory use compared to TiDE.
To finalize the D-Dense design, a new residual connection is also included that passes the trend of the lookback to the output similar to the global residual of the TiDE architecture.
4. Materials and Methods
The following paragraphs detail the employed dataset, the experimental setup, the model optimization and finally the performance results. The analysis and implementation of each step is realized via the Python programming language (version 3.12.2) and the following modules/libraries: Numpy (version 2.5.3) [33], Pandas (version 2.3.3) [34], Scikit-learn (version 1.9.1) [35] and PyTorch (version 2.14.0) [36].
4.1. Dataset Analysis
The current study utilizes a subset of the M5 forecasting competition Walmart sales dataset [37] to properly test and compare the MLP-based model architectures to each other, including the suggested D-Dense implementation. The M5 dataset is widely popular and includes an extensive amount of time series accompanied by ample supportive data. It includes individual item sales which are conventionally translated to demand, assuming no out-of-stock periods [38,39,40]. As mentioned, the presented datasets are analyzed and forecasted in a multivariate fashion with a plethora of covariates to further assist each model and output more accurate forecasts. Only a brief overview of the data used is presented as the overall dataset has extensive bibliographical presence.
The M5 sales dataset contains the daily sales of 3049 items in 10 different stores resulting in 30490 unique time series. Within this study, only one store is arbitrarily considered, store “CA_1”, to maintain reasonable computational costs and training times. It spans for 1941 days (excluding the 28 days of its test set) and contains several secondary features that are introduced as covariates to our models as explained in Table 1.
Table 1.
Covariates present in the M5 dataset and their type.
4.2. Experimental Setup
Initially, a forecasting problem must be defined. The M5 competition already specifies a problem but the given test set includes only a single long-term future window for prediction. In this study, to further test each model’s ability to forecast long-term time series and predict long into the future, a custom split of training, validation and testing sets is applied for each dataset whilst maintaining the fundamentals of the original competition. The overall details are presented in Table 2. The goal is to emulate a practical real-life scenario in which constant model retraining is not expected; a relatively smaller retailer should not be expected to have the resources to re-optimize and train the provided model each month and then predict the next. In practice, the same pretrained model must retain its accuracy when applied on newer data. This principle must be reflected in, not only the validation set, but also during testing.
Table 2.
Basic properties of the forecasting problem.
In more detail, the splits are chosen in such a manner to forecast multiple windows of 28 future sales, following the M5 competition setting, which is essentially a month-ahead forecast. The training set is constructed via a sliding window approach using a 1-step stride, while both the validation and the test sets use a 28-step stride so as to create 4 distinct forecasting windows. As a result, each model is tasked to forecast multiple windows into the future, without retraining, hence testing the practical long-term capabilities of each architecture. This is different from explicitly setting the output of each model to 112 as, via this setup, the more recent real values are also considered. As a simple preprocessing step, every categorical covariate is label encoded, and all covariates are 0–1 normalized per component fitted only on the training set.
Every model has some parameters statically set and equal to each other. The look-back window is set to 112, which is 4 times the forecasting window. The batch size defaults to 4 with a learning rate of 0.001. This ensures that the data can fit in memory and produce results in a timely fashion given a standard commercially available GPU. The number of epochs is initialized to 200 but is controlled by a 15-round early stopping function which halts the execution if the validation loss does not decrease within 15 epochs. Moreover, the Adam optimizer is utilized to minimize the Mean Square Error (MSE) loss. Hyperparameter optimization is also performed to determine the optimal values for the rest of the model-specific parameters on the validation set (detailed in Section 4.3). The models are not re-trained on both sets after optimization; the validation set is strictly used for validation only. Finally, the optimized models forecast the 4 distinct windows, and the results are reported and analyzed (see Section 5.1). The overall setup is presented as a workflow in Figure 4.
Figure 4.
Workflow of the experimental setup.
4.3. Hyperparameter Optimization
For each model, a subset of hyperparameters is exhaustively tested, via a complete grid search, against the validation set to optimize the final model properties. Table 3 presents all the combinations used. It is important to note that the window size of the Decomposition block is statically set to 7 as most time series are expected to have weekly seasonality. It could also be optimized but the hyperparameter list is already extensive yet necessary to ensure fairness of comparison.
Table 3.
Hyperparameters used and selected (bold) during optimization.
To get further insight regarding the importance of each hyperparameter introduced in D-Dense, an indicative analysis of the individual parameter sensitivity is also performed. Having completed a full grid search, the results of each individual parameter can be analyzed whilst every other parameter was set to the optimal value. To understand the importance of the dropout rate, for example, the results of each dropout rate tested (0, 0.1 and 0.3) are analyzed when every other hyperparameter was optimal. Table 4 presents the mean MSE score, as well as the Standard Deviation (Std) of the same metric, for each individual hyperparameter change, as explained, on the validation set. As higher mean and std values suggest higher sensitivity, it is clear that the past and future projection sizes need to be optimized or carefully considered. The number of encoder and decoder layers is also an important property of the D-Dense model and should be optimized. Alternatively, a relatively high number can be set by default, and the model will still maintain accurate results in exchange for resources (model size and execution time). The hidden size of each block and the decoder output size seem less sensitive in isolation. This is expected as smaller sizes can be easily corrected by an increased number of overall layers. Finally, the dropout rate is moderately important which is consistent with its regular bibliographical usage as a dynamic hyperparameter.
Table 4.
The mean and standard deviation (std) MSE scores that each hyperparameter produces on the validation set whilst the rest are optimal. Sorted based on optimization importance.
5. Results
5.1. Testset Forecasts
The optimal trained models are now tasked to forecast the test set. As previously explained, the forecasts are performed in 4 batches by forecasting 28 time steps ahead then sliding 28 time steps to forecast the following 28 and repeat. The actual values are always inputted as the lookback window and not the previous predictions. The mean MAE (Mean Absolute Error) and MSE (Mean Squared Error) are calculated for all forecasts to measure the accuracy of each model, and the results are presented in Table 5. The Boxplots of the MSE metrics per individual univariate forecast of each model are also graphed in Figure 5. As a baseline benchmark the simplistic LTSF-Linear model [15], which is a linear transformation of the input directly as the output, is also utilized to reveal the minimum acceptable metric errors. Statistical baseline approaches, such as the Exponential Smoothing and ARIMA, are avoided as they are univariate and, by design, not capable of maintaining high accuracy given longer forecasting windows.
Table 5.
The mean MAE and MSE metrics (×10−2) per model. Best results are in bold, and the models are sorted from best performing to worst.
Figure 5.
Boxplots of the MSE metrics for each individual forecast per model.
The results clearly indicate a performance increase between the proposed D-Dense and the rest of the MLP-based models. With TiDE, TSMixer and N-BEATS showcasing interchangeable performance, it is safe to infer that the deeper mixing encoder–decoder blocks are necessary to properly forecast the current dataset. Interestingly, the N-HiTS architecture, which is a theoretical upgrade to the older N-BEATS model, performs the worst. This is most likely due to the univariate nature of the original N-HiTS not translating as accurately in multivariate scenarios, whilst the simplicity of N-BEATS renders it more versatile. Overall, the error metrics suggest that all forecasters are accurate but D-Dense is ahead of the competition and by a significant margin.
As error metrics, in isolation, do not always fully express the relative preference of one method over another, it is important to establish whether the perceived improvements are statistically significant and to what degree. The Harvey, Leybourne and Newbold (HLN) test [41] is performed for each model in relation to D-Dense, using the squared error, to examine the produced p-values. As the forecasts are multivariate, a proper analysis of the overall distribution of p-values must be analyzed. Table 6 presents the percentiles of forecasts that are strongly statistically significant (p-value < 0.05) and weakly statistically significant (p-value < 0.1).
Table 6.
The p-value percentiles that satisfy the strong (<0.05) and weak (<0.1) significance threshold based on the HLN test against D-Dense.
The M5 dataset consists of many items that exhibit zero sales in most days, in which case every model is able to accurately predict low or zero sales in the future resulting in insignificant improvements with high p-values. Even still, D-Dense significantly improves the forecasts for over 700 items compared to every other model. As a result, the practical advantages of D-Dense are clear, and it is the better predictor for the current long-term forecasting problem.
Additionally, given the context of demand forecasting, it is useful to analyze the predictions via practical demand metrics. The Number of Shortages (NOS) and the Periods in Stock (PIS) are prominent stockrelated metrics, as described in [42]. The NOS metric is simply the number of individual forecasts that underpredict the actual sales value within the forecast window. This might translate to overall understocking, and it is further analyzed via PIS, a cumulative error metric that measures the overall theoretical periods of overstocking (positive value) or understocking (negative value) within the forecasting window. It is important to note that in a multivariate scenario, in which each item is sold in different quantities, the PIS value should only be analyzed in a relative and comparative manner and not in isolation. Table 7 presents the demand metrics for each model averaged per forecasting window, with the NOS expressed as a percentage.
Table 7.
The mean percentage NOS and PIS metrics per model. Best results are in bold.
The resulting NOS clearly suggests that most time series within the dataset exhibit intermittent demand with every forecast resulting in a high percentage of isolated shortages. The PIS offers important insight regarding the cumulative severity of these shortages. The suggested D-Dense architecture not only minimizes said shortages but also results in more than half the understock compared to the second-best TiDE model. Interestingly, the baseline LTSF-Linear produces less understock than both N-BEATS and N-HiTS. Even though these models are more accurate, it seems that most of their predictions underestimate the actual sales. Conclusively, D-Dense is both the most accurate predictor and estimates the sales in such a manner that the understocking is substantially minimized.
5.2. Ablation Study
To test the isolated contributions of the suggested components of the D-Dense architecture an ablation study is performed. Multiple ablations and their combinations may be derived, but the main components that actualize D-Dense and should be tested are the following:
- Abl-Decomp: The Decomposition block is entirely removed, including the Gate that has no use without it, passing the input directly without any other changes necessary.
- Abl-Gate: The Gate is removed with the trend and seasonal component being added (element-wise).
- Abl-Mixing: Mixing in the Encoder–Decoder blocks is replaced with the original TiDE residual.
The ablations were performed as explained, and Table 8 presents the error and demand metrics of their forecasts as well as the p-value percentiles. Similarly to the test set analysis, Figure 6 depicts the MSE Boxplots for each ablation. The Mixing component is proven integral as the resulting ablation degrades the forecasting capabilities of D-Dense, equating them to TiDE. This is logical, as this ablation is very close to the original TiDE architecture and performs the same exact encoding–decoding. Both the Gate and the Decomposition blocks are proven marginally useful but to a lesser degree. This can be explained by the nature of the data within the dataset. The theoretical advantage of decomposing the trend and seasonal components to then ascertain the weight of each via a gate heavily depends on the retail sector. A generic Walmart dataset consists of multiple items of varying trend and/or seasonal dependencies, with most items not strongly belonging in any of the two. Hence, this design would be more impactful in sectors such as fashion where most items are either highly trendy or explicitly seasonal. However, the existence of the Decomposition block greatly improves both the NOS and PIS metrics as the ablation suffers from significant understocking. The direct use of the trend and seasonal components allows the architecture to avoid underestimating future sales. In conclusion, every design choice has an impact and both a theoretical and a practical benefit.
Table 8.
The mean MAE and MSE metrics (×10−2) per ablation, the p-value percentiles of the HLN test against the original D-Dense and the NOS and PIS demand metrics.
Figure 6.
Boxplots of the MSE metrics for each individual forecast per ablation, including the original D-Dense.
6. Discussion
Within this study, the recently proposed MLP-based models presented and accompanied by a newly introduced architecture, the D-Dense, are properly optimized and employed in a realistic LTSF problem using real-world data. The LTSF is set up not as a traditional single multi-step future forecast but rather as a practical yet under-investigated scenario in which a pretrained model is used for multiple multi-step forecasts given new data each month. The overall results deem every model capable of accurate predictions with the suggested D-Dense outperforming the competition. The difference in accuracy is statistically significant for a large percentage of the time series. Moreover, the estimated demand produced by the D-Dense forecasts greatly minimizes understocking and, therefore, D-Dense is proven the better solution for the presented problem.
Regarding D-Dense and its structural details, every component seems to offer an adequate accuracy increase. The use of mixing when encoding and decoding has a clear architectural benefit. Interestingly, the decomposition and gating mechanics assist the model but underperform based on their theoretical benefits. This signifies that, in general retail demand problems, they are not integral. Nonetheless, given specific retail sectors that deal with highly trendy or seasonal items, both mechanics do satisfy the need for such analysis. Additionally, when analyzing the produced stock, the decomposition mechanic is pivotal in avoiding massive theoretical understocking.
It is also important to discuss some technical details. The training times of TSMixer, TiDE and D-Dense are practically interchangeable and hyperparameter-dependent whilst both N-BEATS and N-HiTS are approximately twice as slow. The number of practical neural network parameters within the models is very much dependent on the hyperparameter definitions, and the model sizes vary. Regardless, the overall memory footprints of N-BEATS, N-HiTS and TiDE models are the largest as all three must flatten the multivariate matrix to perform operations on the time axis. Both the TSMixer and the D-Dense designs are significantly less memory intensive, with none of the D-Dense additions causing any memory jumps as all new operations are computationally lightweight.
Future research will focus on applying D-Dense in specific retail sectors in which the decomposing substructure can clearly showcase its theoretical potential. Additionally, more advanced convolution techniques, similar to N-HiTS, can be incorporated instead of the simple moving average decomposition process. Non-MLP hybrids may also be considered, specifically LSTM implementations for encoding which is very common in forecasting models.
Author Contributions
Conceptualization, G.T. and A.T.; methodology, G.T.; software, G.T.; validation, G.T. and A.T.; formal analysis, G.T.; investigation, G.T.; data curation, G.T. and A.T.; writing—original draft preparation, G.T.; writing—review and editing, G.T. and A.T.; visualization, G.T.; supervision, A.T.; project administration, A.T. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The datasets generated during and/or analyzed during the current study are available in the Kaggle repository: M5—https://www.kaggle.com/competitions/m5-forecasting-accuracy/data (accessed on 30 September 2026).
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Su, L.; Zuo, X.; Li, R.; Wang, X.; Zhao, H.; Huang, B. A systematic review for transformer-based long-term series forecasting. Artif. Intell. Rev. 2025, 58, 80. [Google Scholar] [CrossRef] [Scilit]
- Liang, Y.; Ke, S.; Zhang, J.; Yi, X.; Zheng, Y. Geoman: Multi-level attention networks for geo-sensory time series prediction. In Proceedings of the IJCAI’18: 27th International Joint Conference on Artificial Intelligence, Stockholm, Sweden, 13–19 July 2018; AAAI Press: Washington, DC, USA, 2018; pp. 3428–3434. [Google Scholar]
- Rojo-Álvarez, J.L.; Martínez-Ramón, M.; de Prado-Cumplido, M.; Artés-Rodríguez, A.; Figueiras-Vidal, A.R. Support vector method for robust ARMA system identification. IEEE Trans. Signal Process. 2004, 52, 155–164. [Google Scholar] [CrossRef] [Scilit]
- Hong, T.; Fan, S. Probabilistic electric load forecasting: A tutorial review. Int. J. Forecast. 2016, 32, 914–938. [Google Scholar] [CrossRef] [Scilit]
- Miller, C.; Arjunan, P.; Kathirgamanathan, A.; Fu, C.; Roth, J.; Park, J.Y.; Balbach, C.; Gowri, K.; Nagy, Z.; Fontanini, A.D.; et al. The ASHRAE great energy predictor III competition: Overview and results. Sci. Technol. Built Environ. 2020, 26, 1427–1447. [Google Scholar] [CrossRef] [Scilit]
- Huber, J.; Stuckenschmidt, H. Daily retail demand forecasting using machine learning with emphasis on calendric special days. Int. J. Forecast. 2020, 36, 1420–1438. [Google Scholar] [CrossRef] [Scilit]
- Bai, B. Acquiring supply chain agility through information technology capability: The role of demand forecasting in retail industry. Kybernetes 2023, 52, 4712–4730. [Google Scholar] [CrossRef] [Scilit]
- Ghadge, A.; Bag, S.; Goswami, M.; Tiwari, M.K. Mitigating demand risk of durable goods in online retailing. Int. J. Retail Distrib. Manag. 2021, 49, 165–186. [Google Scholar] [CrossRef] [Scilit]
- Krupakar, H. A Review of the Long Horizon Forecasting Problem in Time Series Analysis. arXiv 2025, arXiv:2506.12809. [Google Scholar]
- Lu, G.; Ou, Y.; Wang, Z.; Qu, Y.; Xia, Y.; Tang, D.; Kotenko, I.; Li, W. A survey of deep learning for time series forecasting: Theories, datasets, and state-of-the-art techniques. Comput. Mater. Contin. 2025, 85, 2403–2441. [Google Scholar] [CrossRef] [Scilit]
- Song, X.; Deng, L.; Wang, H.; Zhang, Y.; He, Y.; Cao, W. Deep learning-based time series forecasting. Artif. Intell. Rev. 2024, 58, 23. [Google Scholar] [CrossRef] [Scilit]
- Bai, S. An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modeling. arXiv 2018, arXiv:1803.01271. [Google Scholar]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, L.; Polosukhin, I. Attention is all you need. Adv. Neural Inf. Process. Syst. 2017, 30, 5998–6008. [Google Scholar]
- Wang, Y.; Wu, H.; Dong, J.; Liu, Y.; Wang, C.; Long, M.; Wang, J. Deep time series models: A comprehensive survey and benchmark. IEEE Trans. Pattern Anal. Mach. Intell. 2026, 48, 11642–11662. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zeng, A.; Chen, M.; Zhang, L.; Xu, Q. Are transformers effective for time series forecasting? In Proceedings of the AAAI Conference on Artificial Intelligence, Washington, DC, USA, 7–14 February 2023; Volume 37. [Google Scholar]
- Chen, S.A.; Li, C.L.; Yoder, N.; Arik, S.O.; Pfister, T. Tsmixer: An all-mlp architecture for time series forecasting. arXiv 2023, arXiv:2303.06053. [Google Scholar]
- Das, A.; Kong, W.; Leach, A.; Mathur, S.; Sen, R.; Yu, R. Long-term forecasting with tide: Time-series dense encoder. arXiv 2023, arXiv:2304.08424. [Google Scholar]
- Liu, M.; Zeng, A.; Chen, M.; Xu, Z.; Lai, Q.; Ma, L.; Xu, Q. Scinet: Time series modeling and forecasting with sample convolution and interaction. Adv. Neural Inf. Process. Syst. 2022, 35, 5816–5828. [Google Scholar] [CrossRef] [Scilit]
- Türkoğlu, A.S.; Erkmen, B.; Eren, Y.; Erdinç, O.; Küçükdemiral, İ. Integrated approaches in resilient hierarchical load forecasting via TCN and optimal valley filling based demand response application. Appl. Energy 2024, 360, 122722. [Google Scholar] [CrossRef] [Scilit]
- Wang, H.; Peng, J.; Huang, F.; Wang, J.; Chen, J.; Xiao, Y. Micn: Multi-scale local and global context modeling for long-term series forecasting. In Proceedings of the Eleventh International Conference on Learning Representations, Kigali, Rwanda, 1–5 May 2023. [Google Scholar]
- Luo, D.; Wang, X. Moderntcn: A modern pure convolution structure for general time series analysis. In Proceedings of the Twelfth International Conference on Learning Representations, Vienna, Austria, 7–11 May 2024. [Google Scholar]
- Wu, H.; Hu, T.; Liu, Y.; Zhou, H.; Wang, J.; Long, M. Timesnet: Temporal 2d-variation modeling for general time series analysis. arXiv 2022, arXiv:2210.02186. [Google Scholar]
- Huang, Y.; Zhou, C.; Cui, K.; Lu, X. A multi-agent reinforcement learning framework for optimizing financial trading strategies based on Times Net. Expert Syst. Appl. 2024, 137, 121502. [Google Scholar] [CrossRef] [Scilit]
- Zhou, H.; Zhang, S.; Peng, J.; Zhang, S.; Li, J.; Xiong, H.; Zhang, W. Informer: Beyond efficient transformer for long sequence time-series forecasting. In Proceedings of the AAAI Conference on Artificial Intelligence, Online, 2–9 February 2021; Volume 35. [Google Scholar]
- Wu, H.; Xu, J.; Wang, J.; Long, M. Autoformer: Decomposition transformers with auto-correlation for long-term series forecasting. Adv. Neural Inf. Process. Syst. 2021, 34, 22419–22430. [Google Scholar]
- Zhou, T.; Ma, Z.; Wen, Q.; Wang, X.; Sun, L.; Jin, R. Fedformer: Frequency enhanced decomposed transformer for long-term series forecasting. In Proceedings of the International Conference on Machine Learning, Baltimore, MD, USA, 17–23 July 2022; Volume 162. [Google Scholar]
- Liu, S.; Yu, H.; Liao, C.; Li, J.; Lin, W.; Liu, A.X.; Dustdar, S. Pyraformer: Low-Complexity Pyramidal Attention for Long-Range Time Series Modeling and Forecasting. In Proceedings of the Tenth International Conference on Learning Representations (ICLR 2022), Online, 25–29 April 2022. [Google Scholar]
- Oreshkin, B.N.; Carpov, D.; Chapados, N.; Bengio, Y. N-BEATS: Neural basis expansion analysis for interpretable time series forecasting. arXiv 2019, arXiv:1905.10437. [Google Scholar]
- Kasprzyk, M.; Pełka, P.; Oreshkin, B.N.; Dudek, G. Enhanced N-BEATS for mid-term electricity demand forecasting. Appl. Soft Comput. 2025, 182, 113575. [Google Scholar] [CrossRef] [Scilit]
- Challu, C.; Olivares, K.G.; Oreshkin, B.N.; Ramirez, F.G.; Canseco, M.M.; Dubrawski, A. Nhits: Neural hierarchical interpolation for time series forecasting. In Proceedings of the 37th AAAI Conference on Artificial Intelligence, Washington, DC, USA, 7–14 February 2023; Volume 37, pp. 6989–6997. [Google Scholar]
- Lu, Y.; Zhang, R.; Suo, Z.; Zhang, J.; Liu, L.; Min, G. CFTD: Core Fusion Time Series Dense Encoder for Intelligent Prediction with Edge AI in Social IoT Systems. IEEE Internet Things J. 2025, 12, 34979–34991. [Google Scholar] [CrossRef] [Scilit]
- Souto, H.G.; Heuvel, S.K.; Neto, F.L. Time-mixing and feature-mixing modelling for realized volatility forecast: Evidence from TSMixer model. J. Financ. Data Sci. 2024, 10, 100143. [Google Scholar] [CrossRef] [Scilit]
- The Numpy Documentation. Available online: https://numpy.org/ (accessed on 30 September 2026).
- The Pandas Documentation. Available online: https://pandas.pydata.org/ (accessed on 30 September 2026).
- The Scikit-Learn Documentation. Available online: https://scikit-learn.org/stable/ (accessed on 30 September 2026).
- The PyTorch Documentation. Available online: https://pytorch.org/ (accessed on 30 September 2026).
- The M5 Forecasting Competition. Available online: https://www.kaggle.com/competitions/m5-forecasting-accuracy/data (accessed on 30 September 2026).
- Lei, D.; Qi, Y.; Liu, S.; Geng, D.; Zhang, J.; Hu, H.; Shen, Z.J.M. Pooling and boosting for demand prediction in retail: A transfer learning approach. Manuf. Serv. Oper. Manag. 2025, 27, 1779–1794. [Google Scholar] [CrossRef] [Scilit]
- Lei, L.; Li, C. Multi-horizon demand forecasting using hierarchical attention mechanism with learned temporal embeddings. In Proceedings of the 2025 International Conference on Frontiers Technology in Circuits and Systems (FTCS); IEEE: Piscataway, NJ, USA, 2025; pp. 108–114. [Google Scholar]
- Praveena, S.; Prasanna Devi, S. Optimizing retail operations through hybrid machine learning and deep learning techniques in demand forecasting. Cybern. Syst. 2026, 57, 1–43. [Google Scholar] [CrossRef] [Scilit]
- Harvey, D.; Leybourne, S.; Newbold, P. Testing the equality of prediction mean squared errors. Int. J. Forecast. 1997, 13, 281–291. [Google Scholar] [CrossRef] [Scilit]
- Wallström, P.; Segerstedt, A. Evaluation of forecasting error measurements and techniques for intermittent demand. Int. J. Prod. Econ. 2010, 128, 625–636. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.





