Flow-Driven Optimization Methods for Image Inverse Problems
Anonymous authors
ICLR 2027
Abstract. Flow matching is a recent state-of-the-art framework for generative modeling. A variety of optimization methods that integrate flow matching have been developed for image inverse problems. In this paper, a framework of gradient-related optimization methods is proposed that incorporates the flow matching model for image inverse problems. We introduce a novel regularization term that takes the form of a distance-based function. We prove that the negative gradient of this regularization term corresponds to the velocity field of the flow matching model. Based on this theoretical result, any gradient-related optimization method can be applied to solve optimization problems involving this new regularization term, provided that the data consistency term is differentiable. We propose flow-driven two-step gradient descent (TSGD), a flow-driven fast version of TSGD, flow-driven BCD, and flow-driven ADMM algorithms. Numerically, we evaluate these gradient-related methods on four inverse problems across three datasets. Numerical results demonstrate that FlowDPS, FlowBCD, and FlowADMM achieve superior performance, with FlowBCD and FlowADMM standing out in particular.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
ICLR 2027
Under review · 3 reviews · OpenReview
Updated 24 Nov 2026, 17:20 UTC.
- Rating
- 2/4
- Confidence
- 2/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
The paper proposes a framework of gradient-related optimization methods to solve image inverse problem based on pre-trained flow matching models. Specifically, the authors introduce a novel regularization term through a distance function and formulated the related optimization problem. The authors demonstrate that any gradient-based methods can be applied to solve the optimization problem and provide several algorithm examples including FlowDPS, FlowTSGD, FlowFTSGD, FlowBCD, and FlowADMM. These algorithms are evaluated on four image inverse problem tasks and three datasets, with FlowDPS, FlowBCD, and FlowADMM performing well.
Strengths
-
Interpreting the pre-trained flow matching model as the gradient of an explicit regularization term is meaningful and works as effective tools to involve any gradient-based methods to solve inverse problems.
-
The main experiments are reasonable, covering four kinds of inverse problems (super-resolution via bicubic and avgpool downsamplings, Gaussian and Motion deblurring) under three datasets (DIV2K, FFHQ, AFHQ) and four common image metrics (PSNR, SSIM, LPIPS, FID).
Weaknesses
-
Although the paper lists existing relevant methods in Related Works, it does not clearly separate its contributions into a new regularizer in the field of solving inverse problems or an optimization interpretation of an existing flow prior. I could not get the point about the paper's contribution or improvement especially on what existing methods could not do.
-
The comparison to baselines and ablation study are insufficient. The paper only compared two methods (FlowChef and FlowDPS). Some other related works like Flower [1] should be also added as baselines. Also, the ablation study for hyperparameter shows the trend that smaller leads to better performance in most metrics (PSNR, SSIM, FID). It remains unclear whether a much smaller would leads to better performace.
[1] Pourya et al. "Flower: A flow-matching solver for inverse problems", ICLR 2026.
Questions for the authors
I list my questions below and if I misunderstood any part of the method, please correct me.
-
I'm confused about the definition of the velocity field in the manuscript: seems to have opposite signs in Theorem 3.1 and Definition 4.1. In Theorem 3.1 and Appendix A, the training loss leads to the velocity . However, in Definition 4.1 which is based on the proposition 1 in FlowDPS, the Tweedie's formula used the common velocity field , which leads to contradiction.
-
When deriving FlowFTSGD, the paper seems unifying two methods (FlowDPS and PnP-Flow), but it remains unclear that under what exact values of , FlowFTSGD would correspond to these two methods.
-
The inequality used in Line 632 to prove Theorem 3.1 is Jensen's Inequality, yes? It would be better to have clarification after Line 645.
-
There seems a typo in Line 695 (Equation (4.4), Line 4): Eqn. (4.4) is a single-line optimization problem and contains no "Line 4". Please correct it.
-
There seems a missing related work: Webber et al. "Solving Inverse Problems with Flow-based Models via Model Predictive Control", ICML 2026.
-
The paper describes four optimization methods with the iterative scheme but no pseudo-code algorithms. Adding some pseudo-code algorithms could improve clarity and reproducibility.
5 comments
I thank the authors for the detailed rebuttal. While some of my concerns have been addressed, several issues remain:
-
The response to W1 reiterates the goal of connecting generative models with optimization and interpreting the velocity field as a regularization gradient. However, it still fails to clarify the paper's novelty/improvement on what existing methods could not do and show what limitations it addresses.
-
W2 is also only partially addressed, since my original questions concerned two parts: insufficient baseline comparisons and ablation study. The response provides the ablation study results of hyperparameter but misses the additional comparisons with closely related methods such as Flower [1].
-
The revised version of Theorem 3.1 seems reasonable, but without an updated proof, its correctness could not be verified. Could the authors provide the complete revised derivation?
-
As for Q3-Q5, I could not locate the revisions and please let me know if I may have missed them in the current version.
As for Q6, I thank the authors for providing these pseudo-code algorithms which improves the paper's readability. Overall, I appreciate the authors’ clarifications and additional results, but the concerns above remain unresolved. Therefore, I maintain my original rating.
[1] Pourya et al. "Flower: A flow-matching solver for inverse problems", ICLR 2026.
[Q1] Our key insight is that the velocity field of a flow matching model can be interpreted as the gradient of an explicit regularization term , i.e., the generative prior enters the optimization as a well-defined regularizer rather than as sampling-time guidance.
-
It lets us embed a flow matching prior into classical optimization algorithms (BCD and ADMM, giving FlowBCD and FlowADMM), which come with established convergence analysis — something guidance-based solvers lack.
-
Because the prior is an explicit term in the objective, the regularization strength has a clear interpretation and can be set by standard parameter-selection principles rather than those guidance schedules.
-
Most researchers in the image processing community are more familiar with optimization than with probability and stochastic processes, so our paper serves as a bridge between generative modeling and this community.
[Q2] The following presents experimental comparisons on Flower, where the number of sampling steps is set to 28 for fairness, matching the other methods.
Avgpool SR
| Dataset | PSNR$\uparrow$ | SSIM$\uparrow$ | FID$\downarrow$ | LPIPS$\downarrow$ |
|---|---|---|---|---|
| AFHQ | 16.02 | 0.320 | 99.42 | 0.320 |
| FFHQ | 15.93 | 0.363 | 195.96 | 0.345 |
| DIV2K | 14.79 | 0.230 | 160.98 | 0.407 |
Bicubic SR
| Dataset | PSNR$\uparrow$ | SSIM$\uparrow$ | FID$\downarrow$ | LPIPS$\downarrow$ |
|---|---|---|---|---|
| AFHQ | 15.89 | 0.363 | 99.90 | 0.382 |
| FFHQ | 15.73 | 0.423 | 191.50 | 0.347 |
| DIV2K | 14.95 | 0.271 | 159.82 | 0.403 |
Gaussian Deblurring
| Dataset | PSNR$\uparrow$ | SSIM$\uparrow$ | FID$\downarrow$ | LPIPS$\downarrow$ |
|---|---|---|---|---|
| AFHQ | 16.31 | 0.278 | 59.08 | 0.205 |
| FFHQ | 15.90 | 0.320 | 141.71 | 0.188 |
| DIV2K | 15.46 | 0.238 | 117.76 | 0.223 |
Motion Deblurring
| Dataset | PSNR$\uparrow$ | SSIM$\uparrow$ | FID$\downarrow$ | LPIPS$\downarrow$ |
|---|---|---|---|---|
| AFHQ | 19.70 | 0.437 | 0.156 | |
| FFHQ | 18.89 | 0.429 | 62.02 | 0.145 |
| DIV2K | 18.33 | 0.401 | 53.91 | 0.142 |
[Q3] We have updated the revision, thank you for your time and efforts reviewing our paper.
- Rating
- 1/4
- Confidence
- 3/4
- Soundness
- 1/3
- Presentation
- 1/3
- Informativeness
- 1/3
Read review
Summary
This paper proposes a method for solving linear image inverse problems for flow matching models. The authors introduce a distance based regulation term and show that its negative gradient equals flow matching velocity. As a result, we can leverage classical optimization methods such as block coordinate descent (BCD) and alternating direction method of multipliers (ADMM) to use a pretrained flow matching model to solve linear inverse problems. The resulting methods have been evaluated on tasks such as super resolution, gaussian debarring, motion deblurring, on datasets such as AFHQ, FFHQ, and DIV2K.
Strengths
- This paper has a well explained introduction and related work.
- This work bridges inverse problems with classical optimization which allows us to leverage considerable knowledge from optimization literature to solve inverse problems with pretrained flow matching models.
Weaknesses
- Overclaiming in the abstract and introduction, as the paper states that “We propose flow driven two step gradient descent (FlowTSGD), a flow-driven fast version of TSGD (FlowFTSGD)…”, but later on in the results section (Line 349-351), the paper states: “As FlowChef and FlowDPS are exact counterparts of FlowTSGD and FlowFTSGD, respectively, we adopt the numerical results of FlowChef and FlowDPS in their place.” FlowTSGD and FlowFTSGD shouldn’t be listed as contributions early in the paper.
- Missing baselines/ablations:
- Other relevant baselines that were also included in FlowDPS are missing e.g. Resample, LatentDAPS, Pnp-Flow etc.
- FlowBCD and FlowADMM use twice as many NFEs as FlowDPS and yet, FlowDPS beats them on FID on SR on AFHQ and DIV2K, and on 3 metrics on FFHQ. Further, an ablation with comparable number of NFEs with FlowDPS is missing.
- Inconsistent/incorrect notations:
- Missing integral in Line 174.
- In Line 622, is notation is inconsistent with the definition.
- There is inconsistent use of . Line 376 states that is a fixed parameter in unconditional flow model, while Theorem 3.1 defines .
- Undefined and in the updates for FlowBCD and FlowADMM.
- Incorrect/inconsistent math:
- Tweedie’s formula in Definition 4.1 uses but in the previous section, Theorem 3.1 trains the flow matching model to be (i.e. negative velocity field.).
- In Line 220-221, would not be equal to . This factor is also missing from the second term. In addition, it is unclear how division by 0 is handled at the boundaries here.
- Equation 4.6 with Augmented Lagrangian looks incorrect. The right way to optimize this would be to minimize with respect to the primal variables and maximize with respect to the Lagrange multiplier . Also, if Eq. 4.6 has minimization, it is unclear why Eq. 289 and Eq. 290 perform an ascent instead of descent. In addition, in the objective, the regularizer acts on and acts on . However, the methods for FlowADMM and FlowBCD maintain another sampling trajectory based on which does not follow from the minimizing equation and imposes a second flow prior while doubling NFEs. In addition, is the final output or ?
- In Appendix B, in proof of Theorem 3.1, the steps of the proof needs to be written more clearly. Currently, I think there are some constants and factors that disappear through the steps proof (e.g. I’m not sure where did the in the denominator disappear. Similarly, vanishes.) Also, , therefore, it is unclear why is present in Line 641.
- Proof of Theorem 3.1 shows that . However, in this case, which is conditional flow matching loss, cannot reach 0. Please see proof of Theorem 2 in Lipman et al. 2022 [1]. There is a conditional variance term that is strictly positive because noisy images from different clean images can map at the exact same noisy point. Therefore the reasoning towards the end of this proof of theorem 3.1 is flawed.
[1] Lipman, Yaron, et al. "Flow matching for generative modeling." arXiv preprint arXiv:2210.02747 (2022).
Due to inconsistent math above, I’m very much confused about the actual method that is implemented and why it works.
Questions for the authors
- What is the used in practice (appears in Eq. 4.4, 4.5, 4.6)? Similarly what is in Line 276 and 289? In addition, what is initialized to?
- (Minor) Please consider revisiting the citation for Tweedie’s (line 206) to ”Robbins, Herbert E. "An empirical Bayes approach to statistics." Breakthroughs in Statistics: Foundations and basic theory. New York, NY: Springer New York, 1992. 388-394.”
- In Section 4, all the equations are written assuming flow matching model is in pixel space but later on, the paper switches to use SD3 which would require a VAE decoder. Please consider updating the expression of the forward operator to include a decoder.
- Why does FlowADMM have almost similar numbers as FlowBCD? This would imply that ADMM dual variable doesn’t add much value.
4 comments
[W1] We updated as follows:
We propose flow-driven two-step gradient descent (FlowTSGD), a flow-driven fast version of TSGD (FlowFTSGD), flow-driven BCD (FlowBCD), and flow-driven ADMM (FlowADMM) algorithms from an optimization perspective, which establish a connection between generative models and optimization.
[W2] [Experiments on Flower] The number of sampling steps is set to 28 for fairness, matching the other methods.
Avgpool SR
| Dataset | PSNR$\uparrow$ | SSIM$\uparrow$ | FID$\downarrow$ | LPIPS$\downarrow$ |
|---|---|---|---|---|
| AFHQ | 16.02 | 0.320 | 99.42 | 0.320 |
| FFHQ | 15.93 | 0.363 | 195.96 | 0.345 |
| DIV2K | 14.79 | 0.230 | 160.98 | 0.407 |
Bicubic SR
| Dataset | PSNR$\uparrow$ | SSIM$\uparrow$ | FID$\downarrow$ | LPIPS$\downarrow$ |
|---|---|---|---|---|
| AFHQ | 15.89 | 0.363 | 99.90 | 0.382 |
| FFHQ | 15.73 | 0.423 | 191.50 | 0.347 |
| DIV2K | 14.95 | 0.271 | 159.82 | 0.403 |
Gaussian Deblurring
| Dataset | PSNR$\uparrow$ | SSIM$\uparrow$ | FID$\downarrow$ | LPIPS$\downarrow$ |
|---|---|---|---|---|
| AFHQ | 16.31 | 0.278 | 59.08 | 0.205 |
| FFHQ | 15.90 | 0.320 | 141.71 | 0.188 |
| DIV2K | 15.46 | 0.238 | 117.76 | 0.223 |
Motion Deblurring
| Dataset | PSNR$\uparrow$ | SSIM$\uparrow$ | FID$\downarrow$ | LPIPS$\downarrow$ |
|---|---|---|---|---|
| AFHQ | 19.70 | 0.437 | 0.156 | |
| FFHQ | 18.89 | 0.429 | 62.02 | 0.145 |
| DIV2K | 18.33 | 0.401 | 53.91 | 0.142 |
[compare number of NFEs] It is unfair to compare the number of NFEs alone.
We provided a computational complexity in Subsection 5.3 and Appendix C.1. Although both FlowBCD and FlowADMM invoke the NN twice per step, Table 4 shows that their mean runtimes exceed that of FlowDPS by only and , respectively. This additional cost stems primarily from the second forward evaluation of the flow model, while the decoding and gradient computations for data consistency are not doubled. NFEs counts alone do not reflect the full sampling cost.
[W3] We add , update in Line 622.
For , we updated: is a determined parameter by unconditional FM.
The balanced parameter in solving optimization models (4.5) and (4.6). is used to determine .
[W4] [thoerem 3.1]: We updated Theorem 3.1 as follows:
Let be a data manifold. For any and , define , where . Let be the pre-trained neural network to estimate the velocity field in the flow matching model (see the overview in Appendix A). Set . When the neural network is optimal trained--that is, when , it follows that $$ where
In practice, is a small constant after training, approximates the negative gradients of the function with respect to .
[Lines 220--221]
[Divide 0] As almost all generative models (DMs or FMs), we set to be a small positive number for .
[Dual variable]
[Final output:] For each , we solve the optimization problem for FlowBCD:
As goes from 0 to 1, we solve a sequence of optimization problems. Both and are intermediate variables. When solving the -th optimization problem, we initialize based on the -th output. Let be the -th output; then the initialization of the -th iteration is
Since we need to obtain , we introduce as an intermediate vector. The same applies to and to the corresponding variables in FlowADMM. The final output is .
[Appendix B] We use the Bayes' formula . We also corrected to .
[ not reach 0:] The equality is in the ideal case. In the theorem, we stated the approximation result:
In practice, is a small constant after training, approximates the negative gradients of the function with respect to .
[Q1-3] Q1: , , . We add the reference for Q2 and the latent space to Subsection 3.4 for Q3.
[Q4] Quantitative comparisons show that both FlowBCD and FlowADMM achieve better performance. Classical optimization methods for image inverse problems typically report only PSNR or SSIM; here, we additionally adopt FID and LPIPS for evaluation, and all results are reported based on these four metrics.
Thank you for revising the paper and applying fixes such as correcting the Lagrangian formulation as well as the sign of . However, some concerns still remain:
-
I respectfully don’t agree that holds "in the ideal case", and Lines 707–708 of the revised manuscript still argue: "When , we have ". This is false even in the ideal, infinite-capacity case. As shown in Lipman et al. (2022), the Conditional Flow Matching loss decomposes into the marginal FM loss plus an irreducible conditional variance term . Because distinct pairs pass through the same noisy point at time , strictly. Therefore, bounding via Jensen's inequality cannot prove that minimizing drives to .
-
In the response above, is explained as an initialization with . However, applying the re-noising and Tweedie denoising operators to applies the generative flow prior a second time to at every step. This does not follow from optimizing Lagrangian formulation and remains an ad-hoc two-trajectory heuristic rather than a standard BCD/ADMM. NOte that In classical variable splitting (), the auxiliary variable is introduced specifically to decouple the generative prior from the data-fidelity term . Only is regularized by , while should be updated via and the quadratic penalty.
-
Wall-clock similarity due to VAE decoding overhead does not change the fact that FlowBCD/ADMM get twice as many evaluations of the generative prior (56 vs 28 NFEs). Without running FlowDPS for 56 steps or ablating a 1-NFE variant of FlowBCD without the second trajectory , it is impossible to tell whether the PSNR/SSIM gains come from variable splitting or simply from doubling the flow model evaluations .
we are grateful to Reviewer 95A4 for their helpful comments.
[Q1] We delete this statement and update as follows:
Let be a data manifold. For any and , define , where . Let be the pre-trained neural network to estimate the velocity field in the flow matching model (see the overview in Appendix A). Set . When
we have
if is a small constant after training. That is, approximates the negative gradients of the function with respect to .
[Q2] We thank the reviewer for this comment.
In the optimization models (both (4.5) and (4.6)), we require . That is why we introduce the operators of and , which is understood as the projection to .
We have tried updating (the vector in the data fidelity term) using the classical optimization approach before, but the numerical results were not good. In the classical optimization, the variable (vector) in the regularization term is updated continuously, whereas the vector may jump from one location to another on the data manifold when we use a regularization term related to flow matching. We conjecture that this discontinuity in the update renders the update of the vector in the data fidelity term ineffective.
We have added a brief discussion of this point to the revised manuscript (Lines 307--312, page 6), and we hope this clarifies why we adopted the proposed scheme instead.
[Q3] We indeed need two forward computations of the neural networks per NFE—once for the vector and once for the vector . In addition, there are the computations of the encoder and decoder, since we work in the latent space, as well as the gradient descent for the fidelity term in the imaging inverse problems. Therefore, the count of NFEs alone is not sufficient to characterize the computational complexity.
Our main contribution is to make any gradient-based methods applicable to flow matching models in general—the methods we list are just popular examples, not an exhaustive set.
- Rating
- 2/4
- Confidence
- 3/4
- Soundness
- 1/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
This paper proposes a framework for using flow matching models to solve image inverse problems. The main idea is to connect the velocity field of a pretrained flow model to the gradient of a regularization function. Based on this connection, the authors develop several optimization methods, including FlowTSGD, FlowFTSGD, FlowBCD, and FlowADMM. The paper tests these methods on four image inverse problems across three datasets. The authors report strong results, especially for FlowBCD and FlowADMM.
Strengths
-
A useful connection between generative models and optimization. The paper tries to give a mathematical explanation for using flow matching models as image priors. If correct, this could help connect generative models with classical optimization methods.
-
Several optimization methods are studied. The authors do not focus on only one algorithm. They develop different optimization methods and compare their performance on several inverse problems. This makes the proposed framework potentially useful beyond a single application.
Weaknesses
-The claimed acceleration is not clearly demonstrated. The paper does not report several important experimental settings, including the exact data-fidelity objective, optimization parameters, and how the pretrained flow model is used. It is also unclear whether the experiments use conditional, unconditional, or guided flow predictions. The paper claims that FlowFTSGD provides acceleration, but it does not clearly show how this improves over the original method beyond changing the step size. A direct comparison using the same computational budget would help support this claim.
Questions for the authors
- Can the authors provide the full experimental settings, including the data-fidelity objective, optimization parameters, scheduler, and number of updates per step?
- Can the authors compare FlowFTSGD with FlowTSGD under the same computational budget and explain whether the acceleration step provides benefits beyond changing the step size?
1 comment
[Q1] We thank the reviewer for the comment, we are sorry for any confusion.
There is no training. As you stated in strength, we aim to establish a connection between generative models and optimization and understand flow matching-based imaging inverse problem from an optimization perspective.
In classical optimization methods for imaging inverse problems, we consider
where is the data-fidelity objective and is the regularization term.
When solving it with gradient-based methods, we need
In Section 3, we set as a distance-based function show that $$ where is the pretrained velocity field in the unconditional flow matching model.
Now, both and are determined and we can apply gradient-based optimization methods directly.
Setups for FlowBCD and FlowADMM: In solving the classical optimization model, we using the following setups for FlowBCD and FlowADMM, which is deferred in Appendix C.1 due to space limitations.
We set , , and the schedule is given by with , where represents the scheduler noise level.
[Q2] The following is the ablation study on in FlowFTSGD for bicubic ×12 super-resolution on the AFHQ dataset.
| PSNR$\uparrow$ | SSIM$\uparrow$ | FID$\downarrow$ | LPIPS$\downarrow$ | |
|---|---|---|---|---|
| 25.20 | 0.739 | 26.65 | 0.216 | |
| 26.07 | 0.662 | 15.71 | 0.188 | |
| 23.57 | 0.671 | 32.84 | 0.257 |
The FlowTSGD corresponds to . Numerical results show that the introduction of with an appropriate choice can improve performance.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to Reviewer t5uF
[W1] We aim to establish a connection between generative models and optimization and understand flow matching-based imaging inverse problems from an optimization perspective.
In classical optimization methods for imaging inverse problems, we consider
where F(u) is the data-fidelity objective and Rt(u) is the regularization term.
When solving it with gradient-based methods, we need
In Section 3, we set Rt(u) as a distance-based function show that
where vθ is the pretrained velocity field in the unconditional flow matching model.
Now, both ∇uGt(u) and ∇uRt(u) are determined and we can apply gradient-based optimization methods directly.
[W2] To ensure good LPIPS performance, we set ρ0=40 in this paper. Numerical results for ρ0=25,30 show no performance improvement.
[Q1] We revised Theorem 3.1 as follows:
Let M be a data manifold. For any ϵ∼N(0,I) and u∈M, define z=atu+btϵ, where at,bt≥0. Let vθ(z,t) be the pre-trained neural network to estimate the velocity field in the flow matching model (see the overview in Appendix A). Set ℓt(z)=μtfM(ctz,σt)−2ηt∣∣z∣∣2. When the neural network is optimal trained--that is, when ∫01EϵEu∣∣a˙tu+b˙tϵ−vθ(atu+btϵ,t)∣∣2dt=0, it follows that $∇zℓt(z)=−vθ(z,t),$ where
In practice, ∫01EϵEu∣∣a˙tu+b˙tϵ−vθ(atu+btϵ,t)∣∣2dt>0 is a small constant after training, vθ(zt,t) approximates the negative gradients of the function ℓt(z) with respect to z.
[Q2] τt=bt for the FlowDPS, while PnP-Flow corresponds to the FlowTSGD.
[Q3-5] Yes, we used Jensen's Inequality to prove Theorem 3.1, which is added in revision. For Q4, we modify to Equation (4.3), Line 3. For Q5, we add this reference to related works. Thank you for the comments.
[Q6] Pseudocode of FlowTSGD
Input: at,bt,ζt,t∈[0,1], predicted velocity vθ(z,t), num,
t=0, δ=num1,
Sample z∼N(0,I),
For(t<1)
u←z−bt∇zℓt(z)=z+btvθ(z,t),
u←u−ζt∇uF(u),
t←t+δ,
z←Qt(u,z),
Output: z.
Pseudocode of FlowFTSGD
Input: at,bt,ζt,τt,t∈[0,1], predicted velocity vθ(z,t), num,
t=0, δ=num1,
Sample z∼N(0,I),
For(t<1)
u←z−bt∇zℓt(z)=z+btvθ(z,t),
v←u−ζt∇uF(u),
u←τtu+(1−τt)v,
t←t+δ,
z←Qt(u,z),
Output: z.
Pseudocode of FlowBCD
Input: at,bt,ζt,τt,ρt,λt,t∈[0,1], predicted velocity vθ(z,t), num,
t=0, δ=num1,
Sample z∼N(0,I), w∼N(0,I),
For(t<1)
u←Pt(z),
v←Pt(w),
u←z+btvθ(z,t)−ρt(u−v),
s←v−ζt[λt∇vF(v)+ρt(v−u)],
v←τtv+(1−τt)s,
t←t+δ,
z←Qt(u,z),
w←Qt(v,w).
Output: w.
Pseudocode of FlowADMM
Input: at,bt,ζt,τt,ρt,λt,t∈[0,1], predicted velocity vθ(z,t), num,
t=0, δ=num1,
Sample z∼N(0,I), w∼N(0,I),
Λ=0,
For(t<1)
u←Pt(z),
v←Pt(w),
u←z+btvθ(z,t)−ρt(u−v)+Λ,
s←v−ζt[λt∇vF(vt)+ρt(v−u)]−ζtΛ,
v←τtv+(1−τt)s,
Λ←Λ+ρt(v−u),
t←t+δ,
z←Qt(u,z),
w←Qt(v,w).
Output: w.