AutoEdit: Automatic Hyperparameter Tuning for Image Editing
Chau Pham, Quan Dao, Mahesh Bhosale, Yunjie Tian, Dimitris Metaxas, David Doermann
TL;DR
AutoEdit reframes hyperparameter tuning for diffusion-based image editing as a reinforcement learning problem, treating each denoising step as a state and hyperparameters as time-varying actions. By employing a two-phase PPO-based policy—Phase 1 warm-start with priors and Phase 2 online optimization—it achieves near-optimal hyperparameters along a single trajectory, reducing the traditional $\mathcal{O}(TN^K)$ search to $\mathcal{O}(T)$. The method integrates editing objectives into a reward that balances prompt alignment and background preservation, with flexible reward choices (CLIP or LVLM) to handle both global and localized edits. Empirical results across multiple editing methods and base models show consistent gains in background fidelity and semantic fidelity with minimal inference overhead, enabling practical deployment of diffusion-based editing. These findings indicate that per-image, learned hyperparameter control can substantially reduce manual tuning while preserving high-quality edits.
Abstract
Recent advances in diffusion models have revolutionized text-guided image editing, yet existing editing methods face critical challenges in hyperparameter identification. To get the reasonable editing performance, these methods often require the user to brute-force tune multiple interdependent hyperparameters, such as inversion timesteps and attention modification. This process incurs high computational costs due to the huge hyperparameter search space. We consider searching optimal editing's hyperparameters as a sequential decision-making task within the diffusion denoising process. Specifically, we propose a reinforcement learning framework, which establishes a Markov Decision Process that dynamically adjusts hyperparameters across denoising steps, integrating editing objectives into a reward function. The method achieves time efficiency through proximal policy optimization while maintaining optimal hyperparameter configurations. Experiments demonstrate significant reduction in search time and computational overhead compared to existing brute-force approaches, advancing the practical deployment of a diffusion-based image editing framework in the real world. Codes can be found at https://github.com/chaupham1709/AutoEdit.git.
