Chance-constrained Flow Matching for High-Fidelity Constraint-aware Generation
Jinhao Liang, Yixuan Sun, Anirban Samaddar, Sandeep Madireddy, Ferdinando Fioretto
NeurIPS 2026
Abstract. Generative models excel at synthesizing high-fidelity samples from complex data distributions, but they often violate hard constraints arising from physical laws or task specifications. A common remedy is to project intermediate samples onto the feasible set at each sampling step. However, repeated projection can disrupt the learned sampling dynamics because this feasible set is defined for clean samples rather than noisy intermediate states. Thus, recent studies first estimate clean samples and then project them to the feasible set, but this increases algorithmic complexity and accumulates errors across steps. To address these issues, this paper proposes Chance-constrained Flow Matching (CCFM), a training-free method that formulates constraint enforcement during sampling as stochastic optimization while retaining the hard-constraint feasibility guarantee of projection-based methods. By avoiding direct projection of noisy intermediate states onto the clean-sample feasible set, CCFM mitigates the distributional distortion. Unlike approaches that first estimate and project clean samples, CCFM avoids complex multi-stage procedures. Experiments show that CCFM outperforms current state-of-the-art constrained generative models in modeling complex physical systems governed by partial differential equations, molecular docking problems, and physics-informed motion generation, delivering superior feasibility and fidelity.
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
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes a way to impose constraints on flow matching sampling by designing the projection at each step based on chance-constrained optimization. The idea is to project weakly early in generation, when samples are close to noise, and to enforce the constraint more strongly as they approach the data; experiments confirm the effectiveness.
The reviews are split: Reviewers xg4E and L4tq are positive, while QoKh has concerns about the theory and the experiments. The authors should respond to QoKh, in particular on the mathematical grounding of the sampling scheme (the choice of the relaxed constraint set and probability schedule, and the practical relevance of Theorem 4.4) and on the experimental design (the motivation for the PDE and video tasks, and the choice of baselines and metrics). A convincing discussion here would strengthen the paper and will matter in the final decision.
Final justification
Update after the discussion phase: The concerns raised above were addressed during the rebuttal and discussion, and the reviewers are largely positive. I thus recommend acceptance. Some disagreement remains with Reviewer QoKh on the scope of the theoretical analysis, but its nature can be understood from the discussion, and I encourage the authors to take this exchange as constructive feedback when preparing the final version of the paper.
Read meta-review
Meta-review
This paper proposes a way to impose constraints on flow matching sampling by designing the projection at each step based on chance-constrained optimization. The idea is to project weakly early in generation, when samples are close to noise, and to enforce the constraint more strongly as they approach the data; experiments confirm the effectiveness.
The reviews are split: Reviewers xg4E and L4tq are positive, while QoKh has concerns about the theory and the experiments. The authors should respond to QoKh, in particular on the mathematical grounding of the sampling scheme (the choice of the relaxed constraint set and probability schedule, and the practical relevance of Theorem 4.4) and on the experimental design (the motivation for the PDE and video tasks, and the choice of baselines and metrics). A convincing discussion here would strengthen the paper and will matter in the final decision.
Final justification
Update after the discussion phase: The concerns raised above were addressed during the rebuttal and discussion, and the reviewers are largely positive. I thus recommend acceptance. Some disagreement remains with Reviewer QoKh on the scope of the theoretical analysis, but its nature can be understood from the discussion, and I encourage the authors to take this exchange as constructive feedback when preparing the final version of the paper.
1 comment
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 4/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper aims to solve the task of training a flow matching (FM) model with constraints over the sample space. A common approach to train FM with constraints is to project each time-step into the feasible set, which potentially diverts the sample from its original optimal path. This paper employs a chance-constrained approach to avoid this problem. First, for a given point from the source distribution and an interpolated sample (with ), the target sample can be extrapolated. The algorithm then defines a relaxed feasible set as the set of interpolated points for which the extrapolated point satisfies the constraints with a probability at least under the source distribution. The probability is a monotonically increasing function of , such that , assuring that the target sample will satisfy the constraints. The paper proposes a repeated projection algorithm using these relaxed feasible sets. The paper then suggest a reformulations to make the projections practical and also provides theoretical guarantees on how much the reprojection diverts the sample from the optimal path. The paper reports results of several experiments from different domains with higher accuracy and shorter sampling times than other baselines.
Strengths and weaknesses
Strengths
- The paper is mostly well written and easy to follow. It covers the necessary background with citations and examples.
- The method is novel, elegant and simple to implement.
- The experiment section covers several domains and provides many metrics, and shows clear evidence for the advantage of the method when comparing with appropriate baselines.
- The limitations are fully discussed in the paper are properly contextualized under the paper's settings.
Weaknesses
- While well written, I found Section 4.2 to be confusing (please see questions below).
- There are a few minor terms that are not well defined (see below).
- The paper itself lacks the technical details of the experiment, such as architectures and hyperparameters (this is a minor weakness, since the full implementation is given in the supplementary materials).
- The main text does not indicate the number of samples on which it computes the percentages in the tables. Scanning over the appendix, it would seem the test set is taken to be of size 1000. Yet it claims that these 1000 were chosen randomly from a much larger pool. Why was it limited to 1000 samples?
I think this is a strong paper, proposing an elegant and effective method and presents it in a clear way. I am scoring to accept.
However I also have some personal suggestion that did not affect my scoring but I think will improve the paper:
- Prop 4.2 defines . This could be simplified by defining . In my opinion the symbol can be discarded and instead use directly throughout the paper.
- Algorithm 1 shows a very simplified version, which is identical to the repeated projection algorithm, only with a different projection function. It will be more helpful to expand this algorithm to include the tractable formulation and linearization from Section 4.2.
- Add axes labels to Figues 3,4, or expand the caption. It is unclear what the figures show.
- In Table 3, the FID of unconstrained is lowest but not bolded.
- Add citations to the end of the first paragraph of the introduction, about the challenges of satisfying constraints.
- Line 247: missing space in "1Åand".
- Some undefined terms:
- "clean samples" (appears many times in the text without a specific definition).
- Line 117: "decision variable".
- Line 135: Probably should be
- Lines 203-204: "active constraints", "residual vector"
Questions
- I do not understand the logical flow of Section 4.2:
- In line 197, what does "For nonlinear dependence on the uncertainty" mean? what is the uncertainty and what depends on it?
- What is the reference value and its source?
- Why is the linearization important? Is the gradient easier to compute than the actual value of ?
- The paper defines (line 162). How does changing this function affect the results and sampling time of the method? Did the authors try different schemes or have intuition about it?
- An alternative to solving constrained problems with projections, is to solve the dual problem. Are there works combining chance-constrained programming with duality that could benefit this method?
Limitations
yes
Final justification
I believe the paper already met the required standards, and the authors answered my questions and promised minor revision to make the text clearer. I choose to maintain my score of 5.
Formatting concerns
none
4 comments
Response to Reviewer L4tq (Part 1/2)
Thank you for the thoughtful review and for recognizing the novelty, simplicity, and broad empirical validation of our method. We address the questions below and will incorporate the suggested clarifications and presentation fixes in the revision.
Q1. I do not understand the logical flow of Section 4.2: (1) In line 197, what does "For nonlinear dependence on the uncertainty" mean? what is the uncertainty and what depends on it? (2) What is the reference value and its source? (3)Why is the linearization important? Is the gradient easier to compute than the actual value of ?
Thank you for flagging this ambiguity.
The uncertainty in line 197 refers to the auxiliary source-prior variable , with , induced by the auxiliary source variable in Eq. (6). “Nonlinear dependence on the uncertainty” means that the constraint is nonlinear in , so Proposition 4.2 does not apply directly.
We therefore linearize this dependence around the mean value .
The purpose is not that the gradient is easier to compute. Instead, the linearization makes the surrogate affine in , allowing Proposition 4.2 to yield a tractable deterministic reformulation of the linearized chance constraints. We will clarify this logical flow in Section 4.2.
Q2. The paper defines (line 162). How does changing this function affect the results and sampling time of the method? Did the authors try different schemes or have intuition about it?
is a scheduler controlling how quickly the constraints tighten. For , smaller gives a larger required satisfaction probability, which leads to earlier and stronger corrections. In contrast, larger keeps the feasible set relaxed longer and closer to the unconstrained distribution. This can reduce the number of active corrections and reduce the computational cost, particularly for nonlinear constraints. Table 8 compares CCFM with PCFM in terms of running time. Since both methods use the same backbone, so only projection cost differs. For RD, nonlinear Gauss–Newton projections are expensive, and CCFM can reduce active corrections, yielding a 30% speedup (2.703 vs. 3.874 s).
However, it does not affect the terminal feasibility, since the source uncertainty vanishes at and the chance-constrained set reduces to the original feasible set. We tested different exponents within this family in Table 6 and 9: for docking and for RD. Docking metrics varied by only about several percentage point, while RD fidelity changed also marginally and constraint violations remained at numerical precision.
Q3. An alternative to solving constrained problems with projections, is to solve the dual problem. Are there works combining chance-constrained programming with duality that could benefit this method?
Duality is complementary to CCFM’s chance-constrained feasible set construction. Existing work has developed Lagrangian dual formulations for chance-constrained stochastic programs [1], and we will add this connection in the revised manuscript.
Response to Reviewer L4tq (Part 2/2)
W1. While well written, I found Section 4.2 to be confusing.
Please refer to the answer in Q1. We will rewrite Section 4.2 to define the uncertainty and reference value before introducing the linearization to state explicitly that the reformulation procedure.
W2. There are a few minor terms that are not well defined.
We will adopt the suggested notational simplification in Proposition 4.2, expand Algorithm 1 to include the deterministic reformulation and nonlinear linearization, add axis labels to Figures 3,4, bold the best FID in Table 3, add citations to the first paragraph of the introduction, fix the missing space, and define the noted terms precisely.
W3. The paper itself lacks the technical details of the experiment, such as architectures and hyperparameters (this is a minor weakness, since the full implementation is given in the supplementary materials).
We will add a concise summary to the main text, including the pretrained backbone, grid resolution, number of sampling steps, and key hyperparameters.
W4. The main text does not indicate the number of samples on which it computes the percentages in the tables. Scanning over the appendix, it would seem the test set is taken to be of size 1000. Yet it claims that these 1000 were chosen randomly from a much larger pool. Why was it limited to 1000 samples?
The percentages in Table 1 are computed over the PDBBind test complexes. The 1,000 sample applies only to the PDE experiments.
For each PDE, the full test pool contains 8,100 trajectories from 90 unseen initial conditions and 90 unseen boundary/forcing configurations. Evaluating every method on the full pool would substantially increase the cost of the multi-method comparison, so all methods were evaluated on the same fixed random subset of 1,000 trajectories. We will state these sample counts explicitly in the main text and table captions.
W5. However I also have some personal suggestion that did not affect my scoring but I think will improve the paper.
Please refer to the answer in W2.
We thank the reviewer again. We believe these clarifications address the main concerns and will significantly improve both the precision and readability of the paper.
[1] Ahmed, Shabbir, et al. "Nonanticipative duality, relaxations, and formulations for chance-constrained stochastic programs." Mathematical Programming 162.1 (2017): 51-81.
I thank the reviewers for their answers and I appreciate making the suggested revisions. In their response the authors fully addressed my concerns. Regarding W3, the summary can be included in the appendix, rather than amending the main text of the paper. As for Q2, I was asking out of curiosity if the author try other families of scheduling functions. But including the experiment of different exponents is valuable in understanding the dynamics and consequences of the scheduling.
Thank you very much, and absolutely, we will include the summary related to W3 in the appendix of the final version.
Regarding Q2, we also tested cosine and sine scheduling functions. However, they do not perform as well. The resulting non-monotonic scheduler cannot allow the relaxed constraint set to progressively move toward the original feasible set. This can lead to aggressive corrections at certain sampling stages, which can degrade sample quality. We will add a discussion of these observations in the revision.
Thank you again for your constructive engagement!
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
Generative models are incredibly powerful, but they frequently struggle to produce outputs that strictly adhere to absolute rules, such as the laws of physics or specific structural requirements. Past attempts to enforce these rules present notable limitations. Simply using gradient-based guidance might steer the model in the right direction, but it cannot guarantee that the hard constraints are actually met. Methods that repeatedly project the generation back into the allowed boundaries distort the generation distribution. Newer Extrapolation-Correction-Interpolation (ECI) approaches assume to have a good method to estimate reliable clean samples from intermediate steps. To overcome these hurdles, the authors introduce Chance-constrained Flow Matching (CCFM), a straightforward, training-free approach that guarantees the generated samples will obey the necessary rules. Rather than forcing harsh, disruptive corrections on noisy data, CCFM frames the problem probabilistically by establishing flexible, relaxed boundaries on noisy stages of generation and adaptively tightening those boundaries as the sample becomes cleaner and more defined. This approach elegantly avoids both the destructive early corrections of standard repeated projection and the complex, error-prone guessing game of ECI methods.
Strengths and weaknesses
Strengths -
- The authors position themselves well with respect to competing methods and clearly explain the motivation for their approach.
- The proposed method introduces a genuinely novel approach to the field of constrained generation.
Weaknesses -
- The instantiations of the projection of noisy steps are not sufficiently clear. Without concrete examples of how these projections are actually performed (connecting Section 4.2 to the experiments section), the method remains somewhat vague and would benefit from clarification.
- There is no discussion on the computational cost of CCFM compared to competing baselines. Is the projection step negligible from a computational standpoint?
Questions
- The authors build their approach on the Optimal Transport (OT) assumption of the Flow Matching (FM) flow. However, this holds true only for the conditional flow, not for the marginal flow, which is the actual velocity field the method aims to model. At the end of Section 4.1, the authors address this issue by claiming that the actual velocity field introduces only a slight curvature. The paper would benefit from empirically validating this claim.
- While the proposed method is training-free, it would be interesting to discuss how it might be incorporated into the training phase to directly constrain the optimized trajectories.
- There are several other approaches for constrained generation that the authors did not mention and should also consider. For example, [1] presents a method for controlled generation by optimizing over the initial noise given a signal from differentiable constraints. Additionally, [2] constrains the entire generation process by applying constraints over the velocity field architecture and noise prior. If possible, it would be interesting to compare against these baselines as well.
[1] D-Flow: Differentiating through Flows for Controlled Generation, Ben-Hamu et al. [2] Space Group Equivariant Crystal Diffusion, Chang et al.
Limitations
yes
Final justification
The authors have fully addressed my questions and clarified the previously identified gaps. Their response increases my confidence in the evaluation.
Formatting concerns
no issues
4 comments
Response to Reviewer xg4E (Part 1/2)
Thank you for the constructive review and for recognizing the paper's motivation and novelty. We address each point below and will incorporate the clarifications and new results into the revision.
Q1. The authors build their approach on the Optimal Transport (OT) assumption of the Flow Matching (FM) flow. However, this holds true only for the conditional flow, not for the marginal flow, which is the actual velocity field the method aims to model. At the end of Section 4.1, the authors address this issue by claiming that the actual velocity field introduces only a slight curvature. The paper would benefit from empirically validating this claim.
We agree that this claim should be validated empirically. We evaluated 1,000 unconstrained Reaction–Diffusion trajectories. For each intermediate state, we measured its distance to the time-matched point on the chord between the initial noise and generated endpoint, normalized by the distance from initial state to the end state. The table shows that marginal trajectories remain within 1% of their endpoint chords on average.
| Mean | Median | 95th percentile |
|---|---|---|
| 0.8622% | 0.8544% | 1.2987% |
Q2. While the proposed method is training-free, it would be interesting to discuss how it might be incorporated into the training phase to directly constrain the optimized trajectories.
Thank you for this point. A natural extension is to unroll a few solver steps during training and penalize the distance of each intermediate state to the chance-constrained feasible set. This would encourage the learned velocity field towards the relaxed feasible sets. We will discuss this extension as future work.
Q3. There are several other approaches for constrained generation that the authors did not mention and should also consider. For example, [1] presents a method for controlled generation by optimizing over the initial noise given a signal from differentiable constraints. Additionally, [2] constrains the entire generation process by applying constraints over the velocity field architecture and noise prior. If possible, it would be interesting to compare against these baselines as well.
We added D-Flow to the Reaction–Diffusion benchmark. D-Flow optimizes the initial noise through the entire sampling flow, whereas CCFM projects intermediate states onto time-dependent chance-constrained sets. CCFM achieves lower error and substantially smaller constraint violations:
| Method | MMSE/SMSE() | CV(IC)/CV(CL) |
|---|---|---|
| CCFM | 3.3/2.7 | 0/ |
| D-Flow | 4.2/4.5 | / |
SGEquiDiff is a crystal-specific generative model rather than a general test-time constraint sampler. Therefore, it is difficult to compare directly, but we will discuss it in the revised manuscript.
Response to Reviewer xg4E (Part 2/2)
W1. The instantiations of the projection of noisy steps are not sufficiently clear. Without concrete examples of how these projections are actually performed (connecting Section 4.2 to the experiments section), the method remains somewhat vague and would benefit from clarification.
Thank you for pointing this out. CCFM is still a kind of projection-based sampling method. The difference lies in the formulation of the feasible set. PCFM and repeated projection directly project the sample onto the feasible set defined on clean samples:
Denoting the projected intermediate state by , CCFM projects the noisy states onto the time-dependent chance-constrained set $\widehat{\mathcal C}_t(\alpha_t) $:
Section 4.2 gives a deterministic reformulation for the chance-constrained set. The resulting deterministic constraints are handled by the same projection solvers as PCFM and repeated projection.
For example, in the Navier–Stokes experiment, let extract the first physical-time slice. The clean initial-condition constraint is
We instantiate the two inequalities at each spatial location as individual chance constraints. Using
Proposition 4.2 gives the exact deterministic reformulation
and
Because , this interval is relaxed for and recovers the original initial-condition interval at . Projection for this constraint is therefore elementwise clipping of the first physical-time slice. Nonlinear Reaction–Diffusion conservation constraints instead use the active-set Gauss–Newton solver after local reformulation.
W2. There is no discussion on the computational cost of CCFM compared to competing baselines. Is the projection step negligible from a computational standpoint?
Thank you for raising this point. The projection cost is not uniformly negligible. Specifically, the computational cost of projection is substantial for nonlinear constraints but small for the linear constraints.
In the PDE experiments, CCFM and baselines use the same pretrained flow matching backbone and sampling schedule, so their neural network evaluation costs are matched. For Reaction–Diffusion, the nonlinear conservation constraint makes Gauss–Newton correction dominate the runtime. Since CCFM can reduce active corrections at early sampling steps, it yields a 30% speedup (2.703 vs. 3.874 s) compared with PCFM, as shown in Table 8. In Navier–Stokes, the constraints are linear and network evaluations dominate, so the runtimes are nearly identical.
We will add this explanation alongside Table 8.
We thank the reviewer again. We believe these clarifications address the main concerns and will significantly improve both the precision and readability of the paper.
We appreciate the authors’ thorough response and the effort made to address the reviewer’s questions. The additional explanations and experiments help resolve several of the concerns raised and improve the paper’s clarity. We hope these comments will help further strengthen the revised version. I will keep my overall score unchanged and increase my confidence score to 3.
Thank you for revisiting our response and for the encouraging assessment. We appreciate your view that the additional explanations and experiments helped to resolve your questions. Thank you again for your constructive engagement!
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes a novel sampling scheme to enforce hard constraints on pre-trained flow-matching generative models. The core idea relies on relaxing the projection step onto the constraint set via a probabilistic constraint satisfaction approach. The satisfaction probability is gradually increased during the sampling process, progressively converging toward the final target constraint set. The authors provide an analytical formulation for affine constraints, which is then extended to nonlinear constraints via a first-order approximation. Additionally, a theoretical result bounds the distance between the sampled constrained density and the unconstrained density. Empirical evaluations are conducted on molecular docking, partial differential equation (PDE) emulation, and video generation.
Strengths
Strengths and weaknesses
Strengths
The proposed approach introduces a training-free conditioning method applied directly at sampling time, offering greater flexibility compared to training-time constraints. It demonstrates a clear algorithmic improvement over naive repeated projection methods and is validated on several high-dimensional datasets.
Weaknesses
The primary concerns regarding this submission center on the limited mathematical justification for the proposed sampling scheme, the experimental design, and the overall soundness of the empirical evaluation. The proposed method appears to rely on heuristic improvements to the projected flow-matching sampler rather than offering a fundamental understanding of the constrained sampling problem. Furthermore, the empirical benchmarks feature questionable evaluation metrics that do not adequately reflect the core challenges of the problem under study.
1. Method development
The main motivation for the proposed method is the projected sampling algorithm for flow matching, which alternates flow steps and projections on the constraint set. Because this method is known to distort the sampling process, the chance-constrained sampling algorithm is proposed as a fix. It adopts the same alternated projection scheme but relaxes the projection to account for noise in intermediate states.
Instead of providing a comprehensive mathematical framework for the constrained sampling problem, the submission proposes a heuristic that relaxes the constraint set to a time-varying set. This enforces the constraint on the final state with an increasing probability that grows progressively from 0 to 1. While the intuition of enforcing a weaker constraint early in the sampling process is sound and expected to reduce projection bias, the method lacks rigorous grounding. Specifically, the choice of Equation (6) as an interpolation set is arbitrary, as is the choice of the probability .
An analysis of the sampling bias is proposed in Theorem 4.4, but the practical value of this result is unclear since it does not guarantee sample quality. The theorem bounds the gap between the constrained and the unconstrained trajectory, but this quantity holds limited meaning when the constrained distribution diverges significantly from the unconstrained one. If both distributions are expected to be close in the Wasserstein sense, it is likely that projecting the output of the unconstrained sampler just once would yield a good result. Consequently, bounding is of limited practical relevance. Additionally, the bound is expressed in terms of , which are unknown.
A more relevant quantity to bound would be the distance to the constrained distribution , defined as . Recent works have developed mathematical frameworks for constrained sampling in diffusion models with theoretical guarantees [1, 2], and it would strengthen the paper significantly to connect these concepts with flow matching to derive a mathematically principled algorithm.
2. Experimental design
The proposed method is evaluated on three high-dimensional constrained sampling setups using various metrics. However, some of these applications lack proper motivation, and the experimental validation does not sufficiently demonstrate the impact of the constrained sampling algorithm.
The application of a generative model to the PDE task lacks strong justification. A flow matching architecture is used to integrate a deterministic dynamical system, which by definition admits a non-stochastic solution. Given the lack of chaos and turbulence in the learned dynamics, a deterministic autoregressive learning model could likely recover the ground truth with high accuracy. Furthermore, the generated trajectories are evaluated using the mean squared deviation criterion, which is a pointwise reconstruction metric that would naturally be minimized by a deterministic predictor trained on mean squared error. The experiment also reports an error metric based on standard deviation, but the target distribution for this comparison is omitted. The validity of this comparison is questionable, as data from a deterministic dynamical system does not inherently involve randomness.
The overall prediction task is also under-specified. The manuscript suggests that the neural model is trained to generate trajectories as a full signal rather than autoregressive rollouts, but the exact input-output structure is missing. For instance, it is not detailed how the initial condition is used to condition the flow matching architecture. Consequently, it is not clear whether the constrained and unconstrained algorithms are operating with the same amount of information.
The final video generation experiment similarly lacks motivation and detail. Very little context is provided regarding the dataset, its inherent challenges, or how physical constraints are extracted from the frames. The appendix notes that the physical problem reduces to the free fall of an object, indicating a simple and arguably deterministic dynamics. The decision to use a generative model for this specific application requires further justification.
Finally, the submission would benefit significantly from a low-dimensional toy experiment. This would allow readers to visually test and understand the performance of the new projection scheme and the Jacobian approximation.
3. Empirical evaluation
Several inconsistencies in the experiments raise concerns about the soundness of the empirical evaluation.
The ECI method, identified as the state-of-the-art for constrained generation in PDEs, is omitted from the docking experiment without justification. The proposed method is instead compared only against repeated projection and penalized flow matching, both of which are known to have limited performance under strict constraints.
In the PDE experiments, the generated trajectories closely follow the same deterministic solution. For a fair evaluation, CCFM should be compared against a variation of the unconstrained sampler where only the final sample is projected onto the constraint set. Given the proximity of the trajectories, this simpler baseline might produce a physically plausible solution at a minimal computational cost. As mentioned above, a comparison with a deterministic predictor would also be insightful.
In the final experiment, both approaches yield nonzero constraint violations despite the projection steps. This contradicts statements made elsewhere in the submission and in the other experimental results, and requires clarification.
Lastly, Table 8 indicates that the computational cost of the proposed method is only slightly smaller than, but still on the same order as, repeated projections. This raises questions about the practical value of the improvements relative to projected flow matching and the other baselines, given the similar computational burden.
Minor points
1. The residual vector on line 203 should be defined mathematically.
2. The output space of is not specified.
3. Proposition 4.2 and Corollary 3.2 read more like a straightforward computation than a formal mathematical result. The connection between Proposition 4.2 and the probabilistic projection problem is not straightforward. It should be improved by stating what mathematical structure is imposed on function , and clarifying the relationships between the mathematical quantities in the Proposition and in (7).
4. The structure of the experimental section is verbose. Presenting each experiment repeatedly across different subsections, degrades the flow of the text.
References
[1] Zampini, S., Christopher, J. K., Oneto, L., Anguita, D., & Fioretto, F. (2026). Training-free constrained generation with stable diffusion models. Advances in Neural Information Processing Systems, 38, 27285-27316.
[2] Blanke, M., Qu, Y., Shamekh, S., & Gentine, P. (2025). Strictly Constrained Generative Modeling via Split Augmented Langevin Sampling. The Fourteenth International Conference on Learning Representations. https://openreview.net/forum?id=aDJcWNmfce
Questions
1. What is the computational complexity of the constraint linearization, and the total cost of the linearized projection?
2. In the PDE experiment, what specific quantity is the sampled standard deviation being compared against to compute the SMSE?
3. Why is the constraint violation non-zero in Section 5.4 for the projected methods?
4. How exactly is the unconstrained flow matching algorithm conditioned on the initial condition of the PDE?
Limitations
One limitation is mentioned in one sentence of the conclusion regarding non-analytical constraints, but I believe that there is more to discuss. For example, the computational cost of the method and the sampling bias caused by the projections deserve more discussion.
Final justification
I have raised my score to a 3 following the rebuttal. I acknowledge the empirical clarifications provided by the authors, which improved the practical aspects of the paper. However, I assign negative weight to the disconnect between the theoretical analysis and the algorithm's practical use.
-
Resolved Issues:
- The experimental clarifications successfully improved the empirical contribution and clarified the practical setup.
-
Unresolved Issues:
- The mathematical framework remains of limited practical use in my opining. The central object of analysis should be the constrained density .
- There is a core inconsistency between Theorem 4.4, which bounds the discrepancy between and , and practical use cases (such as the PDE experiment), where the constraint should force these distributions to be far apart in the Wasserstein sense.
Formatting concerns
None
10 comments
Response to Reviewer QoKh (Part 1/3)
Thank you for the careful review and for recognizing the algorithmic improvement. We appreciate the mathematical and experimental concerns. We will clarify these points in the revision.
Q1. What is the computational complexity of the constraint linearization, and the total cost of the linearized projection?
Let denote the sample dimension, the total number of constraints, and the number of active constraints. For constraints that depend nonlinearly on the random variables, the first-order constraint linearization costs . Given active constraints, the Gauss-Newton projection costs to form and to solve the resulting linear system. The total cost is .
Notably, the Gauss-Newton projection in our method has the same asymptotic complexity as in PCFM [1]. In practice, CCFM relaxes constraints at early sampling steps, which can reduce the number of the active constraints to reduce the cost.
Q2. In the PDE experiment, what specific quantity is the sampled standard deviation being compared against to compute the SMSE?
SMSE is the MSE between the pointwise empirical standard deviations of the generated and ground-truth solution ensembles under the same fixed IC. Variation comes from different boundary configurations or forcing phases.
Q3. Why is the constraint violation non-zero in Section 5.4 for the projected methods?
In the motion task, the reported violation is an image-space metric computed by comparing the detected center of the generated object with its theoretical position across frames. After projection, the model pulls the sequence toward its in-distribution dynamics. This creates ghosting artifacts, which blur the detected center and cause the measured violation.
CCFM reduces this effect by making time-adaptive corrections rather than repeatedly imposing the full hard correction at noisy intermediate states.
Q4. How exactly is the unconstrained flow matching algorithm conditioned on the initial condition of the PDE?
The unconstrained flow matching is not explicitly conditioned on the PDE initial condition. The initial condition is treated as a PDE constraint rather than a network input. All methods use the same pretrained flow matching backbone and differ only in constraints enforcement methods during sampling. This follows the setting used in PCFM [1] and ECI [2].
⸻
W1(a). The submission proposes a heuristic that relaxes the constraint set to a time-varying set. Specifically, the choice of Equation (6) as an interpolation set is arbitrary, as is the choice of the probability.
The probability schedule in Eq. (6) uses a hyperparameter that controls how quickly the constraints tighten during sampling. The schedule is a modeling choice, and Eq. (6) is not an arbitrary interpolation. The feasible set in Eq. (6) is derived from the OT displacement path and a chance-constrained optimization framework.
Under the OT interpolation, an intermediate state and a source realization imply the terminal state . Once is corrected, it is no longer associated with the originally sampled . We therefore model the source as an auxiliary random variable drawn from the known prior and enforce the implied terminal state to satisfy the original constraint with probability at least . This yields Eq. (6). Therefore, although the probability schedule is a modeling choice, Eq. (6) itself is the chance-constrained feasible set induced by the OT relation and the known source prior, not an arbitrary interpolation between constraint sets.
As in any chance-constrained formulation, this construction requires a satisfaction level . We use the monotone continuation schedule and apply no projection at . Here, increases to at , rather than to . Specifically, implies the resulting set is a relaxation of the original constraint.
The sensitivity results in Tables 6 and 9 also indicate that the schedule does not require careful tuning. In docking, the joint-validity metrics change by only a few percentage points as varies from to . In RD, MMSE and SMSE also vary modestly as varies from to . Meanwhile, the choice of does not affect the terminal feasibility guarantee.
Response to Reviewer QoKh (Part 2/3)
W1(b). An analysis of the sampling bias is proposed in Theorem 4.4, but the practical value of this result is unclear since it does not guarantee sample quality.
We agree that Theorem 4.4 alone does not guarantee sample quality. In our paper, constrained generation requires both feasibility and fidelity to learned target distribution. Corollary 4.3 establishes feasibility, while Theorem 4.4 bounds the additional distortion introduced by constraint corrections. Specifically, the correction in Theorem 4.4 is the correction computed at step rather than an unknown parameter.
To connect each correction more directly to a constrained distribution, we will add the following lemma. Let and denote the distributions before and after chance-constrained projection onto a convex relaxed feasible set . For any constrained distribution supported on ,
where is the 2-Wasserstein distance. The proof follows directly from the projection inequality in Lemma 4 of [3]. This lemma shows that CCFM decreases the distance to any distribution supported on the current feasible set with a nonempty closed convex relaxed set.
By contrast, a post-only projection applies a single, potentially large correction after sampling. This makes no subsequent flow steps to restore learned-distribution structure. Specifically, it can only concentrate mass near the boundary. We also added a post-only projection baseline. These results show that it can enforce the constraints but does not preserve sample quality.
| PDE Problem | CCFM MMSE/SMSE | Post-only MMSE/SMSE |
|---|---|---|
| RD(×10⁻²) | 3.3/2.7 | 3.8/3.2 |
| NS(×10⁻¹) | 0.8/0.8 | 1.4/ 0.8 |
| Docking(#S/#Stp) | CCFM PB+L / PB+A | Post-only PB+L / PB+A |
|---|---|---|
| 1/10 | 30.79/58.19 | 24.01/42.37 |
| 1/20 | 29.94/57.06 | 20.90/39.55 |
| 10/10 | 35.88/62.15 | 34.18/56.21 |
W2(a). The application of a generative model to the PDE task lacks strong justification.
We agree that a PDE trajectory is deterministic once all initial, boundary, and forcing conditions are specified. However, our experiments evaluate the PDE trajectory distribution when only the IC is prescribed and boundary/forcing configurations vary. Although the IC is fixed, different boundary fluxes or forcing phases yield different PDE trajectories. The mapping from the available input to trajectories is therefore one-to-many. CCFM generates full fields under the prescribed IC and conservation constraints. MMSE and SMSE compare the pointwise empirical mean and standard deviation of the generated and ground-truth ensembles (see Q2). The observed variability therefore arises from the distribution of physical configurations rather than from intrinsic stochasticity in the PDE.
To directly evaluate a deterministic alternative, we added an autoregressive FNO trained on the same dataset. On RD, FNO/CCFM gives MMSE 3.5/3.3 (), SMSE 12/2.7 (), and CV ; on NS, MMSE is 1.6/0.8 ().
Our goal is not to replace deterministic solvers for fully specified PDEs. Instead, this setting evaluates training-free constraints enforcement for a generative prior.
W2(b). The overall prediction task is also under-specified.
In the PDE experiment, the flow matching model jointly generates the entire discretized space–time field rather than autoregressively rolling out in physical time. Sampling starts from a Gaussian tensor with the output shape. At each sampling step, neural networks take the current tensor and sampling time as input and predicts a velocity tensor to update samples. The prescribed initial condition is enforced as a constraint at test time. CCFM, PCFM, RP, and DiffusionPDE use the same pretrained checkpoint and different constraints enforcement methods. The unconstrained flow matching receives no test IC and serves as an ablation without test-time constraints enforcement.
W2(c). The final video generation experiment similarly lacks motivation and detail.
This experiment does not claim that free fall requires a generative model. Instead, it tests out-of-distribution constraint enforcement on a fixed video generative prior. The model is trained only on videos under Earth gravity, while lunar gravity is introduced only at sampling time. We detect the object center in each generated frame and compare its position with the trajectory prescribed by the ODE under lunar gravity. Each trajectory consists of six frames spanning 4 seconds. The training and test sets contain 2,048 and 100 trajectories. The experiment tests whether CCFM can enforce unseen dynamics while reducing ghosting relative to repeated projection.
Response to Reviewer QoKh (Part 3/3)
W2(d). the submission would benefit significantly from a low-dimensional toy experiment.
We added a 2-D example with , target , and disconnected constraint . The two feasible branches have unequal conditional mass, making branch commitment directly visible. We compare the generated and ground-truth constrained distributions using empirical and branch commitment error across 5 runs.
CCFM achieves and branch commitment error error , compared with for Repeated Projection, for ECI, and for post-only projection. Repeated Projection and ECI commit to a branch too early, while post-only projection retains biased unconstrained branch weights. CCFM delays commitment and more accurately recovers the full constrained joint distribution.
W3(a). The ECI method is omitted from the docking experiment without justification.
We evaluated ECI in docking experiments. CCFM consistently improves the joint validity/accuracy metrics:
| Docking (#S/#Stp) | CCFM PB + L / PB + A (%) | ECI PB + L / PB + A (%) |
|---|---|---|
| 1/10 | 30.79/58.19 | 24.86/49.72 |
| 1/20 | 29.94/57.06 | 21.18/53.67 |
| 10/10 | 35.88/62.15 | 34.74/57.90 |
W3(b). a comparison with a deterministic predictor would also be insightful.
See W2(a).
W3(c). In the final experiment, both approaches yield nonzero constraint violations despite the projection steps.
See Q3.
W3(d). Table 8 indicates that the computational cost of the proposed method is only slightly smaller than, but still on the same order as, repeated projections.
We clarify that Table 8 compares CCFM with PCFM, not repeated projection. Since both methods use the same backbone, so only projection cost differs. For RD, nonlinear Gauss–Newton projections are expensive, and CCFM can reduce active corrections, yielding a 30% speedup (2.703 vs. 3.874 s). For NS, projections are linear, so runtime is dominated by the neural network evaluations and remains nearly identical.
We thank the reviewer again. We believe these clarifications address the main concerns and will significantly improve both the precision and readability of the paper.
[1] Utkarsh, Utkarsh, et al. Physics-constrained flow matching: Sampling generative models with hard constraints
[2] Cheng, Chaoran, et al. Gradient-free generation for hard-constrained systems
[3] Blanke, M., et al. Strictly Constrained Generative Modeling via Split Augmented Langevin Sampling
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Dear AC,
We offer our sincere gratitude for your time and consideration of our submission. We appreciate that Reviewers xg4E and L4tq found CCFM novel, elegant, and effective. We have addressed every reviewer comment and completed the additional analysis and experiments requested in the reviews. We summarize here some key details for our response:
We clarified that the relaxed constraint set and probability schedule in Eq. (6) are not arbitrary. Indeed, under OT interpolation, an intermediate state and a source realization imply a terminal state through x1=t−1xt−(1−t)t−1Z. Once an intermediate state is projected, it is no longer associated with the original source sample. CCFM adopts the known prior Z∼p0 as an auxiliary source surrogate, requiring the implied terminal state to be feasible with probability at least αt then gives the componentwise chance-constrained set used by our method. Note that the probability schedule αt is controlled by n, which is the only hyperparameter in our method (we use αt=21tn as a monotone continuation schedule). Here, the exponent n controls when corrections become active, but does not affect terminal feasibility: at t=1, the source uncertainty vanishes and C1(α)=C1 for every α∈(0,1]. For example, setting n∈[0.7,1.3], docking joint-validity changes by about one percentage point; setting n∈[0.1,0.9], for the Reaction-Diffusion experiment, fidelity changes modestly and constraint violations remain at the desired numerical precision. For further details, please refer to our responses to Reviewer QoKh (W1(a)) and Reviewer L4tq (Q2).
We explained the practical relevance of Theorem 4.4. Constrained generation requires both fidelity to the learned target distribution and feasibility. Corollary 4.3 establishes feasibility, while Theorem 4.4 bounds the additional distortion introduced by constraint corrections. Specifically, the quantity ek is the correction actually computed at step k, not an unknown parameter. To connect each correction even more directly to a constrained distribution, we derived an extension (a lemma) showing that CCFM can decrease the distance to the constrained distribution supported on the current feasible set for a nonempty closed convex relaxed set. More precisely, it tells us that each correction cannot increase the squared Wasserstein distance to any distribution supported on that set, with a strict decrease when E∥ek∥22>0. Meanwhile, we note that we do not present Theorem 4.4 alone as a guarantee of exact conditional sampling. For further details, please refer to our response to Reviewer QoKh (W1(b)).
We also clarified the motivation for the PDE and video tasks. In the PDE experiments, we model the distribution of PDE trajectories when only the initial condition is prescribed, while the boundary or forcing configurations vary. Therefore, a fixed initial condition can correspond to multiple PDE trajectories, which means mapping from the available input to a PDE trajectory is not deterministic. We also clarify the defination of SMSE. In the video task, it does not suggest that free fall itself requires a generative model. Instead, it introduces the out-of-distribution constraint enforcement in a fixed video generative prior. For further details, please refer to our responses to Reviewer QoKh (W2(a)-W2(c)).
We also provided new empirical evaluation requested by the reviewers to further test distributional fidelity and the requested alternatives. In a new 2-D benchmark with a disconnected feasible set, CCFM obtains W2=0.412 and branch-mass error 0.0248, compared with 1.026/0.231 for repeated projection, 2.695/0.152 for ECI, and 0.671/0.080 for post-only projection, which illustrates the strength of the method. We also added post-only projection in PDE and docking, ECI in docking, an autoregressive FNO, and D-Flow, expanding further our results. Across all of these tests, CCFM provides the strongest overall balance between feasibility and fidelity. For example, on Reaction-Diffusion, CCFM improves MMSE/SMSE from 3.8/3.2 to 3.3/2.7 (×10−2) relative to post-only projection, and from 4.2/4.5 to 3.3/2.7 relative to D-Flow. For the complete results, please refer to our responses to Reviewer QoKh (W1(b), W2(a), W2(d), and W3(a)) and Reviewer xg4E (Q3).
We also addressed the remaining methodological and implementation questions by empirically evaluating the near-linearity of marginal FM trajectories, clarifying the projection procedure and computational cost, and providing the missing experimental details.
We appreciate the opportunity to rebut. We work diligently to address all comments and hope that these theoretical clarifications and expanded experiments will help the committee make an informed assessment.
Warm regards,
The Authors