LGAIDec 8, 2024

Curse of Attention: A Kernel-Based Perspective for Why Transformers Fail to Generalize on Time Series Forecasting and Beyond

arXiv:2412.06061v214 citationsh-index: 21
Originality Incremental advance
AI Analysis

This provides a theoretical explanation for practitioners on transformer inefficiencies in time series forecasting, though it is incremental as it builds on existing understanding of attention limitations.

The paper tackles the problem of why transformer-based models underperform simple linear models in time series forecasting, attributing it to 'Asymmetric Learning' in attention mechanisms that causes failure to generalize on out-of-distribution data, especially with sign-inconsistent patterns.

The application of transformer-based models on time series forecasting (TSF) tasks has long been popular to study. However, many of these works fail to beat the simple linear residual model, and the theoretical understanding of this issue is still limited. In this work, we propose the first theoretical explanation of the inefficiency of transformers on TSF tasks. We attribute the mechanism behind it to {\bf Asymmetric Learning} in training attention networks. When the sign of the previous step is inconsistent with the sign of the current step in the next-step-prediction time series, attention fails to learn the residual features. This makes it difficult to generalize on out-of-distribution (OOD) data, especially on the sign-inconsistent next-step-prediction data, with the same representation pattern, whereas a linear residual network could easily accomplish it. We hope our theoretical insights provide important necessary conditions for designing the expressive and efficient transformer-based architecture for practitioners.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes