A Multi-Scale Decomposition MLP-Mixer for Time Series Analysis

Shuhan Zhong, Sizhe Song, Weipeng Zhuo, Guanyao Li, Yang Liu, S.-h. Gary Chan

TL;DR

MSD-Mixer is a task-general architecture for time series analysis built entirely on multi-layer perceptrons (MLPs). By combining multi-scale temporal patching with an explicit hierarchical decomposition and a novel "residual loss" that penalizes residual autocorrelation, it outperforms state-of-the-art Transformers and CNNs across five core tasks while running up to 8× faster.

What Problem Does This Paper Address?

Real-world time series—from server telemetry to physiological signals—are superpositions of diverse temporal patterns (trends, multiple periodic cycles) corrupted by noise. However, standard deep learning models face key hurdles:

  1. Point-wise vs. Sub-series Modeling: Popular Transformer-based architectures treat individual time steps as tokens, often failing to capture localized semantic shapes (sub-series) that unfold over multiple timescales.
  2. Incomplete Decomposition: Existing deep decomposition approaches (e.g., N-BEATS, ETSformer) either neglect multivariate channel dependencies, rely on point-wise self-attention, or simply ignore the decomposition residual. Without explicitly constraining this residual, models often discard meaningful temporal patterns as unmodeled noise.
  3. Task-Specific Silos: Most decomposition architectures are tailored strictly for univariate forecasting and cannot generalize to imputation, anomaly detection, or classification.

Methods

MSD-Mixer replaces complex attention mechanisms with an all-MLP backbone designed around hierarchical decomposition:

Input X ──► Layer 1 (Patch p₁) ──► Sub-series Component S₁ (via Encoder/Decoder)
               │                     └──► Latent E₁ ──► Task Head
               ▼ (Residual Z₁)
            Layer 2 (Patch p₂) ──► Sub-series Component S₂
               │                     └──► Latent E₂ ──► Task Head
               ▼
              ...
               ▼ (Final Residual Zₖ) ──► Residual Loss L_r
  • Hierarchical Layer Decomposition: An input $\mathbf{X}$ passes through a stack of $k$ layers. Layer $i$ receives the remaining signal $\mathbf{Z}_{i-1}$, extracts a latent representation $\mathbf{E}_i$, reconstructs component $\mathbf{S}_i$, and passes the updated residual $\mathbf{Z}_i = \mathbf{Z}_{i-1} - \mathbf{S}_i$ to layer $i+1$. The final task prediction sums the projected latents: $\hat{\mathbf{Y}} = \sum_{i=1}^k f_i(\mathbf{E}_i)$.
  • Multi-Scale Temporal Patching: Rather than using uniform patches, each layer operates on non-overlapping patches of a different temporal scale $p_i$ (e.g., segments corresponding to 1 day, 12 hours, 6 hours).
  • Three-Way MLP Mixing: Within each layer’s encoder and decoder, three distinct MLP blocks mix representations across channels (inter-channel dependencies), across patches (global context), and within patches (intra-patch sub-series dynamics).
  • Novel Residual Loss: To guarantee decomposition completeness, the authors introduce an auxiliary loss $\mathcal{L}_r$ applied to the final residual $\mathbf{Z}_k$:
  • Zero-mean penalty: Minimizes residual bias.
  • Autocorrelation penalty: Penalizes autocorrelation coefficients of $\mathbf{Z}_k$ that exceed statistical white-noise bounds ($\pm \alpha/\sqrt{L}$). If periodic patterns remain in the residual, the model is penalized, forcing it to extract those signals into the components.

Datasets

The authors evaluated MSD-Mixer across 26 standard benchmark datasets covering five distinct tasks (no new datasets were introduced):

  • Long-Term Forecasting: 8 multivariate benchmarks (ETTm1, ETTm2, ETTh1, ETTh2, Electricity [ECL], Traffic, Weather, Exchange Rate).
  • Short-Term Forecasting: M4 competition dataset (100,000 univariate series across Yearly, Quarterly, Monthly, Weekly, Daily, and Hourly subsets).
  • Missing Data Imputation: ETT, ECL, and Weather under 12.5%, 25%, 37.5%, and 50% random masking ratios.
  • Anomaly Detection: SMD, MSL, SMAP, SWaT, and PSM benchmarks evaluated via reconstruction error.
  • Classification: 10 multivariate datasets from the UEA archive (including AWR, AF, CT, CR, FD, FM, MI, SCP1, SCP2, UWGL).

Key Insights and Ideas

  • Whiteness as a Learning Signal: Simply subtracting components does not guarantee good decomposition; neural networks often leave strong cyclical signals in the residual. Enforcing near-zero autocorrelation on the final residual guarantees that all predictable temporal dependencies are absorbed into the latent representations.
  • Scale Diversity Matters, Layer Ordering Does Not: Ablation experiments showed that flipping layer order (fine-to-coarse vs. coarse-to-fine patch sizes) had virtually no impact on accuracy. What mattered was providing layers with different patch scales; forcing a single uniform patch size across all layers caused severe performance drops across all tasks.
  • MLP Mixing Outperforms Self-Attention: Point-wise attention is computationally expensive and struggles with univariate or short sequences where attention weights collapse. Tri-directional MLPs directly capture localized sub-series variations and cross-channel interactions at significantly lower cost.

Key Results

MSD-Mixer took 1st place in 114 out of 142 total benchmarks, outperforming task-general baselines (PatchTST, TimesNet, DLinear, ETSformer) and task-specific models:

  • Long-Term Forecasting: Achieved top performance in 45 of 64 settings, improving MSE by up to 9.8% over second-place models.
  • Short-Term Forecasting (M4): Swept all 15 benchmark settings, besting N-HiTS and N-BEATS with up to a 5.6% reduction in Overall Weighted Average (OWA).
  • Imputation: Ranked 1st in 45 of 48 benchmarks, achieving up to 46.1% lower MSE and remaining robust even at a 50% missing data ratio.
  • Anomaly Detection & Classification: Achieved top F1-scores in 4 of 5 anomaly benchmarks (up to 33.1% improvement) and led the UEA classification benchmarks with a Mean Rank of 2.5 (vs. 3.8 for FormerTime and 4.4 for TARNet).
  • Efficiency: On ETTm2, MSD-Mixer used 951K parameters (vs. 10.1M for PatchTST and 1,191K for TimesNet) and trained in 10.9s/epoch—running 1.67× faster than PatchTST and >8× faster than TimesNet.

Limitations and Future Work

  • Autocorrelation Constraint with Missing Values: In the imputation task, calculating the autocorrelation coefficient matrix directly over masked/missing entries is mathematically ill-posed; the authors had to disable the autocorrelation term and rely solely on the mean penalty.
  • Manual Scale Selection: Patch sizes ($p_i$) across layers are currently chosen as static hyperparameters based on sampling rate heuristics (e.g., matching hourly or daily cycles). Automated or learnable multi-scale patch discovery remains an open direction.
  • Footprint vs. Ultra-Lightweight Models: While substantially lighter than Transformers and CNNs, MSD-Mixer contains more parameters and is slightly slower than single-layer linear models like DLinear.

Summary updated

BibTeX
@article{zhong2024multi,
  author = {Shuhan Zhong and Sizhe Song and Weipeng Zhuo and Guanyao Li and Yang Liu and S.-H. Gary Chan},
  title = {{A Multi-Scale Decomposition MLP-Mixer for Time Series Analysis}},
  journal = {Proc. VLDB Endow.},
  year = {2024},
  url = {https://openreview.net/forum?id=eNEZHepVX2},
}
Figure