acceptodds
Published as a conference paper at NeurIPS 2026

Chance-constrained Flow Matching for High-Fidelity Constraint-aware Generation

JINHAO LIANG, Yixuan Sun, Anirban Samaddar, Sandeep Madireddy, Ferdinando Fioretto

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.

Keywords:
Sydney

Reviews

Among:
Shape:
123456this paper, Bottom 49%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.33 over 3 reviews, above 49% of the others.
Reviewer_L4tqOpenReview ↗
Rating
5
Clarity
3
Confidence
4
Originality
4
Quality
3
Significance
4
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 x0x_{0} and an interpolated sample xtx_{t} (with 0<t<10<t<1), the target sample x1x_{1} 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 α\alpha under the source distribution. The probability α\alpha is a monotonically increasing function of tt, such that α(t=1)=1\alpha(t=1)=1, 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

  1. The paper is mostly well written and easy to follow. It covers the necessary background with citations and examples.
  2. The method is novel, elegant and simple to implement.
  3. 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.
  4. The limitations are fully discussed in the paper are properly contextualized under the paper's settings.

Weaknesses

  1. While well written, I found Section 4.2 to be confusing (please see questions below).
  2. There are a few minor terms that are not well defined (see below).
  3. 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).
  4. 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:

  1. Prop 4.2 defines ξt=(1−t)t−1Z\xi_{t}=\left(1-t\right)t^{-1}Z. This could be simplified by defining ξt=σtZ\xi_{t}=\sigma_{t}Z. In my opinion the symbol ξt\xi_{t} can be discarded and instead use σtZ\sigma_{t}Z directly throughout the paper.
  2. 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.
  3. Add axes labels to Figues 3,4, or expand the caption. It is unclear what the figures show.
  4. In Table 3, the FID of unconstrained is lowest but not bolded.
  5. Add citations to the end of the first paragraph of the introduction, about the challenges of satisfying constraints.
  6. Line 247: missing space in "1Åand".
  7. Some undefined terms:
    1. "clean samples" (appears many times in the text without a specific definition).
    2. Line 117: "decision variable".
    3. Line 135: Probably should be xt′=Prp(xt)x_{t}^{\prime}=P_{rp}\left(x_{t}\right)
    4. Lines 203-204: "active constraints", "residual vector"
Questions
  1. 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 ξtˉ\bar{\xi_{t}} and its source?
    3. Why is the linearization important? Is the gradient ∇ξg(y,ξtˉ)\nabla_{\xi}g\left(y,\bar{\xi_{t}}\right) easier to compute than the actual value of g(y,ξt)g\left(y,\xi_{t}\right)?
  2. The paper defines α=12tn\alpha=\frac{1}{2}t^{n} (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?
  3. 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

Paper formatting concerns

none

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.

Reviewer_xg4EOpenReview ↗
Rating
5
Clarity
2
Confidence
3
Originality
4
Quality
3
Significance
3
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

Paper formatting concerns

no issues

Final justification

The authors have fully addressed my questions and clarified the previously identified gaps. Their response increases my confidence in the evaluation.

Reviewer_QoKhOpenReview ↗
Rating
3
Clarity
3
Confidence
3
Originality
2
Quality
2
Significance
2
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 αn=(1/2)×tn\alpha_n = (1/2) \times t^n.

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 W2(μN,μNfree)W_2(\mu_N, \mu_N^{\mathrm{free}}) is of limited practical relevance. Additionally, the bound is expressed in terms of eke_k, which are unknown.

A more relevant quantity to bound would be the distance to the constrained distribution W2(μN,μNC)W_2(\mu_N, \mu_N^{\mathcal{C}}), defined as μNC(x)=μNfree(x)1C(x)\mu_N^{\mathcal{C}}(x) = \mu_N^{\mathrm{free}}(x) \mathbb{1}_{\mathcal{C}}(x). 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 gg 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 gg, 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.

Paper formatting concerns

None

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 qCq_{\mathcal{C}}.
    • There is a core inconsistency between Theorem 4.4, which bounds the discrepancy between μN\mu_N and qq, and practical use cases (such as the PDE experiment), where the constraint should force these distributions to be far apart in the Wasserstein sense.

Comments on the paper

1 comment
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.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.