ELVIA.Evidence Atlas
← Back to analysis

AI context

ELVIA analysis of: Taming Rectified Flow for Inversion and Editing — Problem 1: Fixed derivative probe does not yield claimed cubic local error

Original paper: Jiangshan Wang; Junfu Pu; Zhongang Qi; Jiayi Guo; Yue Ma; Nisha Huang; Yuxin Chen; Xiu Li; Ying Shan. Taming Rectified Flow for Inversion and Editing. Proceedings of the 42nd International Conference on Machine Learning, vol. 267, 2025. https://proceedings.mlr.press/v267/wang25ce.html
Source version: PMLR volume 267 published original; retrieved exact supplied PDF URL
Source location: Section 3.2, p. 4, Eqs. (8)–(9); Algorithm 1, p. 13

Question: What does the recorded analysis establish about “Fixed derivative probe does not yield claimed cubic local error”?
Bounded finding:
The fixed derivative probe does not establish the asserted cubic local defect. The acquired code is an explicit midpoint method with a step-dependent probe, which satisfies a different operative condition; the table-producing configuration remains unresolved.

Recorded check:
Section 3.2, page 4, specifies \(\Delta t=0.01\) for estimating the first derivative and then claims reduction of each step’s error from \(O(h^{2})\) to \(O(h^{3})\). The derivative approximation introduces an additional \(O(h^{2}\Delta t)\) term. It cannot be discarded when \(\Delta t\) is fixed as \(h\to0\).
Write \(v=v(x,t)\) and \(h=t_{i-1}-t_i\), allowing either sign. Along the exact ODE solution, the total derivative is \[Dv=\partial_t v+(\partial_xv)v.\] The Euler probe \(x_\delta=x+\delta v(x,t)\) gives, for smooth \(v\), \[\frac{v(x+\delta v,t+\delta)-v(x,t)}\delta=Dv+O(\delta).\] Substitution in (8) therefore gives a local defect \(O(h^{3})+O(h^{2}\delta)\). The integral identity (3), Taylor integration with exact total derivatives, and the signed \(h^{2}/2\) term are valid; it is the replacement of the exact derivative by a fixed finite difference that changes the argument.
An exact scalar witness is \(x'=t^{2}\). From any \((x,t)\), the numerical increment is \(ht^{2}+h^2t+\delta h^{2}/2\), whereas the exact increment is \(ht^{2}+h^2t+h^{3}/3\). Their difference is \[E(h,\delta)=\frac{\delta h^{2}}{2}-\frac{h^{3}}{3}.\] For \(\delta=0.01\), \(E/h^{2}\to0.005\), rather than zero, and \(|E|/|h|^{3}\) is unbounded. The scalar network field need not be exotic for the issue to occur. As a specifically rectified-flow example, independently draw \(X_0,X_1\sim N(0,1)\). Conditional regression of \(X_1-X_0\) on \(X_t=(1-t)X_0+tX_1\) gives \[v(x,t)=\frac{2t-1}{t^{2}+(1-t)^{2}}x,
 \qquad x(t)=\sqrt{t^{2}+(1-t)^{2}}\quad(x(0)=1).\] Independent integration to \(t=0.8\) with \(N=128,\ldots,4096\) confirms that the fixed-\(0.01\) scheme approaches first-order global convergence (last observed order \(0.987\)). Setting \(\delta=h/2\) is at least second order; this particular RF field exhibits additional cancellation and an observed order near 3, which is not a general guarantee. For the polynomial field \(v=t^{2}\) on \([0,1]\), the exact midpoint global error is \(-1/(12N^{2})\), confirming its general second-order behavior. Both exact polynomial calculations and the smooth population-RF check are saved; no author code was executed. As usual, local-to-global order statements require appropriate smoothness, stability and bounded derivatives over the interval.
