UniEdit-Flow: Unleashing Inversion and Editing in the Era of Flow Models
Guanlong Jiao, Biqing Huang, Kuan-Chieh Wang, Renjie Liao
TL;DR
UniEdit-Flow tackles inversion and editing for flow matching models by introducing Uni-Inv, a high-precision inversion method, and Uni-Edit, a region-aware editing approach. The framework uses a predictor–corrector design combined with region-adaptive guidance and velocity fusion, enabling robust, low-cost, tuning-free operations across flow and diffusion models. Empirical results demonstrate state-of-the-art inversion accuracy and editing quality, with applications ranging from sketch-to-image to video editing. This work advances practical image editing in the era of flow-based generative models by preserving editing-irrelevant regions while delivering strong, controllable edits.
Abstract
Flow matching models have emerged as a strong alternative to diffusion models, but existing inversion and editing methods designed for diffusion are often ineffective or inapplicable to them. The straight-line, non-crossing trajectories of flow models pose challenges for diffusion-based approaches but also open avenues for novel solutions. In this paper, we introduce a predictor-corrector-based framework for inversion and editing in flow models. First, we propose Uni-Inv, an effective inversion method designed for accurate reconstruction. Building on this, we extend the concept of delayed injection to flow models and introduce Uni-Edit, a region-aware, robust image editing approach. Our methodology is tuning-free, model-agnostic, efficient, and effective, enabling diverse edits while ensuring strong preservation of edit-irrelevant regions. Extensive experiments across various generative models demonstrate the superiority and generalizability of Uni-Inv and Uni-Edit, even under low-cost settings. Project page: https://uniedit-flow.github.io/
