TRANSMISSION // 2612.05770v1
Teaching generative models to meet a probability target
Source published
A new fine-tuning method aims to balance sample quality with an explicit target for how often generated outputs satisfy a constraint.

A generator can look good on average yet still produce many outputs that fail a requirement. Chance-Constrained Flow Optimization (CCFO) is designed to control that failure rate while still rewarding useful outputs. Its early tests are promising, but they do not establish how well the method will work beyond the studied settings.
Generative models can be fine-tuned to produce outputs with higher scores for a chosen goal: for example, images that render requested text more clearly, or protein sequences predicted to have useful properties. But a good average score does not necessarily mean that most individual outputs meet a requirement. A few very high-scoring samples can lift the average while many others fall short.
That distinction motivates Chance-Constrained Flow Optimization (CCFO), a method proposed in a preprint by Zifan Wang and colleagues. The researchers ask whether a diffusion or flow model can be adapted to improve a reward while also controlling the probability that a generated sample satisfies a specified condition. In plain terms: can a system pursue quality without losing track of how often it meets a pass-or-fail target?
A probability requirement, not just an average
The paper focuses on a chance constraint: a requirement that at least a chosen fraction of generated samples be feasible. “Feasible” means meeting a defined test, such as having an aesthetic score above a threshold or differing from a reference protein sequence by enough mutations. The method is designed for one such constraint at a time.
This differs from constraining an average property. Suppose a signed score is positive for failures and negative for successes: a few large negative values can offset many positive ones. The average may then meet a target even though failures are frequent. A chance constraint instead counts whether each sample passes, and sets a desired minimum pass rate.
How CCFO works
CCFO has two main stages. First, it draws samples from the original, pretrained model and evaluates their reward and whether they meet the constraint. Those observations are used to estimate a single tuning parameter, called a dual multiplier. Second, the method adds a bonus to the reward of feasible samples and runs one entropy-regularized fine-tuning procedure. The entropy regularization discourages the adapted model from drifting too far from its pretrained distribution.
The authors derive a closed-form expression for the ideal multiplier. This lets them estimate it before fine-tuning, rather than repeatedly alternating between updating the model and adjusting the constraint penalty. The theoretical result describes an ideal target distribution; it does not mean a practical training algorithm will reproduce that distribution exactly. The paper explicitly notes that imperfect training and imperfect constraint evaluations can cause deviations. In its protein experiment, the team periodically adjusted the multiplier using samples from the current model, and used a smoothed constraint signal for some settings.
What the tests showed
The authors evaluated CCFO in three settings: illustrative two-dimensional examples, text-to-image generation, and protein sequence design. In the 2D examples, a method that constrained an average could satisfy that average-based requirement while still putting substantial probability on infeasible points. CCFO directly targeted the desired feasible fraction. These examples help demonstrate the distinction, but are constructed settings rather than real-world applications.
For image generation, the team fine-tuned Stable Diffusion 3.5 to improve text rendering while requiring images to meet an aesthetic-score threshold. In the reported comparison, CCFO achieved 90.67% feasibility and a mean OCR reward of 0.789. The paper reports that the expected-constraint baseline, CFO, had 89.26% feasibility and a mean OCR reward of 0.782 in that comparison. These are results under the paper’s particular models, evaluators, prompts, and training setup—not a general guarantee about image quality.
For protein design, the authors used a pretrained sequence generator and a learned fitness predictor for TrpB, an enzyme. Feasibility meant having at least eight mutations at designated positions relative to the wild type. CCFO’s reported mean predicted fitness was 0.392, with 82.30% feasibility; the CFO baseline reported 0.331 and 79.57%, respectively. CCFO also produced more distinct designs that met the study’s feasibility and predicted-fitness criteria. Crucially, the fitness figures are predictions from a learned oracle, not experimental measurements of enzyme activity.
What remains uncertain
These results suggest that explicitly targeting a pass rate can help balance reward and feasibility in the tested cases. They do not prove that CCFO will outperform other approaches across tasks, models, or definitions of feasibility. The estimates depend on samples used to calibrate the multiplier and on the accuracy of the constraint evaluator; errors on high-reward samples can matter especially because those samples may become more common after fine-tuning. The practical fine-tuning solver may also fail to reach the ideal distribution described by the theory.
The authors identify extending the method to multiple simultaneous chance constraints as future work: the paper’s closed-form result relies on the structure of a single binary constraint. The source is an arXiv preprint, so its claims should be treated as provisional rather than as settled findings from peer-reviewed publication. Overall, CCFO offers a clear way to express “make this many outputs pass” during generative-model fine-tuning, while its broader reliability and practical value remain open questions.
- generative AI
- diffusion models
- flow models
- chance constraints
- fine-tuning
- protein design
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
A Simpler Route to Diffusion-Model Distillation
Source published
Shared keywords: diffusion models, flow models, generative ai
Can diffusion models handle changing priorities?
Source published
Shared keywords: diffusion models, protein design
Why Samplers Matter for Medical AI Fairness
Source published
Shared keywords: diffusion models, flow models
An AI agent turns peptide-design evidence into testable sequence edits
Source published
Shared keywords: diffusion models, protein design
A joint-diffusion model designs protein binders on computers
Source published
Shared keywords: diffusion models, protein design