Intermittent time series forecasting: local vs global models Stefano Damato, Nicoló Rubattu, Dario Azzimonti, Giorgio Corani Abstract Intermittent time series, characterised by the presence of a significant amount of zeros, constitute a large percentage of inventory items in supply chain. Probabilistic forecasts are needed to plan the inventory levels; the predictive distribution should cover non-negative values, have a mass in zero and a long upper tail. Intermittent time series are commonly forecast using local models, which are trained individually on each time series. In the last years global models, which are trained on a large collection of time series, have become popular for time series forecasting. Global models are often based on neural networks. However, they have not yet been exhaustively tested on intermittent time series. We carry out the first study comparing state-of-the-art local (iETS, TweedieGP) and global models (D-Linear, DeepAR, Transformers) on intermittent time series. For neural networks models we consider three different distribution heads suitable for intermittent time series: negative binomial, hurdle-shifted negative binomial and Tweedie. We use, for the first time, the last two distribution heads with neural networks. We perform experiments on five large datasets comprising more than 40’000 real-world time series. Among neural networks D-Linear provides best accuracy; it also consistently outperforms the local models. Moreover, it has also low computational requirements. Transformers-based architectures are instead much more computationally demanding and less accurate. Among the distribution heads, the Tweedie provides the best estimates of the highest quantiles, while the negative binomial offers overall the best performance. keywords Global models, Intermittent time series, Probabilistic forecasting, Tweedie distribution, Quantile loss 1 Introduction In supply chain and demand planning, it can be necessary to forecast a large number of intermittent time series ( Kolassa 2016 ; Boylan and Syntetos 2021 ) , i.e., non-negative time series which contain zeros and are typically count-valued. Decision making, for instance to set the safety amounts ( Kolassa 2016 ) , requires probabilistic forecasts . Such forecasts call for specific modelling approaches, whose predictive distribution cover non-negative values, has a mass in zero and a long upper tail. Most forecasting models are instead designed for smooth time series, which are real-valued and assume Gaussian errors. Probabilistic models for intermittent time series, including the most recent ones ( Svetunkov and Boylan 2023 ; Damato et al. 2025 ) , are trained locally , i.e., on individual time series. A recent approach is instead to train global forecasting models ( Montero-Manso and Hyndman 2021 ; Hewamalage et al. 2022 ) , by pooling the data of all series in a data set and fitting a single forecasting function ( Januschowski et al. 2020 ) . It has been theoretically and empirically shown that global models perform equally well or even better than a collection of local models, even if the time series of the data set are unrelated ( Montero-Manso and Hyndman 2021 ) . Indeed, neural networks obtained only mixed results when trained locally; instead, they achieve state of the art performance ( Benidis et al. 2022 ) if trained globally. So far, the empirical comparisons between local and global models has mostly focused on point forecast, rather than on predictive distributions, and on smooth time series. Moreover, some results involving deep learning forecasting models considered inadequate data set and benchmarks, as pointed out by Hewamalage et al. 2023 . We carry out the first comparison of probabilistic global and local models for intermittent time series, assessing both predictive accuracy and computational requirements. As local models, we select the simple in-sample quantiles and two advanced models: iETS ( Svetunkov and Boylan 2023 ) and TweedieGP ( Damato et al. 2025 ) . Such models provide challenging baselines for the neural networks models introduced later. There is no established global model architecture for forecasting intermittent time series. We compare feed-forward neural networks ( Babai et al. 2020 ) , DeepAR ( Salinas et al. 2020 ) and three types of transformers: vanilla ( Vaswani et al. 2017 ) , Informer ( Zhou et al. 2021 ) and Autoformer ( Wu et al. 2021 ) . Moreover, we consider D-Linear ( Zeng et al. 2023 ) , a relatively shallow architecture which compares favourably to transformers-based models on smooth time series. We leave for future research the comparison with LLM-based forecasting models ( Tan et al. 2024 ) . On global models we also compare different distribution heads suitable for intermittent time series (for local models, such analysis has been already carried out in previous papers). We consider the negative binomial distribution, widely used with local models ( Kolassa 2016 ; Kolassa 2022 ; Long et al. 2025 ) , the hurdle-shifted negative binomial (HSNB, Feng 2021 ) and the Tweedie distribution ( Dunn and Smyth 2005 ) . To the best of our knowledge, we use the Tweedie and the HSNB distribution head for the first time. The Tweedie has been used in ( Damato et al. 2025 ) as predictive distribution for local models, showing better estimates of the highest quantiles compared to the negative binomial distribution. We assess both the accuracy and the computational cost and the reliability of the models. on more than 40.000 time series from five data sets from retail and supply chain. 2 Probabilistic models for intermittent time series We consider a dataset containing n time series and we denote the i -th time series by \mathbf{y}^{i} , i=1,\ldots,n and its value at time t by y_{t}^{i} . We denote by \mathbf{y}_{s:t}^{i} the sequence of observations of the time series from time s to t : \mathbf{y}_{s:t}^{i}:=\{y^{i}_{s},\dots,y_{t}^{i}\}. We denote the length of the training set by T and the forecast horizon by h . A probabilistic forecast consists of a predictive distribution (or forecast distribution ) for the next h time instants of the i -th time series p(y^{i}_{T+1},\ldots,y^{i}_{T+h}\mid\mathbf{y}_{1:T}^{i}). A probabilistic model is a function which returns the above forecast distribution. Models comprise learnable parameters, which we call model parameters . We differentiate between local and global models depending on how the model parameters are learned: local models are trained on individual time series, while global models are trained on a large set of time series ( Januschowski et al. 2020 ) . 2.1 Local models Intermittent time series are commonly forecast ( Hyndman and Athanasopoulos 2021 , Sec 13.8) using local models, i.e., by learning an independent model on each time series. Such models can be trained with little amount of training data but do not exploit the availability of large amount of time series. Among the local models we select a baseline (in-sample quantiles) and two advanced approaches (iETS and TweedieGP). In-sample quantiles This model assumes the time series to be constituted by i.i.d. samples. The predictive distribution for each time step is the empirical distribution of the data; thus, the quantile of the h -steps ahead predictive distribution equals the quantile of the training data. In-sample quantiles are immediate to compute; despite their simplicity, they provide competitive probabilistic forecasts for intermittent time series, see, e.g., Kolassa 2016 ; Spiliotis et al. 2021 ; Long et al. 2025 . iETS iETS ( Svetunkov and Boylan 2023 ) specializes the ETS model ( Hyndman and Athanasopoulos 2021 , Chap.8) to intermittent time series. Based on Croston’s decomposition ( Croston 1972 ) , iETS identifies, for each observation y_{t} , the demand d_{t} and the occurrence o_{t} : \displaystyle d_{t}=\begin{cases}y_{t}&\text{if }y_{t}>0\\ \text{undefined}&\text{otherwise,}\end{cases}\qquad o_{t}=\mathbbm{1}{(y_{t}>0)}, where \mathbbm{1} stands for the indicator function. This decomposition implies that y_{t}=o_{t}\cdot d_{t} , for each t . iETS forecasts demand and occurrence with independent multiplicative exponential smoothing models. The best model for the occurrence is selected among five different candidates via AIC. Its predictive distribution is bimodal, being constituted by a mass in zero (the Bernoulli probability of non-occurrence) and a Gamma distribution for the positive values of demand. The multi-step ahead mean forecast is obtained via closed-form formulae, but h -step ahead probabilistic forecasts are obtained with autoregressive sampling; this is fast since the model is simple. TweedieGP TweedieGP ( Damato et al. 2025 ) is a Bayesian model for forecasting intermittent time series. It is trained with a Bayesian update: a Gaussian Process prior ( Rasmussen and Williams 2006 ) is set on the latent function, the likelihood is assumed to be a Tweedie distribution (see Sec. 2.4 ) and the posterior distribution of latent function distribution is computed with Bayes theorem. Fast training times are achieved thanks to variational methods ( Hensman et al. 2015 ) . Damato et al. 2025 compares Tweedie and negative binomial likelihood for the Gaussian process; they report better forecasts with the Tweedie, especially on the highest quantiles. To forecast h -steps ahead, the latent function distribution is computed in closed form for the next h steps. For each future time step, samples of the latent function are drawn and set as the mean of the Tweedie likelihood to sample the predictive distribution. This way, the predictive distribution of TweedieGP accounts for the uncertainty of the GP latent variable. 2.2 Global models A global model is trained using all the time series of the data set ( Hewamalage et al. 2022 ) . We focus on global univariate models , which forecast each time series independently. We consider global models based on neural networks ( Benidis et al. 2022 ) , as in general they achieve the best performance. With a slight abuse of terminology, we divide them into shallow (feed-forward and D-Linear) and deep (DeepAR and transformers-based architectures). Our models are probabilistic and thus they have a distribution head ; first, we introduce the architectures and then we discuss the distribution heads. Since they are trained using a large amount of data, global models do not receive the entire series as input for training and prediction, but a only subset of data points ( context window ). Feed-forward neural networks (FNNs) We use the same architecture of Montero-Manso and Hyndman 2021 , namely 5 layers of 32 units each, with ReLu activations. While the model of Montero-Manso and Hyndman 2021 only returns point forecasts, we adapt it to intermittent demand by equipping it with a distribution head. The model jointly outputs the parameters of the predictive distributions of the next h steps, \theta_{T+1},\dots,\theta_{T+h} , which we call distributional parameters . We refer to this model as a multi-horizon architecture. The probabilistic forecast for the next h -steps is immediate to compute given the context window. D-Linear D-Linear ( Zeng et al. 2023 ) decomposes the time series into trend and remainder, using a moving average kernel with unit stride. Then, each signal passes through a linear layer; the sum of their outputs composes the last layer before the distribution head. As the FNNs, D-Linear is multi-horizon, i.e., it returns the parameters h -steps-ahead predictive distribution. The trend-remainder decomposition is inspired by the Autoformer ( Wu et al. 2021 ) . DeepAR Recurrent neural networks (RNNs) are competitive global models, particularly when LSTM cell units are used ( Hewamalage et al. 2021 ; Bandara et al. 2019 ) . DeepAR ( Salinas et al. 2020 ) is a LSTM-based model, designed for probabilistic forecasting. To forecast intermittent time series, Salinas et al. 2020 couples this architecture with a negative binomial distribution head; we will instead consider different distribution heads. DeepAR adopts autoregressive sampling to forecast h -steps ahead. To do so, it draws a value from the predictive distribution for time t+1 ; it then appends the sampled value to the context window and treats it as an input to compute the predictive distribution for time t+2 . It repeats this process up to time t+h ; the final output is a sample path of a future trajectory. Autoregressive sampling with such a large model is, however, computationally demanding; the number of simulated trajectories should to be decided by considering also the computational cost. Transformers The transformer ( Vaswani et al. 2017 ) consists of an encoder-decoder structure: the encoder processes the input sequence to generate hidden representations, while the decoder generates the output sequence based on these representations. Multi-head attention ( Vaswani et al. 2017 ) enables the model to capture dependencies across long distances in a sequence. We refer to this model as the vanilla transformer , being it the standard formulation. The model predicts the parameters of the one-step-ahead predictive distribution and adopts autoregressive sampling for the following time steps. This applies also to the Informer and Autoformer discussed in the following. Informer The multi-head self-attention component of the transformer is computationally expensive. The Informer ( Zhou et al. 2021 ) speeds up the computations in forecasting by sparsifying the matrices of the self-attention. This decreases the the cost of passing the data from quadratic, vanilla transformer, to log-linear with respect to the context length. Autoformer The Autoformer ( Wu et al. 2021 ) is another transformer-based architecture designed for forecasting. It decomposes the original time series into trend and remainder; this decomposition is applied also by D-Linear. This decomposition is performed repeatedy across different steps of a transformer. Additionally, Autoformer replaces the self-attention with an auto-correlation mechanism, which uses the Fast Fourier Transform to focus on the data with the strongest temporal correlations. 2.3 Distribution heads Our neural networks are probabilistic and thus have a distribution head. Denoting by \mathbf{h}\in\mathbb{R}^{d} the last layer of the model before the output, we linearly map \mathbf{h} on the value of each parameter \theta of the forecast distribution. We denote the parameters of the linear map by \mathrm{lin}_{\theta} . Some distributional parameters need to be non-negative or to lie within the unit interval. In these cases, after the linear map, we either apply the softplus function ( \mathrm{softplus}(x)=\log(1+e^{x}) ) or the sigmoid function ( \mathrm{sigmoid}(x)=\frac{1}{1+e^{-x}} ). In the following we discuss the relevant forecast distributions and how we designed their distribution heads. 2.4 Forecast distributions A distribution for intermittent time series should have both a probability mass in zero and a long upper tail to quantify the probability of large spikes in demand. Negative binomial The negative binomial has both characteristics; it is thus often used with intermittent demand ( Kolassa 2016 ; Long et al. 2025 ) . We write: Y\sim\mathrm{NegBin}(r,\mathrm{p}), where \mathrm{p}\in(0,1) and r>0 . The distribution can have a long upper tail even when its mean is low, because of overdispersion : \mathrm{Var}[Y]=\frac{\mathbb{E}[Y]}{p}>\mathbb{E}[Y] . For this flexibility it generally preferred ( Kolassa 2016 ) to the Poisson distribution when modeling intermittent time series; it is is anyway bound to be unimodal. The distribution head is: r=\mathrm{softplus}(\mathrm{lin}_{r}(\mathbf{h})),\quad\mathrm{p}=\mathrm{sigmoid}(\mathrm{lin}_{\mathrm{p}}(\mathbf{h})). Hurdle-shifted negative binomial The data of intermittent time series have sometimes a bimodal distribution, with a peak mass in zero and a second positive mode corresponding to most frequent demand size. It thus makes sense to consider a bimodal distribution head for the predictive distribution. We consider two bimodal distribution heads: the hurdle-shifted negative binomial (HSNB) and the Tweedie. Both are used here for the first time. The hurdle-shifted negative binomial (HSNB) ( Feng 2021 ) is a bimodal generalization of the negative binomial. An independent Bernoulli random variable provides the probability ( 1-\pi ) of zero; the negative binomial distribution, observed with probability \pi , is shifted by one unit to model the positive demand. Given Z\sim\mathrm{NegBin}(r,p) and O\sim\mathrm{Ber}(\pi) , the hurdle-shifted negative binomial variable is given by Y=O\cdot(1+Z) , which we denote by: Y\sim\mathrm{HSNB}(\pi,r,\mathrm{p}) with \mathbb{P}(Y=0)=1-\pi and for y>0 , \mathbb{P}(Y=y)=\pi\cdot\mathbb{P}(Z=y-1) . Its parameters are \theta=\{\pi,r,\mathrm{p}\} . The shape of the shifted negative binomial, controlled by r and \mathrm{p} , is independent from the mass in zero, controlled by \pi . The distribution head is: \pi=\mathrm{sigmoid}(\mathrm{lin}_{\pi}(\mathbf{h})),\ r=\mathrm{softplus}(\mathrm{lin}_{r}(\mathbf{h})),\ \mathrm{p}=\mathrm{sigmoid}(\mathrm{lin}_{\mathrm{p}}(\mathbf{h})). Tweedie The Tweedie distribution ( Dunn and Smyth 2005 ) is bimodal with a peak mass in zero and a continuous long-tailed density on the positive real values. Specifically, Y is distributed as a Tweedie if it is an exponential dispersion model ( Jørgensen 1987 ) with the following power relationship between mean and variance: \operatorname{Var}[Y]=\phi\operatorname{E}[Y]^{\rho}, where \phi>0 is the dispersion and \rho\in(1,2) is the power. We denote the mean by \mu=\operatorname{E}[Y]>0 and we write Y\sim\operatorname{Tw}(\mu,\phi,\rho). Differently from the HSNB, all distributional parameters affect both the probability in zero and the density of the positive demand. Another difference is that its density is continuos (Fig. 1 ). Thus, it can be the only suitable distribution head if the intermittent time series is real-valued. To the best of our knowledge, ours is the first implementation of neural networks with a Tweedie distribution head. This is parametrised by \theta=\{\mu,\phi,\rho\} with: \mu=\mathrm{softplus}(\mathrm{lin}_{\mu}(\mathbf{h})),\ \phi=\mathrm{softplus}(\mathrm{lin}_{\phi}(\mathbf{h})),\ \rho=1+\mathrm{sigmoid}(\mathrm{lin}_{\rho}(\mathbf{h})). The Tweedie loss is often used to train neural networks ( Jeon and Seong 2022 ) and tree models ( Januschowski et al. 2022 ) . However, it is only a rough approximation of the Tweedie density and models trained in this way only return point forecasts; see Damato et al. 2025 for a detailed discussion. Here, we use a fully evaluated Tweedie distribution. Figure 1 : Every distribution above has mean 3 and variance 15. This uniquely determines the parameters of the negative binomial, while different parameterizations are possible for the Tweedie and the HSNB. The distributions in dark grey have approximately the same mass in zero and similar shape. Instead, the light grey distributions are examples of bimodal HSNB and Tweedie. The HSNB is count-valued, while the Tweedie is absolutely continuous on positive values. Training We denote the training set length as T and the data set of time series as \mathbf{y}_{1:T+h} . We train the models on \mathbf{y}_{1:T-h} ; we use \mathbf{y}_{T-h+1:T} as validation set and \mathbf{y}_{T:T+h} as test set. Both training and forecast are performed by processing batches of time series. A batch B is a collection (i,w_{i}) , where i is the index of a time series and w_{i}\in\{1,\ldots,T\} is the last index of the context window. Model parameters are trained by minimizing the negative log-likelihood of the predictive distribution on the training set summed over the different batches: \mathcal{L}=-\sum_{(i,w_{i})\in B}\sum_{t=1}^{h}\log p(y^{i}_{w_{i}+t}|\theta^{i}_{w_{i}+t}) (1) where \theta^{i}_{w_{i}+t} is the output of an evaluation of the model at \mathbf{y}^{i}_{w_{i}-c+1:w_{i}} and c is the context length, which defines how far the training looks back. This loss \mathcal{L} is minimized by using Adam optimizer ( Kingma and Ba 2017 ) . We use the negative log-likelihood on the validation set as a criterion for early stopping. Scaling When training global models, it is important to bring all time series on the same scale ( Montero-Manso and Hyndman 2021 ; Salinas et al. 2020 ) . Dealing with intermittent time series, we cannot simply scale the time series before training: integer-valued predictive distributions can be only evaluated on integer data. We overcome the problem as follows. Denoting by s_{i} is the scale factor of the i -th time series, we divide the autoregressive input of i -th time series by s_{i} . To evaluate the likelihood function of Eq. ( 1 ) and to generate the forecasts on the test set we rescale by s_{i} the parameters of the predictive distribution which are scale-dependent; see Appendix 7 for more details. We use the mean of the non-zero values of the i -th time series as s_{i} . Instead, the mean of the time series is not a suitable scale factor: on intermittent time series it can much smaller than one, thus inflating the positive values. 3 Experiments Model name Implementation Forecasting approach iETS smooth ( R ) Autoregressive (fast, 10,000 samples) TweedieGP TweedieGP (python) Multi-horizon (10,000 samples) FNN gluonts (python) Multi-horizon (10,000 samples) D-Linear gluonts (python) Multi-horizon (10,000 samples) DeepAR gluonts (python) Autoregressive (200 samples) Transformers HuggingFace transformers (python) Autoregressive (200 samples) Table 1 : Summary of model implementations. We list the used packages and forecasting approaches in Tab. 1 . For local and shallow global models, we used no covariates. When training deep global models, we include time-based covariates such as lagged values, day of the week or month of the year, time from the start of the time series, and time series IDs. We take the Tweedie distribution head from Damato et al. 2025 ;it is based on PyTorch. We developed our PyTorch implementation of the HSNB distribution head [available in the code submitted to reviewers]. Additional details about the model’s hyper-parameters are reported in Appendix 8 . 3.1 Datasets We consider the following datasets: M5 : daily item sales from Walmart stores ( Makridakis et al. 2022 ) ; UCI : daily item sales from an online store ( Türkmen et al. 2021 ) ; Auto : monthly vehicle sales ( Türkmen et al. 2021 ) ; Carparts : monthly car parts sales ( Hyndman 2023 ) ; RAF : monthly spare parts demand for British Royal Air Force ( Syntetos et al. 2005 ) . In Tab. 2 we report some summary statistics including the average demand interval (ADI) and squared coefficient of variation (CV 2 ). Larger ADI correspond to sparser time series, while larger CV 2 correspond to more volatile time series. Dataset # of ts Freq. T h Context Avg. ADI Avg. CV 2 M5 30490 D 1941 28 112 6 0.4 UCI 1191 D 76 14 28 10 1.2 Auto 3000 M 18 6 12 1 0.4 Carparts 2493 M 45 6 12 6 0.3 RAF 5000 M 72 12 36 10 0.6 Table 2 : The considered datasets; ”D” stands for daily and ”M” for monthly. We expect M5 to be the most favorable data set to large global models, as it contains more than 30’000 daily time series, each spanning over 5 years. Carparts contains one order of magnitude less time series, which are also notably shorter (also because they are monthly); they have anyway similar intermittency to M5. UCI and RAF are the most intermittent datasets; the latter shows large demand spikes. Auto has the shortest time series, with length of 18 months. 3.2 Forecast evaluation We evaluate probabilistic forecasts with the quantile loss , which is a proper scoring rule ( Gneiting and Raftery 2007 ) : \displaystyle\text{QL}_{q}(y,\hat{y}_{q})=\begin{cases}2(1-q)\cdot\big(\hat{y}_{q}-y\big)&\text{ if }y<\hat{y}_{q}\\ 2q\cdot\big(y-\hat{y}_{q}\big)&\text{ if }y\geq\hat{y}_{q}\ ,\end{cases} where \hat{y}_{q} is the quantile q of the predictive distribution and y is the observation. We consider q\in\{0.50,0.80,0.90,0.95,0.99\} , evaluating the upper tail of the distribution but not the lower quantiles, which are generally zero. The quantile loss is scale-dependent. To average the results across time series, we scale it by the quantile loss of the in-sample quantile on training data ( Damato et al. 2025 ) : \mathrm{sQL}_{q}(y,\hat{y}_{q})=\frac{\mathrm{QL}_{q}(y,\hat{y}_{q})}{\frac{1}{T}\sum_{t=1}^{T}\mathrm{QL}_{q}(y_{t},\mathrm{ISQ}_{q})}. (2) We also report the RMSSE, i.e., the root mean squared error between the observation and the mean of the predictive distribution, scaled by the in-sample mean squared error of the naïve forecast, whose prediction equals the last observation ( Makridakis et al. 2022 ) . 4 Results Computational times Figure 2 : Training and prediction times (in minutes) for neural networks. Appendix 6 reports the exact values, as well as the amount of multiply-accumulate operations (MACs) and the number of learnable parameters of each model. Here we only discuss the computational times with the negative binomial head; those obtained with different distribution heads are similar (Appendix 6 ). We report in Fig. 2 the computational times for training and generating forecasts. To make sure that all models run on the same machine, such times are recorded on the CPU of a Macbook Pro M3 laptop (with Apple M3 Pro chip, 11 cores, 36GB). Transformer-based models are 3-10 times slower than FNNs and D-Linear. Thus they have the largest computational costs; yet, as we show in the following, they do not produce the most accurate forecasts. We also notice that the training times of DeepAR are in line with those of vanilla transformer and Informer, but its prediction times are an order of magnitude smaller. Autoformer has faster inference time than transformer and Informer, but it is still slower than DeepAR. Transformers are not effective Figure 3 : Scaled quantile loss (q=0.9) of the global models with negative binomial head. For each model we present the results obtained with 10 traning runs. We now compare the accuracy of different architectures with the negative binomial head. We train each model 10 times to quantify the variability of the model performance across different training runs. Generally such models are trained only once to reduce the computational load; the performance achieved in that case would thus randomly vary among the values we report. In Fig. 3 , we show the results on the quantile 0.9 as an example. DeepAR and shallow models are clearly preferably to transformer-based architectures, because of lower average loss and lower variability. The same conclusion is can be drawn based at the exhaustive results of Appendix 9 , referring to all metrics and distribution heads. We also notice that Informer suffers from large variability across different training runs and that the choice between Autoformer and vanilla Transformer, depends on the specific dataset and quantile. Our results complement with those of Zeng et al. 2023 , who already questioned the suitability of transformers for time series forecasting, though only considering point forecast on smooth time series. An explanation of the unsatisfactory performance of transformers might be that the context window contains little signal in the case of intermittent time series. Indeed, Chen et al. 2025 note that transformers work better at finding patterns between different series than within the same series. In the following we thus drop transformers from our analysis. FNNs vs DeepAR vs D-Linear M5 UCI Auto Carparts RAF Intercept 1.61 2.96 1.19 0.94 0.97 \mathbf{c}_{\mathrm{model}} [Feed-forward] 0.05 0.23 0.03 0.08 0.05 \mathbf{c}_{\mathrm{model}} [DeepAR] 0.04 0.09 -0.03 0.09 0.05 \mathbf{c}_{\mathrm{metric}} [sQL0.8] -0.35 -0.19 0.12 -0.09 0.01 \mathbf{c}_{\mathrm{metric}} [sQL0.9] -0.53 -0.50 0.26 -0.05 0.11 \mathbf{c}_{\mathrm{metric}} [sQL0.95] -0.62 -0.51 0.47 -0.05 0.24 \mathbf{c}_{\mathrm{metric}} [sQL0.99] -0.61 1.46 1.18 0.48 1.19 \mathbf{c}_{\mathrm{metric}} [RMSSE] -0.77 -1.51 -0.34 -0.41 -0.32 Table 3 : ANOVA coefficients for the comparison of neural networks architectures with D-Linear. For models entries, positive coefficients imply higher loss than D-Linear, and vice versa. We boldface coefficients that are significantly different ( p <0.05) from zero. We report in light grey the coefficients of the quantile levels, which do not need to be interpreted. We now statistically compare FNNs, DeepAR and D-Linear. For each data set, we test the significance of the difference between them, using an ANOVA test; namely we fit a linear regression whose response variable is the score achieved by the model and whose categorical covariates are the model type and the metric type. The regression formula is y=c_{0}+\mathbf{c}_{\mathrm{model}}^{\top}\mathbf{I}_{\mathrm{model}}+\mathbf{c}_{\mathrm{metric}}^{\top}\mathbf{I}_{\mathrm{metric}}+\varepsilon, where \varepsilon\sim\mathcal{N}(0,\sigma^{2}) is Gaussian noise, \textbf{I}_{\mathrm{model}} and \textbf{I}_{\mathrm{metric}} are one-hot encoded vectors referring to model type ({FNNs, DeepAR}) and metric type \{ sQL q for q\in\{0.8,0.9,0.95,0.99\} , RMSSE \} . The intercept c_{0} corresponds to the reference levels, D-Linear and sQL 0.5 ; the coefficients \mathbf{c}_{\mathrm{model}} represent the average score difference of FNNs and DeepAR compared to D-Linear. The coefficients \mathbf{c}_{\mathrm{metric}} represent the average difference of the metric value with respect to sQL 0.5 ; we do not interpret them, but they are needed in the model to match the ANOVA assumption of homogeneous variance of the residuals, since the different metrics might be on a different scale. We fit the model is fit having available ten independent results for each pair model/metric. The model coefficients are shown in Tab. 3 . A positive coefficient implies worse performance than D-Linear (higher loss), and vice versa. Feed-forward neural networks achieve worse scaled quantiles loss compared to D-Linear on every data set; in most cases, the difference is statistically significant. DeepAR is more competitive than FNNs but it is also outperformed by D-Linear. Similar conclusions can be drawn by looking at the results obtained with the Tweedie or the HSNB distribution head (Appendix 10 ). Overall we identify D-Linear as the recommended architecture, also thank to its its low training and prediction times (Sec. 4 ). Indeed, the effectiveness of the D-Linear model can be attributed to the denoising effect of the moving average kernel, which extrapolates the mean signal from the time series. Metric Head M5 UCI Auto Carparts RAF Intercept 1.63 3.07 1.16 0.98 1.00 sQL0.5 Tweedie 0.02 0.0 0.04 0.0 0.0 sQL0.5 HSNB 0.0 -0.01 0.01 -0.01 0.0 sQL0.8 -0.35 -0.27 0.12 -0.16 0.0 sQL0.8 Tweedie 0.02 0.01 0.04 -0.02 0.0 sQL0.8 HSNB 0.0 -0.1 0.02 -0.03 0.0 sQL0.9 -0.56 -0.72 0.28 -0.09 0.07 sQL0.9 Tweedie 0.05 -0.08 -0.01 0.09 0.08 sQL0.9 HSNB 0.01 -0.17 0.02 0.04 0.1 sQL0.95 -0.66 -0.77 0.52 -0.14 0.13 sQL0.95 Tweedie 0.05 0.65 -0.08 0.12 0.14 sQL0.95 HSNB 0.02 -0.36 0.02 0.09 0.05 sQL0.99 -0.67 1.41 1.30 0.45 1.19 sQL0.99 Tweedie -0.01 -0.12 -0.28 -0.23 -0.32 sQL0.99 HSNB 0.01 1.01 -0.01 0.11 0.02 RMSSE -0.77 -1.53 -0.33 -0.41 -0.35 RMSSE Tweedie 0.01 -0.01 0.01 0.02 0.01 RMSSE HSNB 0.01 0.07 0.03 0.02 0.03 Table 4 : Coefficients of the ANOVA run on the results of D-Linear models. The predictors are given by the interaction between metric and distribution head. The intercept contains RMSSE among metrics, and NegBin among heads. Assessing the distribution head We now study the effect of the distribution head on D-Linear, comparing negative binomial, Tweedie and HSNB. We run again an ANOVA model whose regressors are the interaction between the metric indicator variable and the distribution indicator variable, using RMSSE and the negative binomial distribution head as reference levels. The model is fit on 30 observations for each metric, corresponding to 30 experiments with D-Linear (10 for each distribution head). Thus negative coefficients represent improvements, and positive coefficients represent a worsening, with respect to the negative binomial head. Consistently with Damato et al. 2025 , the Tweedie is the best head on the highest quantile; this can be attributed to its flexible tails. In contrast, the hurdle-shifted negative binomial is the worst on this quantile. However no distribution head consistently outperforms the others on all data sets and across metrics. We thus recommend to select the head by cross-validation, looking at the most relevant quantiles for the application at hand. In the following we adopt the negative binomial head as it requires one less parameters than the other heads. D-Linear vs local models Figure 4 : Local models vs D-Linear model with negative binomial head. The whiskers on the last column display the range between the best and the worst of ten runs of the model. Data set ISQ iETS TweedieGP D-Linear M5 <1 475 1173 79 UCI <1 5 6 2 Auto <1 8 12 1 Carparts <1 7 12 1 RAF <1 21 32 2 Table 5 : Computational times (minutes) including training and prediction, comparing local models with D-Linear. In Fig. 4 we show the scaled quantile loss, comparing D-Linear with negative binomial head against local methods (ISQ, iETS and TweedieGP). TweedieGP generally provides the best performance among local models. However on the RAF data set, which is both highly sparse and volatile (Tab 2 ), the best local model is the in-sample quantiles. Yet, the most important result is the better performance of D-Linear compared to local models on the upper part of the forecast distribution (quantiles 0.8, 0.9, 0.95). At the extreme percentile (0.99), TweedieGP is competitive, however, without outperforming D-Linear. RMSSE is an exception: local methods outperform D-Linear on three data sets out of five. In general, these results confirm the superiority of the global approach also on intermittent time series, as long as too complex architectures are avoided. The results on M5 constitute an exception. The large number of series, their length, and the low volatility of the demand make allow all global models (including transformer-based ones) to be generally stable and effective (Appendix 9 ). However, shallow models are still preferable to deep ones, both in terms of computational cost and accuracy. In particular, D-Linear is very stable and outperforms local model on all metrics. The other dataset on which D-Linear outperforms local models across all quantiles is Carparts, which has low values of CV 2 too. Although less data is available, the demand size is very low, and therefore the scaled quantile loss does not give large penalties. On the other data sets, D-Linear generally outperforms local models. Few exceptions can be made: on the RAF data set, which is very sparse and has large demand spikes, the in-sample quantiles provides the best forecasts for different quantiles. On the Auto data set, TweedieGP is the most effective method on quantiles 0.9 and 0.95; this data set is the one containing the shortest time series, and, for this reason, it is the data set on which even D-Linear is less stable. Notably, local models are more competitive on data sets where the CV 2 is larger. Tab. 5 shows that D-Linear is also preferable in terms of computational overhead: indeed, TweedieGP is the most expensive local method and its training and prediction times are one order of magnitude larger than those of D-Linear. The cost of local models can easily be reduced by parallelisation ( Januschowski et al. 2020 ) , but this requires an appropriate infrastructure. To further reduce running times with respect to D-Linear, in-sample quantiles can be used, as their running times are almost immediate, and they can even outperform D-Linear in few cases (e.g. RMSSE on UCI, Auto and RAF data sets, or quantile 0.99 on RAF data set). Furthermore, we discussed above that deep neural models may suffer of instability, and that multiple runs may be necessary to obtain reliable results. This is not the case of D-Linear, which shows very stable performances (see the whiskers in Fig. 4 ); we discuss in Appendix 12 that the performance is stable with respect to the context length, an important hyperparameter. 5 Conclusions We performed the first comparison of local and global models for intermittent time series forecasting. We assessed both their accuracy (on multiple quantile levels) and computational requirements. Deep global model have a substantially higher computational cost. Moreover, the performance of transformers-based models is affected by large variability across different training runs. In general, complex choices in terms of distribution head and neural architecture do not provide a clear improvement in the results. Indeed, experiments have shown that a simple model (D-Linear) is preferable to both state-of-the-art RNNs (DeepAR) and transformers both in terms of accuracy and computational costs. As for the distribution head, we did not see any compelling reasons to prefer a Tweedie or a HSNB over the widely used negative binomial. However, real valued intermittent time series, for instance obtained multiplying the sales of an item to its price, can only be modelled using Tweedie distributions. We applied existing methods off-the-shelf with minimal hyper-parameter tuning. We are aware that, in certain applications, the use of complex regularisation techniques and hyper-parameter selection can further enhance the performance of large neural architectures. However, this would require a massive computational overhead and is out of our scope. In conclusion, we recommend a simple model (D-Linear), coupled with a negative binomial likelihood or a Tweedie distribution head if one is concerned with the highest quantiles. It generally provides more accurate forecasts and faster training times than local models and than other neural networks competitors. 6 Computational times dataset model training (mins) prediction (mins) MACs # parameters M5 Feed-forward 45.0 78.0 9e+06 3e+04 DeepAR 63.1 75.0 1e+09 3e+04 Informer 73.9 334.4 8e+08 8e+04 Autoformer 208.0 126.2 2e+09 9e+04 D-Linear 10.7 77.8 6e+06 2e+04 UCI Feed-forward 2.0 0.1 5e+06 2e+04 DeepAR 4.7 0.2 3e+08 3e+04 Transformer 5.5 4.0 4e+08 7e+04 Informer 5.4 3.5 3e+08 8e+04 Autoformer 19.9 1.5 6e+08 9e+04 D-Linear 2.1 0.1 3e+06 1e+04 Auto Feed-forward 0.9 0.3 3e+06 1e+04 DeepAR 2.0 0.2 1e+08 2e+04 Transformer 2.7 1.8 2e+08 7e+04 Informer 2.8 1.3 1e+08 8e+04 Autoformer 7.2 1.9 3e+08 8e+04 D-Linear 1.0 0.3 1e+06 5e+03 Carparts Feed-forward 1.1 0.2 3e+06 1e+04 DeepAR 3.5 0.2 1e+08 2e+04 Transformer 6.0 1.4 2e+08 7e+04 Informer 3.2 1.0 1e+08 8e+04 Autoformer 14.6 1.6 3e+08 8e+04 D-Linear 1.1 0.2 1e+06 5e+03 RAF Feed-forward 1.5 0.6 4e+06 2e+04 DeepAR 7.3 0.6 3e+08 2e+04 Transformer 6.6 10.7 4e+08 7e+04 Informer 5.6 9.7 3e+08 8e+04 Autoformer 13.9 4.5 6e+08 8e+04 D-Linear 1.3 0.6 3e+06 1e+04 Table 6: Training and prediction times (in minutes) for neural network models. Final columns show the amount of operations (MACs) per epoch and the number of parameter of each model. We report in Tab. 2 the computational times of the neural networks models included in the experiments. Training and prediction times are obtained using the CPU of an M3 MacBook Pro. MACs (multiply and accumulate operations) count how many basic operations are performed by each model, and do not depend on the machine used in the experiments. They confirm what we observed with elapsed times. The number of parameter shows too that deep neural networks are more computationally demanding than shallow models, and that DeepAR is preferable to Transformers. 7 Scaling for neural networks For neural networks, scaling is computed per batch. Positive values, divided by the scaling factor are no longer necessarily integers. The Tweedie distribution is defined as a continuous distribution on the positive real line, thus the scaling can be applied in a preprocessing step. For integer-supported distributions, such as the negative binomial, the scaling is applied on the parameters ( Salinas et al. 2020 ) . Let r and \mathrm{p} be respectively the count and probability parameters of a negative binomial distribution. Define \mathrm{logit}=\log\left(\frac{\mathrm{p}}{1-\mathrm{p}}\right). This transformed parameter is defined on the real line. Using it instead of \mathrm{p} to parametrize a negative binomial distribution \mathrm{NegBin}\left(y;r,\mathrm{logit}\right) has the advantage that the expected value of the distribution is r\cdot e^{\mathrm{logit}} , thus the predictive parameters are obtained substituting \mathrm{logit}+\log(s) to \mathrm{logit} . The mean under the scaled parameters is s\cdot r\cdot e^{\mathrm{logit}} . The criticality is that, if we could just multiply the predictive samples by the scaling factor s as done with the Tweedie distribution, the variance of the negative binomial should be s^{2}\cdot r\cdot e^{\mathrm{logit}} , but it can be shown that applying this parameter-scaling trick the variance turns out to be (1+s\cdot e^{\mathrm{logit}})\cdot s\cdot r\cdot e^{\mathrm{logit}} . Recalling the formulation in ( 2.4 ), the same strategy has to be applied to the parameter \mathrm{p} of the hurdle-shifted negative binomial distribution. 8 Additional implementation details All neural network architectures are based on PyTorch ( Paszke et al. 2019 ) , as well as the implementation of the distributions, which allow for automatic differentiation with respect to their parameters. The implementation of the Tweedie distribution is taken from Damato et al. 2025 , and is based on PyTorch too. We also provide a PyTorch implementation of the HSNB distribution. These are converted into distribution heads for neural networks wrapping around the transformers and gluonts API. We use the gluonts ( Alexandrov et al. 2020 ) implementation of shallow neural networks, which do not include covariates. Since the predictive parameters are returned as output in a single step, 10.000 samples are drawn. When working with deep models, longer forecasting horizons are achieved through autoregressive sampling. Since this procedure is computationally expensive, we just draw 200 sample paths, the default choice in the gluonts implementation. In these models, additional features such as lagged values, time from the start of the time series, and time series IDs are included as input features. DeepAR models embed the IDs (categorical) feature in a \mathbb{R}^{3} space and stack two LSTM layers of hidden dimension 40. The implementation we used is provided by gluonts ( Alexandrov et al. 2020 ) . Transformer models embed the IDs in a \mathbb{R}^{3} space too, and uses an embedding layer of size 32, followed by 4 encoder layers and 4 decoder layers, each with two heads and a feed-forward layer of dimension 32. Their implementation is taken from HuggingFace’s transformers ( Wolf et al. 2020 ) . All neural network architectures are based on PyTorch ( Paszke et al. 2019 ) , as well as the implementation of the distributions, which allow for automatic differentiation with respect to their parameters. The implementation of the Tweedie distribution is taken from Damato et al. 2025 , and is based on PyTorch too. We also provide a PyTorch implementation of the HSNB distribution. These are converted into distribution heads for neural networks wrapping around the transformers and gluonts API. For local models, we used the implementations released by the authors of the respective papers: for iETS, implemented by the R package smooth ( Svetunkov 2024 ) , the occurrence model is automatically chosen via AIC among five possibilites; TweedieGP is based on the GPyTorch ( Gardner et al. 2018 ) implementation released by the authors, which uses an RBF kernel. No covariates were included in the local models. Local models use all values in the time series. In order to train global models we need to set context length, i.e. how far back the models look to make the prediction. However, since this hyperparameter is expensive to tune, we choose it heuristically as a multiple of the length of the forecast horizon h . We comment in 12 that, provided it is sufficiently large, id does not play a critical role. 9 Full results on transformers Tab. 5 6 , 7 , 8 , and 9 show the behaviour of all neural architectures on different data sets. For each model and distribution head, 10 runs where performed; each scatter dot is a run, and the one filled with colour stands for the one achieving the lowest negative log-likelihood on the validation test. The results are consistent with those displayed in Fig. 3 ; only few exceptions can be made. Figure 5 : Full scores of all the models using all distribution heads, on the M5 data set Figure 6 : Full scores of all the models using all distribution heads, on the UCI data set Figure 7 : Full scores of all the models using all distribution heads, on the Auto data set Figure 8 : Full scores of all the models using all distribution heads, on the Carparts data set Figure 9 : Full scores of all the models using all distribution heads, on the RAF data set 10 Complementary results on ANOVA M5 UCI Auto Carparts RAF Intercept 1.64 3.08 1.21 0.94 0.86 \mathbf{c}_{\mathrm{model}} [Feed-forward] 0.02 0.11 0.14 0.08 0.47 \mathbf{c}_{\mathrm{model}} [DeepAR] 0.07 -0.15 0.0 0.03 -0.04 \mathbf{c}_{\mathrm{metric}} [sQL0.8] -0.35 -0.22 0.12 -0.11 0.02 \mathbf{c}_{\mathrm{metric}} [sQL0.9] -0.53 -0.56 0.23 -0.02 0.16 \mathbf{c}_{\mathrm{metric}} [sQL0.95] -0.64 -0.24 0.39 0.01 0.43 \mathbf{c}_{\mathrm{metric}} [sQL0.99] -0.64 1.05 0.95 0.32 1.46 \mathbf{c}_{\mathrm{metric}} [RMSSE] -0.79 -1.56 -0.37 -0.39 -0.27 Table 7 : An ANOVA model run in the same scenario as Tab. 3 , but using a Tweedie distribution head. M5 UCI Auto Carparts RAF Intercept 1.62 3.13 1.21 0.96 1.02 \mathbf{c}_{\mathrm{model}} [Feed-forward] 0.03 0.08 -0.11 0.07 0.0 \mathbf{c}_{\mathrm{model}} [DeepAR] 0.04 -0.24 -0.05 -0.01 -0.04 \mathbf{c}_{\mathrm{metric}} [sQL0.8] -0.35 -0.26 0.12 -0.10 0.01 \mathbf{c}_{\mathrm{metric}} [sQL0.9] -0.52 -0.62 0.26 -0.04 0.18 \mathbf{c}_{\mathrm{metric}} [sQL0.95] -0.62 -0.83 0.47 -0.03 0.24 \mathbf{c}_{\mathrm{metric}} [sQL0.99] -0.64 1.45 1.11 0.51 1.05 \mathbf{c}_{\mathrm{metric}} [RMSSE] -0.76 -1.52 -0.32 -0.38 -0.31 Table 8 : An ANOVA model run in the same scenario as Tab. 3 , but using a HSNB distribution head. Tab. 7 and Tab. 8 replicate the same ANOVA model used in Tab. 3 , but they consider neural networks coupled with Tweedie and hurdle-shifted negative binomial distribution heads respectively. The results are consistent with those of Tab. 3 , with the only exception that when using the HSNB head, DeepAR can have a slightly better average performance than D-Linear. However, this does not change the conclusions drawn in 4 , since the computational cost of the latter remains notably smaller. Moreover, it is shown in 4 the negative binomial is the most reliable choice as for the distribution head. 11 Full results on best models We show here the results of feed-forward neural networks, D-Linear, and DeepAR, as done in 9 . These data have been used to perform the analisys in Tabs. 3 , 7 , and 8 . Figure 10 : Full scores of Feed-forward neural networks, DeepAR, and D-Linear using all distribution heads, on the M5 data set Figure 11 : Full scores of Feed-forward neural networks, DeepAR, and D-Linear using all distribution heads, on the Auto data set Figure 12 : Full scores of Feed-forward neural networks, DeepAR, and D-Linear using all distribution heads, on the Auto data set Figure 13 : Full scores of Feed-forward neural networks, DeepAR, and D-Linear using all distribution heads, on the Carparts data set Figure 14 : Full scores of Feed-forward neural networks, DeepAR, and D-Linear using all distribution heads, on the RAF data set 12 Sensitivity to context length Figure 15 : Performance of D-Linear model, coupled with different distribution heads, when using different context length. The shaded area represents the scores between the best and the worst performing model out of the 10 runs. The continuous line stands for the best model on the validation set, and the dashed line stands for the average score. Fig. 15 shows how the performance of D-Linear changes with the context length. Consistent with Montero-Manso and Hyndman 2021 , we see that short contexts lead to low forecasting accuracy. But after a certain threshold is reached, the performance is effective. However, in two data sets (UCI and Carparts) the results slightly worsen due to overfitting when the context lenght grows to cover the entire time series.