{"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/mamba4cast-efficient-zero-shot-time-series","title":"Mamba4Cast: Efficient Zero-Shot Time Series Forecasting with State Space Models","arxiv_id":"2410.09385","date":"2024-10-12","proceeding":null,"authors":["Sathya Kamesh Bhethanabhotla","Omar Swelam","Julien Siems","David Salinas","Frank Hutter"],"abstract":"This paper introduces Mamba4Cast, a zero-shot foundation model for time series forecasting. Based on the Mamba architecture and inspired by Prior-data Fitted Networks (PFNs), Mamba4Cast generalizes robustly across diverse time series tasks without the need for dataset specific fine-tuning. Mamba4Cast's key innovation lies in its ability to achieve strong zero-shot performance on real-world datasets while having much lower inference times than time series foundation models based on the transformer architecture. Trained solely on synthetic data, the model generates forecasts for entire horizons in a single pass, outpacing traditional auto-regressive approaches. Our experiments show that Mamba4Cast performs competitively against other state-of-the-art foundation models in various data sets while scaling significantly better with the prediction length. The source code can be accessed at https://github.com/automl/Mamba4Cast.","url_abs":"https://arxiv.org/abs/2410.09385v1","url_pdf":"https://arxiv.org/pdf/2410.09385v1.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":"mamba4cast-efficient-zero-shot-time-series","repo_url":"https://github.com/automl/mamba4cast","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"automl","task_name":"AutoML"},{"task_slug":"mamba","task_name":"Mamba"},{"task_slug":"state-space-models","task_name":"State Space Models"},{"task_slug":"time-series-1","task_name":"Time Series"},{"task_slug":"time-series-forecasting","task_name":"Time Series Forecasting"}],"methods":[{"method_slug":"mamba","method_name":"Mamba"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2410.09385","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2410.09385"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/automl/mamba4cast","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":7},"by_repo_kind":{"official":{"samples":7,"ran":7,"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":0,"samples":[{"code_sha256_prefix":"ccde5140eff23db2","entry":"adapt_state_dict_keys","repo":"automl/mamba4cast","repo_kind":"official","path":"src_torch/benchmark/inference_time_exp.py","file_url":"https://github.com/automl/mamba4cast/blob/HEAD/src_torch/benchmark/inference_time_exp.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ccde5140eff23db2"}},{"code_sha256_prefix":"ba913a101ca16752","entry":"generate_damping","repo":"automl/mamba4cast","repo_kind":"official","path":"src_torch/synthetic_generation/generate_steps_n_spikes.py","file_url":"https://github.com/automl/mamba4cast/blob/HEAD/src_torch/synthetic_generation/generate_steps_n_spikes.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ba913a101ca16752"}},{"code_sha256_prefix":"9e84c4a9458c5378","entry":"generate_peak_spikes","repo":"automl/mamba4cast","repo_kind":"official","path":"src_torch/synthetic_generation/generate_steps_n_spikes.py","file_url":"https://github.com/automl/mamba4cast/blob/HEAD/src_torch/synthetic_generation/generate_steps_n_spikes.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9e84c4a9458c5378"}},{"code_sha256_prefix":"2b820f93e86d824d","entry":"generate_spikes","repo":"automl/mamba4cast","repo_kind":"official","path":"src_torch/synthetic_generation/generate_steps_n_spikes.py","file_url":"https://github.com/automl/mamba4cast/blob/HEAD/src_torch/synthetic_generation/generate_steps_n_spikes.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2b820f93e86d824d"}},{"code_sha256_prefix":"e81ed270935eb141","entry":"get_freq_component","repo":"automl/mamba4cast","repo_kind":"official","path":"src_torch/synthetic_generation/generate_series_components.py","file_url":"https://github.com/automl/mamba4cast/blob/HEAD/src_torch/synthetic_generation/generate_series_components.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e81ed270935eb141"}},{"code_sha256_prefix":"adc43380e5f5043b","entry":"gluonts_to_dataframe","repo":"automl/mamba4cast","repo_kind":"official","path":"src_torch/benchmark/autogluonts_benchmarks.py","file_url":"https://github.com/automl/mamba4cast/blob/HEAD/src_torch/benchmark/autogluonts_benchmarks.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"adc43380e5f5043b"}},{"code_sha256_prefix":"57bcd2d12c6b1227","entry":"scale_data","repo":"automl/mamba4cast","repo_kind":"official","path":"src_torch/benchmark/dataset_plots_cl_pl.py","file_url":"https://github.com/automl/mamba4cast/blob/HEAD/src_torch/benchmark/dataset_plots_cl_pl.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"57bcd2d12c6b1227"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}