The motivation of the paper is meaningful. Myopic safety controllers can indeed keep a trajectory feasible while forcing it to stay close to constraint boundaries, which may hurt task optimization. The paper gives a clear intuitive example and targets a relevant problem at the intersection of guided generative modeling, planning, and safety constraints. I also appreciate that the authors compare against OC-Flow, FlowGrad, SafeDiffuser/SafeFlowMatcher, and constrained planning baselines, and that the experiments cover both image and control domains.
However, my main concern is that the theoretical claims are stronger than what is actually established for the implemented method. The path-safety result is proved for the exact value function and the exact optimal control under smoothness assumptions. The practical algorithm, however, relies on several approximations, including local approximations used to make the forced HJB tractable, a first-order approximation of the terminal loss, the approximation (G_t(y)\approx I), and a heuristic substitution of the nominal flow map with the iteratively updated controlled flow. The paper does not prove that Algorithm 1 remains path-safe, converges, or approximates the globally optimal control in a controlled manner. Thus, claims related to global optimality, hard safety, or guaranteed path safety should be substantially qualified.
The originality is moderate. Relative to FlowGrad and OC-Flow, the main technical contribution is to extend optimal-control-based guidance for flow matching with a time-varying barrier term in the global running cost and to derive an approximate HJB-based control update for path safety. This is a useful and natural extension, but barrier-function methods in constrained optimal control are well established, and the paper itself acknowledges closely related safety-control formulations. The contribution is therefore best viewed as a targeted extension of optimal-control guidance to non-myopic path safety in flow matching, rather than a fundamentally new optimal-control methodology.
The experiments show promising trends but are not fully convincing. On CelebA-HQ, AegisFlow achieves better CLIP and LPIPS scores than the compared methods, but the improvements over the strongest baseline are relatively small. In addition, several image-editing baselines are relatively old, so the comparison may not fully reflect the current state of training-free or safety-aware guided generation. In Maze2D, AegisFlow improves safety margins and smoothness, but the reported runtime is about an order of magnitude slower than SafeFlowMatcher. In D3IL, the method matches DPCC-C in safety rate and completes the task in fewer environment steps, but the paper does not report runtime, and broader safe-flow baselines are missing. Overall, the empirical results are positive but not strong enough to fully support the paper’s broad claims of state-of-the-art safe guided generation.
The writing is generally clear and the paper is well organized, with helpful figures and tables.
We sincerely thank the reviewer for the positive feedback. Below we extend our discussions so as to help address the concerns.
Q1. What is the computation required? The gradient with respect to x could be expensive.
A1. We shall illustrate the procedure of Algorithm 1 in details. At each iteration, a forward pass first compute xoutk that f+uk drives x0 to. Then a backward pass back-propagates the gradient ∇xΨ(xoutk) to each timestep t. Note that xoutk is determined by x(t) via xoutk=Φt→1f+uk(x). Moreover, the gradient of the barrier function ∇xB(x,t) is computed at each t. Those two parts are combined to update uk(t) to be uk+1(t).
Therefore, it is required to compute gradient with respect to x twice at each timestep. The back-propagation process is indeed the most expensive part of the algorithm. It is common in gradient-based methods (e.g., Liu et al., 2023; Wang et al., 2024).
To better understand how those computation benefits the generation quality, we provide an ablation on the number of iterations, including runtime and peak GPU Memory. Intuitively, better solution can be found with more iterations in the cost of more computation. The learning rate is increased when using fewer iterations, which is a common practice.
CelebA-HQ efficiency tradeoff:
Since HardFlow (Li et al., 2026) optimizes a combined CLIP+LPIPS objective with an LPIPS constraint, we re‑ran both methods using a common protocol: optimize CLIP + LPIPS and enforce the same ID constraint (>0.825). AegisFlow with 10 iterations matches HardFlow’s runtime while remaining competitive performance. With more iterations, it achieves clearly superior quality. The memory overhead is due to back-propagation through the full generative trajectory, a property shared by most gradient‑based guided generation methods.
Maze2D efficiency trade‑off:
We set an MNC post-hoc safeguard to ensure safety. As the number of the iterations decrease, AegisFlow’s safety margins and smoothness gradually degrade toward the myopic MNC baseline. The non‑myopic planning still yields slightly better scores even in the low‑budget regime.
Avoiding efficiency trade‑off:
The performance smoothly degrades with fewer iterations, demonstrating that the core advantage is the non‑myopic cost functional, with the iterative refinement allowing the user to trade compute for quality.
These results confirm that AegisFlow manifests an efficiency–quality trade‑off.
Q2. No limitation is discussed.
A2. Some limitations are discussed in Sec. 6. We acknowledge two main limitations:
AegisFlow requires back‑propagating through the full generative trajectory, which increases memory usage compared to light‑weight plug‑and‑play controllers. However, the ablation above shows that the cost can be traded off and remains within practical bounds for the tested domains.
The HJB approximation relies on a linearisation and other approximations that may degrade for highly curved flow geometries. Future work may explore higher‑order expansions to improve fidelity. We will add an explicit discussion of limitations to the final manuscript.
Q3. There is no implementation details to reproduce.
A3. We present the pseudocode of AegisFlow in Sec. 4 and provide useful implementation details in Appendix C, including the hyperparameters and the training and inference strategy. We are happy to supply any further necessary details to ensure reproducibility.
We hope these clarifications address the reviewer’s concerns. Thanks again for the valuable feedback.