The Challenge of Constrained Generation
Standard diffusion models have achieved remarkable success in generating data within unconstrained Euclidean spaces, such as images or audio. However, many critical scientific and engineering applications—including molecular conformation, robotics, and structural design—require generated data to strictly adhere to a "feasible set" defined by physical laws, geometric boundaries, or safety requirements.
Enforcing these constraints in diffusion models is notoriously difficult. Existing approaches typically rely on:
- Projections: Using iterative Newton solvers to "snap" samples back to the manifold at every discretization step. This is computationally expensive (often accounting for over 90% of inference time) and frequently fails on non-convex sets.
- Reparametrization: Mapping the problem to a simpler space, which is often mathematically impossible for complex or mixed constraints.
- Penalty Methods: Adding penalty terms to the loss function, which can introduce bias or fail to strictly prevent constraint violations.
To address these bottlenecks, this paper introduces a unified framework for constrained diffusion models that seamlessly handles complex, non-convex equality and inequality constraints without relying on expensive projection steps.
Core Innovations
1. The Landing Mechanism
Instead of performing a costly projection at every step, the authors incorporate a first-order "landing term" directly into the Stochastic Differential Equation (SDE). This term acts as a gravitational pull toward the feasible set. If a sample drifts off the manifold due to numerical noise, the landing term ensures that the violation decays exponentially, making the diffusion process "self-correcting."
Furthermore, to handle inequality constraints (e.g., "do not hit the wall" in robotics), the framework utilizes a boundary repulsion hyperparameter that gently pushes samples away from constraint boundaries and into the feasible interior.
2. Underdamped Langevin Dynamics (ULLA)
Most diffusion models utilize "overdamped" dynamics, which essentially amount to simple gradient descent plus noise. This paper leverages underdamped dynamics, which introduce a momentum variable. Momentum allows the system to "mix" much faster, reaching the prior distribution in significantly fewer steps. This shorter trajectory length ($N$) is the primary driver behind the framework's massive speedups in both training and inference.
3. Conditional Wasserstein Path Matching (CWPM)
Because the landing mechanism allows samples to be slightly off-manifold during the diffusion process, traditional training losses like KL-divergence can become mathematically unstable or "singular." To resolve this, the authors developed CWPM, a training framework based on the Wasserstein distance that remains robust and stable even when samples are not perfectly aligned with the manifold.
Empirical Performance and Applications
The authors evaluated their method across a diverse set of benchmarks, including Earth and climate science modeling on the 2-sphere ($S^2$), 3D mesh generation (e.g., the Stanford Bunny), the high-dimensional SO(10) Lie Group, Alanine Dipeptide molecular conformation, and a 7-DOF robot arm navigation task.
Key Results: * Unprecedented Efficiency: On the 3D Mesh benchmark, the proposed ULLA method achieved a 47x speedup in sampling and a 5x speedup in training compared to the state-of-the-art projection-based baseline (RDDPM). * Scalability and Stability: In the complex 7-DOF robot arm task, standard projection-based baselines failed entirely due to numerical instability. In contrast, ULLA successfully generated high-quality, collision-free trajectories. * High Quality and Compliance: Across all tasks, the method achieved comparable or superior Jensen-Shannon Distance (JSD) scores. Even without per-step projections, average equality constraint violations remained negligible (between $10^{-5}$ and $10^{-9}$), which is more than sufficient for practical applications.
Limitations and Future Directions
While highly efficient, the method does have limitations. Training still requires storing forward trajectories, meaning memory usage scales linearly with the trajectory length ($N$) and dimensionality ($d$). Additionally, if a feasible set consists of several disconnected "islands," the model may struggle to distribute samples correctly across them without careful prior initialization.
Looking forward, the authors suggest extending this landing logic to latent diffusion models. By enforcing constraints in a lower-dimensional latent space via encoders and decoders, the framework could scale to even higher-dimensional applications, further bridging the gap between generative AI and rigorous scientific engineering.
Summary updated