{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/scaleformer-iterative-multi-scale-refining","title":"Scaleformer: Iterative Multi-scale Refining Transformers for Time Series Forecasting","arxiv_id":"2206.04038","date":"2022-06-08","proceeding":null,"authors":["Amin Shabani","Amir Abdi","Lili Meng","Tristan Sylvain"],"abstract":"The performance of time series forecasting has recently been greatly improved by the introduction of transformers. In this paper, we propose a general multi-scale framework that can be applied to the state-of-the-art transformer-based time series forecasting models (FEDformer, Autoformer, etc.). By iteratively refining a forecasted time series at multiple scales with shared weights, introducing architecture adaptations, and a specially-designed normalization scheme, we are able to achieve significant performance improvements, from 5.5% to 38.5% across datasets and transformer architectures, with minimal additional computational overhead. Via detailed ablation studies, we demonstrate the effectiveness of each of our contributions across the architecture and methodology. Furthermore, our experiments on various public datasets demonstrate that the proposed improvements outperform their corresponding baseline counterparts. Our code is publicly available in https://github.com/BorealisAI/scaleformer.","url_abs":"https://arxiv.org/abs/2206.04038v4","url_pdf":"https://arxiv.org/pdf/2206.04038v4.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"scaleformer-iterative-multi-scale-refining","repo_url":"https://github.com/borealisai/scaleformer","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}}],"tasks":[{"task_slug":"time-series-1","task_name":"Time Series"},{"task_slug":"time-series","task_name":"Time Series Analysis"},{"task_slug":"time-series-forecasting","task_name":"Time Series Forecasting"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2206.04038","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2206.04038"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/BorealisAI/scaleformer","reach":{"status":"ok","spdx":"NOASSERTION"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/borealisai/scaleformer","reach":{"status":"ok","spdx":"NOASSERTION"}}],"summary":{"ran":5,"unverified":5},"by_repo_kind":{"official":{"samples":10,"ran":5,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":10,"samples":[{"code_sha256_prefix":"2492ac94cca13c70","entry":"AutoCorrelation","repo":"borealisai/scaleformer","repo_kind":"official","path":"models/AutoformerMS.py","file_url":"https://github.com/borealisai/scaleformer/blob/HEAD/models/AutoformerMS.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"2492ac94cca13c70"}},{"code_sha256_prefix":"521082041db2aa44","entry":"DataEmbedding_mine","repo":"borealisai/scaleformer","repo_kind":"official","path":"models/AutoformerMS.py","file_url":"https://github.com/borealisai/scaleformer/blob/HEAD/models/AutoformerMS.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"521082041db2aa44"}},{"code_sha256_prefix":"4758a9188d0d0375","entry":"PositionalEmbedding_new","repo":"borealisai/scaleformer","repo_kind":"official","path":"models/AutoformerMS.py","file_url":"https://github.com/borealisai/scaleformer/blob/HEAD/models/AutoformerMS.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"4758a9188d0d0375"}},{"code_sha256_prefix":"95bcf49180879dac","entry":"TimeFeatureEmbedding_new","repo":"borealisai/scaleformer","repo_kind":"official","path":"models/AutoformerMS.py","file_url":"https://github.com/borealisai/scaleformer/blob/HEAD/models/AutoformerMS.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"95bcf49180879dac"}},{"code_sha256_prefix":"dafd454219d21bd8","entry":"moving_avg","repo":"borealisai/scaleformer","repo_kind":"official","path":"models/AutoformerMS.py","file_url":"https://github.com/borealisai/scaleformer/blob/HEAD/models/AutoformerMS.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"dafd454219d21bd8"}},{"code_sha256_prefix":"4903e16b933f2e84","entry":"DecoderLayer","repo":"borealisai/scaleformer","repo_kind":"official","path":"models/AutoformerMS.py","file_url":"https://github.com/borealisai/scaleformer/blob/HEAD/models/AutoformerMS.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"4903e16b933f2e84"}},{"code_sha256_prefix":"ee6955f410d41392","entry":"EncoderLayer","repo":"borealisai/scaleformer","repo_kind":"official","path":"models/AutoformerMS.py","file_url":"https://github.com/borealisai/scaleformer/blob/HEAD/models/AutoformerMS.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"ee6955f410d41392"}},{"code_sha256_prefix":"66453cddb5e77c95","entry":"Model","repo":"borealisai/scaleformer","repo_kind":"official","path":"models/AutoformerMS.py","file_url":"https://github.com/borealisai/scaleformer/blob/HEAD/models/AutoformerMS.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"66453cddb5e77c95"}},{"code_sha256_prefix":"13b11e796ac9f012","entry":"series_decomp","repo":"borealisai/scaleformer","repo_kind":"official","path":"models/AutoformerMS.py","file_url":"https://github.com/borealisai/scaleformer/blob/HEAD/models/AutoformerMS.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"13b11e796ac9f012"}},{"code_sha256_prefix":"26a51a8cf6406c5b","entry":"series_decomp_multi","repo":"borealisai/scaleformer","repo_kind":"official","path":"models/AutoformerMS.py","file_url":"https://github.com/borealisai/scaleformer/blob/HEAD/models/AutoformerMS.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"26a51a8cf6406c5b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}