atlas

Research map / Time series / Long-term forecasting

SAMformer: Unlocking the Potential of Transformers in Time Series Forecasting with Sharpness-Aware Minimization and Channel-Wise Attention

ICML 2024 · Time series › Long-term forecasting · approach: Transformers for long-term forecasting · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes SAMformer, a shallow one-layer channel-wise-attention transformer with RevIN trained under sharpness-aware minimization, which matches or beats MLP and transformer forecasters on 8 long-term forecasting benchmarks.

Problem

Transformers underperform simple linear and MLP baselines in multivariate long-term time series forecasting, and overfit or converge to sharp minima with poor generalization.

Approach

Use a shallow single-layer transformer with channel-wise (D x D) attention plus RevIN, and train it with sharpness-aware minimization to reach flatter minima; the paper argues attention entropy collapse is benign under SAM, and that sigma-reparameterization harms attention rank.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train the transformer with SAM (ablation)Transformer on the synthetic linear forecasting task · Synthetic validation datavalidation lossHelped
Fix self-attention weights at initialization (ablation)Transformer on the synthetic linear forecasting task · Synthetic validation datavalidation lossHelped
Use sigmaReparam instead of the base Transformer (ablation)Transformer on the synthetic linear forecasting task · Synthetic validation datavalidation lossMixed
Use channel-wise rather than temporal-wise attention (ablation)SAMformer · Multivariate forecasting benchmarkstest MSEHelped
Replace learnable attention with identity attention (ablation)SAMformer · Multivariate forecasting benchmarkstest MSEHurt
Add sigmaReparam to SAMformer (ablation)SAMformer · ETTh1 and Exchangetest MSEHurt
Use sigmaReparam without SAM (ablation)Transformer · ETTh1 and Exchangetest MSEHurt
Train TSMixer with SAM (ablation)TSMixer · Multivariate forecasting benchmarkstest MSE: 9.58%Helped
Use SGD instead of Adam (ablation)SAMformer · Multivariate forecasting benchmarksconvergenceHurt
Use AdamW instead of Adam (ablation)SAMformer · Multivariate forecasting benchmarkstest performanceNo clear effect
Increase SAM neighborhood size sufficiently, generally above 0.7 (ablation)SAMformer · Multivariate forecasting benchmarkstest MSE: 0.7Helped
Combine SAM with sigmaReparam (ablation)Transformer · Synthetic and real-world forecastingtest performanceNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: ETTh1 ETTh2 ETTm1 ETTm2 Electricity Exchange Traffic Weather

Benchmarks: ETTh1 ETTh2 ETTm1 ETTm2 Electricity Exchange Traffic Weather

Metrics: MSE MAE overall MSE improvement

Baselines: TSMixer TSMixer+SAM Transformer iTransformer PatchTST FEDformer Informer Autoformer MOIRAI sigma Reparam

Builds on: sharpness-aware minimization RevIN TSMixer sigma reparameterization entropy collapse analysis of transformers

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy