Abstract
The performance of transformers for time-series forecasting has improved significantly. Recent architectures learn complex temporal patterns by segmenting a time-series into patches and using the patches as tokens. The patch size controls the ability of transformers to learn the temporal patterns at different frequencies: shorter patches are effective for learning localized, high-frequency patterns, whereas mining long-term seasonalities and trends requires longer patches. Inspired by this observation, we propose a novel framework, Multi-resolution Time-Series Transformer (MTST), which consists of a multi-branch architecture for simultaneous modeling of diverse temporal patterns at different resolutions. In contrast to many existing time-series transformers, we employ relative positional encoding, which is better suited for extracting periodic components at different scales. Extensive experiments on several real-world datasets demonstrate the effectiveness of MTST in comparison to state-of-the-art forecasting techniques.
Introduction
Long-term time-series forecasting is notoriously difficult because real-world signals are a complex mixture of different frequencies. A single dataset might contain a multi-year trend (low frequency), weekly seasonalities (medium frequency), and sudden hourly spikes (high frequency).
Recent "Patch-based" Transformers improved performance by grouping timestamps into local windows or "patches." However, these models typically use a single, fixed patch size. This creates a trade-off: small patches are effective for catching local fluctuations but struggle with long-term trends, while large patches capture the "big picture" but blur out important fine-grained details. Previous attempts to solve this using downsampling often destroyed the chronological order of the data, leading to sub-optimal results.
The MTST Framework
The Multi-resolution Time-Series Transformer (MTST) addresses these limitations through three key innovations:
- Multi-Branch Architecture: Instead of a single sequence of tokens, each layer of MTST consists of multiple parallel branches.
- Resolution via Patching: Each branch uses a different patch size ($P$). A branch with small patches provides a high-resolution view of the data, while a branch with large patches provides a low-resolution, "coarse" view. This allows the model to capture different frequencies simultaneously without needing to downsample the original signal.
- Relative Positional Encoding (RPE): Unlike standard transformers that use absolute positional encoding, MTST uses RPE to encode the distance between patches. This provides a stronger inductive bias for capturing periodic or seasonal patterns.
At the end of each layer, the representations from all branches are flattened, concatenated, and passed through a linear layer to fuse the multi-scale information before moving to the next stage.
Key Insights
Patch Size as a Lens
The core innovation is treating patch size as a resolution control. By varying the patch size rather than the sampling rate, the model maintains the integrity of the timeline while extracting features at different scales. Ablation studies found that removing either the high-resolution or low-resolution branches generally degraded performance, confirming that long-term forecasting benefits from seeing both the "forest" (trends) and the "trees" (local spikes) at once.
The Advantage of Relative Positional Encoding
The researchers demonstrated that RPE allows the attention mechanism to identify similar tokens in periodic signals much more accurately than absolute encoding. This is crucial for time-series data where cycles are the primary signal. As shown in the attention heatmaps, RPE maintains a clear diagonal structure that corresponds to temporal proximity and periodicity, whereas absolute PE often results in scattered, less meaningful attention patterns.
Experimental Results
MTST was evaluated on seven widely-used public benchmarks, including Weather, Traffic, Electricity, and ETT datasets. The model established a new performance ceiling for the field:
- Comprehensive Performance: It achieved the lowest Mean Squared Error (MSE) on 28 out of 28 test settings across the primary datasets.
- Statistical Significance: Compared to the previous state-of-the-art (PatchTST), MTST showed statistically significant improvements in 27 out of 28 cases for MSE.
- Robustness: Qualitative visualizations show that MTST is more robust to "abnormal" data points because its low-resolution branch helps it maintain focus on the overall trend even when local spikes occur.
Conclusion and Future Work
While MTST sets a new standard for long-term forecasting, it currently follows the trend of channel independence, treating each variable in a multivariate series independently to avoid inter-variable noise. Future work may explore extending MTST to model cross-variable dependencies (e.g., how temperature affects electricity load). Additionally, while the model can use shallower architectures to maintain efficiency, the multi-branch structure does introduce new hyperparameters regarding the number and size of patches that require tuning for new datasets.
Summary updated