mlsanityData to 7 Oct 2026

Provably Safe Generative Sampling with Constricting Barrier Functions

arXiv 2602.21429 ↗First posted 24 Feb 2026cs.LG cs.AI cs.SYcited by 2

On the map: Diffusion models → Diffusion foundations and sampling

Abstract (arXiv)

Flow-based generative models, such as diffusion models and flow matching models, have achieved remarkable success in learning complex data distributions. However, a critical gap remains for their deployment in safety-critical domains: the lack of formal guarantees that generated samples will satisfy hard constraints. We propose a safety filtering framework that acts as an online shield for any pre-trained generative model. Our key insight is to cooperate with the generative process rather than override it. We define a constricting safety tube that is relaxed at the initial noise distribution and progressively tightens to the target safe set at the final data distribution, mirroring the coarse-to-fine structure of the generative process itself. By characterizing this tube via Control Barrier Functions (CBFs), we synthesize a feedback control input through a convex Quadratic Program (QP) at each sampling step. As the tube is loosest when noise is high and intervention is cheapest in terms of control energy, most constraint enforcement occurs when it least disrupts the model's learned structure. We prove that this mechanism guarantees safe sampling in discrete-time. The minimum-norm control synthesized at each step minimizes the per-step contribution to the KL divergence between the safe and original distributions. Across all experiments, we observe 100% constraint satisfaction. Our framework applies to any pre-trained flow-based sampling scheme requiring no retraining or architectural modifications. We validate the approach across constrained image generation, physically-consistent trajectory sampling, and safe robotic manipulation policies, achieving 100% constraint satisfaction while preserving semantic fidelity.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Diffusion foundations and sampling, one of 14 directions in Diffusion models. Builds on 32 of its 41 references that are in the map. First posted on arXiv 24 Feb 2026.

Builds on

32 of 41 references.

Closest ancestors · 12

Same direction, newest first

  1. 2025Inference-Time Alignment in Diffusion Models with Reward-Guided Generation: Tutorial and Review16 Jan
  2. 2025Test-time Alignment of Diffusion Models without Reward Over-optimization10 Jan
  3. 2024Derivative-Free Guidance in Continuous and Discrete Diffusion Models with Soft Value-Based Decoding15 Aug
  4. 2024Gradient Guidance for Diffusion Models: An Optimization Perspective23 Apr
  5. 2023Diffusion Models for Constrained Domains11 Apr
  6. 2023Reflected Diffusion Models10 Apr
  7. 2022Classifier-Free Diffusion Guidance26 Jul
  8. 2021High-Resolution Image Synthesis with Latent Diffusion Models20 Dec
  9. 2021Cascaded Diffusion Models for High Fidelity Image Generation30 May
  10. 2021Diffusion Models Beat GANs on Image Synthesis11 May
  11. 2020Score-Based Generative Modeling through Stochastic Differential Equations26 Nov
  12. 2020Denoising Diffusion Probabilistic Models19 Jun

Other references · 20

  1. 2022Flow Matching for Generative Modelingcited by 5,426
  2. 2023Diffusion Policy: Visuomotor Policy Learning via Action Diffusioncited by 2,730
  3. 2015LSUN: Construction of a Large-scale Image Dataset using Deep Learning with Humans in the Loopcited by 1,350
  4. 2019Normalizing Flows for Probabilistic Modeling and Inferencecited by 1,315
  5. 2022Planning with Diffusion for Flexible Behavior Synthesiscited by 1,023
  6. 2022Safe Latent Diffusion: Mitigating Inappropriate Degeneration in Diffusion Modelscited by 501
  7. 2019Control Barrier Functions: Theory and Applicationscited by 332
  8. 2024DiffusionDrive: Truncated Diffusion Model for End-to-End Autonomous Drivingcited by 324
  9. 2022The Vendi Score: A Diversity Evaluation Metric for Machine Learningcited by 299
  10. 2016Control Barrier Function Based Quadratic Programs for Safety Critical Systemscited by 261
  11. 2023Reward-Directed Conditional Diffusion: Provable Distribution Estimation and Reward Improvementcited by 49
  12. 2025Physics-Constrained Flow Matching: Sampling Generative Models with Hard Constraintscited by 46
8 more
  1. 2024CoBL-Diffusion: Diffusion-Based Conditional Robot Planning in Dynamic Environments Using Control Barrier and Lyapunov Functionscited by 30
  2. 2025Training-Free Constrained Generation With Stable Diffusion Modelscited by 20
  3. 2020Control Barrier Functions for Stochastic Systemscited by 14
  4. 2025SafeFlowMatcher: Safe and Fast Planning using Flow Matching with Control Barrier Functionscited by 11
  5. 2025HardFlow: Hard-Constrained Sampling for Flow-Matching Models via Trajectory Optimizationcited by 10
  6. 2025Responsible Diffusion Models via Constraining Text Embeddings within Safe Regionscited by 8
  7. 2025Dynamics-aware Diffusion Models for Planning and Controlcited by 4
  8. 2023Almost-Sure Safety Guarantees of Stochastic Zero-Control Barrier Functions Do Not Holdcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Safe Vision Language Action Models via Barrier Enhanced Flow Matching
  2. 2026Enforcing Constraints in Generative Sampling via Adaptive Correction Scheduling
  3. 2023How to Trust Your Diffusion Model: A Convex Optimization Approach to Conformal Risk Control
  4. 2023Guided Flows for Generative Modeling and Decision Making
  5. 2024Constrained Diffusion with Trust Sampling
  6. 2023Preconditioned Score-based Generative Models
  7. 2026Formalizing the Sampling Design Space of Diffusion-Based Generative Models via Adaptive Solvers and Wasserstein-Bounded Timesteps
  8. 2026Flowing with Confidence