Pattern-Guided Diffusion Models

Vivian Lin, Kuk Jin Jang, Wenwen Si, Insup Lee

TL;DR

Pattern-Guided Diffusion Models (PGDM) enhance time-series forecasting by extracting and predicting underlying structural patterns using archetypal analysis. By introducing a novel uncertainty metric to dynamically scale pattern guidance, PGDM prevents over-reliance on faulty predictions and achieves state-of-the-art performance in complex domains like clinical visual field progression and human motion capture.

What Problem Does This Paper Address?

While diffusion models have become a go-to choice for generative modeling and time-series forecasting, standard architectures often overlook the recurring, domain-specific structures inherent in multivariate temporal data. For instance, medical data is constrained by human anatomy, and human motion follows specific biomechanical patterns.

Existing diffusion forecasters that attempt to incorporate these structures usually treat them as static or fail to account for the uncertainty of how these patterns evolve over time. If a model blindly follows a predicted pattern that is incorrect or out-of-distribution, the final forecast can degrade significantly. The authors tackle this gap by creating a framework that explicitly models dynamic patterns alongside a robust mechanism to quantify and act on pattern uncertainty.

Methods

PGDM introduces a three-part architecture to integrate pattern guidance into the diffusion process:

  1. Archetypal Analysis (AA): Instead of using abstract latent representations, the authors use AA to extract "archetypes"—interpretable, extreme patterns derived directly from the training data. Any given data point can be represented as a convex combination of these archetypes.
  2. Pattern Guidance Function: The model projects historical data ($x_{1:T}$) into this lower-dimensional archetype space, uses a lightweight neural network to predict future archetype coefficients, and then reconstructs these into a predicted future pattern ($\hat{P}_{T:T'}$).
  3. Dynamic Guidance Scaling via AAUQ: The core innovation is Archetypal Analysis Uncertainty Quantification (AAUQ). AAUQ measures the reconstruction error of the historical sequence. The authors mathematically prove that this historical error acts as a reliable proxy for the geometric distance from the training set and lower-bounds the future pattern prediction error.

During inference, if the AAUQ metric indicates high uncertainty (e.g., an unseen or rapidly changing pattern), the framework dynamically dials down the classifier-free guidance scale ($w$) to zero, safely reverting PGDM to a standard unguided diffusion model. Finally, a Pattern Mixing step linearly combines the raw pattern prediction with the diffusion output to stabilize point predictions, especially in low-data regimes.

Figure 2: (a) Overview of Pattern-Guided Diffusion Models. A pattern guidance function estimates the future patterns over a horizon. This prediction is performed in the archetype space, where the projected representation captures the contribution of each pattern to the data. The predicted future patterns are supplied as conditioning context to the diffusion model. The scale of the pattern guidance is dynamically tuned based on the uncertainty of the input sequence. (b) Projection into the lower-dimensional archetype space loses information for any point outside the convex hull of the archetypes ConvA. In this example, the sequence x1, x2, x3, x4 /∈ConvA is perturbed to the boundary of ConvA after reconstruction, losing important dynamical information.

Datasets

The authors evaluated PGDM on two distinct, challenging real-world tasks:

  • University of Washington Humphrey Visual Field (UWHVF) Dataset: A clinical dataset containing 7,428 sequences of 24-2 visual field tests from 3,871 patients. This dataset measures functional vision loss (light sensitivity in decibels) across 52 points in the eye, where structural damage manifests as distinct spatial patterns.
  • AIST++ Dataset: A 3D human motion capture dataset containing sequences from 10 highly dynamic dance genres. The data tracks 3D pose coordinates for 17 keypoints, presenting a highly volatile and non-periodic forecasting challenge.

Key Insights and Ideas

  • Reconstruction Error as an Uncertainty Metric: A key "aha moment" of the paper is proving that the reconstruction error from Archetypal Analysis isn't just a training loss—it has a precise geometric interpretation. It approximates the distance of a sample from the training distribution, making it an elegant, unsupervised uncertainty metric.
  • The Power of Low-Dimensional Spaces in Low-Data Regimes: In clinical settings like visual field tracking, data is often scarce. The authors found that explicitly modeling predictions in a low-dimensional archetype space is highly sample-efficient, allowing the model to make strong point forecasts even when estimating the full data distribution is difficult.
  • Safeguarding Generative Models: Dynamic scaling acts as a safety valve. By tying the guidance scale to AAUQ, the model avoids the common pitfall of generative models hallucinating realistic-looking but fundamentally incorrect trajectories when faced with out-of-distribution inputs.
Figure 1: Overview of archetypal analysis (AA). (a) Example archetypes extracted from a visual field dataset. The archetypes capture visual loss patterns that consistently appear across glaucoma patients. Darker regions indicate greater vision loss. (b) Given a dataset D (blue dots), AA identifies a set of archetypes A (red stars). Within ConvA ⊆ConvD (within red dashed line), any point can be reconstructed from A without error. For any point x /∈ConvA, the reconstruction error is the distance between x and ConvA.

Key Results

PGDM significantly outperformed standard forecasting baselines (including TimeGrad, CSDI, ARMD, and GenViT) across both Mean Absolute Error (MAE) and Continuous Ranked Probability Score (CRPS):

  • Visual Field Prediction: Pattern guidance reduced PGDM's own unguided error by up to 40.67% (MAE) and 56.26% (CRPS). It outperformed the best baselines by up to 65.58% / 84.83%.
  • Human Motion Prediction: On the highly dynamic AIST++ dataset, pattern guidance improved PGDM's performance by up to 14.12% (MAE) and 14.10% (CRPS), outperforming baselines by up to 93.64% / 92.55%.

Ablation studies confirmed that both the dynamic scaling mechanism and the explicit pattern prediction network ($f_A$) were essential to achieving these results, particularly in genres where dance tempos and styles shifted rapidly.

Limitations and Future Work

While powerful, PGDM has a few notable limitations:

  • Out-of-Distribution Patterns: If the testing data exhibits entirely novel patterns not captured by the training archetypes, the guidance function provides little to no benefit, and the model simply defaults to standard diffusion.
  • Temporal Continuity Assumption: Using historical reconstruction error (AAUQ) to bound future error assumes that the underlying signal is relatively continuous. If a signal changes drastically and abruptly between the history window and the prediction window, the uncertainty estimate may lag.

For future work, the authors suggest exploring methods to dynamically update the set of archetypal patterns online during inference and incorporating explicit signal dynamics directly into the guidance scale calculation.

Summary updated

BibTeX
@misc{lin2025pattern,
  author = {Vivian Lin and Kuk Jin Jang and Wenwen Si and Insup Lee},
  title = {{Pattern-Guided Diffusion Models}},
  year = {2025},
  eprint = {2512.13945},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.13945},
}
Figure