TL;DR
This paper introduces DeepTCN, a novel convolutional neural network (CNN) framework for probabilistic forecasting of multiple related time series. It excels at capturing complex temporal dependencies and inter-series correlations, offering both parametric and non-parametric approaches for estimating future uncertainty, even with sparse historical data. DeepTCN demonstrates superior performance compared to state-of-the-art methods across various real-world datasets.
What Problem Does This Paper Address?
Accurate forecasting is crucial for numerous business decisions, from resource management to inventory planning. While point forecasting (predicting a single future value) has been extensively studied, probabilistic forecasting – which estimates the distribution of future values – is increasingly important for understanding and managing uncertainty. This is particularly challenging in real-world scenarios involving:
- Large-scale forecasting: Predicting thousands or millions of related time series simultaneously.
- Data sparsity and cold-start problems: Forecasting for new products or entities with little to no historical data.
- Complex patterns: Accounting for seasonality, holiday effects, and inter-series dependencies.
- Exogenous variables: Incorporating external factors like promotions or weather.
Traditional methods often struggle with these challenges, requiring extensive manual effort for parameter tuning or failing when historical data is scarce.
Methods
The core of the proposed framework is the Deep Temporal Convolutional Network (DeepTCN). Its architecture is inspired by the Sequence-to-Sequence (Seq2Seq) model but utilizes a non-autoregressive approach for improved efficiency and robustness.
- Encoder: Employs stacked dilated causal convolutional networks within residual blocks. Dilated convolutions allow the network to capture long-range temporal dependencies by skipping input values, effectively increasing the receptive field without adding many layers. Residual blocks help stabilize training and improve accuracy, especially for long sequences.
- Decoder: Incorporates a novel variant of a residual neural network, termed resnet-v. This module is designed to integrate both the latent output from the encoder (representing historical observations) and future exogenous variables. This allows the model to learn how external factors influence future outcomes.
- Probabilistic Forecasting: The framework supports two main approaches for estimating the probability distribution of future observations:
- Parametric: Directly predicts the parameters of a chosen distribution (e.g., mean and standard deviation for a Gaussian distribution) using maximum likelihood estimation.
- Non-parametric: Uses quantile regression to predict specific quantile points of the distribution, offering a distribution-free and potentially more robust approach.
A key advantage is the non-autoregressive nature of the forecasting. Instead of predicting one step at a time and feeding it back (which can lead to error accumulation), DeepTCN predicts all future time steps directly. This also allows for parallelized training and inference, leading to significant speedups.
Datasets
The paper evaluates DeepTCN on a combination of industrial and public datasets:
- JD-demand and JD-shipment: Two large-scale datasets from JD.com, China's largest online retailer, focusing on regional product demand and package shipment forecasting. These datasets are notable for their inclusion of cold-start and data sparsity scenarios.
- Electricity: Hourly electricity consumption data from 370 customers.
- Traffic: Occupancy rates from 963 car lanes in the San Francisco Bay Area freeways.
- Parts: Monthly demand data for spare parts from a US car company.
Key Insights and Ideas
- Dilated Causal Convolutions for Long-Range Dependencies: The use of dilated causal convolutions is a powerful technique for capturing long-term patterns in time series data without the computational burden of recurrent networks.
- Non-Autoregressive Forecasting for Robustness and Efficiency: Moving away from autoregressive models significantly reduces error accumulation and enables parallel processing, leading to faster training and inference.
- Unified Framework for Parametric and Non-Parametric Probabilistic Forecasting: The ability to seamlessly switch between parametric and non-parametric approaches within the same CNN architecture provides flexibility for different application needs and data characteristics.
- Representation Learning for Cold-Start and Sparsity: By learning shared patterns across related time series, DeepTCN can effectively forecast for new products or warehouses with limited historical data, a significant advantage in dynamic retail environments.
Key Results
- Superior Probabilistic Forecasting: DeepTCN-Quantile (non-parametric) and DeepTCN-Gaussian (parametric) consistently outperformed baseline models (SARIMA, lightGBM, DeepAR, SQF-RNN, DeepState) on both JD.com datasets and public datasets in terms of probabilistic forecasting metrics (QL50/QL90).
- Best Performance in Challenging Scenarios: DeepTCN-Quantile showed particular strength in scenarios with data sparsity and cold-start problems, maintaining performance where other models degraded.
- Competitive Point Forecasting: DeepTCN also achieved state-of-the-art or competitive results in point forecasting (NRMSE, SMAPE, MASE) on various datasets.
- Scalability: The framework is designed for large collections of time series, demonstrating its applicability to real-world industrial-scale problems.
Limitations and Future Work
- Sensitivity to Hyperparameters: While the paper demonstrates robustness to the number of encoder layers, other hyperparameters like kernel size and dilation factors might require careful tuning for optimal performance on different datasets.
- Distribution Assumptions (Parametric): The parametric approach relies on the assumption of a specific distribution (e.g., Gaussian). If the true data distribution deviates significantly, performance might be impacted, as observed with the JD.com datasets.
- Future Work: The authors suggest extending the framework to other probability distribution families (e.g., negative-binomial for long-tail products) and exploring more advanced representation learning techniques. Further investigation into the interpretability of the learned patterns could also be valuable.
Summary updated