Diffusion Models under Group Transformations

Haoye Lu, Spencer Szabados, Yaoliang Yu

Abstract

In recent years, diffusion models have become the leading approach for distribution learning. This paper focuses on structure-preserving diffusion models (SPDM), a specific subset of diffusion processes tailored for distributions with inherent structures, such as group symmetries. We complement existing sufficient conditions for constructing SPDMs by proving complementary necessary ones. Additionally, we propose a new framework that considers the geometric structures affecting the diffusion process. Leveraging this framework, we design a structure-preserving bridge model that maintains alignment between the model’s endpoint couplings. Empirical evaluations on equivariant diffusion models demonstrate their effectiveness in learning symmetric distributions and modeling transitions between them. Experiments on real-world medical images confirm that our models preserve equivariance while maintaining high sample quality. We also showcase the practical utility of our framework by implementing an equivariant denoising diffusion bridge model, which achieves reliable equivariant image noise reduction and style transfer, irrespective of prior knowledge of image orientation.

Introduction

In many high-stakes domains, data possesses inherent "structures" or symmetries. For instance, in medical imaging, a histopathology slide or a CT scan remains diagnostically identical regardless of whether it is rotated 90 degrees or flipped horizontally. Standard diffusion models, while state-of-the-art for generative tasks, do not inherently respect these symmetries. When a standard denoiser processes a rotated image, the output may not be a perfectly rotated version of the original denoised image. This lack of equivariance can lead to orientation-dependent biases, artifacts, or "hallucinations" that compromise clinical reliability.

While previous research identified sufficient conditions to make diffusion models equivariant, this work fills a critical theoretical gap by deriving the necessary conditions. Furthermore, the authors extend this theory to "Diffusion Bridges"—models that learn transitions between two specific distributions (e.g., CT to PET scans)—ensuring that the coupling between start and end points remains structurally aligned.

Methodology

The authors propose a generalized framework for Structure-Preserving Diffusion Models (SPDMs) by analyzing the Stochastic Differential Equations (SDEs) governing the diffusion process. They prove that for a diffusion process to be group-invariant, the "drift" term of the SDE must satisfy specific equivariant properties.

Equivariant diffusion process demonstrating how transformations applied to the input are preserved through the diffusion trajectory.

To implement these theoretical findings, two practical methods are introduced:

  • SPDM+WT (Weight Tying): This approach replaces standard CNN layers in a U-Net with group-equivariant CNNs. By tying weights across different transformations, the model architecture is mathematically constrained to preserve symmetry.
  • SPDM+FA (Frame Averaging): A more flexible approach where the model's output is averaged over a set of transformations. Crucially, the authors demonstrate that FA can be applied only during inference, allowing the use of standard training routines while guaranteeing equivariance at sample time.

Equivariant Sampling and Noise

A subtle but vital insight from this research is that even an equivariant model can produce non-equivariant samples if the random noise injected during sampling is not synchronized. If the sampling noise does not respect the input's orientation, individual trajectories will show variance despite the model being equivariant on average.

Comparison of trajectories using Equivariant Noise (EN) versus Regular Noise, showing how EN maintains symmetry across the sampling path.

To solve this, the authors introduce Equivariant Noise (EN) techniques. As shown in Figure 2, EN ensures that the entire sampling path (trajectory) respects group transformations, leading to perfectly symmetric outputs relative to the input orientation.

Key Results

The researchers evaluated their models on synthetic benchmarks like Rotated MNIST and high-stakes medical datasets including LYSTO (histopathology) and CT-PET style transfer.

  • Perfect Equivariance: In quantitative tests measuring the pixel-wise difference between a transformed output and the output of a transformed input, the SPDM+FA model achieved a score of 0.00, representing perfect mathematical equivariance.
  • Generative Quality: On the LYSTO dataset, SPDM+FA achieved an FID score of 5.31, significantly outperforming the standard VP-SDE baseline (7.88) and various GAN-based equivariant models.
  • Clinical Consistency: In CT-to-PET style transfer, standard models often exhibited bone shape distortions when inputs were flipped. SPDM+FA maintained perfect structural integrity regardless of orientation, meeting a core requirement for medical diagnostic tools.

Conclusion

This work establishes a rigorous foundation for designing generative models that respect data symmetries. By proving necessary conditions and introducing inference-time Frame Averaging, the authors provide a practical roadmap for building reliable, orientation-independent models. While current implementations focus on finite groups (like 90-degree rotations), future work aims to extend these guarantees to continuous symmetries and more complex geometric structures using Equivariant Graph Neural Networks.

Summary updated

BibTeX
@inproceedings{lu2025diffusion,
  author = {Haoye Lu and Spencer Szabados and Yaoliang Yu},
  title = {{Diffusion Models under Group Transformations}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=TxYNVSoAz4},
}
Figure