Diffusion Adaptation Under Distribution Shifts via Distributionally Robust Optimization
Diffusion Adaptation Under Distribution Shifts via Distributionally Robust Optimization
Zifan Wang, Amir Mohammad Karimi Mamaghan, Riccardo De Santi, Ya-Ping Hsieh, Stefan Bauer, Michael M. Zavlanos, Andreas Krause, Karl H. Johansson
AbstractFine-tuning pretrained diffusion models to optimize downstream utilities is central to their real-world deployment. Existing fine-tuning methods typically optimize average performance under the training distribution but can be vulnerable to test-time distribution shifts. We study shifts in group proportions, such as changes in the relative frequencies of text-prompt categories or protein-backbone classes. To address these shifts, we propose Group Distributionally Robust Generative Optimization (GDRGO), which maximizes worst-case expected reward over a prescribed uncertainty set of group mixtures. Unlike prior approaches that alternate between group-weight estimation and model update, we derive an exact reformulation that decomposes GDRGO into a lightweight group-weight optimization followed by a single fine-tuning run with a specific reward. This decomposition allows to bypass repeated model evaluation to update adversarial group weights during fine-tuning, substantially improving computational efficiency. Experiments on 2D illustrative settings, text-to-image generation with continuous diffusion models, and protein inverse folding with discrete diffusion models demonstrate the practical effectiveness of GDRGO.