SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2307.11494 · 2023

Predict, Refine, Synthesize: Self-Guiding Diffusion Models for Probabilistic Time Series Forecasting

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 2 failures of our instrument; 0 no recorded run), measured 2026-11-23; 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/2307.11494.json · badge: /api/ran/2307.11494.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
amazon-science/unconditional-time-series-diffusion canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
FunctionStatusWhere it lives
cosine_beta_schedule Ran
ran, honoured the contract we drafted
amazon-science/unconditional-time-series-diffusion/src/uncond_ts_diff/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from vanzll/FA-OPD, is pointer only (licence: NONE) · get_code("f3a9cdb81c13d825")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from vanzll/FA-OPD, 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.

extract Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
amazon-science/unconditional-time-series-diffusion/src/uncond_ts_diff/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from maowenyu-11/TDM, is pointer only (licence: NONE) · get_code("df116dde4bb6ab3e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from maowenyu-11/TDM, 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.

filter_metrics Ran
ran; our contract draft was wrong, not the code
amazon-science/unconditional-time-series-diffusion/src/uncond_ts_diff/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from seunghan96/ANT, is pointer only (licence: NONE) · get_code("292496d94623edfb")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from seunghan96/ANT, 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.

sample_real Ran
ran, honoured the contract we drafted
amazon-science/unconditional-time-series-diffusion/bin/tstr_experiment.py
code served (permissive licence) · get_code("c369de26c60aced3")
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 ndarray, ndim 2, dtype family float, shape (10000, 6) 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 math
import numpy as np
from tqdm.auto import tqdm

torch_imported = False
try:
    import torch
    torch_imported = True
except:
    pass

# Create a minimal data loader that yields dicts with 'past_target' and 'future_target'
class MinimalDataLoader:
    def __init__(self, num_batches=3, batch_size=1000):
        self.num_batches = num_batches
        self.batch_size = batch_size
        self.current_batch = 0
    
    def __iter__(self):
        self.current_batch = 0
        return self
    
    def __next__(self):
        if self.current_batch >= self.num_batches:
            raise StopIteration
        
        # Create batch with past_target and future_target
        # Shapes: (batch_size, time_steps)
        past_target = np.random.randn(self.batch_size, 5)  # 5 timesteps
        future_target = np.random.randn(self.batch_size, 3)  # 3 timesteps
        
        batch = {
            'past_target': past_target,
            'future_target': future_target
        }
        self.current_batch += 1
        return batch

# Construct the data loader
data_loader = MinimalDataLoader(num_batches=3, batch_size=1000)

# Define ARGS
ARGS = {
    'data_loader': data_loader,
    'n_timesteps': 6,
    'num_samples': 10000,
    'batch_size': 1000
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (10000, 6) — shape (10000, 6) 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

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 3 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 3 later) and 1 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
cosine_beta_schedule 9 other papers
1 dated earlier, 8 later
2306.06874 (2023-06)
VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Models
2309.01745 (2023-09)
Benchmarking Autoregressive Conditional Diffusion Models for Turbulent Flow Simulation
2310.20487 (2023-10)
Large Language Model Can Interpret Latent Space of Sequential Recommender
and 6 more not named here
extract 9 other papers
1 dated earlier, 8 later · 1 only as an assembly brick
2303.17839 (2023-03)
Learning Procedure-aware Video Representation from Instructional Videos and Their Narrations
2310.20487 (2023-10)
Large Language Model Can Interpret Latent Space of Sequential Recommender
aaai_28262 (2024 (year only))
S 2 CycleDiff: Spatial-Spectral-Bilateral Cycle-Diffusion Framework for Hyperspectral Image Super-resolution
and 6 more not named here
filter_metrics 1 other paper
1 later
2410.14488 (2024-10)
ANT: Adaptive Noise Schedule for Time Series Diffusion 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-23.

Repositories linked to this paper

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

Abstract

Diffusion models have achieved state-of-the-art performance in generative modeling tasks across various domains. Prior works on time series diffusion models have primarily focused on developing conditional models tailored to specific forecasting or imputation tasks. In this work, we explore the potential of task-agnostic, unconditional diffusion models for several time series applications. We propose TSDiff, an unconditionally-trained diffusion model for time series. Our proposed self-guidance mechanism enables conditioning TSDiff for downstream tasks during inference, without requiring auxiliary networks or altering the training procedure. We demonstrate the effectiveness of our method on three different time series tasks: forecasting, refinement, and synthetic data generation. First, we show that TSDiff is competitive with several task-specific conditional forecasting methods (predict). Second, we leverage the learned implicit probability density of TSDiff to iteratively refine the predictions of base forecasters with reduced computational overhead over reverse diffusion (refine). Notably, the generative performance of the model remains intact -- downstream forecasters trained on synthetic samples from TSDiff outperform forecasters that are trained on samples from other state-of-the-art generative time series models, occasionally even outperforming models trained on real data (synthesize).

For agents

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

get_harvested_code_for_paper("2307.11494")
get_code_for_paper("2307.11494")
have("2307.11494")

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

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

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

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

Connect an agent — have() is free.