TL;DR
Generating realistic synthetic time series currently forces a frustrating choice: autoregressive models can generate sequences of any length but snowball into garbage over long horizons, while diffusion models produce crisp, high-fidelity sequences locked to a single fixed length. Horizon Diffusion marries the two, generating chunk-by-chunk like an autoregressive model while denoising everything inside each chunk simultaneously via diffusion. Train it once, and it smoothly synthesizes time series up to $4\times$ longer than what it saw during training without losing the plot.
What Problem Does This Paper Address?
Synthetic time series are vital when real data is scarce or sensitive—think simulating financial markets or sharing patient ICU trajectories without violating privacy. Real-world records naturally vary from days to months, meaning a practical generator must produce arbitrary lengths on demand.
Right now, our two best generative paradigms fail this requirement for opposite reasons:
- Autoregressive models (like GPT) generate one step at a time. They naturally run as long as you want, but tiny prediction errors get fed back into the model and compound, derailing long trajectories.
- Diffusion models refine an entire sequence at once using bidirectional context, yielding great fidelity—but only at the exact sequence length they were trained on. Naively stitching fixed-length diffusion outputs together leaves ugly, discontinuous seams.
Methods
Horizon Diffusion operates on standard patchified latent representations inside a Diffusion Transformer (DiT) backbone, decomposing sequences into variable-length horizon blocks. Blocks are generated sequentially (autoregressively), while patches within the active block are denoised jointly (via diffusion). Two novel mechanisms make this hybrid work:
- Horizon-Causal Attention: A single block-lower-triangular attention mask creates three visibility zones. Tokens in the current block attend to (1) all previously generated clean blocks for stable historical context, and (2) all noisy tokens inside the current block for bidirectional refinement, while (3) strictly masking out future blocks. During training, teacher forcing (feeding ground-truth past blocks) lets the model compute losses for all blocks in parallel in one forward pass.
- Block Size Curriculum (BSC): Training on a single block size ruins length generalization, while randomizing block sizes creates chaotic gradient variance. Instead, BSC uses a deterministic Warmup–Stable–Decay schedule. It warms up from tiny to huge blocks, holds stable at the maximum block size so the model learns global, full-sequence diffusion priors, and finally decays down to smaller inference-sized blocks to drill cross-boundary coordination.
Datasets
No new benchmarks are introduced; the authors evaluate on four standard public multivariate datasets spanning diverse domains, lengths (3,773 to 19,735 steps), and dimensionalities:
- ETTh1: 7-variate electricity transformer load.
- Energy: 28-variate household appliance power consumption.
- Stocks: 6-variate daily Google stock prices.
- fMRI: 50-variate simulated brain blood-oxygen (BOLD) signals.
Key Insights and Ideas
- Error stops snowballing (provably): In standard token-level autoregression, generation error grows linearly with sequence length. Because Horizon Diffusion denoises blocks jointly and conditions on clean prefixes, the authors prove (via Wasserstein-2 distance bounds) that error accumulation is uniformly bounded—it hits a ceiling rather than growing infinitely with length.
- Built-in shock absorption: When the authors deliberately injected Gaussian noise into 40% of timestamps mid-generation, autoregressive baselines collapsed (71%–105% performance degradation). Horizon Diffusion degraded by only 17.6%–24.8%, because bidirectional attention inside the active block uses uncorrupted neighboring patches to dampen the shock.
- Order of operations matters in curriculum learning: Reversing the curriculum (training on small blocks first, large blocks last) caused catastrophic failure on long horizons. The model must grasp global intra-block dynamics before learning how to stitch boundaries together.
- Zero-shot multitasking: Because of its prefix-conditioning setup, the exact same unconditionally trained model can perform long-horizon forecasting and missing-data imputation at inference time without retraining.
Key Results
Evaluated across target lengths of 192, 384, and 768 against six baselines (including Diffusion-TS, SDformer, TimeGAN, and TimeMAR), Horizon Diffusion achieved a clean sweep—winning 72 out of 72 metric evaluations on ETTh1, Stocks, and Energy (with consistent wins on fMRI):
- Fidelity: On ETTh1 ($H=192$), Context-FID dropped from 3.316 (Diffusion-TS) to 0.633—an 80.9% improvement. On Energy ($H=192$), Context-FID fell from 3.299 to 0.227.
- Correlation & Utility: On Energy ($H=192$), cross-correlation error dropped from 2.491 to 0.528.
- 4$\times$ Length Extrapolation: As generation length quadrupled from 192 to 768, baseline errors spiked while Horizon Diffusion's downstream TSTR Predictive Score on Energy stayed completely flat (0.245 at $H=192$ vs. 0.245 at $H=768$).
Limitations and Future Work
The main bottleneck is inference speed. Because blocks are generated sequentially and each block requires running a full 50-step reverse diffusion trajectory, generating ultra-long sequences incurs non-trivial latency. The authors suggest pairing Horizon Diffusion with accelerated single-step or few-step samplers—such as consistency distillation—to unlock real-time and ultra-long time series synthesis.
Summary updated