DNAEdit: Direct Noise Alignment for Text-Guided Rectified Flow Editing

Chenxi Xie, Minghan Li, Shuai Li, Yuhui Wu, Qiaosi Yi, Lei Zhang

The rise of Rectified Flow (RF) models like Stable Diffusion 3 (SD3) and FLUX has revolutionized text-to-image generation, offering straighter paths from noise to images and requiring fewer sampling steps. However, when it comes to editing existing images, these models have inherited a pesky problem from their diffusion ancestors: accumulative drift.

In a new paper, researchers introduce DNAEdit, a training-free framework that rethinks how we "invert" images into noise to achieve near-perfect reconstruction and high-fidelity editing.

TL;DR

DNAEdit introduces Direct Noise Alignment (DNA), a method that bypasses the error-prone process of gradually adding noise to an image by directly refining Gaussian noise to match the target image's structure. Combined with Mobile Velocity Guidance (MVG), it achieves state-of-the-art results in text-guided editing while maintaining better background preservation and structural integrity than previous RF-based methods.

What Problem Does This Paper Address?

To edit an image using a generative model, you first need to perform inversion: finding the specific starting noise (latent) that, when "denoised," perfectly recreates your original image.

Comparison of traditional inversion drift vs. DNA

Traditional methods do this by reversing the generation process—gradually adding noise back into the image. However, at each step of this reversal, the model has to estimate the "velocity" (the direction to move in latent space) based on an approximation of the next step. These tiny errors add up, leading to accumulative drift. By the time you reach "pure noise," the latent has drifted so far that it can no longer reconstruct the original image accurately. This results in edited images that lose the identity of the subject or the details of the background.

Methods

The authors propose two key innovations to solve this:

  1. Direct Noise Alignment (DNA): Instead of the traditional step-by-step "re-noising" (Image $\to$ Noise), DNA starts with a random Gaussian noise sample and iteratively "nudges" it in the noise domain. Because Rectified Flow models rely on a linear interpolation between noise and image, DNA can calculate the difference between the predicted velocity and the ideal linear velocity. It feeds this error back into the noise itself, aligning it with the reference image without the sequential error accumulation of previous methods.
  2. Mobile Velocity Guidance (MVG): During the editing phase (Noise $\to$ Edited Image), simply using a new text prompt can destroy the original image's layout. MVG acts as a "moving reference." It blends the velocity field of the target prompt with a trajectory that tracks the original image's structure. This allows the model to change specific objects (like turning a dog into a cat) while keeping the background and pose rock-steady.

Datasets

The researchers evaluated DNAEdit on:

  • PIE-Bench: A standard benchmark of 700 images with short editing prompts (average length: ~9 words).
  • DNA-Bench (New): The authors introduced this benchmark to test modern models' ability to handle long, descriptive prompts. Using GPT-4o, they generated detailed descriptions (average length: ~33 words) to provide richer semantic guidance, which is where RF models like FLUX truly shine.

Key Insights and Ideas

  • RF is Linear, Use It: The "aha moment" here is realizing that Rectified Flow’s greatest strength is its linear trajectory. While diffusion models are curved and complex to invert, RF's linearity allows for "Direct Alignment" in the noise domain, which is inherently more stable.
  • The "Structured Noise" Concept: DNA doesn't just find any noise; it creates "structured noise" that encodes the original image's geometry. This makes the subsequent denoising process much more robust.
  • Moving vs. Static References: Most editing methods use a static reference image for guidance. MVG’s "mobile" approach recognizes that as an image is edited, the reference point should evolve to maintain a natural balance between the old structure and the new content.

Key Results

DNAEdit was tested against heavyweights like RF-Inversion, FireFlow, and FlowEdit using FLUX and SD3.5 backbones.

Qualitative comparison of DNAEdit against baseline methods
  • Superior Reconstruction: In pure reconstruction tasks (turning an image to noise and back), DNA achieved an MSE of 0.010, significantly lower than the standard RF-Inversion (0.023). Its SSIM (structural similarity) was 0.830, nearly doubling the performance of some competitors.
  • Top Ranking: On both PIE-Bench and DNA-Bench, DNAEdit consistently ranked #1 in overall performance, striking the best balance between following the edit instructions (CLIP similarity) and preserving the original image (PSNR/LPIPS).
  • Qualitative Edge: Visual results show that DNAEdit excels at difficult tasks like "Change Pose" or "Add Object" where other models often suffer from "over-editing" (changing the whole scene) or "under-editing" (failing to make the change). As seen in the visual comparisons, DNAEdit successfully preserves background details that other methods distort.

Limitations and Future Work

  • Foundation Model Dependence: As a training-free method, DNAEdit is a "power user" of the underlying model. If the base model (e.g., FLUX) has a bias or lacks knowledge of a specific concept, DNAEdit cannot magically fix that.
  • Computational Cost: While more accurate, DNA requires iterative refinement in the noise domain, which may involve more neural function evaluations (NFEs) than the simplest, less accurate inversion methods.
  • Future Directions: The authors suggest exploring how DNAEdit could be applied to video editing, where temporal consistency makes the "drift" problem even more catastrophic.

Summary updated

BibTeX
@inproceedings{xie2025dnaedit,
  author = {Chenxi Xie and Minghan Li and Shuai Li and Yuhui Wu and Qiaosi Yi and Lei Zhang},
  title = {{DNAEdit: Direct Noise Alignment for Text-Guided Rectified Flow Editing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=JxBA9OJExP},
}
Figure