Hierarchical Classification Auxiliary Network for Time Series Forecasting

Yanru Sun, Zongxia Xie, Dongyue Chen, Emadeldeen Eldele, Qinghua Hu

Standard time series forecasting models often produce "over-smooth" predictions because they rely on Mean Squared Error (MSE) loss, which tends to average out high-variability details. This paper introduces the Hierarchical Classification Auxiliary Network (HCAN), a model-agnostic plug-in that reformulates forecasting as a hierarchical classification task to capture complex, high-entropy features. By tokenizing continuous values into discrete categories and enforcing consistency across levels, HCAN significantly sharpens prediction accuracy across various state-of-the-art architectures.

The Problem: Over-Smoothing in Regression

In time series forecasting, the goal is usually to predict a continuous value. Most deep learning models use Mean Squared Error (MSE) as their primary training objective. While MSE is mathematically convenient, it has a major drawback: it encourages the model to compress feature representations into a narrow space. This often results in "over-smoothing," where the model predicts the mean trend but fails to capture the sharp peaks and valleys (high-entropy features) characteristic of volatile data like wind speed or financial indices.

Comparison of conventional MSE-based forecasting vs. discretized classification settings.

The authors identify a "boundary effect" in existing discretization methods—where values near the edge of a category are easily misclassified—and seek a way to leverage the benefits of classification (which captures high-entropy features better than regression) without losing the nuanced continuity of time series data.

Proposed Method: HCAN

The authors propose HCAN, a hierarchical framework that can be integrated into any existing "backbone" forecasting model (like Informer, Autoformer, or PatchTST). Its architecture consists of several novel components designed to bridge the gap between classification and regression.

The overall architecture of the Hierarchical Classification Auxiliary Network (HCAN).

Key Components

  • Tokenization & Hierarchy: Continuous time series values are discretized into categories at multiple granularities: coarse-grained (fewer bins) and fine-grained (more bins). This allows the model to learn features at different scales of precision.
  • Uncertainty-Aware Classifier (UAC): Instead of standard Softmax, HCAN uses Evidential Deep Learning (EDL). By modeling the output as a Dirichlet distribution, the network can quantify its own uncertainty. This helps the model pay more attention to "hard" samples near class boundaries.
  • Hierarchical Consistency Loss (HCL): To ensure the fine-grained and coarse-grained classifiers do not contradict each other, HCL penalizes discrepancies between the two levels using a symmetric version of Kullback-Leibler (KL) divergence.
  • Hierarchy-Aware Attention (HAA): This module acts as the bridge. It takes the high-entropy features learned by the classifiers and fuses them back into the original backbone features using an attention mechanism, ensuring the final regression output benefits from the classification insights.

Experimental Evaluation

The model was evaluated on ten widely recognized public multivariate time series benchmarks, including the ETT (Electricity Transformer Temperature) datasets, Weather, Exchange-Rate, ILI, Electricity, Traffic, and Solar Wind. These datasets represent a wide range of volatility and periodicity.

Key Insights

  1. Classification as a Feature Extractor: Classification is not just for labels; it is a superior way to force a neural network to "spread out" its feature space. Feature visualizations show that while MSE-based features cluster tightly (leading to smooth predictions), HCAN-enhanced features are more diverse and descriptive.
  2. Solving the Discretization Dilemma: Discretizing continuous data usually creates artificial "cliffs" at bin boundaries. HCAN solves this by using uncertainty estimation and hierarchical consistency to smooth the transitions between those bins.
  3. Model Agnosticism: HCAN does not replace the backbone; it augments it. It works equally well whether the underlying model is a Transformer, a CNN (like SCINet), or a simple MLP (like DLinear).

Results and Impact

The HCAN framework demonstrated a "substantial impact," improving performance in 66 out of 70 tested scenarios.

  • Quantitative Gains: On the ETT datasets, HCAN achieved average performance gains ranging from 9.1% to 35.5% in MSE compared to the standalone baselines.
  • Long-Term Stability: The benefits were particularly pronounced in long-term forecasting. For example, integrating HCAN with Autoformer on the ETTh2 dataset for a 720-step horizon resulted in a 31.9% reduction in MSE.
  • Qualitative Sharpness: Visualizations of the prediction results show that HCAN-enabled models track ground-truth fluctuations much more closely than standard models, which often "flatline" during high-volatility periods.

Limitations and Future Work

While HCAN is powerful, there are areas for further exploration. Adding multiple classification heads and an attention fusion module increases computational overhead. Furthermore, the performance depends on the binning strategy; while the current magnitude-based approach is effective, adaptive or learnable binning could offer further improvements. Finally, handling rare "black swan" events remains a challenge for any classifier-based approach and is a subject for future research.

Summary updated

BibTeX
@inproceedings{sun2025hierarchical,
  author = {Yanru Sun and Zongxia Xie and Dongyue Chen and Emadeldeen Eldele and Qinghua Hu},
  title = {{Hierarchical Classification Auxiliary Network for Time Series Forecasting}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i19.34286},
}
Figure