Abstract
Traditional time series forecasting models often suffer from "over-smoothing" due to their reliance on Mean Square Error (MSE) loss, which tends to compress feature representations and fail to capture high-variability patterns. We present the Hierarchical Classification Auxiliary Network (HCAN), a model-agnostic framework that reformulates forecasting as a hierarchical classification task. By tokenizing continuous values and integrating multi-granularity high-entropy features, HCAN enhances the expressive power of existing forecasting backbones. Experimental results across ten real-world benchmarks demonstrate that HCAN consistently improves performance, particularly in long-term forecasting scenarios.
Introduction
Modern time series forecasting typically employs Mean Square Error (MSE) as the primary loss function. While computationally efficient, MSE encourages models to predict the mean of the distribution, leading to "over-smooth" predictions that miss critical peaks and troughs. This phenomenon results in compact feature representations that lack the entropy necessary to distinguish complex temporal patterns.
An alternative is discretization, where continuous values are mapped to discrete bins for classification. However, simple discretization introduces "boundary effects," where values near bin edges are prone to misclassification, causing discontinuities in the predicted sequence.
HCAN addresses these challenges by leveraging high-entropy features from a classification task while maintaining sequence continuity through a hierarchical consistency mechanism.
Methodology
HCAN is designed as a plug-and-play component for various forecasting backbones, such as Informer, PatchTST, and DLinear. The architecture comprises three core modules:
Uncertainty-Aware Classifier (UAC)
To mitigate over-confident but incorrect predictions, HCAN utilizes Evidential Deep Learning (EDL). Instead of a standard softmax output, the UAC treats class predictions as evidence for a Dirichlet distribution. This allows the model to quantify predictive uncertainty, improving robustness against noisy data.
Hierarchical Consistency Loss (HCL)
To resolve boundary effects, HCAN employs a multi-level hierarchy of bins (e.g., coarse-grained and fine-grained). The HCL ensures that predictions at different granularities are mutually consistent. By aligning the probability distributions across the hierarchy, the model learns a more stable transition between discrete categories.
Hierarchy-Aware Attention (HAA)
The HAA module serves as the bridge between the classification auxiliary task and the main regression task. It fuses the high-entropy features derived from the hierarchical classification back into the backbone's original feature space. This fusion optimizes the trade-off between capturing complex variability and maintaining the global trend of the time series.
Experiments and Results
Datasets
The effectiveness of HCAN was evaluated on ten public benchmarks, including ETT (Electricity Transformer Temperature), Weather, Exchange-Rate, ILI (Influenza-Like Illness), Electricity, Traffic, and Solar Wind. These datasets cover a wide range of domains and temporal characteristics.
Performance Analysis
HCAN was integrated into seven state-of-the-art backbones. It achieved performance improvements in 66 out of 70 experimental settings. Notably, on the ETT datasets, HCAN provided average gains between 9.1% and 35.5%.
The benefits are most evident in long-term forecasting (e.g., 720-step horizons), where standard MSE-based models often collapse toward the mean. Qualitative analysis shows that HCAN-enabled models track ground truth fluctuations much more accurately, capturing sharp spikes that baselines typically smooth out.
Latent Space Visualization
t-SNE visualizations confirm that HCAN leads to a more distributed (high-entropy) feature space compared to standard models. While maintaining the ordinal relationship of the values, HCAN spreads features more broadly, allowing for better discrimination of distinct temporal states.
Conclusion
HCAN offers a novel approach to time series forecasting by treating it as a hierarchical classification problem. By addressing the over-smoothing issue of MSE and the boundary effects of discretization, HCAN significantly boosts the accuracy of diverse forecasting models. While it introduces additional parameters and computational cost, the substantial gains in predictive performance make it a valuable addition to the forecasting toolkit. Future work will explore its integration into large-scale pre-trained foundation models for time series.
Summary updated