[Paper Review] Leveraging 2D Information for Long-term Time Series Forecasting with Vanilla Transformers
GridTST proposes a vanilla Transformer-based model that treats multivariate time series as a 2D grid, using horizontal attention for temporal dependencies and vertical, variate-aware attention for cross-variable correlations. By jointly modeling time and variate dimensions through bi-directional attention mechanisms, GridTST achieves state-of-the-art performance across diverse long-term forecasting benchmarks.
Time series prediction is crucial for understanding and forecasting complex dynamics in various domains, ranging from finance and economics to climate and healthcare. Based on Transformer architecture, one approach involves encoding multiple variables from the same timestamp into a single temporal token to model global dependencies. In contrast, another approach embeds the time points of individual series into separate variate tokens. The former method faces challenges in learning variate-centric representations, while the latter risks missing essential temporal information critical for accurate forecasting. In our work, we introduce GridTST, a model that combines the benefits of two approaches using innovative multi-directional attentions based on a vanilla Transformer. We regard the input time series data as a grid, where the $x$-axis represents the time steps and the $y$-axis represents the variates. A vertical slicing of this grid combines the variates at each time step into a extit{time token}, while a horizontal slicing embeds the individual series across all time steps into a extit{variate token}. Correspondingly, a extit{horizontal attention mechanism} focuses on time tokens to comprehend the correlations between data at various time steps, while a extit{vertical}, variate-aware extit{attention} is employed to grasp multivariate correlations. This combination enables efficient processing of information across both time and variate dimensions, thereby enhancing the model's analytical strength. % We also integrate the patch technique, segmenting time tokens into subseries-level patches, ensuring that local semantic information is retained in the embedding. The GridTST model consistently delivers state-of-the-art performance across various real-world datasets.
Motivation & Objective
- Address the limitations of existing Transformer-based time series models that either underutilize variate-specific representations or neglect temporal dynamics.
- Overcome the trade-off between capturing global temporal dependencies and learning effective variate-centric representations in multivariate time series.
- Develop a method that efficiently models both time and variate dimensions simultaneously using a unified vanilla Transformer architecture.
- Enable scalable, hardware-compatible inference by leveraging existing optimization ecosystems like BetterTransformer and FlashAttention.
- Demonstrate generalization across diverse datasets and arbitrary lookback windows in long-term forecasting tasks.
Proposed method
- Represent input time series as a 2D grid with time steps along the x-axis and variates along the y-axis.
- Apply vertical slicing to form time tokens by combining all variates at each time step, and horizontal slicing to form variate tokens by aggregating a single series across all time steps.
- Implement horizontal attention to model correlations between time tokens across different timestamps, capturing temporal dynamics.
- Introduce vertical, variate-aware attention to model interdependencies among multiple variates at each time step.
- Adapt the Patching technique from vision transformers to extract local semantic patterns from subseries-level patches.
- Utilize a standard feed-forward network to learn generalizable, joint representations from both time-aware and variate-aware features.

Experimental results
Research questions
- RQ1Can a vanilla Transformer architecture effectively model both temporal and multivariate dependencies in long-term time series forecasting?
- RQ2How does the bi-directional attention mechanism—combining horizontal and vertical attention—improve forecasting performance compared to unidirectional approaches?
- RQ3To what extent does GridTST generalize across different datasets, variates, and lookback window lengths?
- RQ4Can the model maintain high performance while reducing training memory and latency through variable sampling strategies?
- RQ5How does GridTST compare to state-of-the-art models in terms of accuracy, scalability, and deployment efficiency?
Key findings
- GridTST achieves state-of-the-art performance across multiple real-world datasets, including ETTh1, ETTm1, Electricity, and Traffic, with consistent improvements over existing models.
- The channel-first attention arrangement outperforms other configurations, achieving the best results on 12 out of 16 metrics across different datasets and forecast horizons.
- On the ETTh1 dataset with a 720-step forecast horizon, GridTST achieves an MAE of 0.451, outperforming all baselines including iTransformer and TST.
- The model demonstrates strong scalability: with BetterTransformer, inference speedup reaches 2.62x on GPUs and 1.20x on CPUs for long sequences (4096 tokens).
- A variable-sampling training strategy reduces memory usage and training latency while maintaining performance comparable to full-batch training.
- Ablation studies confirm that both horizontal and vertical attention mechanisms are essential, with the combination yielding the most robust performance across diverse settings.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.