[論文レビュー] Leveraging 2D Information for Long-term Time Series Forecasting with Vanilla Transformers
GridTSTは、多次元時系列を2次元グリッドとして扱う、ヴァニラTransformerに基づくモデルを提案する。水平方向のアテンションにより時系列依存性をモデル化し、垂直方向の変数に依存するアテンションにより変数間相関を捉える。時間次元と変数次元を両方同時に双方向アテンション機構を用いて統合的にモデル化することで、多様な長期予測ベンチマークで最先端の性能を達成する。
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.
研究の動機と目的
- 既存のTransformerベースの時系列モデルが、変数固有の表現を十分に活用していない、あるいは時系列ダイナミクスを無視するという限界を是正する。
- 多次元時系列において、グローバルな時系列依存性を捉えることと、効果的な変数中心の表現を学ぶことのトレードオフを克服する。
- 統一されたヴァニラTransformerアーキテクチャを用いて、時間次元と変数次元を同時に効率的にモデル化する手法を開発する。
- BetterTransformer や FlashAttention といった既存の最適化エコシステムを活用することで、スケーラブルでハードウェアに最適化された推論を実現する。
- 多様なデータセットおよび任意の履歴窓サイズにおいて、長期予測タスクで一般化性能を示すことを実証する。
提案手法
- 時系列入力を、x軸にタイムステップ、y軸に変数をとる2次元グリッドとして表現する。
- 垂直スライシングにより、各タイムステップにおける全変数を統合してタイムトークンを形成し、水平スライシングにより、全タイムステップにわたる1つの系列を集約して変数トークンを形成する。
- 時間トークン間の相関をモデル化するため、水平アテンションを導入し、時系列ダイナミクスを捉える。
- 各タイムステップにおける複数の変数間の相互依存性をモデル化するため、垂直方向、変数に依存するアテンションを導入する。
- ビジョントランスフォーマーからのパッチング技術を応用し、サブシリーズレベルのパッチから局所的な意味的パターンを抽出する。
- 標準的なフィードフォワードネットワークを用いて、時間に依存する特徴と変数に依存する特徴の両方から汎用的な統合表現を学習する。

実験結果
リサーチクエスチョン
- RQ1ヴァニラTransformerアーキテクチャは、長期時系列予測において、時系列的および多次元的依存性の両方を効果的にモデル化できるか?
- RQ2水平アテンションと垂直アテンションを組み合わせた双方向アテンション機構は、単方向アプローチに比べて予測性能をどのように向上させるか?
- RQ3GridTSTは、異なるデータセット、変数、履歴窓長にわたってどれほど一般化できるか?
- RQ4変数サンプリング戦略を用いることで、メモリ使用量とトレーニング遅延を削減しながらも、高い性能を維持できるか?
- RQ5精度、スケーラビリティ、デプロイ効率の観点から、GridTSTは最先端モデルと比べてどのように差をつけるか?
主な発見
- GridTSTは、ETTh1、ETTm1、Electricity、Trafficなど、複数の実世界データセットで最先端の性能を達成し、既存モデルより一貫した改善を示した。
- チャネルファーストのアテンションアレンジメントが他の構成を上回り、異なるデータセットおよび予測ホライズンにおいて16の指標のうち12で最高の結果を達成した。
- 720ステップの予測ホライズンを持つETTh1データセットでは、MAEが0.451にまで低下し、iTransformer や TST を含むすべてのベースラインを上回った。
- モデルは優れたスケーラビリティを示した。BetterTransformerを活用すると、GPUでは長時間系列(4096トークン)で推論速度が2.62倍に向上し、CPUでは1.20倍に向上した。
- 変数サンプリングによるトレーニング戦略により、メモリ使用量とトレーニング遅延が削減されたが、フルバッチ学習と同等の性能を維持した。
- アブレーションスタディにより、水平アテンションと垂直アテンションの両方が不可欠であり、組み合わせが多様な設定において最も頑健な性能を発揮することが確認された。

この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。