Papers › CSDI: Conditional Score-based Diffusion Models for Probabilistic Time Series Imputation

CSDI: Conditional Score-based Diffusion Models for Probabilistic Time Series Imputation

7 Jul 2021NeurIPS 2021 12arXiv:2107.03502archive 2025-07-28

Yusuke Tashiro, Jiaming Song, Yang song, Stefano Ermon

The imputation of missing values in time series has many applications in healthcare and finance. While autoregressive models are natural candidates for time series imputation, score-based diffusion models have recently outperformed existing counterparts including autoregressive models in many tasks such as image generation and audio synthesis, and would be promising for time series imputation. In this paper, we propose Conditional Score-based Diffusion models for Imputation (CSDI), a novel time series imputation method that utilizes score-based diffusion models conditioned on observed data. Unlike existing score-based approaches, the conditional diffusion model is explicitly trained for imputation and can exploit correlations between observed values. On healthcare and environmental data, CSDI improves by 40-65% over existing probabilistic imputation methods on popular performance metrics. In addition, deterministic imputation by CSDI reduces the error by 5-20% compared to the state-of-the-art deterministic imputation methods. Furthermore, CSDI can also be applied to time series interpolation and probabilistic forecasting, and is competitive with existing baselines. The code is available at https://github.com/ermongroup/CSDI.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2107.03502")

Code

Syntology Ran 10 of 19 code samples harvested from 3 repositories linked to this paper; 9 have no recorded run. Of those that ran: 2 ran · honoured contract; 2 ran · our draft was wrong; 6 ran with no contract checked.

By repository: named in the paper: 10 samples from 1 repository, 4 ran; community (archive-listed): 9 samples from 2 repositories, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

WenjieDu/PyPOTS officialpytorch report
ermongroup/csdi mentioned in papermentioned on GitHubpytorchMIT report
airalcorn2/deformer mentioned on GitHubpytorch report
pwc-1/Paper-9 mindspore report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 10 ran; 2 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
2ran · our draft was wrong
6ran
9unverified

Licence: 1 of the 19 samples is pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Conv1d_with_init ermongroup/CSDI/diff_models.py named in the paper ran · our draft was wrong MIT (permissive) · 7340b482ffe44836 · report
calc_denominator ermongroup/CSDI/utils.py named in the paper ran · honoured contract fingerprinted MIT (permissive) · 0eabe6591b009ad0 · report
get_torch_trans ermongroup/CSDI/diff_models.py named in the paper ran · our draft was wrong MIT (permissive) · e706793d7d22ae44 · report
quantile_loss ermongroup/CSDI/utils.py named in the paper ran · honoured contract fingerprinted MIT (permissive) · ff7efc68e98e1d55 · report
calc_quantile_CRPS ermongroup/CSDI/utils.py named in the paper unverified MIT (permissive) · 265f06f01c273de4 · report
extract_hour ermongroup/CSDI/dataset_physio.py named in the paper unverified MIT (permissive) · a8551932723a26a9 · report
get_dataloader ermongroup/CSDI/dataset_forecasting.py named in the paper unverified MIT (permissive) · 4206103b12cb44b7 · report
get_dataloader ermongroup/CSDI/dataset_pm25.py named in the paper unverified MIT (permissive) · 3af76bc0fdd74740 · report
parse_data ermongroup/CSDI/dataset_physio.py named in the paper unverified MIT (permissive) · d166bfcd5d4c397e · report
parse_id ermongroup/CSDI/dataset_physio.py named in the paper unverified MIT (permissive) · 5c04f3d80eeca460 · report
Conv1d adrianatienza1996/DiffusionModels/CSDI/model.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 5dfc5500207d1921 · report
DEformerCSDI airalcorn2/deformer/deformer_csdi.py community (archive-listed) ran no licence file found · pointer only · eba03a4da0243c1e · report
DiffusionEmbedding adrianatienza1996/DiffusionModels/CSDI/model.py community (archive-listed) ran MIT (permissive) · e810d3ec37cb56b4 · report
FeedForwardNet adrianatienza1996/DiffusionModels/CSDI/model.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · be39f9c54f305b37 · report
MultiHead_Attention adrianatienza1996/DiffusionModels/CSDI/model.py community (archive-listed) ran fingerprinted MIT (permissive) · be774a732d955316 · report
TransformerLayer adrianatienza1996/DiffusionModels/CSDI/model.py community (archive-listed) ran · metamorphic tier: deterministic MIT (permissive) · 4a2a993673dda35a · report
Add_and_Norm adrianatienza1996/DiffusionModels/CSDI/model.py community (archive-listed) unverified MIT (permissive) · aed37e235474038a · report
CSDI adrianatienza1996/DiffusionModels/CSDI/model.py community (archive-listed) unverified MIT (permissive) · 641efb52636a5e7c · report
ResidualBlock adrianatienza1996/DiffusionModels/CSDI/model.py community (archive-listed) unverified MIT (permissive) · d7da28db98f57a53 · report

Tasks

Audio SynthesisImage GenerationImputationMissing ValuesTime SeriesTime Series Analysis

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections