NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Optical Diffusion Models for Image Generation

Ilker Oguz, Niyazi Ulas Dinç, Mustafa Yildirim, Junjie Ke, Innfarn Yoo, Qifei Wang, Feng Yang, Christophe Moser, Demetri Psaltis

TL;DR

Researchers have developed an "Optical Diffusion Model" (ODU) that uses light propagation through passive optical layers to perform image denoising and generation, mimicking diffusion models. This approach promises significantly lower latency and energy consumption compared to traditional GPU-based methods, potentially revolutionizing real-time image generation.

What Problem Does This Paper Address?

Diffusion models are powerful for generating realistic images, but they are notoriously slow and energy-intensive. This is because they require a trained neural network to be applied many times (hundreds or thousands of steps) to progressively denoise a random input into a coherent image. This computational burden limits their accessibility and contributes to a significant environmental footprint. The paper aims to address this by exploring optical computing as a hardware solution to accelerate and make diffusion models more energy-efficient.

Methods

The core innovation is the "Optical Denoising Unit" (ODU). Instead of a digital neural network, the ODU uses a series of passive diffractive optical layers. When a noisy image (encoded as a light beam) passes through these layers, their physical structure is designed to selectively transmit only the predicted "noise term" of the image at each denoising step. This process is analogous to the reverse diffusion process in digital models.

Key aspects of the method include:

  • Light Propagation as Computation: The physical phenomenon of light diffraction and interference through specially designed optical elements is leveraged to perform the denoising computation.
  • Passive Optical Layers: The diffractive layers are passive, meaning they don't require active power to function, contributing to energy efficiency.
  • Time-Aware Denoising Policy: The diffusion process is divided into time steps, and different sets of optical layers are trained for different stages of denoising. This decouples denoising across timesteps, eliminating the need for time-embedding layers common in digital diffusion models.
  • Online Learning Algorithm: To account for real-world experimental imperfections (like calibration errors), an online learning algorithm is proposed. This algorithm uses a "digital twin" to refine the optical system's parameters iteratively during training, ensuring better alignment between the simulated and physical systems.
  • Differentiable Modeling: The light propagation is modeled using a differentiable approach, allowing for automatic differentiation to train the optical layer parameters.

Datasets

The paper uses standard datasets for training and evaluation:

  • MNIST digits
  • Fashion-MNIST
  • Quick, Draw! (clock category)
  • AFHQ (cat class)

Key Insights and Ideas

  • Optical Computing for Generative Models: The paper demonstrates that optical wave propagation can be directly programmed to implement complex generative AI tasks like diffusion model inference, offering a novel hardware acceleration paradigm.
  • Passive Components for Efficiency: By using passive optical layers, the ODU achieves near-zero energy consumption for the core computation, drastically reducing the overall power budget compared to electronic counterparts.
  • Speedup Through Parallelism: Light's inherent parallelism allows for massive parallel processing, leading to potentially much faster inference times.
  • Online Learning for Real-World Systems: The proposed online learning approach is crucial for bridging the gap between theoretical optical models and practical, imperfect experimental setups, making the system more robust.
  • Scalability: The ODU shows promising scalability, with performance improving with increased optical layer resolution and count, similar to digital neural networks, but with significantly better energy efficiency.

Key Results

  • High-Speed Generation: The ODU can achieve generation speeds of 23.0 images/s with an energy consumption of 0.23 J/image, significantly outperforming digital methods (e.g., Fully Connected network at 41.3 images/s but 1.74 J/image, or U-Net at 13.9 images/s and 5.37 J/image).
  • Competitive Image Quality: The generated images, evaluated using FID and Inception Scores, are comparable to or better than those produced by digital diffusion models, even with fewer parameters in some cases. For instance, FID scores for MNIST digits were 206.6, Fashion MNIST 227.7, and Quick, Draw! 131.4.
  • Energy Efficiency: The ODU consumes approximately 15 mJ/image, which is over 100 times more energy-efficient than conventional methods (which require ~1.7 J/image).
  • Parameter Scaling: The ODU's performance scales with its parameters (layer resolution, layer count) in a power-law manner, similar to large-scale digital image generation networks.

Limitations and Future Work

  • Limitations:
    • The current implementation relies on a single phase-only SLM and a mirror, which might limit the complexity of the optical operations.
  • While energy efficient, the initial setup still involves optoelectronic conversion (input/output), which contributes to the overall energy budget.
  • The online learning algorithm is crucial for calibration, highlighting the sensitivity of optical systems to experimental imperfections.
  • Future Work:
    • Exploring larger modulation layers with more parameters.
  • Investigating nonlinear optical effects to enhance functionality.
  • Incorporating more advanced optical components and techniques.
  • Further optimizing the hardware for even higher speeds (e.g., million-frames-per-second).
  • Expanding the range of applications beyond image generation.

Summary updated

BibTeX
@inproceedings{oguz2024optical,
  author = {Ilker Oguz and Niyazi Ulas Dinç and Mustafa Yildirim and Junjie Ke and Innfarn Yoo and Qifei Wang and Feng Yang and Christophe Moser and Demetri Psaltis},
  title = {{Optical Diffusion Models for Image Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=PIYuOd02Cr},
}
Figure