Abstract
Recurrent Conditional Whittle Networks (RECOWNs) bridge the gap between high-performance deep learning and rigorous probabilistic modeling for time series forecasting. By operating in the spectral domain and utilizing Sum-Product Networks, RECOWNs provide tractable uncertainty estimates, enabling models to signal when their predictions are likely to be unreliable. This paper demonstrates that RECOWNs maintain the predictive accuracy of Recurrent Neural Networks (RNNs) while offering a reliable confidence measure essential for high-stakes decision-making.
Introduction
While Recurrent Neural Networks (RNNs) are the state-of-the-art for time series forecasting, they often function as "black boxes," providing little to no insight into the reliability of their predictions. In critical sectors like energy grid management or retail supply chain planning, an overconfident but incorrect forecast can lead to significant financial or operational losses. Existing probabilistic methods, such as Gaussian Processes, often struggle with the scale of modern datasets. RECOWNs address this by combining the predictive power of Gated Recurrent Units (GRUs) with the probabilistic rigor of Sum-Product Networks (SPNs), allowing the model to effectively "know when it doesn't know."
Methodology
The RECOWN architecture shifts the modeling focus from the time domain to the spectral (frequency) domain, which facilitates the capture of seasonal patterns and long-range dependencies.
Core Components
- Short-Time Fourier Transform (STFT): The input sequence is transformed into Fourier coefficients.
- Spectral RNN (SRNN): A GRU predicts future Fourier coefficients based on historical spectral data.
- Conditional Whittle Sum-Product Network (CWSPN): This probabilistic circuit computes the conditional likelihood of predicted coefficients. By employing the Whittle Approximation—treating coefficients as independent complex normal variables—the model achieves mathematical tractability.
- Log-Likelihood Ratio Score (LLRS): A novel metric introduced to project spectral uncertainty back into the time domain, providing a temporal visualization of confidence.
Training Strategy
The model utilizes a coordinate descent approach. The SRNN is first optimized for Mean Squared Error (MSE). Subsequently, the CWSPN is trained using an MSE-weighted loss, which specifically teaches the probabilistic circuit to identify patterns that typically result in high prediction errors.
Experimental Evaluation
RECOWNs were evaluated on two real-world datasets: European power consumption (15-minute intervals) and German retail demand (daily sales).
Key Results
- Error Detection: On the Power dataset, RECOWNs demonstrated exceptional reliability; by flagging the 10% of sequences with the lowest likelihood scores, the model successfully identified 98.5% of the most erroneous forecasts (the bottom 5% by MSE).
- Efficiency and Robustness: RECOWNs achieved superior parameter efficiency compared to time-domain models and proved less sensitive to hyperparameter tuning than state-of-the-art density estimators like Masked Autoregressive Flow (MAF).
- Uncertainty Visualization: As shown in the long-range prediction plots, the LLRS "confidence ribbon" expands as the prediction horizon increases or when the model encounters unusual patterns, providing a clear visual warning to users.
Conclusion and Future Work
RECOWNs offer a scalable solution for trustworthy time series forecasting by integrating probabilistic circuits into deep learning workflows. Future research will explore joint training strategies to further enhance performance and investigate the model's generative potential to answer complex probabilistic queries, such as estimating the risk of extreme demand fluctuations.
Summary updated