Introduction
Standard training procedures for neural networks (NNs) in time series tasks—such as forecasting or sequence labeling—typically rely on Maximum Likelihood Estimation (MLE). A fundamental, yet often violated, assumption of MLE is that prediction errors are independent and identically distributed (i.i.d.) "white noise." In practice, time series residuals frequently exhibit autocorrelation, often termed a "hangover effect," where past errors influence current ones. This phenomenon typically arises from omitted variables (e.g., unobserved smooth environmental factors), persistent measurement noise (e.g., sensor drift), or model misspecification (e.g., using a linear model for non-linear data).
Ignoring these correlations leads to suboptimal model performance and unreliable statistical confidence intervals. While econometricians have addressed autocorrelated errors in linear models for decades, this work introduces a model-agnostic framework to incorporate these adjustments into deep learning architectures.
Methodology: Joint Optimization of Autocorrelation
The proposed method adjusts for first-order autocorrelation, modeling the error $e_t$ as: $e_t = \rho e_{t-1} + \epsilon_t$ where $\epsilon_t$ represents true white noise and $\rho$ is the first-order autocorrelation coefficient.
Rather than a traditional two-step estimation, the authors propose joint optimization:
- Trainable $\rho$: The coefficient $\rho$ is treated as a trainable parameter within the network. A $tanh$ transformation is applied to ensure stability by constraining $|\rho| < 1$.
- Transformed Objective: The training loss is modified to minimize the difference between the "adjusted" target ($X_t - \rho X_{t-1}$) and the "adjusted" prediction.
- Input/Output Alignment: To maintain consistency, the adjustment is applied to both input features and output targets, ensuring the model operates on a consistently "filtered" data stream.
Experimental Setup
The framework was evaluated across an extensive suite of benchmarks:
- Forecasting: Traffic flow (PeMSD4, PeMSD8), manufacturing sensors (ADI-920/945), M4 and M5 competition datasets, and environmental/energy sets (Air-quality, Electricity, Solar).
- Regression & Classification: Synthetic Monte Carlo simulations, Spoken Arabic Digits, Australian Sign Language, and ECG signals.
- Anomaly Detection: Industrial datasets involving wafer etchers and bearing failures.
Key Insights and Empirical Guidelines
A significant finding is that the adjustment acts as a "safety net" for model misspecification. Simpler architectures, such as basic LSTMs, often see greater benefits than highly complex, state-of-the-art models. This suggests the autocorrelated error adjustment effectively captures residual signals that the primary model fails to resolve.
Furthermore, the authors provide empirical critical values (0.984, 0.928, 0.857) for remaining error autocorrelation. If a model's residuals exceed these thresholds, there is a high statistical probability (99%, 95%, or 90%, respectively) that applying the proposed adjustment will improve performance.
Key Results
The method demonstrated near-universal performance gains across six distinct architectures (LSTM, TPA, AGCRN, TCN, Conv-T, and DSANet). Notably, LSTMs achieved relative improvements as high as 32.4% on certain datasets. The approach is characterized as "low-risk, high-reward," as it consistently improves or maintains performance even in cases where models are already highly optimized.
Conclusion
This research provides a robust, model-agnostic method for handling autocorrelated errors in neural networks. By jointly learning the autocorrelation coefficient alongside model weights, practitioners can significantly improve forecasting accuracy and reliability. Future work includes extending the framework to higher-order autocorrelation ($AR(p)$), adapting it for probabilistic forecasting, and exploring non-Gaussian noise distributions.
Summary updated