[논문 리뷰] First De-Trend then Attend: Rethinking Attention for Time-Series Forecasting
TDformer는 시계열을 추세와 계절성으로 분해하고, 추세에는 MLP를, 계절성에는 Fourier-domain attention을 사용하여 최첨단 예측 성능을 달성합니다.
Transformer-based models have gained large popularity and demonstrated promising results in long-term time-series forecasting in recent years. In addition to learning attention in time domain, recent works also explore learning attention in frequency domains (e.g., Fourier domain, wavelet domain), given that seasonal patterns can be better captured in these domains. In this work, we seek to understand the relationships between attention models in different time and frequency domains. Theoretically, we show that attention models in different domains are equivalent under linear conditions (i.e., linear kernel to attention scores). Empirically, we analyze how attention models of different domains show different behaviors through various synthetic experiments with seasonality, trend and noise, with emphasis on the role of softmax operation therein. Both these theoretical and empirical analyses motivate us to propose a new method: TDformer (Trend Decomposition Transformer), that first applies seasonal-trend decomposition, and then additively combines an MLP which predicts the trend component with Fourier attention which predicts the seasonal component to obtain the final prediction. Extensive experiments on benchmark time-series forecasting datasets demonstrate that TDformer achieves state-of-the-art performance against existing attention-based models.
연구 동기 및 목표
- 시간 도메인, 푸리에 도메인, 또는 웨이블렛 도메인에서 학습된 주의가 선형 조건에서 동등한 표현력을 갖는지 이해한다.
- 계절성, 추세, 노이즈에 걸친 주의에 소프트맥스 정규화가 어떤 영향을 미치는지 경험적으로 분석한다.
- 예측을 위해 도메인별 강점을 활용하는 하이브리드 모델의 동기를 제시하고 설계한다.
- 데이터를 추세와 계절성으로 분해하는 것이 주의 기반 예측 성능을 향상시킨다는 것을 보여준다.
제안 방법
- 선형 주의(attention) 하에서 시간(time), 푸리에(Fourier), 웨이블렛(wavelet) 주의의 선형 동등성을 이론적으로 입증한다.
- 계절성, 추세, 급증(spikes)이 있는 합성 데이터에서 주의 동작을 경험적으로 분석하여 소프트맥스 효과를 분리한다.
- 입력을 추세와 계절 부분으로 분해하고, 추세는 MLP로 예측하고 계절 부분은 Fourier attention으로 예측한 뒤 두 구성요소를 합산하는 TDformer를 제안한다.
- 추세 예측기 이전에 다중 평균 필터와 적응 가중치를 사용한 계절-추세 분해와 RevIN 정규화를 적용한다.
- 계절 성분 예측을 위해 계절 인코더/디코더 블록에서 Fourier attention을 사용한다.
- 향후 시계열에 대한 재구성 평균제곱오차(MSE) 손실로 최적화한다.
실험 결과
연구 질문
- RQ1시간 도메인, 푸리에 도메인, 웨이블렛 도메인 주의 메커니즘이 선형 조건에서 동등한 표현력을 가지는가?
- RQ2소프트맥스 정규화가 서로 다른 도메인에서 주의의 경험적 동작에 어떤 영향을 미치는가?
- RQ3시계열을 추세와 계절성으로 분해하는 것이 주의 기반 예측의 효과를 향상시킬 수 있는가?
- RQ4추세 지향적인 MLP와 계절성에 대한 Fourier attention을 결합하는 것이 더 우수한 예측 성능을 낳는가?
주요 결과
- 선형 조건에서 시간(time), 푸리에(Fourier), 웨이블렛(wavelet) 주의는 이론적으로 동등하다.
- 소프트맥스 정규화가 계절성, 추세, 노이즈 전반에 걸친 도메인 간 경험적 성능 차이를 유발한다.
- 강한 계절성에 대해 Fourier-domain 주의가 샘플 효율적이며, 추세 데이터는 단독으로 주의에 일반화되지 않는다.
- 추세에 MLP를, 계절성에 Fourier attention을 사용하는 분해 기반 하이브리드 모델(TDformer)은 벤치마크 데이터셋에서 최첨단 결과를 달성한다.
- RevIN 정규화와 명시적 계절-추세 분해가 TDformer의 성능 및 견고성에 기여한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.