Primal-Dual Flow Matching for Sample-Wise Constrained Generation
Zhengyan Huan, Peter Y. Lu, Shuchin Aeron
NeurIPS page · OpenReview · Open on the map
Category: Time Series, PDEs & Probabilistic ML › Flow and Gradient Modeling · Type: new method · Keywords: constrained generation, flow matching, primal-dual optimization, sample-wise constraints, generative models
Areas: Generative Models (Diffusion & Flows) › Flow Matching and Diffusion › Constrained Generation; Optimization & Algorithms › Optimal Transport and Sampling › Geometry-Aware Sampling and Optimization
Summary
PDFM is a flow-matching based method that learns constrained generation with controllable sample-wise constraint satisfaction using binary oracle feedback.
Explained to a 5-year-old
We want computers to make new pictures that follow a rule, like always being red. The old way needed to know exactly how far a picture is from being red, which is hard. Instead, we can ask a simple yes-or-no question: "Is this picture red?" and the computer learns from those answers. You can also tell the computer how often you want the pictures to be red, so you have control over the result. This makes it easier to create pictures with many different kinds of rules without complicated math.
Explained to a 5-year-old, longer
Imagine you have a robot that draws pictures, and you want all the pictures to be red. You could tell the robot exactly how close each picture is to being red, but that is very complicated. Instead, you can ask a simple question: "Is this picture red?" and the robot just gets a yes or no answer. By asking many questions and learning from the answers, the robot learns to draw red pictures all by itself. You can also tell the robot how often you want the pictures to be red, so you have control over the result. This method works even if the rule is something weird, like "the picture must have a cat on the left side." It does not need to know the exact distance between pictures and the rule, which makes it easier. The robot also keeps the pictures looking natural and varied, not just copying the same thing. This approach can be used for many kinds of rules, not just colors. It helps when you have a rule that is hard to measure mathematically. By using only yes-or-no feedback, the robot can learn quickly without a lot of extra work. Overall, it makes creating pictures with special rules simpler and more flexible.
For a technical reader
The paper presents a way to train generative models that can produce samples satisfying a user-defined constraint with a controllable probability. It uses flow matching to model how data should evolve over time and formulates the problem as a constrained optimization at the population level. A primal-dual algorithm is employed that only needs binary feedback (yes/no) about whether a sample meets the constraint, avoiding complex distance calculations or projections. Theoretical analysis shows that under mild assumptions the method can guarantee the desired satisfaction rate while keeping the generated data distribution accurate. In practice, this approach simplifies constrained generation for complex or non-differentiable constraints and can be integrated into existing generative pipelines.
Problem
Learning generative models that produce samples satisfying a user-specified constraint with a given probability, without requiring differentiable constraints or convex structure.
Method
The approach formulates a population-level constrained negative log-likelihood, parameterizes the velocity field with flow matching, and employs a primal-dual optimization algorithm that uses binary membership-oracle feedback to enforce constraints. It provides direct control over the constraint satisfaction rate without requiring differentiable distances or projections.
Contributions
Provides theoretical guarantees on constraint satisfaction probability for flow-matching based primal-dual optimization and introduces a practical implementation that controls satisfaction rate using only binary oracle feedback, eliminating the need for differentiable constraints.
Limitations and assumptions
The method assumes regularity of the constraint and sufficient expressivity of the velocity field family, which may limit applicability to highly non-smooth constraints.
Practical relevance
It enables flexible constrained generation for real-world tasks where constraints are complex or non-differentiable, allowing direct control over satisfaction rates.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction