HDMixer: Hierarchical Dependency with Extendable Patch for Multivariate Time Series Forecasting

Qihe Huang, Lei Shen, Ruixin Zhang, Jiahuan Cheng, Shouhong Ding, Zhengyang Zhou, Yang Wang

Introduction

HDMixer is a novel multivariate time series forecasting framework designed to overcome the limitations of rigid, fixed-length patching. By introducing a Length-Extendable Patcher (LEP), the model adaptively preserves critical temporal features like peaks and cycles. Combined with a pure MLP-based Hierarchical Dependency Explorer (HDE), HDMixer achieves state-of-the-art accuracy across major benchmarks while maintaining high efficiency compared to Transformer-based architectures.

The Limitations of Fixed-Length Patching

Patching—dividing long time series into shorter sub-sequences—is a standard technique in modern forecasting models like PatchTST. However, traditional methods rely on a fixed grid, which introduces two primary issues:

  1. Boundary Loss: A rigid grid often slices through the middle of significant temporal features (e.g., a peak), destroying their local semantic meaning.
  2. Semantic Incoherence: Fixed boundaries cause similar patterns to appear at inconsistent positions across different patches, making it difficult for models to learn stable representations.
Comparison of Fixed Patching vs. Extendable Patching showing Semantic Incoherence and Boundary Loss.

Proposed Method: HDMixer

HDMixer addresses these challenges through two core components:

Length-Extendable Patcher (LEP)

Instead of a static grid, the LEP uses learnable parameters to adjust the center, offset, and expansion scale of each patch. This allows the model to "stretch" or "shift" boundaries to align with meaningful temporal units. To maintain differentiability, bi-linear interpolation is used to sample a fixed number of points from these variable-sized windows. Furthermore, a Patch Entropy Loss based on Approximate Entropy encourages the model to select patches that maximize information gain.

Hierarchical Dependency Explorer (HDE)

HDMixer eschews heavy Attention mechanisms in favor of a "pure MLP" architecture. The HDE stacks multiple Mixer blocks that sequentially process three critical dimensions:

  • Short-term: Mixing information within a single patch.
  • Long-term: Mixing information across different patches.
  • Cross-variable: Capturing causal interactions between different time series variables.

Evaluation and Results

HDMixer was evaluated on nine real-world multivariate benchmarks, including Weather, Traffic, Electricity, and ETT datasets. The results demonstrate significant improvements over existing baselines:

  • Superior Accuracy: HDMixer achieved top performance in 59 out of 72 experimental settings, with an average 7.27% reduction in Mean Squared Error (MSE) compared to Transformer-based models like PatchTST.
  • Efficiency Gains: The model is significantly faster and uses less GPU memory than competitors like MICN and Crossformer, proving that structured MLPs can outperform complex Transformers in time series tasks.
  • Comparison to GNNs: Against the GNN-based MTGNN, HDMixer reduced MSE by a staggering 59.66%.

Conclusion

HDMixer demonstrates that the arbitrary partitioning of time into fixed blocks is a significant bottleneck in forecasting. By allowing the model to decide its own patch boundaries, HDMixer aligns internal representations with physical phenomena. While future work may address potential over-smoothing from interpolation, HDMixer currently stands as a highly accurate and efficient solution for multivariate time series forecasting.

Summary updated

BibTeX
@inproceedings{huang2024hdmixer,
  author = {Qihe Huang and Lei Shen and Ruixin Zhang and Jiahuan Cheng and Shouhong Ding and Zhengyang Zhou and Yang Wang},
  title = {{HDMixer: Hierarchical Dependency with Extendable Patch for Multivariate Time Series Forecasting}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i11.29155},
}
Figure