Skip to main content
QUICK REVIEW

[Paper Review] HUTFormer: Hierarchical U-Net Transformer for Long-Term Traffic Forecasting

Zezhi Shao, Fei Wang|arXiv (Cornell University)|Jul 27, 2023
Traffic Prediction and Management TechniquesEngineering3 citations
TL;DR

HUTFormer proposes a novel Hierarchical U-Net Transformer architecture for long-term traffic forecasting, leveraging window self-attention and segment merging in a hierarchical encoder to extract multi-scale representations, and cross-scale attention in a decoder to integrate them. It achieves state-of-the-art performance on four traffic datasets, significantly outperforming existing baselines in 1-day forecasting tasks.

ABSTRACT

Traffic forecasting, which aims to predict traffic conditions based on historical observations, has been an enduring research topic and is widely recognized as an essential component of intelligent transportation. Recent proposals on Spatial-Temporal Graph Neural Networks~(STGNNs) have made significant progress by combining sequential models with graph convolution networks. However, due to high complexity issues, STGNNs only focus on short-term traffic forecasting (e.g., 1-h ahead), while ignoring more practical long-term forecasting. In this paper, we make the first attempt to explore long-term traffic forecasting (e.g., 1-day ahead). To this end, we first reveal its unique challenges in exploiting multi-scale representations. Then, we propose a novel Hierarchical U-Net TransFormer~(HUTFormer) to address the issues of long-term traffic forecasting. HUTFormer consists of a hierarchical encoder and decoder to jointly generate and utilize multi-scale representations of traffic data. Specifically, for the encoder, we {\color{black}propose} window self-attention and segment merging to extract multi-scale representations from long-term traffic data. For the decoder, we design a cross-scale attention mechanism to effectively incorporate multi-scale representations. In addition, HUTFormer employs an efficient input embedding strategy to address the complexity issues. Extensive experiments on four traffic datasets show that the proposed HUTFormer significantly outperforms state-of-the-art traffic forecasting and long time series forecasting baselines.

Motivation & Objective

  • To address the challenge of long-term traffic forecasting (e.g., 1-day prediction), which remains underexplored despite its practical importance in intelligent transportation systems.
  • To identify the unique difficulties in exploiting multi-scale representations—both fine-grained local changes and coarse-grained global patterns—within long-term traffic sequences.
  • To design a model that efficiently generates and utilizes multi-scale representations without relying on graph convolution, overcoming the high complexity of existing Spatial-Temporal Graph Neural Networks (STGNNs).
  • To develop a transformer-based architecture that supports non-aligned input and output sequences, unlike standard U-Net or FPN designs used in computer vision.
  • To achieve high accuracy in long-term forecasting while maintaining computational efficiency through an efficient input embedding strategy.

Proposed method

  • The hierarchical encoder uses window self-attention to capture local dependencies within fixed-size temporal windows, enabling scalable modeling of long sequences.
  • Segment merging is applied to progressively combine adjacent windows into larger segments, forming a hierarchical structure that captures multi-scale representations.
  • The decoder employs cross-scale attention to dynamically integrate features from different levels of the hierarchy, allowing the model to fuse global context with local details.
  • An efficient input embedding strategy combines segment embeddings with spatial-temporal positional encoding (ST-PE), avoiding the quadratic complexity of graph convolution.
  • The ST-PE uses learnable embeddings for spatial locations, daily time slots (288 per day), and days of the week (7), enabling the model to capture periodic patterns without explicit graph structures.
  • The architecture is designed to handle non-aligned historical and future sequences, making it suitable for long-term forecasting where input and output sequences are not pixel-aligned.

Experimental results

Research questions

  • RQ1How can multi-scale representations be effectively generated from long-term traffic sequences without relying on graph convolution or fixed-receptive-field attention?
  • RQ2What architectural design enables efficient and accurate long-term traffic forecasting (e.g., 1-day) while maintaining low computational complexity?
  • RQ3How can multi-scale features from different levels of abstraction be effectively fused during decoding to improve prediction of both global trends and local anomalies?
  • RQ4To what extent does the proposed HUTFormer outperform existing SOTA models in long-term traffic forecasting on real-world datasets?
  • RQ5Can a transformer-based architecture with hierarchical design and segment-based processing achieve better performance than standard Transformers or STGNNs on long-horizon multivariate time series forecasting?

Key findings

  • HUTFormer significantly outperforms state-of-the-art traffic forecasting models, including Graph WaveNet and Autoformer, on four real-world traffic datasets, especially in capturing sudden traffic changes.
  • The ablation study confirms that the hierarchical design and cross-scale attention are essential, as HUTFormer w/o hierarchy performs worse than the full model.
  • Visualization of positional embeddings shows clear clustering of spatial sensors and strong daily periodicity, validating the model's ability to learn meaningful spatial-temporal patterns.
  • The model effectively captures both daily periodicity (via large-scale features) and rapid congestion changes (via fine-grained features), demonstrating its multi-scale capability.
  • The hyper-parameter study indicates robustness to window size and segment merging configurations, with optimal performance achieved at specific settings.
  • The use of segment embedding and ST-PE reduces computational complexity compared to graph convolution-based models, enabling scalability to long sequences.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.