Proceedings

ExpertDiff: Head-less Model Reprogramming with Diffusion Classifiers for Out-of-Distribution Generalization

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 6866-6874.

https://doi.org/10.24963/ijcai.2025/764

Abstract

Vision-language models have achieved remarkable performance across various tasks by leveraging large-scale multimodal training data. However, their ability to generalize to out-of-distribution (OOD) domains requiring expert-level knowledge remains an open challenge. To address this, we investigate cross-domain transfer learning approaches for efficiently adapting diffusion classifiers to new target domains demanding expert-level domain knowledge. Specifically, we propose ExpertDiff, a head-less model reprogramming technique that optimizes the instruction-following abilities of text-to-image diffusion models via learnable prompts, while leveraging the diffusion classifier objective as a modular plug-and-play adaptor. Our approach eliminates the need for conventional output mapping layers (e.g., linear probes), enabling seamless integration with off-the-shelf diffusion frameworks like Stable Diffusion. We demonstrate the effectiveness of ExpertDiff on the various OOD datasets (i.e., medical and satellite imagery). Furthermore, we qualitatively showcase ExpertDiff’s ability to faithfully reconstruct input images, highlighting its potential for both downstream discriminative and upstream generative tasks. Our work paves the way for effectively repurposing powerful foundation models for novel OOD applications requiring domain expertise.

  1. [Al-Dhabyani et al., 2020] Walid Al-Dhabyani, Mohammed Gomaa, Hussien Khaled, and Aly Fahmy. Dataset of breast ultrasound images. Data in Brief, 28:104863, 2020.
  2. [Bhattacharya and Prasanna, 2024] Moinak Bhattacharya and Prateek Prasanna. Gazediff: A radiologist visual attention guided diffusion model for zero-shot disease classification. In MIDL, 2024.
  3. [Bommasani et al., 2022] Rishi Bommasani, Drew A. Hud- son, et al. On the opportunities and risks of foundation models, 2022.
  4. [Bordes et al., 2022] Florian Bordes, Randall Balestriero, and Pascal Vincent. High fidelity visualization of what your self-supervised representation knows about. Trans- actions on Machine Learning Research, 2022.
  5. [Chen et al., 2023] Huanran Chen, Yinpeng Dong, et al. Ro- bust classification via a single diffusion model, 2023.
  6. [Chen et al., 2024] Huanran Chen, Yinpeng Dong, Shitong Shao, Zhongkai Hao, Xiao Yang, et al. Your diffusion model is secretly a certifiably robust classifier, 2024.
  7. [Chen, 2024] Pin-Yu Chen. Model reprogramming: resource-efficient cross-domain machine learning. In AAAI Conference on Artificial Intelligence, 2024.
  8. [Clark and Jaini, 2023] Kevin Clark and Priyank Jaini. Text- to-image diffusion models are zero shot classifiers. In Ad- vances in Neural Information Processing Systems, 2023.
  9. [Fini et al., 2023] Enrico Fini, Pietro Astolfi, Adriana Romero-Soriano, Jakob Verbeek, and Michal Drozdzal. Improved baselines for vision-language pre-training. Transactions on Machine Learning Research, 2023. Fea- tured Certification.
  10. [Gandelsman et al., 2024] Yossi Gandelsman, Alexei A Efros, and Jacob Steinhardt. Interpreting CLIP's im- age representation via text-based decomposition. In The Twelfth International Conference on Learning Represen- tations, 2024.
  11. [He et al., 2023] Xuehai He, Weixi Feng, Tsu-Jui Fu, Varun Jampani, Arjun Akula, Pradyumna Narayana, Sugato Basu, William Yang Wang, and Xin Eric Wang. Discffu- sion: Discriminative diffusion models as few-shot vision and language learners, 2023.
  12. [Helber et al., 2018] Patrick Helber, Benjamin Bischke, An- dreas Dengel, and Damian Borth. Introducing eurosat: A novel dataset and deep learning benchmark for land use and land cover classification. In IGARSS 2018 -2018 IEEE International Geoscience and Remote Sensing Sym- posium, pages 204-207, 2018.
  13. [Ho et al., 2020] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin, editors, Advances in Neural Information Process- ing Systems, volume 33, pages 6840-6851.
  14. [Huang et al., 2024] Zhuo Huang, Chang Liu, Yinpeng Dong, Hang Su, Shibao Zheng, and Tongliang Liu. Ma- chine vision therapy: Multimodal large language mod- els can enhance visual robustness via denoising in-context learning. In Forty-first International Conference on Ma- chine Learning, 2024.
  15. [Jaini et al., 2024] Priyank Jaini, Kevin Clark, and Robert Geirhos. Intriguing properties of generative classifiers. In The Twelfth International Conference on Learning Repre- sentations, 2024.
  16. [Jia et al., 2022] Menglin Jia, Luming Tang, Bor-Chun Chen, Claire Cardie, Serge Belongie, Bharath Hariharan, and Ser-Nam Lim. Visual prompt tuning. In European Conference on Computer Vision, pages 709-727. Springer, 2022.
  17. [Kermany and others, 2018] Daniel S. Kermany et al. Iden- tifying medical diagnoses and treatable diseases by image- based deep learning. Cell, 172(5):1122-1131.e9, 2018.
  18. [Khattak et al., 2023] Muhammad Uzair Khattak, Hanoona Rasheed, Muhammad Maaz, Salman Khan, and Fa- had Shahbaz Khan. MaPLe: Multi-modal prompt learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 19113- 19122, June 2023.
  19. [Koh and others, 2021] Pang Wei Koh et al. WILDS: A benchmark of in-the-wild distribution shifts. In Interna- tional Conference on Machine Learning (ICML), 2021.
  20. [Krojer et al., 2023] Benno Krojer, Elinor Poole-Dayan, Vikram Voleti, Chris Pal, and Siva Reddy. Are diffusion models vision-and-language reasoners? In A. Oh, T. Nau- mann, A. Globerson, K. Saenko, M. Hardt, and S. Levine, editors, Advances in Neural Information Processing Sys- tems, volume 36, pages 8385-8405.
  21. Curran Associates, Inc., 2023.
  22. [Li and Liang, 2021] Xiang Lisa Li and Percy Liang. Prefix- tuning: Optimizing continuous prompts for generation. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, 2021.
  23. [Li et al., 2023] Alexander C. Li, Mihir Prabhudesai, Shivam Duggal, Ellis Brown, and Deepak Pathak. Your diffusion model is secretly a zero-shot classifier. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 2206-2217, October 2023.
  24. [Mokady et al., 2023] Ron Mokady, Amir Hertz, Kfir Aber- man, Yael Pritch, and Daniel Cohen-Or. Null-text inver- sion for editing real images using guided diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6038-6047, 2023.
  25. [Mukhopadhyay et al., 2023] Soumik Mukhopadhyay, Matthew Gwilliam, et al. Do text-free diffusion models learn discriminative visual representations?, 2023.
  26. [Ng and Jordan, 2001] Andrew Ng and Michael Jordan. On discriminative vs. generative classifiers: A comparison of logistic regression and naive bayes. In T. Dietterich, S. Becker, and Z. Ghahramani, editors, Advances in Neu- ral Information Processing Systems, volume 14. MIT Press, 2001.
  27. [Nguyen et al., 2024] Tan H. Nguyen, Dinkar Juyal, et al. Contrimix: Scalable stain color augmentation for domain generalization without domain labels in digital pathology, 2024.
  28. [Prabhudesai et al., 2023] Mihir Prabhudesai, Tsung-Wei Ke, Alexander Cong Li, Deepak Pathak, and Katerina Fragkiadaki. Test-time adaptation of discriminative mod- els via diffusion generative feedback. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.
  29. [Radford et al., 2021] Alec Radford, Kim Jong Wook, et al. Learning transferable visual models from natural language supervision. In Proceedings of the 38th International Con- ference on Machine Learning, 2021.
  30. [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, June 2022.
  31. [Ruiz et al., 2023] Nataniel Ruiz, Yuanzhen Li, et al. Dream- booth: Fine tuning text-to-image diffusion models for subject-driven generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 22500-22510, June 2023.
  32. [Sagawa et al., 2022] Shiori Sagawa, Pang Wei Koh, Tony Lee, Irena Gao, Sang Michael Xie, Kendrick Shen, Ananya Kumar, Weihua Hu, Michihiro Yasunaga, Henrik Marklund, Sara Beery, Etienne David, Ian Stavness, Wei Guo, Jure Leskovec, Kate Saenko, Tatsunori Hashimoto, Sergey Levine, Chelsea Finn, and Percy Liang. Extend- ing the WILDS benchmark for unsupervised adaptation. In International Conference on Learning Representations, 2022.
  33. [Saharia et al., 2022] Chitwan Saharia, William Chan, et al. Photorealistic text-to-image diffusion models with deep language understanding. In Advances in Neural Informa- tion Processing Systems, 2022.
  34. [Sohl-Dickstein et al., 2015] Jascha Sohl-Dickstein, Eric Weiss, et al. Deep unsupervised learning using nonequi- librium thermodynamics. In Proceedings of the 32nd In- ternational Conference on Machine Learning, 2015.
  35. [Udandarao et al., 2024a] Vishaal Udandarao, Max F Burg, Samuel Albanie, and Matthias Bethge. Visual data- type understanding does not emerge from scaling vision- language models. In The Twelfth International Conference on Learning Representations, 2024. [Udandarao et al., 2024b] Vishaal Udandarao, Ameya Prabhu, Adhiraj Ghosh, Yash Sharma, Philip H. S. Torr, Adel Bibi, Samuel Albanie, and Matthias Bethge. No "zero-shot" without exponential data: Pretraining concept frequency determines multimodal model performance, 2024.
  36. [Vilouras et al., 2024] Konstantinos Vilouras, Pedro Sanchez, Alison Q. O'Neil, and Sotirios A. Tsaftaris. Zero-shot medical phrase grounding with off-the-shelf diffusion models, 2024.
  37. [Wang et al., 2022] Zifeng Wang, Zhenbang Wu, Dinesh Agarwal, and Jimeng Sun. Medclip: Contrastive learning from unpaired medical images and text. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 3876-3887, 2022.
  38. [Wei et al., 2022] Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yo- gatama, Maarten Bosma, Denny Zhou, Donald Metzler, Ed H. Chi, Tatsunori Hashimoto, Oriol Vinyals, Percy Liang, Jeff Dean, and William Fedus. Emergent abilities of large language models. Transactions on Machine Learn- ing Research, 2022. Survey Certification.
  39. [Yang et al., 2023a] Jiancheng Yang, Rui Shi, Donglai Wei, Zequan Liu, Lin Zhao, Bilian Ke, Hanspeter Pfister, and Bingbing Ni. Medmnist v2-a large-scale lightweight benchmark for 2d and 3d biomedical image classification. Scientific Data, 10(1):41, 2023.
  40. [Yang et al., 2023b] Linyi Yang, Yaoxian Song, Xuan Ren, Chenyang Lyu, Yidong Wang, Jingming Zhuo, Lingqiao Liu, Jindong Wang, Jennifer Foster, and Yue Zhang. Out- of-distribution generalization in natural language process- ing: Past, present, and future. In Houda Bouamor, Juan Pino, and Kalika Bali, editors, Proceedings of the 2023 Conference on Empirical Methods in Natural Lan- guage Processing, pages 4533-4559, Singapore, Decem- ber 2023. Association for Computational Linguistics.
  41. [Yue et al., 2024] Zhongqi Yue, Pan Zhou, Richang Hong, Hanwang Zhang, and Qianru Sun. Few-shot learner pa- rameterization by diffusion time-steps. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pat- tern Recognition (CVPR), pages 23263-23272, June 2024.
  42. [Zhang et al., 2023] Shengyu Zhang, Linfeng Dong, et al. Instruction tuning for large language models: A survey, 2023.
  43. [Zhou et al., 2022a] Kaiyang Zhou, Jingkang Yang, Chen Change Loy, and Ziwei Liu. Conditional prompt learning for vision-language models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 16816-16825, 2022.
  44. [Zhou et al., 2022b] Kaiyang Zhou, Jingkang Yang, Chen Change Loy, and Ziwei Liu. Learning to prompt for vision-language models. International Journal of Computer Vision, 130(9):2337-2348, 2022.
  45. [Zhou et al., 2024] Jingqiu Zhou, Aojun Zhou, and Hong- sheng Li. Nodi: Out-of-distribution detection with noise from diffusion, 2024.

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

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