Quantum Denoising Diffusion Models

Michael Kölle, Gerhard Stenzel, Jonas Stein, Sebastian Zielinski, Björn Ommer, Claudia Linnhoff-Popien · DOI

Abstract

Classical Denoising Diffusion Models (DDMs) are computationally intensive, requiring large parameter counts and iterative sampling. This paper explores Quantum Denoising Diffusion Models (QDDMs) as a more efficient alternative. We introduce two architectures, Q-Dense and QU-Net, which utilize quantum machine learning to represent high-dimensional data compactly. Furthermore, we present a "unitary single-sampling" method that leverages the linearity of quantum gates to collapse the multi-step denoising process into a single operation. Our results demonstrate that QDDMs outperform classical models of comparable size in image fidelity and sampling speed, with successful validation on real quantum hardware.

Introduction

Generative AI has achieved remarkable success with models such as Stable Diffusion and DALL-E. However, these classical frameworks are limited by high computational costs and slow, iterative sampling processes. Quantum Machine Learning (QML) offers a potential solution by utilizing quantum circuits to represent data in high-dimensional Hilbert spaces with a logarithmic number of qubits. This paper investigates the integration of quantum circuits into the diffusion framework to create more efficient generative models.

Problem Statement

Classical diffusion models operate by iteratively reversing a noise-addition process. This approach faces two primary challenges: the need for millions of parameters to model complex distributions and the slow generation speed caused by the required 50–1000 sampling steps. By employing amplitude embedding, an $8 \times 8$ image can be represented using only 6 qubits, suggesting that quantum models could achieve high performance with significantly fewer parameters.

Methodology

We propose three technical innovations to address the limitations of classical DDMs:

  1. Q-Dense Architecture: This model utilizes "strongly entangling" variational quantum circuits as dense layers. By ensuring extensive interaction between qubits, Q-Dense mimics the connectivity of classical fully connected layers while maintaining a much smaller parameter footprint.
  2. QU-Net (Quantum U-Net): Inspired by the classical U-Net, this architecture incorporates quantum convolutions. Local image slices are embedded into dense quantum circuits to capture spatial hierarchies, facilitating the scaling of quantum models to larger image dimensions.
  3. Unitary Single Sampling: Leveraging the unitary and linear nature of quantum gates, we mathematically concatenate the iterative denoising steps into a single unitary matrix. This allows for "one-shot" image generation, effectively bridging the gap between diffusion and consistency models.
The unitary single-sampling process concatenates multiple denoising steps into a single quantum operation.

Experimental Setup

The models were evaluated on adapted versions of standard datasets, including MNIST digits, Fashion MNIST, and CIFAR10 (grayscale, $32 \times 32$). These datasets were chosen to benchmark the models' ability to handle varying levels of complexity and spatial detail within quantum constraints.

Key Results

Our experiments reveal that QDDMs consistently provide superior parameter efficiency. On the CIFAR10 dataset, the QU-Net achieved an FID of 271.03, outperforming a classical U-Net of the same scale (FID 395.47).

FID score comparison showing Q-Dense outperforming classical Dense and U-Net models at similar parameter scales.

Furthermore, the unitary single-sampling method significantly reduced sampling times. For $8 \times 8$ MNIST digits, generation time was reduced to microseconds in simulation. We also validated the unguided single-sample model on IBMQ’s 7-qubit hardware, successfully generating distinguishable digits despite the presence of hardware noise. This suggests that the diffusion process's inherent noise robustness makes it well-suited for the NISQ era.

Discussion and Limitations

While QDDMs show great promise, several challenges remain. Training these models on classical hardware is slow due to simulation overhead, which limited the number of training epochs in this study. Additionally, we observed occasional "mode collapse" on diverse datasets like CIFAR10. Future work will explore "diffusion patching" and higher-precision simulation to overcome these bottlenecks and scale to more complex, high-resolution data.

Summary updated

BibTeX
@inproceedings{kolle2024quantum,
  author = {Michael Kölle and Gerhard Stenzel and Jonas Stein and Sebastian Zielinski and Björn Ommer and Claudia Linnhoff-Popien},
  title = {{Quantum Denoising Diffusion Models}},
  booktitle = {QSW},
  year = {2024},
  doi = {10.1109/qsw62656.2024.00023},
}
Figure