{"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/arxiv-2510-06699","title":"A Diffusion Model for Regular Time Series Generation from Irregular Data with Completion and Masking","arxiv_id":"2510.06699","date":"2025-10-08","proceeding":"NeurIPS","authors":["Gal Fadlon","Idan Arbiv","Nimrod Berman","Omri Azencot"],"abstract":"Generating realistic time series data is critical for applications in healthcare, finance, and science. However, irregular sampling and missing values present significant challenges. While prior methods address these irregularities, they often yield suboptimal results and incur high computational costs. Recent advances in regular time series generation, such as the diffusion-based ImagenTime model, demonstrate strong, fast, and scalable generative capabilities by transforming time series into image representations, making them a promising solution. However, extending ImagenTime to irregular sequences using simple masking introduces \"unnatural\" neighborhoods, where missing values replaced by zeros disrupt the learning process. To overcome this, we propose a novel two-step framework: first, a Time Series Transformer completes irregular sequences, creating natural neighborhoods; second, a vision-based diffusion model with masking minimizes dependence on the completed values. This approach leverages the strengths of both completion and masking, enabling robust and efficient generation of realistic time series. Our method achieves state-of-the-art performance, achieving a relative improvement in discriminative score by $70\\%$ and in computational cost by $85\\%$. Code is at https://github.com/azencot-group/ImagenI2R.","url_abs":"https://arxiv.org/abs/2510.06699","url_pdf":"https://arxiv.org/pdf/2510.06699","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2510.06699","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2510.06699"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/azencot-group/ImagenI2R","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":2,"ran_fixture":2,"unverified":11},"by_repo_kind":{"found_in_text":{"samples":15,"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":15,"samples":[{"code_sha256_prefix":"5254eb44ce12370e","entry":"pad_nan_to_target","repo":"azencot-group/ImagenI2R","repo_kind":"found_in_text","path":"metrics/context_fid.py","file_url":"https://github.com/azencot-group/ImagenI2R/blob/HEAD/metrics/context_fid.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5254eb44ce12370e"}},{"code_sha256_prefix":"645d1fdb1dc0e80c","entry":"pkl_load","repo":"azencot-group/ImagenI2R","repo_kind":"found_in_text","path":"metrics/context_fid.py","file_url":"https://github.com/azencot-group/ImagenI2R/blob/HEAD/metrics/context_fid.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":"645d1fdb1dc0e80c"}},{"code_sha256_prefix":"79783deb10f33397","entry":"torch_pad_nan","repo":"azencot-group/ImagenI2R","repo_kind":"found_in_text","path":"metrics/context_fid.py","file_url":"https://github.com/azencot-group/ImagenI2R/blob/HEAD/metrics/context_fid.py","link_basis":"plan_row","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"79783deb10f33397"}},{"code_sha256_prefix":"d41a4250066bce93","entry":"weight_init","repo":"azencot-group/ImagenI2R","repo_kind":"found_in_text","path":"models/networks.py","file_url":"https://github.com/azencot-group/ImagenI2R/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":"6d5f0a137745e47e","entry":"batch_generator","repo":"azencot-group/ImagenI2R","repo_kind":"found_in_text","path":"metrics/discriminative_torch.py","file_url":"https://github.com/azencot-group/ImagenI2R/blob/HEAD/metrics/discriminative_torch.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":"6d5f0a137745e47e"}},{"code_sha256_prefix":"038f90076623df94","entry":"cacf_torch","repo":"azencot-group/ImagenI2R","repo_kind":"found_in_text","path":"metrics/correlation_score.py","file_url":"https://github.com/azencot-group/ImagenI2R/blob/HEAD/metrics/correlation_score.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":"038f90076623df94"}},{"code_sha256_prefix":"a27cc39fef89b18f","entry":"discriminative_score_metrics","repo":"azencot-group/ImagenI2R","repo_kind":"found_in_text","path":"metrics/discriminative_torch.py","file_url":"https://github.com/azencot-group/ImagenI2R/blob/HEAD/metrics/discriminative_torch.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":"a27cc39fef89b18f"}},{"code_sha256_prefix":"8e4ec12b5fd04b41","entry":"display_scores","repo":"azencot-group/ImagenI2R","repo_kind":"found_in_text","path":"metrics/correlation_score.py","file_url":"https://github.com/azencot-group/ImagenI2R/blob/HEAD/metrics/correlation_score.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":"8e4ec12b5fd04b41"}},{"code_sha256_prefix":"3c3b86a524c5e1ff","entry":"extract_time","repo":"azencot-group/ImagenI2R","repo_kind":"found_in_text","path":"metrics/predictive_metrics.py","file_url":"https://github.com/azencot-group/ImagenI2R/blob/HEAD/metrics/predictive_metrics.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":"3c3b86a524c5e1ff"}},{"code_sha256_prefix":"e7c6b4c0e2a182b4","entry":"get_pos_encoder","repo":"azencot-group/ImagenI2R","repo_kind":"found_in_text","path":"models/TST.py","file_url":"https://github.com/azencot-group/ImagenI2R/blob/HEAD/models/TST.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":"e7c6b4c0e2a182b4"}},{"code_sha256_prefix":"317d296195d0d607","entry":"predictive_score_metrics","repo":"azencot-group/ImagenI2R","repo_kind":"found_in_text","path":"metrics/predictive_metrics.py","file_url":"https://github.com/azencot-group/ImagenI2R/blob/HEAD/metrics/predictive_metrics.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":"317d296195d0d607"}},{"code_sha256_prefix":"b990ea87bd3bcf05","entry":"propagate_values","repo":"azencot-group/ImagenI2R","repo_kind":"found_in_text","path":"run_irregular.py","file_url":"https://github.com/azencot-group/ImagenI2R/blob/HEAD/run_irregular.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":"b990ea87bd3bcf05"}},{"code_sha256_prefix":"3cabfd3a90a6cbea","entry":"propagate_values_forward","repo":"azencot-group/ImagenI2R","repo_kind":"found_in_text","path":"run_irregular.py","file_url":"https://github.com/azencot-group/ImagenI2R/blob/HEAD/run_irregular.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":"3cabfd3a90a6cbea"}},{"code_sha256_prefix":"3e484e8c3d09d38e","entry":"random_choice","repo":"azencot-group/ImagenI2R","repo_kind":"found_in_text","path":"metrics/correlation_score.py","file_url":"https://github.com/azencot-group/ImagenI2R/blob/HEAD/metrics/correlation_score.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":"3e484e8c3d09d38e"}},{"code_sha256_prefix":"fa0e9e549b6bff3f","entry":"train_test_divide","repo":"azencot-group/ImagenI2R","repo_kind":"found_in_text","path":"metrics/discriminative_torch.py","file_url":"https://github.com/azencot-group/ImagenI2R/blob/HEAD/metrics/discriminative_torch.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":"fa0e9e549b6bff3f"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_api"},"syntology_extracted_results":null}