Abstract
Accurate time series forecasting, predicting future values based on past data, is crucial for diverse industries. Many current time series methods decompose time series into multiple sub-series, applying different model architectures and training with an end-to-end overall loss for forecasting. However, this raises a question: does this overall loss prioritize the importance of critical sub-series within the decomposition for the better performance? To investigate this, we conduct a study on the impact of overall loss on existing time series methods with sequence decomposition. Our findings reveal that overall loss may introduce bias in model learning, hindering the learning of the prioritization of more significant sub-series and limiting the forecasting performance. To address this, we propose a hybrid loss framework combining the global and component losses. This framework introduces component losses for each sub-series alongside the original overall loss. It employs a dual min-max algorithm to dynamically adjust weights between the overall loss and component losses, and within component losses. This enables the model to achieve better performance of current time series methods by focusing on more critical sub-series while still maintaining a low overall loss. We integrate our loss framework into several time series methods and evaluate the performance on multiple datasets. Results show an average improvement of 0.5-2% over existing methods without any modifications to the model architectures.
Introduction
Deep learning models for time series forecasting frequently utilize decomposition techniques—splitting raw data into "seasonal" (high-frequency fluctuations) and "trend" (low-frequency overall direction) sub-series. While models process these components separately to better capture temporal dynamics, they are almost always trained using a standard end-to-end overall loss function, such as Mean Squared Error (MSE) on the final combined output.
This paper addresses a critical oversight: does optimizing this global loss guarantee that each underlying sub-series is learned effectively? Our analysis reveals that global loss introduces a learning bias. Models often become proficient at predicting seasonal oscillations but fail to capture the overall trend. Because the trend dictates the general trajectory of the series, this component-level failure creates a significant bottleneck in overall forecasting performance.
The Hybrid Loss Framework
To mitigate component neglect, we introduce a Hybrid Loss Framework that incorporates both global loss ($Loss_G$) and individual component losses ($Loss_S$ for seasonal and $Loss_T$ for trend).
The training is formulated as a dual min-max optimization problem, inspired by Distributionally Robust Optimization (DRO). The objective function is a dynamically weighted combination of these losses:
- Inner Min-Max: Dynamically balances the weights between the seasonal and trend losses. If the model struggles more with the trend, the weight for $Loss_T$ increases.
- Outer Min-Max: Balances the weight between the global loss and the combined component loss.
Instead of standard gradient descent for weight updates, we employ a mirror descent estimation technique. This updates weights exponentially based on current loss magnitudes, ensuring the model shifts its attention to the most poorly optimized sub-series during training.
Experimental Evaluation
We evaluated the framework on eight widely used multivariate time series benchmark datasets, including the ETT series (hourly and 15-minute), Electricity consumption, Exchange rates, National-illness (CDC data), and Weather data. The framework was integrated into several state-of-the-art architectures, including MLP-based (DLinear), Transformer-based (FEDformer, PatchTST), and LLM-based forecasters.
Key Results and Insights
- Consistent Accuracy Boost: Integrating the hybrid loss yielded an average performance improvement of 0.5% to 2% in MSE and MAE across existing models without adding any parameters to the architectures. On the National-illness dataset, the framework boosted FEDformer's performance by nearly 10% in MSE.
- Correcting the "Trend Illusion": In standard models, the loss on the trend sub-series is often 2 to 5 times worse than the seasonal sub-series. The global loss hides this discrepancy. Our framework forces the model to correct these blind spots, as seen in visual case studies where models successfully capture trends that baseline models completely missed.
- Dynamic Weighting is Essential: Ablation studies confirmed that fixed-weight component losses are insufficient; the dynamic, step-by-step adjustment (min-max) is critical for forcing the model to learn difficult components.
- Plug-and-Play Versatility: The framework is architecture-agnostic, proving that loss function design is as vital as architectural innovation.
Conclusion and Limitations
While the hybrid loss framework provides significant gains, it has limitations. It slightly degraded performance on datasets with highly erratic, abrupt changes (like Electricity and Exchange-rate), where forcing component focus encouraged overly smooth representations. Additionally, the study currently focuses on sliding-window decomposition. Future work will explore its effectiveness with other decomposition techniques, such as Fourier-based or multi-scale methods, to further reduce residual errors in the trend sub-series.
Summary updated