Abstract
Mirror Diffusion Models (MDM) provide a mathematically elegant framework for training diffusion models on data restricted to convex constrained sets, such as simplices or $\ell_2$-balls, without sacrificing the efficiency of standard Euclidean diffusion. By employing a "mirror map" to project constrained data into an unconstrained dual space, MDM enables simulation-free training and accelerated sampling. Furthermore, the framework introduces a novel, high-dimensional watermarking technique for AI-generated content that ensures generated samples strictly adhere to secret linear constraints.
Introduction
Standard diffusion models have revolutionized generative AI due to their tractability in Euclidean space ($\mathbb{R}^d$), where closed-form equations for noise addition allow for efficient training via simple regression. However, real-world data is frequently constrained: probabilities must lie on a simplex, physical systems may be confined to an $\ell_2$-ball, and image pixels are bounded within specific ranges. Previous approaches, such as Reflected Diffusion, often lose tractability, requiring computationally intensive simulations to approximate scores or complex geometric adjustments that fail to scale. Mirror Diffusion Models bridge this gap by maintaining the simplicity of standard diffusion while strictly respecting complex convex boundaries.
Methodology
The core innovation of MDM is the application of Mirror Maps—a concept from convex optimization—to the diffusion framework.
- The Dual Space Trick: Instead of defining a complex diffusion process directly on a constrained manifold $\mathcal{M}$, MDM uses a mirror map ($\nabla \phi$) to transform data into an unconstrained dual space. This dual space is a standard Euclidean space ($\mathbb{R}^d$).
- Standard Diffusion: In the dual space, the model applies standard Gaussian diffusion, inheriting the "simulation-free" training objectives (like those in DDPM) that underpin modern generative success.
- The Inverse Map: To generate data, the model reverses the diffusion in the dual space and employs the inverse mirror map ($\nabla \phi^*$) to project samples back onto the original constrained set.
The authors derived closed-form, analytically invertible mirror maps for common sets, including $\ell_2$-balls (via log-barrier functions), simplices (via entropic functions), and polytopes (using a novel rescaled hyperbolic tangent mapping for numerical stability).
Experimental Evaluation
The authors evaluated MDM across multiple domains:
- Synthetic Benchmarks: 2D to 20D datasets (Mixtures of Gaussians, Spirals, Dirichlet distributions) to test $\ell_2$-ball and simplex constraints.
- High-Dimensional Images: Unconditional generation and watermarking on FFHQ and AFHQv2 ($64 \times 64$), and conditional watermarked generation for JPEG restoration on ImageNet ($256 \times 256$).
Key Results and Insights
- Performance and Efficiency: MDM consistently outperformed Reflected Diffusion in Sliced Wasserstein distance on constrained synthetic tasks. Notably, MDM is approximately 10x faster to train and requires significantly less memory by avoiding implicit score matching and boundary simulation.
- High-Dimensional Watermarking: MDM enables a unique watermarking application where a secret, high-dimensional polytope serves as a constraint set. Generated images appear normal but strictly satisfy these secret linear constraints, verifiable only by those possessing the "private tokens" (vectors defining the polytope). On FFHQ, MDM achieved an FID of ~2.5 while maintaining near 100% watermark precision.
- Numerical Stability: The introduction of the rescaled hyperbolic tangent for polytopes proved essential for stability at the boundaries during diffusion on real image data.
Discussion and Future Work
While MDM offers significant advantages, it is currently limited to convex sets due to its reliance on mirror map properties. Extending the framework to non-convex manifolds remains an open challenge. Additionally, projecting training data onto constrained sets for watermarking can introduce a distributional shift, leading to a minor trade-off between watermark strength and image quality. Future research may explore combining MDM with flow-based models or alternative noise schedules to further enhance performance.
Summary updated