A Study of Posterior Stability for Time-Series Latent Diffusion

Yangming Li, Yixin Cheng, Mihaela van der SchaarSubmission to ICLR 2025 · Rejected

TL;DR

Latent diffusion models (LDMs) excel at image synthesis, but when applied to sequential time-series data with autoregressive decoders, they suffer from posterior collapse—effectively demoting the powerful diffusion model into a standard, weak Variational Autoencoder (VAE). This paper introduces a calculus-based dependency measure to diagnose this failure and proposes a redesigned latent diffusion framework that eliminates harmful KL regularization while using the diffusion process itself to penalize decoders that ignore latent representations.

What Problem Does This Paper Address?

While latent diffusion models offer high-quality generation with faster sampling than pixel-level diffusion, adapting them to time series poses a subtle structural pitfall: posterior collapse. In sequence modeling, decoders are typically autoregressive (e.g., LSTMs or Transformers). Because the decoder can easily lean on recent past observations to predict the next step, it tends to ignore the latent code $z$ passed from the encoder.

The authors prove that when the posterior collapses in latent diffusion, the latent distribution $q_{\text{latent}}(z)$ reduces to a standard Gaussian $\mathcal{N}(0, I)$. This makes the diffusion prior completely redundant—reducing the entire pipeline to a basic VAE and neutralizing the expressiveness diffusion was meant to provide.

Methods

  1. Dependency Measures ($m_{t,j}$):
    Inspired by integrated gradients, the authors formulate signed attribution metrics to quantify how much an autoregressive decoder relies on the latent code ($m_{t,0}$, global dependency) versus past observations ($m_{t,t-j}$, local dependency). These measures mathematically sum to 1 and reveal whether the latent representation actually influences generation.

  2. Diffusion as Variational Inference (No KL Penalty):
    In standard VAEs, a KL-divergence penalty forces the posterior toward $\mathcal{N}(0, I)$ so samples can be drawn from a simple prior. However, diffusion models can naturally learn arbitrary, complex distributions. The authors discard the KL penalty entirely and instead inject small amounts of forward-diffusion noise ($z^j$ for $j \in \{0, \dots, N\}$ where $N \ll L$) to achieve representation smoothness.

  3. Collapse Simulation Regularization ($\mathcal{L}^{CS}$):
    To prevent decoders from ignoring latents, the framework draws heavily corrupted latent states from near the end of the forward chain ($z^k$ for $k \in \{M, \dots, L\}$ where $M \approx L$). Because these latents contain virtually no data signal, the framework penalizes the decoder if it still predicts the sequence with high confidence—directly punishing the decoder for "cheating" using purely local temporal context.

Datasets

The authors evaluated their method across several modalities:

  • Time-Series Datasets:
  • MIMIC-III: Intensive care clinical records (first 12 hours).
  • WARDS: In-hospital critical care prognosis time series.
  • Earthquakes: Timing and spatial coordinates of earthquakes in Japan (magnitude $\ge 2.5$, 1990–2020).
  • Retail & Energy: UCI time-series benchmarks evaluated via Maximum Mean Discrepancy (MMD).
  • Other Modalities (Appendix):
  • Text: ATIS and SNIPS spoken language understanding benchmarks (measured via BLEU).
  • Images: CIFAR-10 (measured via FID) to verify behavior when decoders are non-autoregressive.

Key Insights and Ideas

  • Theoretical Degradation: Posterior collapse in latent diffusion is not just poor feature utilization; it mathematically reduces the latent space to a trivial Gaussian, completely wasting the diffusion model's capacity.
  • Dependency Illusion: When testing latent diffusion on randomly shuffled sequences (where adjacent steps have zero true correlation), the decoder still developed non-zero local dependencies ($m_{t,t-1} \approx 0.1\text{--}0.2$) while global latent dependency exponentially decayed to zero. The network hallucinated local structure rather than relying on global semantics.
  • Unified Diffusion Dynamics: Instead of using separate mechanics for variational inference and posterior regularizers, the forward diffusion trajectory itself serves dual purposes: early steps ($j \le N$) act as variational smoothing, while late steps ($k \ge M$) act as negative samples to explicitly penalize insensitive decoders.

Key Results

  • Superior Generation Quality: Across MIMIC, WARDS, and Earthquakes, the proposed framework achieved substantially lower Wasserstein distances compared to latent diffusion and standard mitigation techniques (KL annealing, variable masking, skip connections):
  • On WARDS (Transformer backbone), Wasserstein distance dropped from 7.46 (standard latent diffusion) and 5.54 (KL annealing) down to 3.01.
  • On MIMIC (Transformer backbone), distance dropped from 5.02 to 2.13.
  • UCI Benchmarks (MMD): On the Energy dataset with an LSTM backbone, MMD improved by 29.8% over skip-connection baselines (0.033 vs. 0.047).
  • Text Generalization: On SNIPS (Transformer), BLEU scores surged from 59.36 to 78.12.
  • Minimal Overhead: On MIMIC, training time only increased modestly (2h 10m $\rightarrow$ 2h 50m) because the collapse simulation runs in parallel on GPU, while inference speed was virtually identical (~5m 12s vs. 5m 17s).

Limitations and Future Work

  • Hyperparameter Sensitivity: The bounds for early variational steps ($N$) and collapse simulation steps ($M$) require calibration; deviations (e.g., varying $N$ from 50 to 150 or $M$ from 100 to 200) led to observable performance degradation in ablation tests.
  • Limited Utility on Non-Autoregressive Tasks: As demonstrated on CIFAR-10 (FID improved marginally from 3.91 to 3.85), non-autoregressive decoders (like image U-Nets) do not naturally suffer from strong posterior collapse, making the framework primarily advantageous for sequential/autoregressive architectures.

Summary updated

Abstract

Latent diffusion has demonstrated promising results in image generation and permits efficient sampling. However, this framework might suffer from the problem of posterior collapse when applied to time series. In this paper, we first show that posterior collapse will reduce latent diffusion to a variational autoencoder (VAE), making it less expressive. This highlights the importance of addressing this issue. We then introduce a principled method: dependency measure, that quantifies the sensitivity of a recurrent decoder to input variables. Using this tool, we confirm that posterior collapse significantly affects time-series latent diffusion on real datasets, and a phenomenon termed dependency illusion is also discovered in the case of shuffled time series. Finally, building on our theoretical and empirical studies, we introduce a new framework that extends latent diffusion and has a stable posterior. Extensive experiments on multiple real time-series datasets show that our new framework is free from posterior collapse and significantly outperforms previous baselines in time series synthesis.
BibTeX
@misc{li2024study,
  author = {Yangming Li and Yixin Cheng and Mihaela van der Schaar},
  title = {{A Study of Posterior Stability for Time-Series Latent Diffusion}},
  year = {2024},
  eprint = {2405.14021},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.14021},
}
Figure