{"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/utilizing-image-transforms-and-diffusion","title":"Utilizing Image Transforms and Diffusion Models for Generative Modeling of Short and Long Time Series","arxiv_id":"2410.19538","date":"2024-10-25","proceeding":null,"authors":["Ilan Naiman","Nimrod Berman","Itai Pemper","Idan Arbiv","Gal Fadlon","Omri Azencot"],"abstract":"Lately, there has been a surge in interest surrounding generative modeling of time series data. Most existing approaches are designed either to process short sequences or to handle long-range sequences. This dichotomy can be attributed to gradient issues with recurrent networks, computational costs associated with transformers, and limited expressiveness of state space models. Towards a unified generative model for varying-length time series, we propose in this work to transform sequences into images. By employing invertible transforms such as the delay embedding and the short-time Fourier transform, we unlock three main advantages: i) We can exploit advanced diffusion vision models; ii) We can remarkably process short- and long-range inputs within the same framework; and iii) We can harness recent and established tools proposed in the time series to image literature. We validate the effectiveness of our method through a comprehensive evaluation across multiple tasks, including unconditional generation, interpolation, and extrapolation. We show that our approach achieves consistently state-of-the-art results against strong baselines. In the unconditional generation tasks, we show remarkable mean improvements of 58.17% over previous diffusion models in the short discriminative score and 132.61% in the (ultra-)long classification scores. Code is at https://github.com/azencot-group/ImagenTime.","url_abs":"https://arxiv.org/abs/2410.19538v1","url_pdf":"https://arxiv.org/pdf/2410.19538v1.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":"utilizing-image-transforms-and-diffusion","repo_url":"https://github.com/azencot-group/imagentime","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"state-space-models","task_name":"State Space Models"},{"task_slug":"time-series-1","task_name":"Time Series"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2410.19538","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2410.19538"}},"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/azencot-group/ImagenTime","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/azencot-group/imagentime","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":3,"ran_fixture":1,"unverified":4},"by_repo_kind":{"listed":{"samples":8,"ran":4,"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":8,"samples":[{"code_sha256_prefix":"89b10a8b26bbb7ed","entry":"Activation","repo":"azencot-group/ImagenTime","repo_kind":"listed","path":"models/testing_models/s4.py","file_url":"https://github.com/azencot-group/ImagenTime/blob/HEAD/models/testing_models/s4.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"89b10a8b26bbb7ed"}},{"code_sha256_prefix":"898daef1784ec4bd","entry":"LinearActivation","repo":"azencot-group/ImagenTime","repo_kind":"listed","path":"models/testing_models/s4.py","file_url":"https://github.com/azencot-group/ImagenTime/blob/HEAD/models/testing_models/s4.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"898daef1784ec4bd"}},{"code_sha256_prefix":"61139ec62260b411","entry":"get_logger","repo":"azencot-group/ImagenTime","repo_kind":"listed","path":"models/testing_models/s4.py","file_url":"https://github.com/azencot-group/ImagenTime/blob/HEAD/models/testing_models/s4.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"61139ec62260b411"}},{"code_sha256_prefix":"d41a4250066bce93","entry":"weight_init","repo":"azencot-group/ImagenTime","repo_kind":"listed","path":"models/networks.py","file_url":"https://github.com/azencot-group/ImagenTime/blob/HEAD/models/networks.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d41a4250066bce93"}},{"code_sha256_prefix":"8798dc6f24a48d55","entry":"TsImgEmbedder","repo":"azencot-group/imagentime","repo_kind":"listed","path":"models/img_transformations.py","file_url":"https://github.com/azencot-group/imagentime/blob/HEAD/models/img_transformations.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8798dc6f24a48d55"}},{"code_sha256_prefix":"6d5f0a137745e47e","entry":"batch_generator","repo":"azencot-group/ImagenTime","repo_kind":"listed","path":"metrics/discriminative_torch.py","file_url":"https://github.com/azencot-group/ImagenTime/blob/HEAD/metrics/discriminative_torch.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6d5f0a137745e47e"}},{"code_sha256_prefix":"e86e37d63199f8fd","entry":"histogram_torch","repo":"azencot-group/ImagenTime","repo_kind":"listed","path":"metrics/metrics_long_range.py","file_url":"https://github.com/azencot-group/ImagenTime/blob/HEAD/metrics/metrics_long_range.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e86e37d63199f8fd"}},{"code_sha256_prefix":"fa0e9e549b6bff3f","entry":"train_test_divide","repo":"azencot-group/ImagenTime","repo_kind":"listed","path":"metrics/discriminative_torch.py","file_url":"https://github.com/azencot-group/ImagenTime/blob/HEAD/metrics/discriminative_torch.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fa0e9e549b6bff3f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}