SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.03006 · 2024

The Rise of Diffusion Models in Time-Series Forecasting

arXiv · PDF · Open in the Atlas

Code that ran

11 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 2 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2401.03006.json · badge: /api/ran/2401.03006.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
ai4healthuol/sssd canonical (classifier label)
classifier basis: census
11 ran · 2 no recorded run
FunctionStatusWhere it lives
swish Ran
ran; our contract draft was wrong, not the code
ai4healthuol/sssd/src/imputers/DiffWaveImputer.py
code served (permissive licence) · get_code("0f786c407fb1ee4c")
How it ran

Ran in Syntology's jail on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. The comparison behind this sample's level is a different run: the peer-agreement lane ran it again on the host, not in the jail (report dated 2026-09-04T22:33:52Z). If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function swish takes a single parameter 'x' which is used with:
# - torch.sigmoid(x) - requires a tensor
# - x * ... - requires a tensor that supports multiplication
# So x should be a tensor

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
Activation Ran
ran; our contract draft was wrong, not the code
ai4healthuol/sssd/src/imputers/CSDIS4.py
code served (permissive licence) · get_code("89b10a8b26bbb7ed")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned ReLU. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# The function takes two parameters: activation and dim
# activation: a string or None specifying which activation function to use
# dim: an integer specifying the dimension for GLU (default -1)

