Source-linked AI summary
MTS-Mixers: Multivariate Time Series Forecasting via Factorized Temporal and Channel Mixing
Zhe Li, Zhongwen Rao, Lujia Pan, Zenglin Xu
TL;DR
Time-series forecasting has unclear evidence about attention's role in capturing temporal dependencies, while data redundancy also affects forecasting. MTS-Mixers factorizes temporal and channel mixing to exploit low-rank structure; the paper reports state-of-the-art results on real-world datasets, with average MSE and MAE reductions.
Problem
The contribution of attention to temporal dependency capture remains unclear, and temporal and channel redundancy affects forecasting performance.
Source: §1 · pp. 1–2Method
MTS-Mixers uses factorized temporal and channel mixing to capture dependencies and leverage the low-rank property of time-series data.
Source: §1 · p. 2Results
MTS-Mixers reports state-of-the-art results on several public real-world datasets, with average MSE and MAE reductions of 15.4% and 12.9%.
Source: §1 · p. 3Takeaways & Limitations
Model analysis indicates that mapping the input sequence to the output sequence may be key to forecasting.
Source: §6 · p. 9
Abstract
from arXiv · showhide
Multivariate time series forecasting has been widely used in various practical scenarios. Recently, Transformer-based models have shown significant potential in forecasting tasks due to the capture of long-range dependencies. However, recent studies in the vision and NLP fields show that the role of attention modules is not clear, which can be replaced by other token aggregation operations. This paper investigates the contributions and deficiencies of attention mechanisms on the performance of time series forecasting. Specifically, we find that (1) attention is not necessary for capturing temporal dependencies, (2) the entanglement and redundancy in the capture of temporal and channel interaction affect the forecasting performance, and (3) it is important to model the mapping between the input and the prediction sequence. To this end, we propose MTS-Mixers, which use two factorized modules to capture temporal and channel dependencies. Experimental results on several real-world datasets show that MTS-Mixers outperform existing Transformer-based models with higher efficiency.
1. Introduction
The introduction questions the role of attention in time-series forecasting and motivates MTS-Mixers as a factorized approach to temporal and channel dependencies. It reports improved forecasting performance and efficiency on public real-world datasets.
1. Introduction
- The introduction identifies unclear attention contributions, reliance on positional or date-specific encodings, and additional operations that can make sparse-attention methods slow in practice.Source: §1 · pp. 1–2
- On ETTh1, Fourier replacement maintained Transformer forecasting performance, removing cross-attention improved it, and separate temporal and channel modeling brought further improvement.The figure compares modifications and Fourier-Net variants at a 96-96 horizon setting.Source: §1 · p. 2, Figure 2 · p. 2
- Time-series data can be low-rank, with redundant temporal information across sampling rates and consistent information across channels.Figure 3 illustrates temporal redundancy with Exchange-rate series and channel redundancy with three consumers' electricity consumption.Source: §1 · p. 2, Figure 3 · p. 2
- MTS-Mixers factorize temporal and channel mixing to capture their dependencies, leverage low-rank structure, and improve prediction accuracy and efficiency.Source: §1 · p. 2
- MTS-Mixers achieves state-of-the-art forecasting on several public real-world datasets, reducing MSE by 15.4% and MAE by 12.9% on average.Source: §1 · p. 3
2. Related Work
Prior time-series forecasting work adapted Transformers to address long-sequence costs and improve temporal dependency modeling. Other fields explored replacing attention, while this paper investigates attention-like modules in forecasting and proposes factorized temporal and channel mixing.
2. Related Work
- Time-series forecasting work addressed Transformer costs with sparse attention and non-autoregressive decoding, and enhanced temporal modeling with trend-seasonality decomposition and frequency transformations.Vanilla Transformer applications to long-sequence forecasting had failed because self-attention scales quadratically with input length.Source: §2 · p. 3
- Synthesizer, MLP-Mixer, FNet, and Poolformer replaced attention with other aggregation operations for competitive performance in machine translation or computer vision.Source: §2 · p. 3
- Unlike those works, this paper examines what attention-like modules learn in time-series forecasting and proposes factorized temporal and channel mixing for low-rank data.Source: §2 · p. 3
3. Preliminary
The section defines forecasting as predicting future values across all channels from a consecutive historical multivariate series, then examines how Transformer-based models capture temporal dependencies and map inputs to forecasts.
3.1. Problem definition
- Forecasting maps a historical series of n steps and c channels to the next m steps across those same c channels.The historical and forecast sequences are consecutive.Source: §3.1 · p. 3
3.2. Rethinking the mechanism of attention in Transformer-based forecasting models
- Transformer forecasting uses encoder-side token-level temporal similarity, channel-wise feature learning, and a decoder query to produce forecasts from the input history.A projection layer maps the decoder output to the final forecast; R2 describes the relationship between historical inputs and predicted outputs.Source: §3.2 · p. 3
- Removing self- or cross-attention can maintain or improve forecasting, while separately modeling temporal and channel dependencies further enhances results.The section interprets attention-like modules as capturing temporal dependencies across channels and cross-attention as bridging input and output sequences.Source: §3.2 · p. 3
4. MTS-Mixers
MTS-Mixers is a framework for mapping multivariate historical inputs to forecasts while modeling temporal and channel dependencies separately; its modules admit several implementations, and the experiments use factorized MLP mixing.
4. MTS-Mixers
- MTS-Mixers separately captures temporal and channel dependencies to learn a map from the historical input to the forecast output.The input embedding module is optional.Source: §4 · p. 3
- The framework’s temporal and channel modules can use attention, random matrices, or factorized MLPs to capture dependencies.The architecture also includes a linear projection that outputs the forecasting results.Source: Figure 4 · p. 4, §4 · p. 4
- The attention-based variant uses self-attention for temporal dependency and a feed-forward network for channel interaction, then directly projects learned features to the prediction sequence.It removes the vanilla Transformer decoder.Source: §4 · p. 4
- The random-matrix variant multiplies temporal and channel dependency matrices with the input and a projection, whose initialization is controllable.The matrices encode temporal dependency, channel dependency, and projection, respectively.Source: §4 · p. 4
- Temporal mixing downsamples a series into interleaved subsequences, processes each with a temporal feature extractor, and merges them in original order.The described extractors include MLP or attention.Source: §4 · p. 4
- Channel mixing reduces channel-dimension noise through factorization, with U and V representing factorized channel interaction and m<c.Truncated SVD and NMF are examples of methods for obtaining the channel representation.Source: §4 · p. 5
- For baseline comparisons, the paper uses MLP-based MTS-Mixers with factorized temporal and channel mixing, and allows variants to be combined additively when needed.The supplied table caption specifies forecasting results across datasets and prediction horizons but does not report result values.Source: §4 · p. 5, Table 1 · p. 5
5. Experiments
MTS-Mixers achieves strong multivariate forecasting results across the reported benchmarks, while experiments examine temporal and channel factorization, model variants, and runtime. The analysis also compares learned prediction patterns and tests factorization settings.
5.1. Experimental setup
- Experiments cover economics, energy, traffic, weather, and infectious-disease forecasting, comparing MTS-Mixers with Transformer-based and non-Transformer baselines.The ETT data use a 6:2:2 train-validation-test split, while other datasets use 7:1:2.Source: §5.1 · pp. 5–6
5.2. Main results
- Under the stated protocol, MTS-Mixers reports averaged MSE reductions versus previous state-of-the-art results of 18.1% on ECL, 10.8% on Traffic, 17.0% on PeMS04, 7.2% on Weather, and 39.0% on ILI, with comparable Exchange results.Source: §5.2 · p. 6
5.3. Ablation studies
- Factorized MLP performs best among the tested MTS-Mixers variants, while factorized attention outperforms prior Transformer-based models and factorized random matrices outperform attention.The tested variants include MLP, attention, and random-matrix interaction capture; all gain from temporal and channel factorization.Source: §5.3 · p. 7
- Adding channel factorization consistently improves FEDformer and SCINet, which use frequency-domain feature selection and recursive downsampling, respectively.The experiments apply channel factorization to these methods to address channel redundancy.Source: §5.3 · p. 7
- Temporal factorization improves MLP- and attention-based MTS-Mixers, although the best subsequence count varies by dataset; larger counts particularly benefit attention.The tested counts are s ∈ {1, 2, 3, 4, 6, 8, 12}.Source: §5.3 · p. 7, Figure 5 · p. 7
- Sharing temporal-extractor parameters across downsampled subsequences substantially reduces parameter quantity, with a trade-off in forecasting performance.The comparison is reported for the ETTm1 96-96 setting.Source: §5.3 · pp. 7–8, Table 4 · p. 8
- Four channel-denoising strategies improve prediction accuracy, supporting channel factorization; the tested settings include retaining 10% of the maximum singular value and dropping 10% of channels.The truncated-SVD and channel-drop settings are stated explicitly.Source: §5.3 · p. 8, Table 5 · p. 8
5.4. Model analysis
- Vanilla Transformer attention heads often capture little useful information, whereas MTS-Mixers variants learn similar periodic mapping patterns; MTS-Mixers also runs more efficiently in training and inference.The pattern analysis uses one encoder layer per model on ECL; runtime is measured over three runs of one epoch.Source: §5.4 · p. 8, Figure 6 · p. 8, Table 3 · p. 8
6. Conclusion
The paper concludes that attention is not necessary for temporal dependency capture and that redundancy affects forecasting. MTS-Mixers uses temporal and channel factorization and achieves state-of-the-art results with higher efficiency on several real-world datasets.
- Experiments indicate attention is unnecessary for capturing temporal dependencies, while redundancy in time-series data affects forecasting performance.The conclusion also identifies the input-to-output sequence mapping as a possible key revealed by model-pattern analysis.Source: §6 · pp. 8–9
- Temporal and channel factorization leverage time-series low-rank structure, and MTS-Mixers achieves state-of-the-art results with higher efficiency on several real-world datasets.Source: §6 · p. 9
A. Full Benchmark on the ETT Datasets
MTS-Mixers is reported to achieve consistent state-of-the-art performance across the four ETT multivariate forecasting benchmarks. Its averaged MSE reductions over the second-best results range from 1.8% to 8.2%.
- MTS-Mixers achieves averaged MSE reductions of 1.8% on ETTh1, 4.7% on ETTm1, 3.7% on ETTh2, and 8.2% on ETTm2 versus the second-best results.The benchmarks include hourly ETTh1 and ETTh2 and minutely ETTm1 and ETTm2, with prediction lengths 96, 192, 336, and 720.Source: A. Full Benchmark on the ETT Datasets · p. 11, Table 6 · p. 11
B. Univariate Time Series Forecasting
On univariate benchmarks, MTS-Mixers reports lower averaged MSE on Exchange and ETTm2. The reproduction details describe temporal downsampling into interleaved subsequences and low-dimensional channel interaction.
B. Univariate Time Series Forecasting
- MTS-Mixers yields averaged MSE reductions of 1.3% on Exchange and 1.6% on ETTm2 in univariate benchmarks, with channel factorization removed.Source: Table 7 · p. 11, B. Univariate Time Series Forecasting · p. 12
C.1. Reproduction Details for MTS-Mixers
- Temporal factorization equidistantly downsamples the original series into s interleaved subsequences, with s selected by grid search from {1, 2, 3, 4, 6, 8, 12}.The appendix illustrates the operation with two subsequences.Source: §C.1 · p. 12, Figure 7 · p. 12
- Channel factorization uses a channel MLP with a low-dimensional factorization X_C = UV, where U ∈ R^{n×m}, V ∈ R^{m×c}, and m < c.The appendix grid-searches m ∈ {0, 16, 64}; m = 0 means no interaction among channels.Source: §C.1 · p. 12
C.2. Details on Benchmark Tasks and Baselines
The benchmark setup covers ten time-series datasets, follows a shared preprocessing protocol, and uses reproduced results for five forecasting baselines.
C.2. Details on Benchmark Tasks and Baselines
- Ten time-series datasets follow the preprocessing protocol in Zhou et al. (2021), with training random seed 1024.The passage also points to dataset-specific learning rates and batch sizes in Table 8.Source: §C.2 · p. 12, Table 8 · p. 12
- FEDformer, DLinear, SCINet, Autoformer, and Informer results are based on the authors’ reproductions.Their hyperparameters follow the suggestions in each original paper.Source: §C.2 · p. 12
- Table 8 lists the initial learning rate and batch size used for each dataset.Source: Table 8 · p. 12, §C.2 · p. 12
D. MTS-Mixers Weights Visualization on Different Datasets
The section visualizes MTS-Mixers across datasets, describes changes from the vanilla Transformer to an attention-based variant, and reports how positional encoding affects the variants.
D. MTS-Mixers Weights Visualization on Different Datasets
- The visual analysis compares attention, random, and identity mixing across datasets, with Figure 8 showing one layer of the stacked block.Source: Figure 8 · p. 13, D. MTS-Mixers Weights Visualization on… · p. 13
E. From vanilla Transformer to Attention-based MTS-Mixers
- The attention-based MTS-Mixer removes the Transformer decoder, replaces tokenization with direct temporal self-attention, decouples temporal and channel interaction, and applies temporal factorization.The authors report that these modifications are effective on ECL under the 96-96 setting.Source: E. From vanilla Transformer to… · p. 13, Table 9 · p. 14
F. The Impact of Positional Encoding
- Attention-based MTS-Mixer outperforms other Transformer-based methods, but remains behind matrix-based and MLP-based MTS-Mixers.The authors argue that positional encoding distorts temporal information; adding ordering information degrades matrix-based and MLP-based variants, while attention-based MTS-Mixer requires it.Source: F. The Impact of Positional Encoding · p. 13, Figure 9 · p. 14
G. Forecasting Showcases
The showcases label ground truth and prediction and cover two input-to-forecast horizons on ECL and PeMS04.
G. Forecasting Showcases
- The supplied showcase labels identify ground truth and prediction and include ticks from 0 to 400.Source: G. Forecasting Showcases · p. 14
- The showcases include forecasts from 96 input steps to 96 or 336 steps on both ECL and PeMS04.Source: G. Forecasting Showcases · p. 14
Related papers
This paper cites
- Attention Is All You Need2017
- PyTorch: An Imperative Style, High-Performance Deep Learning Library2019
- Generating Long Sequences with Sparse Transformers2019
- MLP-Mixer: An all-MLP Architecture for Vision2021
- FEDformer: Frequency Enhanced Decomposed Transformer for Long-term Series Forecasting2022
- Enhancing the Locality and Breaking the Memory Bottleneck of Transformer on Time Series Forecasting2019