[논문 리뷰] Leveraging 2D Information for Long-term Time Series Forecasting with Vanilla Transformers
GridTST는 다변량 시계열을 2차원 격자로 간주하는 바닐라 트랜스포머 기반 모델을 제안한다. 수평적 어텐션을 통해 시간적 의존성을 모델링하고, 수직적·변수 인지 어텐션을 통해 다변수 간 상관관계를 처리한다. 양방향 어텐션 기반의 시간 차원과 변수 차원을 동시에 모델링함으로써, 다양한 장기 예측 벤치마크에서 최고 성능을 달성한다.
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.
연구 동기 및 목표
- 기존 트랜스포머 기반 시계열 모델이 변수별 표현을 부적절하게 활용하거나 시간 동적 특성을 忽略하는 데서 비롯되는 한계를 해결한다.
- 다변량 시계열에서 글로벌 시간적 의존성을 파악하는 것과 효과적인 변수 중심 표현을 학습하는 것 사이의 트레이드오프를 극복한다.
- 통합된 바닐라 트랜스포머 아키텍처를 통해 시간 차원과 변수 차원을 동시에 효율적으로 모델링하는 방법을 개발한다.
- BetterTransformer 및 FlashAttention와 같은 기존 최적화 생태계를 활용하여 확장 가능하고 하드웨어 친화적인 추론을 가능하게 한다.
- 장기 예측 작업에서 다양한 데이터셋과 임의의 룩백 윈도우 길이에 대해 일반화 능력을 입증한다.
제안 방법
- 시간 단위를 x축에, 변수를 y축에 배치하여 입력 시계열을 2차원 격자로 표현한다.
- 각 시간 단위에서 모든 변수를 조합하여 시간 토큰을 형성하기 위해 수직 슬라이싱을 적용하고, 각 변수의 전체 시계열을 집계하여 변수 토큰을 형성하기 위해 수평 슬라이싱을 수행한다.
- 다양한 타임스탬프 간 시간 토큰 간 상관관계를 모델링하기 위해 수평 어텐션을 구현하여 시간 역학을 반영한다.
- 각 시간 단위에서 다수의 변수 간 상호의존성을 모델링하기 위해 수직적·변수 인지 어텐션을 도입한다.
- 비전 트랜스포머에서 유래한 패치 기법을 응용하여 서브시리즈 수준의 국소적 의미 패턴을 추출한다.
- 시간 인지 및 변수 인지 특징에서 유도된 일반화 가능한 통합 표현을 학습하기 위해 표준 피드포워드 네트워크를 활용한다.

실험 결과
연구 질문
- RQ1바닐라 트랜스포머 아키텍처가 장기 시계열 예측에서 시간적 및 다변량 의존성을 효과적으로 모델링할 수 있는가?
- RQ2수평 및 수직 어텐션을 조합한 양방향 어텐션 메커니즘이 단방향 접근 방식에 비해 예측 성능을 어떻게 향상시키는가?
- RQ3GridTST는 다양한 데이터셋, 변수, 룩백 윈도우 길이에 대해 얼마나 잘 일반화되는가?
- RQ4변수 샘플링 전략을 통해 학습 메모리와 지연 시간을 줄여도 성능을 유지할 수 있는가?
- RQ5정확도, 확장성, 구현 효율성 측면에서 GridTST는 최고 수준의 기존 모델과 어떻게 비교되는가?
주요 결과
- ETTh1, ETTm1, Electricity, Traffic 등의 실세계 데이터셋에서 GridTST는 기존 모델보다 일관된 성능 향상을 보이며 다수의 벤치마크에서 최고 성능(SOTA)을 달성한다.
- 채널 우선 어텐션 구성이 다른 설정보다 뛰어나, 다양한 데이터셋과 예측 수준에서 16개 지표 중 12개에서 최고 성능을 기록한다.
- 720단계 예측 수준을 가진 ETTh1 데이터셋에서 GridTST는 MAE 0.451을 기록하여 iTransformer 및 TST를 포함한 모든 베이스라인을 압도한다.
- 모델은 뛰어난 확장성을 보이며, BetterTransformer를 활용할 경우 긴 시퀀스(4096 토큰)에서 GPU 기준 추론 속도가 2.62배 향상되고 CPU 기준 1.20배 향상된다.
- 변수 샘플링 학습 전략은 전체 배치 학습과 유사한 성능를 유지하면서 메모리 사용량과 학습 지연 시간을 줄인다.
- 절단 분석 결과, 수평 및 수직 어텐션 메커니즘이 모두 필수적임을 확인하였으며, 이들의 조합이 다양한 설정에서 가장 강력한 성능을 낸다.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.