Mirror Diffusion Models for Constrained and Watermarked Generation

Guan-Horng Liu, T. Chen, Evangelos A. Theodorou, Molei Tao
2/12/2026

Official code: ghliu/mdm (33 stars, Apache-2.0, last commit 2023-12-01).

Abstract

Modern successes of diffusion models in learning complex, high-dimensional data distributions are attributed, in part, to their capability to construct diffusion processes with analytic transition kernels and score functions. The tractability results in a simulation-free framework with stable regression losses, from which reversed, generative processes can be learned at scale. However, when data is confined to a constrained set as opposed to a standard Euclidean space, these desirable characteristics appear to be lost based on prior attempts. In this work, we propose Mirror Diffusion Models (MDM), a new class of diffusion models that generate data on convex constrained sets without losing any tractability. This is achieved by learning diffusion processes in a dual space constructed from a mirror map, which, crucially, is a standard Euclidean space. We derive efficient computation of mirror maps for popular constrained sets, such as simplices and $\ell_2$-balls, showing significantly improved performance of MDM over existing methods. For safety and privacy purposes, we also explore constrained sets as a new mechanism to embed invisible but quantitative information (i.e., watermarks) in generated data, for which MDM serves as a compelling approach. Our work brings new algorithmic opportunities for learning tractable diffusion on complex domains. Our code is available at https://github.com/ghliu/mdm

View on arXivView PDF

Code Implementations(1)

ghliu/mdmOfficial100%
Apache-2.0

Mirror Diffusion Models, NeurIPS 2023

330Shell, PythonNov 29, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{liu2026mirror,
  title  = {Mirror Diffusion Models for Constrained and Watermarked Generation},
  author = {Guan-Horng Liu and T. Chen and Evangelos A. Theodorou and Molei Tao},
  year   = {2026},
  eprint = {2310.01236},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2310.01236},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.01236.svg)](https://codeofpaper.com/paper/2310.01236)

Discussion