Root-Selecting Fixed-Point Inversion for Rectified Flows via Trajectory Straightness

Semin Kim, Jihwan Yoon, Seunghoon Hong

TL;DR

To edit a real photograph using modern generative models, you first have to run the generation movie backward to find the exact patch of static noise that creates your image—a process called inversion. Current mathematical solvers get tripped up because each reverse step actually has multiple valid-looking answers, and picking a curvy path causes errors to snowball. SelFix solves this by steering the math toward the straightest possible backward path, unlocking crisp, faithful image reconstructions and clean, artifact-free edits without any model retraining.

What Problem Does This Paper Address?

Generative backbones are rapidly shifting toward rectified flows (like FLUX and Stable Diffusion 3.5), which generate images by pushing random noise along learned velocity fields. If you want to edit a real photo—say, turning a cat into a dog while keeping the living room intact—you first need inversion: mapping your real photo back into its corresponding initial noise.

Simply running the numerical solver in reverse fails because the learned paths aren't perfectly straight, causing discretization errors to pile up. A principled workaround is fixed-point inversion, which treats each backward step as an equation and solves it iteratively until the local error (residual) hits zero.

Here is the catch the authors uncover: in practice, a discretized step doesn't just have one solution—it admits multiple distinct approximate roots. Existing methods happily settle for whichever root they stumble upon first. Yet, two roots with nearly identical local errors can send the overall trajectory down wildly different paths, ruining downstream image reconstruction and editing.

Figure 1: Overview of SelFix. Fixed-point inversion may produce multiple approximate fixed points with similar residuals but different global reconstruction errors. SelFix uses a causal straightness selector to guide fixed-point iteration toward straighter inverse trajectories, empirically improving reconstruction.

Methods

Instead of viewing inversion merely as root finding, SelFix reframes it as root selection. Because rectified flows are explicitly designed so that straight paths are easy for coarse numerical solvers to trace, SelFix uses trajectory straightness as its compass.

SelFix introduces three clever components on top of standard fixed-point iteration:

  • Causal Straightness Anchor: You can't know the global average velocity of a trajectory before you finish computing it. So, SelFix looks in the rearview mirror, using the velocity from the immediately preceding step ($W=1$) to project a "straightness anchor"—where the state would land if the path stayed dead straight. Crucially, this requires zero extra neural network evaluations.
  • Halpern Iteration: If you permanently pull your solver toward this straightness anchor, you bias the math and lose exact inversion. SelFix borrows classical Halpern iteration, blending the standard fixed-point update with the straightness anchor using a decaying weight ($\alpha_k \to 0$). Early inner-loop steps steer the solver into the neighborhood of the straightest root, while later steps let the anchor fade away so it converges to an exact inverse root.
  • Decoupled Momentum: Because finite-step neural evaluations can jitter and oscillate, the authors smooth the updates using momentum—but only on the noisy model-prediction term, leaving the clean straightness anchor untouched.

Datasets

Because SelFix is completely training-free, datasets are used strictly for evaluation:

  • PIE-Bench: The primary benchmark used for both real-image reconstruction and prompt-based semantic editing.
  • COCO: Used alongside Stable Diffusion 3.5 Large to verify that SelFix generalizes across different image distributions and model architectures. No new benchmarks are introduced.

Key Insights and Ideas

  • The Multi-Root Illusion: When running fixed-point inversion from different random initializations, the local residuals drop near zero ($\sim 10^{-1}$), yet the pairwise distance between those converged points stays an order of magnitude larger ($\sim 10^1$). The solver isn't converging to noisy versions of one answer; it is landing on genuinely distinct near-roots.
  • Curvature Amplifies Imperfection: Because we only run a finite number of iterations in the real world, tiny residual errors always remain. On curved trajectories, a small state mismatch causes the model's velocity predictions to swing wildly during forward generation. Straighter inverse paths act as shock absorbers against error accumulation.
Figure 3: Preliminary analysis regarding straightness. Straightness strongly correlates with recon- struction accuracy (left), and can be used as a selection criterion to enhance inversion (right).
  • Vanishing Guidance Beats Constant Nudging: Ablations show that forcing straightness via gradient descent or a constant blending weight can make trajectories artificially straighter, yet actually hurts image quality because it breaks the exactness of the local inverse. Letting the guidance vanish asymptotically gives you both worlds: the right root, solved accurately.

Key Results

Tested on FLUX.1-dev with a matched compute budget (~165–168 function evaluations) on PIE-Bench:

  • Image Reconstruction: SelFix jumps ahead of all baselines, hitting 28.29 dB PSNR and 0.0742 LPIPS. It nearly doubles the PSNR of naive fixed-point iteration (15.05 dB) and beats specialized flow solvers like FireFlow (26.98 dB) and fixed-point competitors like ReNoise (22.97 dB), while achieving the lowest trajectory curvature ($DS = 0.170$).
  • Prompt-Based Editing: Better inversion translates directly to better background preservation. SelFix achieves the lowest structure distance (0.0457) and highest background PSNR (19.79 dB) while maintaining top-tier target prompt alignment (27.29 CLIP similarity)—cleanly editing "4 eggs" into "3 eggs" without warping the bird's nest around them.

Limitations and Future Work

While the authors do not dedicate a standalone section to limitations, several boundaries emerge from their analysis:

  • Local Theoretical Assumptions: Exact convergence guarantees rely on standard local assumptions—specifically, that the fixed-point map behaves nonexpansively within a local convex region.
  • Finite-Iteration Trade-offs: In practice, running only a handful of inner iterations leaves small non-zero residuals and makes the method sensitive to hyperparameter balance: decaying the anchor too quickly fails to steer root selection, while decaying too slowly leaves residual anchor bias.
  • Short-Term Memory: Expanding the straightness lookback window ($W > 1$) slightly degrades PSNR because older segments of the trajectory carry their own accumulated numerical and model errors. Future work might explore other geometric root-selection criteria beyond local straightness.

Summary updated

BibTeX
@inproceedings{kim2026root,
  author = {Semin Kim and Jihwan Yoon and Seunghoon Hong},
  title = {{Root-Selecting Fixed-Point Inversion for Rectified Flows via Trajectory Straightness}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=WdrqbDVAXt},
}
Figure