ARGS = {
    'activation': 'relu',
    'dim': -1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ReLU — a ReLU output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ReLU output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
calc_denominator Ran
ran, honoured the contract we drafted
ai4healthuol/sssd/src/imputers/CSDI.py
pointer only (licence: MIT); the stored copy get_code serves, from xuangu-fang/bayotide, is pointer only (licence: NONE) · get_code("0eabe6591b009ad0")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from xuangu-fang/bayotide, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cauchy_mult_torch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ai4healthuol/sssd/src/entensions/cauchy/cauchy.py
code served (permissive licence) · get_code("2315ac65b1d02f17")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from einops import rearrange

torch.manual_seed(0)

# Test with symmetric=True (default)
# v: (B, N) where N must be even
# z: (L,)
# w: (B, N) where N must be even
# The function uses complex tensors, so we need complex dtype

B = 2  # batch size
N = 4  # sequence length (must be even for symmetric case)
L = 3  # z dimension

v = torch.randn(B, N, dtype=torch.complex64)
z = torch.randn(L, dtype=torch.complex64)
w = torch.randn(B, N, dtype=torch.complex64)

ARGS = {
    "v": v,
    "z": z,
    "w": w,
    "symmetric": True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
find_max_epoch Ran
ran, honoured the contract we drafted
ai4healthuol/sssd/src/utils/util.py
code served (permissive licence) · get_code("745f173f5a730552")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile
import shutil

# Create a temporary directory with test checkpoint files
temp_dir = tempfile.mkdtemp()

# Create some valid checkpoint files
open(os.path.join(temp_dir, "100000.pkl"), 'w').close()
open(os.path.join(temp_dir, "50000.pkl"), 'w').close()
open(os.path.join(temp_dir, "200000.pkl"), 'w').close()

# Create some invalid files that should be ignored
open(os.path.join(temp_dir, "readme.txt"), 'w').close()
open(os.path.join(temp_dir, "notanumber.pkl"), 'w').close()
open(os.path.join(temp_dir, "123"), 'w').close()  # no .pkl extension, too short

ARGS = {
    "path": temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
flatten Ran
ran, honoured the contract we drafted
ai4healthuol/sssd/src/utils/util.py
code served (permissive licence) · get_code("c711b513a9afe00d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The flatten function takes a list of lists/tuples and flattens it
# It iterates through each element y in v, then through each x in y
# So v should be a list of lists or tuples

ARGS = {
    "v": [
        [1, 2, 3],
        [4, 5],
        [6, 7, 8, 9]
    ]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
generate_data Ran
ran; our contract draft was wrong, not the code
ai4healthuol/sssd/src/entensions/cauchy/benchmark_cauchy.py
code served (permissive licence) · get_code("6ecb7499d0e944c1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    'batch_size': 2,
    'N': 4,
    'L': 3,
    'symmetric': True,
    'device': 'cpu'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_initializer Ran
ran; our contract draft was wrong, not the code
ai4healthuol/sssd/src/imputers/CSDIS4.py
pointer only (licence: MIT); the stored copy get_code serves, from ctlllll/sgconv, is pointer only (licence: NONE) · get_code("49d9214ec79a8edb")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from ctlllll/sgconv, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_logger Ran
ran; our contract draft was wrong, not the code
ai4healthuol/sssd/src/imputers/CSDIS4.py
code served (permissive licence) · get_code("61139ec62260b411")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Logger. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import logging
from pytorch_lightning.utilities import rank_zero_only

# Construct arguments for get_logger function
ARGS = {
    "name": "test_logger",
    "level": logging.DEBUG
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pytorch_lightning — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
quantile_loss Ran
ran, honoured the contract we drafted
ai4healthuol/sssd/src/imputers/CSDI.py
pointer only (licence: MIT); the stored copy get_code serves, from xuangu-fang/bayotide, is pointer only (licence: NONE) · get_code("ff7efc68e98e1d55")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from xuangu-fang/bayotide, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

std_normal Ran
ran; our contract draft was wrong, not the code
ai4healthuol/sssd/src/utils/util.py
code served (permissive licence) · get_code("d3d2b2f127241f47")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function std_normal takes a 'size' parameter
# It uses torch.normal(0, 1, size=size).cuda()
# So 'size' should be a tuple or torch.Size representing tensor dimensions

ARGS = {
    "size": (2, 4)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
calc_quantile_CRPS Not yet run
unverified (harvested, no recorded run)
ai4healthuol/sssd/src/imputers/CSDI.py
code served (permissive licence) · get_code("265f06f01c273de4")
How it ran

no invocation recorded.

cauchy_mult_keops Not yet run
unverified (harvested, no recorded run)
ai4healthuol/sssd/src/entensions/cauchy/cauchy.py
code served (permissive licence) · get_code("846af7de233e7183")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 10 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 1 the same month, 4 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
swish 206 other papers
171 dated earlier, 4 the same month, 27 later, 4 same year, order not determinable · 44 only as an assembly brick
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1805.12114 (2018-05)
Deep Reinforcement Learning in a Handful of Trials using Probabilistic Dynamics Models
1809.01357 (2018-09)
Zero Shot Learning for Code Education: Rubric Sampling with Deep Learning Inference
and 203 more not named here
Activation 15 other papers
12 dated earlier, 3 later · 2 only as an assembly brick
1312.5602 (2013-12)
Playing Atari with Deep Reinforcement Learning
2008.07669 (2020-08)
HiPPO: Recurrent Memory with Optimal Polynomial Projections
2009.09761 (2020-09)
DiffWave: A Versatile Diffusion Model for Audio Synthesis
and 12 more not named here
get_logger 15 other papers
9 dated earlier, 6 later · 3 only as an assembly brick
2009.09761 (2020-09)
DiffWave: A Versatile Diffusion Model for Audio Synthesis
2111.00396 (2021-11)
Efficiently Modeling Long Sequences with Structured State Spaces
2204.01692 (2022-04)
Long Movie Clip Classification with State-Space Video Models
and 12 more not named here
get_initializer 10 other papers
9 dated earlier, 1 later · 1 only as an assembly brick
2008.07669 (2020-08)
HiPPO: Recurrent Memory with Optimal Polynomial Projections
2111.00396 (2021-11)
Efficiently Modeling Long Sequences with Structured State Spaces
2202.09729 (2022-02)
It's Raw! Audio Generation with State-Space Models
and 7 more not named here
calc_denominator 2 other papers
2 dated earlier
2107.03502 (2021-07)
CSDI: Conditional Score-based Diffusion Models for Probabilistic Time Series Imputation
2308.14906 (2023-08)
BayOTIDE: Bayesian Online Multivariate Time Series Imputation with Functional Decomposition
quantile_loss 2 other papers
2 dated earlier
2107.03502 (2021-07)
CSDI: Conditional Score-based Diffusion Models for Probabilistic Time Series Imputation
2308.14906 (2023-08)
BayOTIDE: Bayesian Online Multivariate Time Series Imputation with Functional Decomposition
calc_quantile_CRPS 1 other paper
1 dated earlier
2107.03502 (2021-07)
CSDI: Conditional Score-based Diffusion Models for Probabilistic Time Series Imputation
find_max_epoch 1 other paper
1 dated earlier
2301.08227 (2023-01)
Diffusion-based Conditional ECG Generation with Structured State Space Models
flatten 1 other paper
1 dated earlier
2301.08227 (2023-01)
Diffusion-based Conditional ECG Generation with Structured State Space Models
std_normal 1 other paper
1 dated earlier
2301.08227 (2023-01)
Diffusion-based Conditional ECG Generation with Structured State Space Models

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

This survey delves into the application of diffusion models in time-series forecasting. Diffusion models are demonstrating state-of-the-art results in various fields of generative AI. The paper includes comprehensive background information on diffusion models, detailing their conditioning methods and reviewing their use in time-series forecasting. The analysis covers 11 specific time-series implementations, the intuition and theory behind them, the effectiveness on different datasets, and a comparison among each other. Key contributions of this work are the thorough exploration of diffusion models' applications in time-series forecasting and a chronologically ordered overview of these models. Additionally, the paper offers an insightful discussion on the current state-of-the-art in this domain and outlines potential future research directions. This serves as a valuable resource for researchers in AI and time-series analysis, offering a clear view of the latest advancements and future potential of diffusion models.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2401.03006")
get_code_for_paper("2401.03006")
have("2401.03006")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2401.03006.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2401.03006.svg)](https://syntology.ai/paper/2401.03006)

Connect an agent — have() is free.