Abstract
Leveraging the powerful generation capability of large-scale pretrained text-to-image models, training-free methods have demonstrated impressive image editing results. Conventional diffusion-based methods, as well as recent rectified flow (RF)-based methods, typically reverse synthesis trajectories by gradually adding noise to clean images, during which the noisy latent at the current timestep is used to approximate that at the next timesteps, introducing accumulated drift and degrading reconstruction accuracy. Considering the fact that in RF the noisy latent is estimated through direct interpolation between Gaussian noises and clean images at each timestep, we propose Direct Noise Alignment (DNA), which directly refines the desired Gaussian noise in the noise domain, significantly reducing the error accumulation in previous methods. Specifically, DNA estimates the velocity field of the interpolated noised latent at each timestep and adjusts the Gaussian noise by computing the difference between the predicted and expected velocity field. We validate the effectiveness of DNA and reveal its relationship with existing RF-based inversion methods. Additionally, we introduce a Mobile Velocity Guidance (MVG) to control the target prompt-guided generation process, balancing image background preservation and target object editability. DNA and MVG collectively constitute our proposed method, namely DNAEdit. Finally, we introduce DNA-Bench, a long-prompt benchmark, to evaluate the performance of advanced image editing models. Experimental results demonstrate that our DNAEdit achieves superior performance to state-of-the-art text-guided editing methods.
Introduction
The generative AI landscape is evolving rapidly. While Diffusion Models (DMs) have long been the standard, Rectified Flow (RF) models—such as Stable Diffusion 3 and FLUX—are emerging as the new state-of-the-art due to their straighter trajectories and efficient sampling. However, image editing within these models faces a persistent challenge: "inversion drift."
To edit a real image, one must first "invert" it—identifying the specific starting noise that perfectly recreates the original image. Traditional methods rely on "re-noising," where noise is added step-by-step to follow the reverse of the generation path. Because each step approximates a complex Ordinary Differential Equation (ODE), small numerical errors accumulate into significant drift. By the time pure noise is reached, it no longer maps back to the original image accurately, leading to blurry backgrounds or loss of subject identity.
Methodology
Direct Noise Alignment (DNA)
DNAEdit addresses the drift problem by exploiting a unique property of Rectified Flow: the path between noise and image is designed to be a straight line. Rather than reversing an ODE step-by-step, DNAEdit starts with a random noise sample and the target image. At each timestep, it calculates the Expected Velocity (the ideal straight-line path) and the Predicted Velocity (the model's actual output). The difference between these two, the "velocity gap," is used to directly shift the noise in the Gaussian domain. This process transforms random noise into "structured noise" that perfectly aligns with the model's natural prediction path, ensuring near-perfect reconstruction.
Mobile Velocity Guidance (MVG)
Once the noise is aligned, the model must denoise it using a new text prompt. Standard prompt swapping often results in "ghosting" artifacts or background destruction. MVG introduces a "moving reference" by calculating the difference between source and target velocity fields. This allows the model to adaptively balance fidelity (keeping the background fixed) and editability (changing the target object).
Evaluation and Results
The authors evaluated DNAEdit using two primary benchmarks:
- PIE-Bench: A standard benchmark with 700 images and short prompts.
- DNA-Bench: A new, more challenging benchmark featuring long, complex prompts (averaging 33 words) generated by GPT-4o to test the limits of modern RF models.
Key Findings
- Superior Reconstruction: DNAEdit achieved a Reconstruction Mean Squared Error (MSE) of 0.010, significantly outperforming standard RF-Inversion (0.023) and specialized solvers like FireFlow (0.015).
- State-of-the-Art Editing: On PIE-Bench, DNAEdit (using SD3.5) ranked first in overall performance, providing the best balance between CLIP similarity (text adherence) and PSNR/SSIM (image preservation).
- Long-Prompt Mastery: DNAEdit demonstrated a clear advantage on DNA-Bench, proving that its alignment strategy scales effectively as instructions become more detailed.
Conclusion
DNAEdit represents a significant step forward for training-free image editing in Rectified Flow models. By treating inversion as a geometric alignment problem in the noise domain rather than a numerical integration problem, it eliminates accumulated drift. While the method is dependent on the base model's priors and carries some computational overhead, its ability to maintain strict consistency while following complex instructions sets a new standard for high-fidelity editing.
Summary updated