Proceedings

Accelerating Diffusion Models for Inverse Problems through Shortcut Sampling

Download BibTeX Cite

Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence. Main Track. Pages 1101-1109.

https://doi.org/10.24963/ijcai.2024/122

Abstract

Diffusion models have recently demonstrated an impressive ability to address inverse problems in an unsupervised manner. While existing methods primarily focus on modifying the posterior sampling process, the potential of the forward process remains largely unexplored. In this work, we propose Shortcut Sampling for Diffusion(SSD), a novel approach for solving inverse problems in a zero-shot manner. Instead of initiating from random noise, the core concept of SSD is to find a specific transitional state that bridges the measurement image y and the restored image x. By utilizing the shortcut path of "input - transitional state - output", SSD can achieve precise restoration with fewer steps. To derive the transitional state during the forward process, we introduce Distortion Adaptive Inversion. Moreover, we apply back projection as additional consistency constraints during the generation process. Experimentally, we demonstrate SSD's effectiveness on multiple representative IR tasks. Our method achieves competitive results with only 30 NFEs compared to state-of-the-art zero-shot methods(100 NFEs) and outperforms them with 100 NFEs in certain tasks. Code is available at https://github.com/GongyeLiu/SSD.

  1. SR × 8 Colorization Deblur (gauss) NFEs↓ Time(s/image)↓ Method PSNR↑ / FID↓ / LPIPS↓ PSNR↑ / FID↓ / LPIPS↓ FID↓ / LPIPS↓ PSNR↑ / FID↓ / LPIPS↓ H † y 28.02 / 128.22 / 0.301 24.77 / 153.86 / 0.460 43.99 / 0.197 19.96 / 116.28 / 0.564 0 N/A DDRM-100 28.84 / 40.52 / 0.214 26.47 / 45.22 / 0.273 25.88 / 0.156 36.17 / 15.32 / 0.119 100 8.26 DPS 24.71 / 34.69 / 0.304 22.38 / 41.01 / 0.348 N/A 24.89 / 32.64 / 0.288 250 47.34 DDNM-100 28.85 / 35.13 / 0.206 26.53 / 44.22 / 0.272 23.65 / 0.138 38.70 / 4.48 / 0.062 100 8.05 SSD-100 (ours) 28.84 / 32.41 / 0.202 26.44 / 42.42 / 0.267 23.62 / 0.138 38.62 / 4.36 / 0.060 100 8.08 DDRM-30 28.62 / 46.72 / 0.221 26.28 / 49.32 / 0.281 27.69 / 0.214 36.05 / 15.71 / 0.122 30 2.57 DDNM-30 28.76 / 41.36 / 0.213 26.41 / 48.25 / 0.277 25.25 / 0.184 37.40 / 6.65 / 0.084 30 2.47 SSD-30 (ours) 28.71 / 36.77 / 0.208 26.32 / 44.97 / 0.271 24.11 / 0.159 38.34 / 4.98 / 0.065 30 2
  2. 48 ImageNet SR × 4 SR × 8 Colorization Deblur (gauss) NFEs↓ Time(s/image)↓ Method PSNR↑ / FID↓ / LPIPS↓ PSNR↑ / FID↓ / LPIPS↓ FID↓ / LPIPS↓ PSNR↑ / FID↓ / LPIPS↓ H † y 26.26 / 106.01 / 0.322 22.86 / 124.89 / 0.4690 27.40 / 0.231 19.33 / 102.33 / 0.553 0 N/A DDRM-100 27.40 / 43.27 / 0.260 23.74 / 83.08 / 0.420 36.44 / 0.224 36.48 / 11.81 / 0.121 100 16.91 DPS 20.34 / 72.33 / 0.485 18.38 / 76.89 / 0.538 N/A 24.89 / 32.64 / 0.288 250 148.71 DDNM-100 27.44 / 39.42 / 0.251 23.80 / 80.09 / 0.412 36.46 / 0.219 40.48 / 3.33 / 0.041 100 16.56 SSD-100 (ours) 27.45 / 37.69 / 0.248 23.76 / 82.11 / 0.409 35.40 / 0.215 40.32 / 3.07 / 0.039 100 16.63 DDRM-30 27.17 / 46.14 / 0.269 23.50 / 84.53 / 0.426 36.48 / 0.237 35.90 / 13.35 / 0.130 30 5.19 DDNM-30 27.22 / 40.12 / 0.256 23.53 / 74.60 / 0.414 36.46 / 0.229 37.67 / 6.91 / 0.081 30 4.98 SSD-30 (ours) 27.13 / 38.24 / 0.251 23.44 / 76.35 / 0.411 36.22 / 0.223 39.23 / 4.64 / 0.053 30
  3. 01 Table 1: Quantitative evaluation on the CelebA(top) and ImageNet(bottom) datasets for various typical IR tasks. et al., 2017] for face images and ImageNet 256×256 [Deng et al., 2009] for natural images, both containing 1k valida- tion images independent of the training dataset. For CelebA 256×256, we use the denoising network VP-SDE[Song et al., 2021c; Meng et al., 2021]
  4. For ImageNet 256×256, we use the denoising network guided-diffusion [Dhariwal and Nichol, 2021] 2 . References Chung et al., 2022a] Hyungjin Chung, Byeongsu Sim, and Jong Chul Ye. Come-Closer-Diffuse-Faster: Accelerat- ing Conditional Diffusion Models for Inverse Problems through Stochastic Contraction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022.
  5. [Chung et al., 2022b] Hyungjin Chung, Byeongsu Sim, and Jong Chul Ye. Improving diffusion models for inverse problems using manifold constraints. In Advances in Neu- ral Information Processing Systems (NeurIPS), 2022.
  6. [Chung et al., 2023] Hyungjin Chung, Jeongsol Kim, Michael T Mccann, Marc L Klasky, and Jong Chul Ye. Diffusion posterior sampling for general noisy inverse problems. In In International Conference on Learning Representations (ICLR), 2023.
  7. [Deng et al., 2009] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large- scale hierarchical image database. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 248-255. Ieee, 2009.
  8. [Dhariwal and Nichol, 2021] Prafulla Dhariwal and Alexan- der Quinn Nichol. Diffusion models beat GANs on image synthesis. In A. Beygelzimer, Y. Dauphin, P. Liang, and J. Wortman Vaughan, editors, Advances in Neural Infor- mation Processing Systems, 2021.
  9. [Guo et al., 2019] Shi Guo, Zifei Yan, Kai Zhang, Wang- meng Zuo, and Lei Zhang. Toward convolutional blind denoising of real photographs. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 1712-1722, 2019.
  10. [Haris et al., 2018] Muhammad Haris, Gregory Shakhnarovich, and Norimichi Ukita. Deep back- projection networks for super-resolution. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 1664-1673, 2018.
  11. [Hertz et al., 2022] Amir Hertz, Ron Mokady, Jay Tenen- baum, Kfir Aberman, Yael Pritch, and Daniel Cohen-Or. Prompt-to-prompt image editing with cross attention con- trol. arXiv preprint arXiv:2208.01626, 2022.
  12. [Heusel et al., 2017] Martin Heusel, Hubert Ramsauer, Thomas Unterthiner, Bernhard Nessler, and Sepp Hochre- iter. Gans trained by a two time-scale update rule converge to a local nash equilibrium. In Advances in neural in- formation processing systems (NeurIPS), volume 30, 2017.
  13. [Ho et al., 2020] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems (NeurIPS), vol- ume 33, pages 6840-6851, 2020.
  14. [Karras et al., 2017] Tero Karras, Timo Aila, Samuli Laine, and Jaakko Lehtinen. Progressive growing of gans for improved quality, stability, and variation. arXiv preprint arXiv:1710.10196, 2017.
  15. [Kawar et al., 2021] Bahjat Kawar, Gregory Vaksman, and Michael Elad. Snips: Solving noisy inverse problems stochastically. Advances in Neural Information Process- ing Systems, 34:21757-21769, 2021.
  16. [Kawar et al., 2022] Bahjat Kawar, Michael Elad, Stefano Ermon, and Jiaming Song. Denoising diffusion restoration models. In ICLR Workshop on Deep Generative Models for Highly Structured Data, 2022.
  17. [Kim et al., 2022] Gwanghyun Kim, Taesung Kwon, and Jong Chul Ye. Diffusionclip: Text-guided diffusion mod- els for robust image manipulation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 2426-2435, 2022.
  18. [Kingma and Welling, 2013] Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
  19. [Larsson et al., 2016] Gustav Larsson, Michael Maire, and Gregory Shakhnarovich. Learning representations for au- tomatic colorization. In Computer Vision-ECCV 2016: 14th European Conference, Amsterdam, The Netherlands, October 11-14, 2016, Proceedings, Part IV 14, pages 577- 593. Springer, 2016.
  20. [Liu et al., 2023] Xihui Liu, Dong Huk Park, Samaneh Azadi, Gong Zhang, Arman Chopikyan, Yuxiao Hu, Humphrey Shi, Anna Rohrbach, and Trevor Darrell. More control for free! image synthesis with semantic diffusion guidance. In Proceedings of the IEEE/CVF Winter Confer- ence on Applications of Computer Vision, pages 289-299, 2023.
  21. [Lugmayr et al., 2022] Andreas Lugmayr, Martin Danell- jan, Andres Romero, Fisher Yu, Radu Timofte, and Luc Van Gool. Repaint: Inpainting using denoising diffusion probabilistic models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 11461-11471, June 2022.
  22. [Mardani et al., 2023] Morteza Mardani, Jiaming Song, Jan Kautz, and Arash Vahdat. A variational perspective on solving inverse problems with diffusion models. arXiv preprint arXiv:2305.04391, 2023.
  23. [Meng et al., 2021] Chenlin Meng, Yang Song, Jiaming Song, Jiajun Wu, Jun-Yan Zhu, and Stefano Ermon. SDEdit: Image synthesis and editing with stochastic dif- ferential equations. arXiv preprint arXiv:2108.01073, 2021.
  24. [Menon et al., 2020] Sachit Menon, Alexandru Damian, Shijia Hu, Nikhil Ravi, and Cynthia Rudin. Pulse: Self- supervised photo upsampling via latent space exploration of generative models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 2437-2445, 2020.
  25. [Pan et al., 2021] Xingang Pan, Xiaohang Zhan, Bo Dai, Dahua Lin, Chen Change Loy, and Ping Luo. Exploiting deep generative prior for versatile image restoration and manipulation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(11):7474-7489, 2021.
  26. [Pokle et al., 2023] Ashwini Pokle, Matthew J Muckley, Ricky TQ Chen, and Brian Karrer. Training-free linear im- age inversion via flows. arXiv preprint arXiv:2310.04432, 2023.
  27. [Rombach et al., 2022] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 10684-10695, 2022.
  28. [Shin and Song, 2017] Richard Shin and Dawn Song. Jpeg- resistant adversarial images. In NeurIPS Workshop on Ma- chine Learning and Computer Security, page 3, 2017.
  29. [Sohl-Dickstein et al., 2015] Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermody- namics. In International Conference on Machine Learning (ICML), pages 2256-2265. PMLR, 2015.
  30. [Song et al., 2021a] Jiaming Song, Chenlin Meng, and Ste- fano Ermon. Denoising diffusion implicit models. In In International Conference on Learning Representations (ICLR), 2021.
  31. [Song et al., 2021b] Yang Song, Liyue Shen, Lei Xing, and Stefano Ermon. Solving inverse problems in medical imaging with score-based generative models. In In Inter- national Conference on Learning Representations (ICLR), 2021.
  32. [Song et al., 2021c] Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In In International Con- ference on Learning Representations (ICLR), 2021.
  33. [Song et al., 2022] Jiaming Song, Arash Vahdat, Morteza Mardani, and Jan Kautz. Pseudoinverse-guided diffusion models for inverse problems. In International Conference on Learning Representations, 2022. [Tirer and Giryes, 2018] Tom Tirer and Raja Giryes. Im- age restoration by iterative denoising and backward pro- jections. IEEE Transactions on Image Processing, 28(3):1220-1234, 2018.
  34. [Tumanyan et al., 2023] Narek Tumanyan, Michal Geyer, Shai Bagon, and Tali Dekel. Plug-and-play diffusion fea- tures for text-driven image-to-image translation. In Pro- ceedings of the IEEE/CVF Conference on Computer Vi- sion and Pattern Recognition (CVPR), pages 1921-1930, June 2023.
  35. [Ulyanov et al., 2018] Dmitry Ulyanov, Andrea Vedaldi, and Victor Lempitsky. Deep image prior. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pat- tern Recognition (CVPR), pages 9446-9454, 2018.
  36. [Wang et al., 2018] Xintao Wang, Ke Yu, Shixiang Wu, Jin- jin Gu, Yihao Liu, Chao Dong, Yu Qiao, and Chen Change Loy. Esrgan: Enhanced super-resolution genera- tive adversarial networks. In Proceedings of the European conference on computer vision (ECCV) workshops, pages 0-0, 2018.
  37. [Wang et al., 2021] Xintao Wang, Liangbin Xie, Chao Dong, and Ying Shan. Real-esrgan: Training real-world blind super-resolution with pure synthetic data. In Proceed- ings of the IEEE/CVF International Conference on Com- puter Vision (ICCV) Workshops, pages 1905-1914, Octo- ber 2021.
  38. [Wang et al., 2022] Zhendong Wang, Xiaodong Cun, Jian- min Bao, Wengang Zhou, Jianzhuang Liu, and Houqiang Li. Uformer: A general u-shaped transformer for image restoration. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 17683-17693, 2022.
  39. [Wang et al., 2023] Yinhuai Wang, Jiwen Yu, and Jian Zhang. Zero-shot image restoration using denoising dif- fusion null-space model. In In International Conference on Learning Representations (ICLR), 2023.
  40. [Xiao et al., 2022] Zhisheng Xiao, Karsten Kreis, and Arash Vahdat. Tackling the generative learning trilemma with de- noising diffusion gans. In Advances in Neural Information Processing Systems (NeurIPS), 2022.
  41. [Yeh et al., 2017] Raymond A Yeh, Chen Chen, Teck Yian Lim, Alexander G Schwing, Mark Hasegawa- Johnson, and Minh N Do. Semantic image inpainting with deep generative models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 5485-5493, 2017.
  42. [Zhang et al., 2018a] Kai Zhang, Wangmeng Zuo, and Lei Zhang. Ffdnet: Toward a fast and flexible solution for cnn-based image denoising. IEEE Transactions on Image Processing, 27(9):4608-4622, 2018.
  43. [Zhang et al., 2018b] Richard Zhang, Phillip Isola, Alexei A Efros, Eli Shechtman, and Oliver Wang. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 586-595, 2018.
  44. [Zhang et al., 2024] Yuechen Zhang, Jinbo Xing, Eric Lo, and Jiaya Jia. Real-world image variation by aligning dif- fusion inversion chain. Advances in Neural Information Processing Systems, 36, 2024.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards