SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2106.13008 · 2021

Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting

Mingsheng Long, Jianmin Wang, Mae Mse, Metric Mse, Haixu Wu, Jiehui Xu, Mae Ett

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 16 functions out of this paper's own repositories and ran 13 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
thuml/autoformer — 10 of 11
WenjieDu/PyPOTS — 3 of 5
FunctionStatusWhere it lives
AutoCorrelation Ran thuml/autoformer/models/Autoformer.py
code served (permissive licence) · get_code("d0d7e1a62ce9a487")
AutoCorrelationLayer Ran thuml/autoformer/models/Autoformer.py
code served (permissive licence) · get_code("86002073aa37c338")
DataEmbedding_wo_pos Ran thuml/autoformer/models/Autoformer.py
code served (permissive licence) · get_code("b67927730a8e4c56")
Decoder Ran thuml/autoformer/models/Autoformer.py
code served (permissive licence) · get_code("fec719ccc1a83273")
DecoderLayer Ran thuml/autoformer/models/Autoformer.py
code served (permissive licence) · get_code("b4cbe9d6ab095cdf")
Encoder Ran thuml/autoformer/models/Autoformer.py
code served (permissive licence) · get_code("09148e200d49d64c")
EncoderLayer Ran thuml/autoformer/models/Autoformer.py
code served (permissive licence) · get_code("d73afac4def3cad2")
MovingAvgBlock Ran WenjieDu/PyPOTS/pypots/nn/modules/autoformer/layers.py
code served (permissive licence) · get_code("c9a3cbac02773ea2")
MultiHeadAttention Ran WenjieDu/PyPOTS/pypots/nn/modules/autoformer/layers.py
code served (permissive licence) · get_code("f42a7fe1ccedb9dd")
SeriesDecompositionBlock Ran WenjieDu/PyPOTS/pypots/nn/modules/autoformer/layers.py
code served (permissive licence) · get_code("d63bc21c9187631a")
TokenEmbedding Ran thuml/autoformer/models/Autoformer.py
code served (permissive licence) · get_code("7c956e353b5b9e7c")
compared_version Ran thuml/autoformer/models/Autoformer.py
code served (permissive licence) · get_code("027c93847484d85a")
my_Layernorm Ran thuml/autoformer/models/Autoformer.py
code served (permissive licence) · get_code("e19320a7ff1b54a1")
AttentionOperator Not yet run WenjieDu/PyPOTS/pypots/nn/modules/autoformer/layers.py
code served (permissive licence) · get_code("7eeecf9ed43a551d")
AutoformerEncoderLayer Not yet run WenjieDu/PyPOTS/pypots/nn/modules/autoformer/layers.py
code served (permissive licence) · get_code("a9330eefe8b2c5c7")
Model Not yet run thuml/autoformer/models/Autoformer.py
code served (permissive licence) · get_code("16dec41e5dbdd719")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Extending the forecasting time is a critical demand for real applications, such as extreme weather early warning and long-term energy consumption planning. This paper studies the long-term forecasting problem of time series. Prior Transformerbased models adopt various self-attention mechanisms to discover the long-range dependencies. However, intricate temporal patterns of the long-term future prohibit the model from finding reliable dependencies. Also, Transformers have to adopt the sparse versions of point-wise self-attentions for long series efficiency, resulting in the information utilization bottleneck. Going beyond Transformers, we design Autoformer as a novel decomposition architecture with an Auto-Correlation mechanism. We break with the pre-processing convention of series decomposition and renovate it as a basic inner block of deep models. This design empowers Autoformer with progressive decomposition capacities for complex time series. Further, inspired by the stochastic process theory, we design the Auto-Correlation mechanism based on the series periodicity, which conducts the dependencies discovery and representation aggregation at the sub-series level. Auto-Correlation outperforms self-attention in both efficiency and accuracy. In long-term forecasting, Autoformer yields stateof-the-art accuracy, with a 38% relative improvement on six benchmarks, covering five practical applications: energy, traffic, economics, weather and disease. Code is available at this repository: https://github.com/thuml/Autoformer.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2106.13008")
get_code_for_paper("2106.13008")
have("2106.13008")

Connect an agent — have() is free.