h-Flow: Flexible Flow-based Image Editing via Doob's h-Transform

Ze-Hui Guo, Zhen Wang, Junwei Shu, Yang Li, Chang-Bo Wang +1 more
7/1/2026

No confident code implementation found for this paper.

Abstract

Editing images with pre-trained text-to-image flow models typically requires carefully balancing target alignment with the desired prompt and source consistency with the original image. Existing approaches either rely on inversion-based pipelines or heuristic source-to-target trajectory constructions, which often depend on architecture-specific designs or are sensitive to hyperparameters.

Show full abstract

In this paper, we propose h-Flow, a training-free and theoretically grounded flow-based editing framework. Inspired by Doob's $h$-Transform, we reformulate image editing as conditional generation under multiple terminal events corresponding to source consistency and target alignment. We first extend the classical $h$-Transform from SDE-based models to the deterministic RF framework by constructing an equivalent SDE with identical marginals. Within this formulation, we design dedicated $h$-functions for source consistency and target alignment, yielding closed-form reconstruction guidance and velocity-based semantic editing signals. We further introduce a velocity orthogonal decomposition to decouple reconstruction and editing directions, enabling a controllable trade-off between the two objectives. Extensive experiments demonstrate that h-Flow achieves effective, robust, and flexible editing across diverse scenarios. The code will be released soon.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{guo2026hflow,
  title  = {h-Flow: Flexible Flow-based Image Editing via Doob's h-Transform},
  author = {Ze-Hui Guo and Zhen Wang and Junwei Shu and Yang Li and Chang-Bo Wang and Long Chen},
  year   = {2026},
  eprint = {2607.10800},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2607.10800},
  journal = {European Conference on Computer Vision}
}

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/2607.10800.svg)](https://codeofpaper.com/paper/2607.10800)

Discussion