Introduction
Long-term forecasting presents unique challenges due to the time and memory complexity of handling long sequences. This paper introduces AutoCon, a self-supervised contrastive learning framework designed to capture long-term temporal patterns that fall outside the typical "sliding window" used in time-series forecasting. By leveraging global autocorrelation to identify distant but related sub-sequences and employing a dual-branch decomposition architecture, the authors achieve state-of-the-art results across nine benchmarks, particularly in extreme long-horizon forecasting scenarios.
The Problem: Outer-Window Variations
Most modern time-series models rely on a sliding window approach, where the model learns from short, fixed-length sub-sequences. While efficient, this creates a major blind spot: outer-window variations.
Imagine a dataset with a clear yearly cycle, but your model only looks at 96-hour windows. To the model, a massive seasonal swing looks like a simple linear trend or random noise because it cannot "see" the full cycle. Existing contrastive learning methods often exacerbate this by only treating temporally adjacent windows as "positive" pairs. The authors argue that to truly master long-term forecasting, models must learn representations that reflect the global structure of the entire time series, not just local neighborhoods.
Methodology
To overcome these limitations, the authors propose a novel approach combining a redesigned decomposition architecture with a specialized contrastive loss function.
Redesigned Decomposition Architecture
The model splits the forecasting task into two specialized branches to handle different temporal frequencies:
- Short-term Branch: Uses a simple linear layer to capture local, high-frequency fluctuations. Recent research has shown that linear models are surprisingly robust for short-term dependencies.
- Long-term Branch: Uses a deep TCN (Temporal Convolutional Network) encoder and a multi-scale Moving Average (MA) decoder. This branch is specifically trained using the AutoCon loss to focus on the underlying global patterns.
AutoCon: Autocorrelation-based Contrastive Loss
Unlike standard contrastive learning that requires computationally expensive data augmentation (like cropping or jittering), AutoCon uses the global autocorrelation of the entire training series.
- It calculates the correlation between windows based on their time distance (lag).
- In a mini-batch, windows that are temporally far apart but have high global autocorrelation are treated as "positives."
- This forces the encoder to recognize that two windows separated by exactly one year should have similar representations, even if they are thousands of steps apart. This provides the benefits of "seeing" the whole series without the overfitting risks of massive input windows.
Datasets and Experimental Setup
The model was evaluated on nine well-known long-term forecasting benchmarks, including four ETT (Electricity Transformer Temperature) subsets, Electricity, Traffic, Weather, Exchange, and ILI (Influenza-like Illness).
Notably, the authors pushed these datasets beyond standard limits. While typical benchmarks predict up to 720 steps, this paper extends the horizon up to 2160 steps to test the models' ability to handle truly long-term variations.
Key Insights and Results
- Trends are just "Unfinished" Cycles: The paper suggests that what we often call a "trend" in a small window is actually just a segment of a much longer periodic variation. By identifying these via global autocorrelation, the model can predict the "bend" in the trend more accurately.
- Augmentation-Free Contrastive Learning: Most contrastive methods struggle with time series because traditional augmentations (like adding noise) can destroy delicate temporal dependencies. AutoCon avoids this by using the data's inherent periodic structure as its own supervision.
- Superior Accuracy: AutoCon outperformed 14 baseline models (including PatchTST, TimesNet, and DLinear). It achieved the top spot in 42 out of 52 experimental settings in univariate forecasting.
- Long-Horizon Dominance: The performance gap widened as the prediction horizon increased. On the ETTh2 and Electricity datasets, AutoCon reduced error by 34% and 11% respectively compared to the next-best model.
- Computational Efficiency: Despite being a deep learning approach, the model is highly efficient. It is the second fastest model (after the purely linear DLinear), significantly outperforming Transformer-based models like Nonstationary Transformer and TimesNet in training speed.
Limitations and Future Work
While highly effective, the authors note a few limitations. First, autocorrelation primarily captures linear relationships; real-world data often contains non-linear patterns that a simple autocorrelation function might miss. Second, while the model uses normalization to handle distribution shifts, extremely non-stationary data (where the underlying cycles change over time) remains a challenge for any method relying on global statistics.
Future directions include exploring higher-order correlations and integrating external factors (like weather or holidays) to further refine representation learning for complex time-series data.
Summary updated