Lune

NeurIPS2025Top-tier venue

Constrained Posterior Sampling: Time Series Generation with Hard Constraints

Sai Shankar Narasimhan, Shubhankar Agarwal, Litu Rout, Sanjay Shakkottai, Sandeep Chinchali

Abstract

Generating realistic time series samples is crucial for stress-testing models and protecting user privacy by using synthetic data. In engineering and safety-critical applications, these samples must meet certain hard constraints that are domain-specific or naturally imposed by physics or nature. Consider, for example, generating electricity demand patterns with constraints on peak demand times. This can be used to stress-test the functioning of power grids during adverse weather conditions. Existing approaches for generating constrained time series are either not scalable or degrade sample quality. To address these challenges, we introduce Constrained Posterior Sampling (CPS), a diffusion-based sampling algorithm that aims to project the posterior mean estimate into the constraint set after each denoising update. Notably, CPS scales to a large number of constraints (∼100\sim100) without requiring additional training. We provide theoretical justifications highlighting the impact of our projection step on sampling. Empirically, CPS outperforms state-of-the-art methods in sample quality and similarity to real time series by around 70% and 22%, respectively, on real-world stocks, traffic, and air quality datasets.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • High-Resolution Image Synthesis with Latent Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
  • High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
  • High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Implicit Models
  • Unlearning in Diffusion Models: A Unified Framework with KL Divergence and Likelihood Constraints cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Unlearning in Diffusion Models: A Unified Framework with KL Divergence and Likelihood Constraints cites Composition and Alignment of Diffusion Models using Constrained Learning
  • Unlearning in Diffusion Models: A Unified Framework with KL Divergence and Likelihood Constraints cites Denoising Diffusion Probabilistic Models
  • SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis cites High-Resolution Image Synthesis with Latent Diffusion Models
  • SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis cites Diffusion Models Beat GANs on Image Synthesis
  • SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis cites Denoising Diffusion Probabilistic Models
  • SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesis cites Denoising Diffusion Implicit Models
  • Composition and Alignment of Diffusion Models using Constrained Learning cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Composition and Alignment of Diffusion Models using Constrained Learning cites Denoising Diffusion Implicit Models
  • CCS: Controllable and Constrained Sampling with Diffusion Models via Initial Noise Perturbation cites High-Resolution Image Synthesis with Latent Diffusion Models
  • CCS: Controllable and Constrained Sampling with Diffusion Models via Initial Noise Perturbation cites Diffusion Models Beat GANs on Image Synthesis
  • CCS: Controllable and Constrained Sampling with Diffusion Models via Initial Noise Perturbation cites Denoising Diffusion Implicit Models
  • Gauge Flow Matching: Efficient Constrained Generative Modeling over General Convex Set and Beyond cites Denoising Diffusion Probabilistic Models
  • Gauge Flow Matching: Efficient Constrained Generative Modeling over General Convex Set and Beyond cites Denoising Diffusion Implicit Models
  • Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Probabilistic Models
  • Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Implicit Models
  • Denoising Diffusion Implicit Models cites Denoising Diffusion Probabilistic Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Composition and Alignment of Diffusion Models using Constrained LearningShervin Khalafi, Ignacio Hounie, Dongsheng Ding, Alejandro RibeiroNeurIPS 2025 · 10 citations
  2. CCS: Controllable and Constrained Sampling with Diffusion Models via Initial Noise PerturbationBowen Song, Zecheng Zhang, Zhaoxu Luo, Jason Hu et al.NeurIPS 2025 · 3 citations
  3. Unlearning in Diffusion Models: A Unified Framework with KL Divergence and Likelihood ConstraintsShervin Khalafi, Alejandro Ribeiro, Dongsheng DingICML 2026
  4. Gauge Flow Matching: Efficient Constrained Generative Modeling over General Convex Set and BeyondXinpeng Li, Enming Liang, Minghua ChenICLR 2026

Builds on33

  1. Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
  2. Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
  3. High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
  4. Denoising Diffusion Implicit ModelsJiaming Song, Chenlin Meng, Stefano ErmonICLR 2021 · 11,743 citations
  5. SDXL: Improving Latent Diffusion Models for High-Resolution Image SynthesisDustin Podell, Zion English, Kyle Lacey, Andreas Blattmann et al.ICLR 2024 · 4,569 citations

Related papers

  1. On the Constrained Time-Series Generation ProblemAndrea Coletta, Sriram Gopalakrishnan, Daniel Borrajo, Svitlana VyetrenkoNeurIPS 2023 · 92 citations
  2. Constrained Particle Seeking: Solving Diffusion Inverse Problems with Just Forward PassesHongkun Dou, Zike Chen, Zeyu Li, Hongjue Li et al.AAAI 2026
  3. Hard-Constrained Graph Generation with Discrete-Projection DiffusionXuesong Zhang, Haifeng Sun, Qi Qi, Shengkuan Li et al.ICML 2026
  4. Constrained Synthesis with Projected Diffusion ModelsJacob K. Christopher, Stephen Baek, Ferdinando FiorettoNeurIPS 2024 · 110 citations
  5. Image Inpainting via Tractable Steering of Diffusion ModelsAnji Liu, Mathias Niepert, Guy Van den BroeckICLR 2024 · 33 citations
Dusk over the sea between two cliffs drawn in fine vertical lines