AutoHFormer: Efficient Hierarchical Autoregressive Transformer for Time Series Prediction

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Zhang, Qianru, Wen, Honggang, Li, Ming, Huang, Dong, Yiu, Siu-Ming, Jensen, Christian S., Liò, Pietro
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911279364440064
author Zhang, Qianru
Wen, Honggang
Li, Ming
Huang, Dong
Yiu, Siu-Ming
Jensen, Christian S.
Liò, Pietro
author_facet Zhang, Qianru
Wen, Honggang
Li, Ming
Huang, Dong
Yiu, Siu-Ming
Jensen, Christian S.
Liò, Pietro
contents Time series forecasting requires architectures that simultaneously achieve three competing objectives: (1) strict temporal causality for reliable predictions, (2) sub-quadratic complexity for practical scalability, and (3) multi-scale pattern recognition for accurate long-horizon forecasting. We introduce AutoHFormer, a hierarchical autoregressive transformer that addresses these challenges through three key innovations: 1) Hierarchical Temporal Modeling: Our architecture decomposes predictions into segment-level blocks processed in parallel, followed by intra-segment sequential refinement. This dual-scale approach maintains temporal coherence while enabling efficient computation. 2) Dynamic Windowed Attention: The attention mechanism employs learnable causal windows with exponential decay, reducing complexity while preserving precise temporal relationships. This design avoids both the anti-causal violations of standard transformers and the sequential bottlenecks of RNN hybrids. 3) Adaptive Temporal Encoding: a novel position encoding system is adopted to capture time patterns at multiple scales. It combines fixed oscillating patterns for short-term variations with learnable decay rates for long-term trends. Comprehensive experiments demonstrate that AutoHFormer 10.76X faster training and 6.06X memory reduction compared to PatchTST on PEMS08, while maintaining consistent accuracy across 96-720 step horizons in most of cases. These breakthroughs establish new benchmarks for efficient and precise time series modeling. Implementations of our method and all baselines in hierarchical autoregressive mechanism are available at https://github.com/lizzyhku/Autotime.
format Preprint
id arxiv_https___arxiv_org_abs_2506_16001
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle AutoHFormer: Efficient Hierarchical Autoregressive Transformer for Time Series Prediction
Zhang, Qianru
Wen, Honggang
Li, Ming
Huang, Dong
Yiu, Siu-Ming
Jensen, Christian S.
Liò, Pietro
Machine Learning
Artificial Intelligence
Time series forecasting requires architectures that simultaneously achieve three competing objectives: (1) strict temporal causality for reliable predictions, (2) sub-quadratic complexity for practical scalability, and (3) multi-scale pattern recognition for accurate long-horizon forecasting. We introduce AutoHFormer, a hierarchical autoregressive transformer that addresses these challenges through three key innovations: 1) Hierarchical Temporal Modeling: Our architecture decomposes predictions into segment-level blocks processed in parallel, followed by intra-segment sequential refinement. This dual-scale approach maintains temporal coherence while enabling efficient computation. 2) Dynamic Windowed Attention: The attention mechanism employs learnable causal windows with exponential decay, reducing complexity while preserving precise temporal relationships. This design avoids both the anti-causal violations of standard transformers and the sequential bottlenecks of RNN hybrids. 3) Adaptive Temporal Encoding: a novel position encoding system is adopted to capture time patterns at multiple scales. It combines fixed oscillating patterns for short-term variations with learnable decay rates for long-term trends. Comprehensive experiments demonstrate that AutoHFormer 10.76X faster training and 6.06X memory reduction compared to PatchTST on PEMS08, while maintaining consistent accuracy across 96-720 step horizons in most of cases. These breakthroughs establish new benchmarks for efficient and precise time series modeling. Implementations of our method and all baselines in hierarchical autoregressive mechanism are available at https://github.com/lizzyhku/Autotime.
title AutoHFormer: Efficient Hierarchical Autoregressive Transformer for Time Series Prediction
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2506.16001