Abstract
We study the problem of efficiently scaling ensemble-based deep neural networks for multi-step time series (TS) forecasting on a large set of time series. Current state-of-the-art deep ensemble models have high memory and computational requirements, hampering their use to forecast millions of TS in practical scenarios. We propose N-BEATS(P), a global parallel variant of the N-BEATS model designed to allow simultaneous training of multiple univariate TS forecasting models. Our model addresses the practical limitations of related models, reducing the training time by half and memory requirement by a factor of 5, while keeping the same level of accuracy in all TS forecasting settings. We have performed multiple experiments detailing the various ways to train our model and have obtained results that demonstrate its capacity to generalize in various forecasting conditions and setups.
Introduction
In large-scale time series (TS) forecasting—such as predicting electricity demand, retail inventory, or financial trends—Deep Neural Networks (DNNs) have become the state-of-the-art. Specifically, ensemble models like N-BEATS have set new benchmarks for accuracy by combining predictions from multiple models. However, these models face a significant "efficiency gap." Achieving peak performance often requires training hundreds of independent models with varying "lookback windows" (the history the model observes). For organizations managing millions of items, the resulting computational and memory requirements are often prohibitive.
This research introduces N-BEATS(P), a parallelized evolution of the N-BEATS architecture. By re-engineering the model to train multiple ensemble members simultaneously, the authors achieve a 2x speedup in training time and a 5x reduction in memory requirements without sacrificing accuracy.
Methodology: The N-BEATS(P) Architecture
The core innovation of N-BEATS(P) lies in moving away from independent model training toward a multi-head, parallel architecture.
Parallel Input and Shared Parameters
Standard ensembles train separate models for short, medium, and long lookback periods. N-BEATS(P) instead feeds multiple versions of the same time series into a single model simultaneously. The architecture leverages a multi-head design where the majority of parameters are shared across different "heads" corresponding to different lookback lengths.
As shown in the block architecture above, the model uses fully connected (FC) layers to process parallel inputs which are then passed through an FC shared stack of $L$ layers. This shared body allows the model to learn common features efficiently across different lookback scales.
Hierarchical Stacking and Residual Connections
The model follows a hierarchical structure where individual blocks are organized into stacks, which are then combined to produce a global forecast.
Each block produces two outputs: a "backcast" (a reconstruction of the input) and a "forecast." The backcast is subtracted from the input of the current block to create the input for the next block, a principle known as doubly residual stacking. This allows subsequent blocks to focus on the residual error not captured by previous layers. The final "Global Forecast" is the sum of the individual "Stack Forecasts."
Experimental Setup and Datasets
The model was evaluated across several diverse benchmarks to test its robustness and generalization:
- M4 Dataset: 100,000 heterogeneous time series from finance, demographics, and other sectors.
- M3 & Tourism: Standard benchmarks for cross-domain evaluation.
- Electricity & Traffic: High-frequency datasets used to verify performance on stable, seasonal data.
- Finance (Proprietary): 321 US mutual funds and ETFs used to test "zero-shot" forecasting—predicting on data entirely unseen during training.
Key Results and Insights
The experiments yielded several critical findings regarding efficiency and generalization:
- Efficiency Gains: N-BEATS(P) is twice as fast to train and uses five times fewer parameters than the original N-BEATS ensemble. For instance, a standard ensemble requiring 160 GB of storage is reduced to a fraction of that size.
- Accuracy Maintenance: Despite the reduction in complexity, N-BEATS(P) matched the accuracy of the original model on the M4 benchmark and outperformed other leading models like ES-RNN and FFORMA.
- Zero-Shot Generalization: A model trained on the M4 dataset can effectively forecast electricity or traffic data without retraining. This "ready-to-use" capability significantly lowers the barrier to entry for smaller organizations.
- The Normalization Trade-off: The authors noted that scaling data to improve zero-shot generalization often results in a slight accuracy penalty on the original training data, highlighting a trade-off between specialization and generalizability.
Conclusion and Future Work
N-BEATS(P) demonstrates that the benefits of large-scale ensembles can be harvested without the traditional computational overhead. By sharing parameters and parallelizing lookback processing, the model makes high-accuracy forecasting accessible for production environments involving millions of time series.
Future research may explore even deeper architectures, as the lowered "base cost" of training now permits more complex configurations. However, challenges remain in domains like finance, where high noise-to-signal ratios and non-ergodic properties continue to test the limits of zero-shot generalization.
Summary updated