Runge-Kutta Approximation and Decoupled Attention for Rectified Flow Inversion and Semantic Editing

Weiming Chen, Zhihan Zhu, Yijia Wang, Zhihai He
9/16/2025
cs.CVcs.AI

Official code: wmchen/RKSovler_DDTA (4 stars, Apache-2.0, last commit 2025-09-19).

Abstract

Rectified flow (RF) models have recently demonstrated superior generative performance compared to DDIM-based diffusion models. However, in real-world applications, they suffer from two major challenges: (1) low inversion accuracy that hinders the consistency with the source image, and (2) entangled multimodal attention in diffusion transformers, which hinders precise attention control. To address the first challenge, we propose an efficient high-order inversion method for rectified flow models based on the Runge-Kutta solver of differential equations. To tackle the second challenge, we introduce Decoupled Diffusion Transformer Attention (DDTA), a novel mechanism that disentangles text and image attention inside the multimodal diffusion transformers, enabling more precise semantic control. Extensive experiments on image reconstruction and text-guided editing tasks demonstrate that our method achieves state-of-the-art performance in terms of fidelity and editability. Code is available at https://github.com/wmchen/RKSovler_DDTA.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Official implementation of "Runge-Kutta Approximation and Decoupled Attention for Rectified Flow Inversion and Semantic Editing"

40PythonAug 11, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{chen2025rungekutta,
  title  = {Runge-Kutta Approximation and Decoupled Attention for Rectified Flow Inversion and Semantic Editing},
  author = {Weiming Chen and Zhihan Zhu and Yijia Wang and Zhihai He},
  year   = {2025},
  eprint = {2509.12888},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.12888v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.12888.svg)](https://codeofpaper.com/paper/2509.12888)

Discussion