Dependency and repair. The improved local order is the central mathematical justification for RF-Solver and its inversion form (9), so this is more than a cosmetic remainder typo. Taking \(\delta=O(h)\), with a suitable signed probe, repairs the missing order condition. The paper should state that condition, reconcile the experimental step specification, and distinguish a formal order result from guaranteed improvement at a fixed coarse NFE. A higher-order method can have a larger error constant or stability restriction on a particular coarse grid. Also, the fixed positive probe evaluates \(t+0.01>1\) at the first denoising point \(t=1\), beyond the stated training-time interval; whether a trained model behaves well there is not established.
The acquired commit is `7ac380143379b656eca5398157f41f97ef1ef2f9`, dated 1 May 2025. In the FLUX implementation, `src/flux/sampling.py` lines 118–134 set \(\delta=h/2\), evaluate \(k_1=v(x,t)\) and \(k_2=v(x+hk_1/2,t+h/2)\), and use \[x+h k_1+\tfrac12h^{2}\frac{k_2-k_1}{h/2}=x+h k_2.\] This is exactly the explicit midpoint Runge–Kutta formula in exact arithmetic; the derivative correction is an algebraic rewriting. The HunyuanVideo scheduler’s midpoint and final updates (lines 323–326 and 389–394) use the same construction, with the pipeline evaluating the midpoint at lines 1038–1070. The signed midpoint remains inside each integration interval and satisfies the order condition identified above. Floating-point cancellation in the expanded form is a separate issue not quantified here; the simpler \(x+hk_2\) expression avoids that subtraction/division.
The implementation is thus evidence for a plausible repair, not evidence that the paper’s fixed-\(0.01\) version has the asserted order. Which version generated each table needs paper-matched configuration or commit evidence. Calling the release a second-order solver is justified under the usual smooth-ODE assumptions. Its relationship to the midpoint formula should be explicit when describing the solver contribution; this algebraic observation alone is not a literature-priority judgment.
Reversing the sign of \(h\) gives an approximation to the inverse flow, not an exact discrete inverse. For \(x'=x\), midpoint has multiplier \(1+h+h^{2}/2\); a forward/backward pair multiplies by \(1+h^{4}/4\), which is \(1.000025\) at \(h=0.1\). This agrees with the paper’s small-step qualification and does not contradict reduced reconstruction error. In addition, identical forward/reverse vector fields and conditioning are necessary to isolate integration error. The editing entry point uses guidance 1 for inversion and a configurable target guidance for denoising (edit.py 157–164), as is reasonable for editing, but that path alone cannot establish a pure inversion-error experiment.

Case-wide limitations:
- P1 — Fixed derivative probe does not yield claimed cubic local error — Counterevidence: Released FLUX/Hunyuan code uses delta=h/2, reducing exactly to midpoint and restoring second order; no historical failure inference.
- N1 — Cross-backbone baseline does not isolate numerical sampler advantage — Counterevidence: Same-FLUX RF and Heun comparisons remain relevant.
- N2 — Video quality metrics do not independently establish semantic editing success — Counterevidence: Qualitative figures show successful examples; paper discusses preservation/edit tradeoff.
- Limitations: No author programs or checkpoints executed.
- Limitations: No independent benchmark runs, raw images/videos or hidden selection protocol.
- Limitations: Separate OpenReview attachments, external citations and other paper versions not checked.
- Limits: No trained-network error reproduction.
- Limits: Figure1 panel details not viewed; no raw runs or temporal playback.
- Limits: Other code and guidance branches not fully audited; OpenSora historical implementation unavailable.
- Limits: No author programs or checkpoints executed.
- Limits: No independent benchmark runs, raw images/videos or hidden selection protocol.
- Limits: Separate OpenReview attachments, external citations and other paper versions not checked.
- The original report's complete scope, counterevidence and unresolved questions are retained below.
- This import checks publication format and identity; it does not repeat scientific review.
- Independent human scientific review is pending; author adoption has not been requested.
Source problem ID: p1
Source report index: 1

Original source excerpts (verbatim):
We adjust the hyper-parameter of feature-sharing steps to achieve better results for both image and video editing.
Source: PMLR volume 267 published original; retrieved exact supplied PDF URL
Locator: PDF p. 13
Source PDF SHA-256: 88f4cf28074608cd448772090fbdb3a259920647ca8cd05e176e11fc0fb09b8e

Review status: Independent review pending
Case: icml2025-0368-taming-rectified-flow-for-inversion-and-editing
Revision: 1
Record created: 2026-10-26T04:21:21.357774+00:00
Permalink: https://elvia-atlas.org/atlas/cases/icml2025-0368-taming-rectified-flow-for-inversion-and-editing.html#problem-1
Versioned public record: https://elvia-atlas.org/atlas/evidence/icml2025-0368-taming-rectified-flow-for-inversion-and-editing/records/icml2025-0368-taming-rectified-flow-for-inversion-and-editing.r1.json
Canonical record SHA-256: 23fa109294b3c8ab3f0d5bfcbc9865a142b0ed58d0ca7345c919f9859ed37bad
The page follows the latest revision; the versioned record identifies this snapshot.