Steering Rectified Flow Models in the Vector Field for Controlled Image Generation
Maitreya Patel, Song Wen, Dimitris N. Metaxas, Yezhou Yang
TL;DR
FlowChef unifies controlled image generation with Rectified Flow Models by steering the denoising trajectory in the vector field using gradient skipping, enabling efficient, inversion-free handling of linear inverse problems, image editing, and classifier guidance. The authors provide both theoretical analysis of error dynamics and practical algorithms, showing FlowChef can outperform baselines in speed, memory, and quality, while scaling to large latent and state-of-the-art models like Flux. Key contributions include a gradient-approximate update rule under local linearity and slow Jacobian variation, empirical validation across pixel- and latent-space tasks, and a broad demonstration of inversion-free editing and editing-style transfer. The work offers a practical, resource-efficient framework with broad applicability and potential for extension to video and 3D synthesis, alongside considerations for ethical use.
Abstract
Diffusion models (DMs) excel in photorealism, image editing, and solving inverse problems, aided by classifier-free guidance and image inversion techniques. However, rectified flow models (RFMs) remain underexplored for these tasks. Existing DM-based methods often require additional training, lack generalization to pretrained latent models, underperform, and demand significant computational resources due to extensive backpropagation through ODE solvers and inversion processes. In this work, we first develop a theoretical and empirical understanding of the vector field dynamics of RFMs in efficiently guiding the denoising trajectory. Our findings reveal that we can navigate the vector field in a deterministic and gradient-free manner. Utilizing this property, we propose FlowChef, which leverages the vector field to steer the denoising trajectory for controlled image generation tasks, facilitated by gradient skipping. FlowChef is a unified framework for controlled image generation that, for the first time, simultaneously addresses classifier guidance, linear inverse problems, and image editing without the need for extra training, inversion, or intensive backpropagation. Finally, we perform extensive evaluations and show that FlowChef significantly outperforms baselines in terms of performance, memory, and time requirements, achieving new state-of-the-art results. Project Page: \url{https://flowchef.github.io}.
