Manuscript Offprint
arXiv:2609.40030Fenchel Tilting: Weighted Correction for Efficient Finetuning of Generative Models
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Adapting a pretrained generative model to an arbitrary preference expressed as a utility function underlies reward alignment, guided design, and constraint satisfaction, enabling diverse applications. Existing fine-tuning methods trade off generality against computational cost: they either restrict the family class of supported preferences to keep optimization simple or preserve generality at the expense of efficiency. We introduce Fenchel Tilt Flow Control (FTFC), which decouples utility optimization from generative-model fitting. FTFC first optimizes for a target distribution by jointly fitting an effective reward and density-ratio weights on pretrained samples. Method combines the utility's variational structure with Fenchel duality, supporting general f-divergence penalties that determine how rewards are transformed into an distribution-correction weights. These weights are then frozen and used to modify a diffusion or flow model in a single stage of importance-weighted denoising or flow matching, without differentiating through sampling trajectories. We establish exact duality for concave utilities under suitable conditions and show that weighted fitting reproduces the optimal target distribution for a given utility. Across image and molecule generation benchmarks, FTFC improves over baselines on diverse preference functions, while also being up to more efficient. Proposed method enables adaptation beyond expected-reward maximization without complex optimization, while preserving robustness for more general class of the utility functions compared to baselines.
1 INTRODUCTION
Diffusion and flow models support text-to-image synthesis (Rombach et al., 2022; Esser et al., 2024), molecular generation and drug design (Dunn & Koes, 2024; Schneuing et al., 2024), and robotic control (Chi et al., 2023). Reproducing the training distribution, however, does not directly optimize qualities such as aesthetic appeal, prompt fidelity, or molecular validity. Reward-based fine-tuning adapts a pretrained model to such external scores (Xu et al., 2023), but average reward cannot express all preferences: molecular discovery may prioritize rare high-quality candidates, whereas reliable generation may emphasize the worst outcomes. This motivates optimizing a utility of the full output distribution while remaining close to the pretrained model (De Santi et al., 2025; Wang et al., 2026). For nonlinear utilities, the functional gradient depends on the generated distribution itself (De Santi et al., 2025). Flow Density Control (FDC) handles this dependence by alternating utility linearization and generative fine-tuning, using solvers such as Adjoint Matching (Domingo i Enrich et al., 2025); it therefore requires an outer mirror-descent loop and an inner control solver. Tail-Aware Flow Fine-Tuning (TFFT) separates risk-sensitive threshold selection from a single entropy-regularized update (Wang et al., 2026), but its decomposition is specific to CVaR under KL regularization. Broader structured utilities and divergences require the effective pseudo-reward and induced target distribution to be determined jointly.
Motivated by distribution correction estimation (DICE) in off-policy reinforcement learning (Nachum et al., 2019; Lee et al., 2021), we introduce Fenchel Tilt Flow Control (FTFC). FTFC first selects a target distribution relative to the pretrained model and then fits the generator. For concave utilities with suitable f-divergence penalties, Fenchel duality yields a supporting reward and closed-form density-ratio weights that specify the probability-mass shift. The frozen weights then reweight one
*Corresponding author: maxs.bobrin@gmail.com stage of native denoising or flow-matching training (Zhang et al., 2025; Potaptchik et al., 2025). Precomputed endpoints and rewards, combined with fresh native noise, avoid reward gradients and differentiation through sampling trajectories. FTFC thus separates selecting the endpoint distribution from learning the generative map.
Our contributions are:
• Dual formalization of general utility. We cast utility optimization as normalized density-ratio fitting with supported f-divergence penalties, including KL and Pearson . For concave utilities, the Fenchel dual jointly recovers a marginal reward and optimal weights; we also give necessary primal–dual gap conditions.
• Simple and scalable fine-tuning. FTFC reduces utility-based adaptation to two simple steps: optimize the target weights on cached samples, then freeze them and fine-tune the generator by reweighting its native denoising or flow-matching loss. No reward gradients, trajectory differentiation, or specialized generative optimization is required.
• Efficient adaptation. Across molecular and image benchmarks, FTFC is faster than prior fine-tuning methods. By separating target selection from generator fitting, it avoids repeated reward optimization and differentiation through generation trajectories.
Distribution Correction Estimation (DICE). DICE methods address off-policy distribution shift by estimating state-action occupancy ratios rather than trajectory importance weights. DualDICE estimates these ratios for evaluation (Nachum et al., 2019), whereas OptiDICE uses Fenchel duality to optimize a divergence-regularized occupancy measure from offline data (Lee et al., 2021). FTFC transfers this view to generative fine-tuning by estimating target-to-pretrained density ratios. For nonlinear utilities, the effective reward depends on the unknown target distribution; Fenchel duality resolves this coupling by jointly recovering the marginal reward and normalized weights, with endpoint normalization replacing RL occupancy-flow constraints.
Learning the target generator. A specified target distribution can be learned through stochastic control, including non-KL reward tilts (Tang & Zhou, 2024), or weighted flow and diffusion regression (Zhang et al., 2025). DiffCon derives general-f weighted denoising from a trajectory-distribution objective and an equivalent KL transition-control form (Yang et al., 2026). Tilt Matching avoids reward gradients and trajectory backpropagation (Potaptchik et al., 2025), while online reward-weighted flow matching combines regression, fresh samples, and Wasserstein regularization (Fan et al., 2025). Guidance offers another route (Feng et al., 2025). Diffusion-DICE learns it from occupancy ratios (Mao et al., 2024) and FTFC uses its in-sample estimator only for optional guidance. Its main algorithm instead fits the target distribution with the native denoising or flow-matching loss while keeping utility-dependent weights fixed.
3 PROBLEM SETUP
We adopt the notation of Flow Density Control (FDC) (De Santi et al., 2025) and Tail-aware Flow Fine-Tuning (TFFT) (Wang et al., 2026). We will formalize the problem setting in the deterministic flow-based framework.
Generative models as policies. Let denote the Borel probability measures on the sample space . A flow model is specified by a parametrized velocity field : given the current sample and generation time , it predicts the direction and speed of the sample's motion, i.e. vector field. Pretraining learns so that transporting initial noise produces samples approximating the data distribution (Lipman et al., 2023; 2024). We interpret as a state and the predicted velocity as an action. The generative network itself therefore defines a deterministic policy , abbreviated as . Sampling follows with
We denote the distribution of by , with be an endpoint (final) distribution. The pretrained weights define the fixed reference output law . Thus describes input noise, while describes generated samples.
Generative optimization. Fine-tuning updates the network pretrained parameters , changing its movement rule and hence its output distribution . Given a general (possibly, non-linear) utility function , a divergence measuring departure from , and , the objective is
General Utility
For a flow backbone, is the family of velocity fields represented by the model, with allowed parameter set and fixed source . For a reward , choosing and recovers standard reward fine-tuning (mean maximizing). TFFT (Wang et al., 2026) instead uses left- or right-CVaR of , with quantile level , to optimize the lower or upper reward tail by reformulating CVaR objective with an equivalent variational form.
Endpoint distribution correction. The distribution formulation extends to an -divergence, . If , its density ratio gives , meaning , and for a convex generator with . KL is the particular choice , with :
For this formulation, restrict to policies with and finite objective terms. Write and define , the set of ratios actually produced by these policies. The objective depends on only through its terminal law: implies . Conversely, every comes from at least one admissible policy, by definition. Both parameterizations therefore attain exactly the same objective values. Taking suprema yields
(3)
Every is nonnegative and satisfies . The inequality enlarges to all ratios satisfying these constraints, with finite objective terms; absolute continuity alone does not guarantee that every such ratio is realizable by the model. An optimizer of this relaxed problem, when it exists, defines the target , which provides a connection between optimal distribution maximizing reward and pretrained model.
4 METHOD: FENCHEL TILT FLOW CONTROL
FTFC finds the target distribution before fitting the generative map through dual optimization (Figures 2) by finding an near-optimal weight correction 1. We consider the relaxed endpoint problem in Eq.(3), with .
4.1 MOTIVATION
Consider two rings with reward , where is the distance to the nearer ring. Since points near either ring receive similar reward, high reward does not require covering both rings or their full support. We optimize the lowest-20% CVaR with a KL penalty relative to the pretrained distribution , so the objective depends not only on sample quality but also on how probability mass is allocated.
Figure 1 compares FTFC with Implicit Tilt Matching (ITM; Potaptdchik et al., 2025) and FDC (De Santi et al., 2025), using the same calibrated CVaR reward. FDC attains higher raw CVaR but misses the right ring, while ITM covers both rings but concentrates on particular arcs. FTFC instead
FTFC · L=16
FTFC · L=64
FTFC · L=128

SW1: 0.096 ↓
In bands: 93.8%
SW1: 0.039 ↓
In bands: 97.3%
SW1: 0.032 ↓
In bands: 96.7%
Reward set
ITM · L=16
ITM · L=64
ITM · L=128
Target

SW1: 0.170 ↓
In bands: 95.0%
SW1: 0.121 ↓
In bands: 96.1%
SW1: 0.113 ↓
In bands: 95.8%
In bands: 98.2%
FDC · L=16
FDC · L=64
FDC · L=128

SW1: 0.368 ↓
In bands: 99.9%
SW1: 0.350 ↓
In bands: 99.8%
SW1: 0.346 ↓
In bands: 99.6%
Figure 1: Left-tail CVaR on two rings. Gold bands correspond to . L counts number of sampling steps. is distance to the independent numerical target (right, ground truth). FTFC converges faster to target according to the utility function. Comparison is made with FDC (De Santi et al., 2025) and ITM (Potaptchik et al., 2025). See Section 4.1 for details.
most closely matches the numerical target in sliced-Wasserstein distance. The example exposes the key motivation for FTFC: knowing which samples are rewarding is not enough to determine how probability should be distributed among them. FTFC resolves this ambiguity first, by selecting the target distribution by cheap dual optimization, and only then fits the generator to that fixed target using weighted denoising or flow matching (10). Additional objectives are given in Appendix C.1.
4.2 OPTIMAL CORRECTION IN THE CLOSED FORM
When is differentiable, let denote its functional derivative at (first variation). On a finite sample space, this is . The subscript identifies the distribution being perturbed, and is the derivative at point . Intuitively, it measures the gain from redistributing probability: moving a small mass from to changes utility at rate . To derive the optimal weight, perturb to in (3), keeping so the law stays normalized. Since the distribution changes by , the first variation is
At an interior optimum this vanishes for every admissible such v. Hence the net marginal utility must be a constant , q-almost everywhere; otherwise moving mass from a lower value to a higher one would improve the objective. Thus
Here enforces normalization. For KL, has derivative . Thus (4) gives ; choosing so that yields
KL Weights
The denominator normalizes the weights so that . Table 5 in Appendix A.1 lists , , together with the closed form weight formulas for other divergences. For expected reward, and . For nonlinear utility, plays the role of a marginal reward:
moving probability toward larger values of improves utility to first order, but these values depend on the current distribution. Equation (5) therefore requires the marginal reward at the unknown optimum . We next use dual optimization to determine this reward and the normalized density ratios together.
4.3 FENCHEL DUALITY AND WEIGHT RECOVERY
To find the unknown marginal reward from Section 4.2, we now optimize over candidate reward functions . Here is the same utility functional as in (2). We assume it is proper, closed, and concave. For each , define as the smallest scalar offset satisfying for every normalized -supported law . Equivalently,
At a differentiable , concavity makes the bound tight for . More generally, taking the tightest of these bounds recovers exactly by concave biconjugacy (Rockafellar, 1970). This representation alone does not find : we must optimize and recover its normalized weights.
For any feasible , , candidate reward , and scalar labeleq:ftfc with finite terms, the regularized objective satisfies
Appendix A.1 derives the full chain: the first inequality uses the utility bound in (6). The equality uses , introducing the normalization multiplier. The last inequality maximizes each nonnegative weight separately, using . Minimizing this bound recovers the optimal value of the endpoint relaxation in (3), under the strong-duality conditions in Theorem 1. The weights attaining the last inequality are recovered by conjugacy, with chosen to normalize them:
Fenchel Dual
The subgradient allows zero weights. The multiplier enforces normalization within the weight response; rescaling the weights afterward is generally invalid beyond KL. For example, half-Pearson uses and . This conjugate recovery is the DICE connection (Lee et al., 2021), with endpoint normalization replacing occupancy-flow constraints.
Theorem 1 (Duality and optimality gap). For any feasible and finite primal and dual terms, put . Then
Thus the gap bounds any improvement in achievable by another feasible endpoint law. Under strong duality and attainment, both residuals vanish at an optimum and (7) recovers its weights. A sufficient setting is a finite bank with positive reference masses, finite continuous concave utility, and f finite continuous and strictly convex on , differentiable on , and superlinear.
At zero gap, : the affine upper bound in (6) touches at the recovered law . At a differentiable interior optimum, their first variations agree, identifying with up to an additive constant. Thus (7) determines the reward and law together. Appendix A.1 proves the result.
Figure 2: FTFC: select a target, then fit it. The dual determines ; the DICE link recovers normalized endpoint weights, which are frozen for native fitting.
4.4 TARGET OPTIMIZATION FOR STRUCTURED UTILITIES
The functional dual in (7) optimizes over an arbitrary reward function , which is generally impractical. For many structured utilities, however, the unknown effective reward has only a small number of parameters. We assume and utilize this structure to optimize the target weights on the cached sample bank before fitting the generator.
Feature parametrized utilities. Consider with where contains the statistics relevant to the utility and is proper, closed, and convex. Its marginal reward is
so instead of optimizing an unrestricted , it suffices to determine the marginal costs . Using gives
\begin{aligned}\mathcal{F}(p)&=\inf_{z}\{\Psi^\star(z) + \mathbb{E}_p[r-z^\top \phi]\},\\\left(z^\star,\nu^\star\right)&\in \arg\min_{z,\nu}\{\Psi^\star(z) + \nu + \alpha\mathbb{E}_q f_{+}^\star((r-z^\top \phi-\nu)/\alpha)\},\\g^\star&=r-z^\star^\top \phi,\qquad z^\star\in \partial\Psi(\mathbb{E}_{p^\star}\phi).\end{aligned} \tag{9}Thus target optimization reduces to solving for on cached samples. The resulting is converted into normalized target weights by (7). Representative utilities and their corresponding are given in Appendix A.1; numerical details are given in Appendix A.2.
CVaR utilities. CVaR does not require moment features: its effective reward is determined by a scalar threshold. Upper-CVaR follows the concave formulation above with scalar threshold optimization. Lower-CVaR is convex in the output law and therefore requires a separate argument. On a finite sample bank, we show that a globally optimal lower-CVaR threshold can be chosen among the observed rewards (Proposition 3). Searching these thresholds yields the target weights, which are then frozen for the same generator-fitting stage. Benchmark-specific pseudo-rewards and threshold objectives are given in Appendix A.2.
4.5 WEIGHTED DENOISING AND FLOW MATCHING
Calibration in Section 4.4 returns weights defining the target . Freeze these weights and initialize the generator from its pretrained parameters. The calibrated reward affects the generator through the weighted training loss. For each endpoint , independently sample a time and noise . Weight the usual denoising or flow-matching loss by . Since , this is equivalent to training on the target distribution:
Here is the standard denoising or flow-matching loss (Zhang et al., 2025):
The respective optimal predictors are the target noise predictor and velocity field, since conditional regression gives
Algorithm 1 Fenchel Tilt Flow Control (FTFC)
Require: Pretrained model with endpoint distribution ; utility ; divergence ; regularization ; sample bank size ; training steps
1: Sample and cache endpoints and evaluate their rewards and utility features
Stage 1: Calibrate the target distribution
2: Compute the supporting rewards from the utility Sec. 4.4
3: Compute normalized density-ratio weights Eq. (7)
4: Freeze
Stage 2: Fit the generator
5:
6: for do
7: Sample a minibatch of cached endpoints
8: Sample fresh and noise , and construct the native input-target pair as in (11) Eq. (11)
9: Eq. (10)
10:
11: return
These identities require finite conditional moments, , and a positive denominator. Fresh noise preserves the chosen source law; reweighting cached generation trajectories generally does not. Equation (12) justifies the weighted regression used by FTFC. For diffusion models, the same calibrated endpoint distribution also admits an alternative realization through score guidance, which we detail below.
Theorem 2 (Score correction under endpoint reweighting). Let , be recovered by (7), and set . For with independent and , denote the noisy densities by and define . Assume , , and differentiation under the integral is valid. Writing and (and analogously for ), we have
Over integrable scalar functions, the in-sample loss has the unique minimizer
The result holds for any normalized nonnegative weights, including general- responses with zeros. Weighted denoising (10) learns the same target predictor directly; Algorithm 1 uses this route. Appendix A.3 proves the theorem and gives the corresponding correction for Gaussian flow interpolations. Under exact realization of the weighted regression target, the fitted generator recovers the selected endpoint law and therefore inherits its endpoint optimality; we formalize this result and its regularity conditions in Appendix A.3.
5 EXPERIMENTS
5.1 MOLECULAR GENERATION ON QM9
We adapt FlowMol (Dunn & Koes, 2024) on QM9 (Ramakrishnan et al., 2014) using negative GFN1-xTB energy (Friede et al., 2024), with an upper-superquantile objective targeting the best 0.2% of rewards. We compare FTFC with pretrained FlowMol, expected-reward Adjoint Matching (AM; Domingo i Enrich et al. 2025), FDC (De Santi et al., 2025), and TFFT (Wang et al., 2026) under the shared ODE evaluation in Table 1.
Table 1: QM9 / FlowMol molecular generation. ODE evaluation with 50,000 attempts per seed. Rewards are in Hartree; bold denotes the best observed value.
| Method | Train days ↓ | Mean | SQ.998 ↑ | Upper 10% ↑ | Valid. (%) ↑ | SA ↓ | Topology |
|---|---|---|---|---|---|---|---|
| Pretrained | 0.0 | 28.6 | 38.7 | 34.1 | 96.4 | 4.6 | 0.8 |
| AM | 0.5 | 28.4 | 38.1 | 33.5 | 96.4 | 4.7 | 0.7 |
| FDC | 1.4 | 28.6 | 38.4 | 33.6 | 95.1 | 4.4 | 0.6 |
| TFFT | 0.6 | 28.9 | 39.2 | 34.4 | 94.2 | 4.7 | 0.7 |
| FTFC | 0.04 |
Tail reward and molecular geometry. FTFC attains the highest observed mean and both upper-tail rewards. It also exceeds every fine-tuned baseline on topology reward, which measures connectivity preservation and relaxation strain (Kotani, 2026), while remaining competitive in synthetic accessibility (Ertl & Schuffenhauer, 2009). Thus FTFC offers a better observed reward–geometry trade-off than these fine-tuned alternatives. Including sample-bank acquisition, FTFC takes about one hour per seed, versus 12 – 35 hours for the baselines.
These runs show that one fitting stage with fixed endpoint weights can improve a nonlinear tail objective, without repeated online reward optimization. These comparisons use the recorded method budgets, with three FTFC seeds and one run per baseline. Appendix B.2 gives the protocol, metric definitions, and timing scope; it also documents TFFT’s inactive tail-reward gradients in this reconstruction.
5.2 TEXT-TO-IMAGE GENERATION
We evaluate FTFC on the Stable Diffusion v1.5 benchmark of Wang et al. (2026). ImageReward is the sole fine-tuning reward: EXP-FT optimizes its expectation, while FDC and L-TFFT target lower-tail CVaR at with KL regularization. CLIP (Radford et al., 2021), HPSv2.1 (Wu et al., 2023), and DreamSim (Fu et al., 2023) are evaluation-only metrics. We generate ten images for each of 100 released prompts; Table 2 reports the results, and Appendix B.4 gives settings, metric definitions, and uncertainty estimates.
Table 2: Stable Diffusion v1.5 image generation. Evaluation over 1,000 images. Values are mean standard error across five seeds; bold denotes the best observed mean.
| Method | ImageReward | Alignment | Diversity | Train | ||
|---|---|---|---|---|---|---|
| Mean ↑ | L-CVaR ↑ | CLIP ↑ | HPSv2.1 ↑ | DreamSim var. ↑ | days ↓ | |
| Pretrained | ||||||
| EXP-FT | ||||||
| FDC | ||||||
| L-TFFT | ||||||
| FTFC | ||||||
Training time is in A100 GPU-days; evaluation details are given in Appendix B.4.
Reward improvement without diversity collapse. FTFC raises mean and lower-tail ImageReward while keeping DreamSim variance at the pretrained level; all fine-tuned baselines reduce it. Thus, the gain is not explained by concentrating probability on a narrow set of high-reward outputs. FTFC instead selects and fits a fixed redistribution of pretrained mass. EXP-FT and L-TFFT improve reward with a larger diversity shift, whereas FTFC obtains this trade-off in one frozen-weight fitting stage.
Qualitative comparison. Figure 3 shows the lowest-, median-, and highest-reward samples for the prompt footage of an astronaut in a tropical beach. Fine-tuning improves the worst samples but can alter the output distribution: L-TFFT, for example, favors saturated, fantastical skies despite high ImageReward. FTFC improves low-reward samples while retaining greater visual variation, consistent with its DreamSim diversity. Appendix B.4 provides details.
5.3 MOLECULAR DESIGN ON GEOM-DRUGS
We evaluate FlowMol3 (Dunn & Koes, 2025) on GEOM-Drugs (Axelrod & Gómez-Bombarelli, 2022), independently reconstructing the energy-guided setting of Wang et al. (2026). FDC, R-TFFT,
Pretrained

Lowest: -1.34
Rank 5: 1.76
FDC
Highest: 1.96
EXP-FT
Lowest: 1.81
Rank 5: 1.93
L-TFFT
Highest: 1.96

Lowest: -0.76
Rank 5: 1.85
Highest: 1.96
Lowest: 1.78
Rank 5: 1.95
Highest: 1.97
FTFC (ours)

Lowest: 1.85
Rank 5: 1.89
Highest: 1.98
Figure 3: Qualitative Stable Diffusion v1.5 comparison. The prompt is footage of an astronaut in a tropical beach. Each method panel shows ranks 1 (lowest), 5, and 10 (highest), corresponding to ImageReward score. See Section 5.2.
and FTFC target the upper of negative GFN1-xTB rewards; EXP-FT uses AM to maximize expected reward. All methods share the backbone, reward oracle, and three-seed evaluation in Table 3. Preserving molecular quality during adaptation. FTFC has the highest observed graph validity and topology reward, with energy rewards near pretrained and above EXP-FT and R-TFFT. FDC attains higher mean and tail energy rewards but lowers topology reward through more protocol failures and greater relaxation strain, showing that higher energy reward can accompany worse geometry. FTFC avoids the larger degradation of the fine-tuned baselines; its small edge over pretrained is not statistically established. Figure 5 shows one threshold-selected molecular panel, with further examples and protocol details in Appendix B.3.1.
Table 3: GEOM-Drugs / FlowMol3 molecular design. Evaluation over three seeds and 2,000 molecules per seed. Bold denotes the best observed mean.
| Method | Mean | R-CVaR0.9 ↑ | Valid.(%) ↑ | SA↓ | Topology |
|---|---|---|---|---|---|
| Pretrained | 65.9 ±0.1 | 94.9 ±0.2 | 99.8 ±0.0 | 7.5 ±0.01 | 0.95 ±0.0 |
| EXP-FT | 67.9 ±0.8 | 94.7 ±1.5 | 99.8 ±0.2 | 7.3 ±0.03 | 0.93 ±0.0 |
| FDC | 69.2 ±2.4 | 97.9 ±1.9 | 99.6 ±0.2 | 7.2 ±0.01 | 0.93 ±0.0 |
| R-TFFT | 70.6 ±0.8 | 90.8 ±0.9 | 99.8 ±0.2 | 7.3 ±0.03 | 0.93 ±0.0 |
| FTFC | 75.3 ±0.2 | 95.0 ±0.3 | 99.9 ±0.1 | 7.1 ±0.01 | 0.97 ±0.0 |
Mean ± standard deviation over three seeds. More details in Appendix B.3.
Ablating the -divergence penalty. We vary only the -divergence used to regularize FTFC molecular target Eq. (3) and Eq.(9), while keeping the utility, sample bank, and generator-fitting procedure fixed. Table 4 reports mean reward, upper-tail CVaR, and topology . Mean reward captures typical energetic quality, while upper-tail CVaR asks whether the method still places mass on the rare, especially favorable molecules that matter in screening. Topology reward is a necessary complement: a high-reward conformation is practically useful only when its bonding pattern and relaxed geometry remain sound.
Table 4: Ablation of the -divergence penalty in FTFC on GEOM-Drugs. Values are mean standard deviation over three seeds.
| f penalty | Mean reward ↑ | Upper-tail CVaR ↑ | Topology |
|---|---|---|---|
| KL | 75.3 ±0.2 | 95.0 ±0.1 | 0.97 ±0.0 |
| Half-Pearson | 71.4 ±0.4 | 94.9 ±0.1 | 0.95 ±0.0 |
| Reverse KL | 68.0 ±0.4 | 93.8 ±0.1 | 0.95 ±0.0 |
| Cressie-Read-3 | 73.2 ±0.7 | 96.3 ±0.1 | 0.96 ±0.0 |
| Squared Hellinger | 69.0 ±0.2 | 95.1 ±0.3 | 0.95 ±0.0 |
Table 4 shows that the choice of -divergence has its clearest effect on the upper tail. Cressie-Read-3 achieves the strongest upper-tail CVaR, followed by squared Hellinger and KL, while Half-Pearson and Reverse KL trail behind. Thus, when the objective is to enrich the pool of especially favorable molecules, Cressie-Read-3 is the preferred choice: it combines the best tail score with a competitive mean reward and topology validity. KL instead gives the highest mean reward and topology validity, but its upper-tail CVaR is lower than Cressie-Read-3. Reverse KL is weakest on both mean reward and upper-tail CVaR, while Half-Pearson and squared Hellinger remain close to KL in the tail. Overall, the results show that the -divergence is a meaningful control knob for prioritizing elite-molecule quality: Cressie-Read-3 favors the upper tail, whereas KL favors average reward and validity. The appendix gives the divergence-specific weight maps and their connection to the FTFC dual.
Mean reward

Figure 4: Reward comparison for the -divergence ablation on GEOM-Drugs. Dashed markers denote the baseline scores.

Figure 5: Molecular examples with one threshold-selected panel. FTFC Draw 2 is the first new sample with measured reward ; the other panels show unselected draws. This selection is illustrative and does not establish comparative performance. Labels give the measured, unscaled GFN1 reward . Appendix B.3.1 specifies the protocol and number of candidates.
Molecular fitting in FTFC. FTFC samples complete molecules at their target masses, preserving coordinates, atom types, formal charges, and bonds. FlowMol3 retains its native time and modality weights, categorical masks, fake-atom handling, and stochastic self-conditioning; fresh-prior fitting uses the native objective without reward-gradient or validity losses. Thus frozen endpoint weights define the target without changing the per-molecule weighting.
6 CONCLUSION & LIMITATIONS
We introduced Fenchel Tilt Flow Control (FTFC), a distribution-correction approach to utility-based generative fine-tuning. The key idea is to separate which distribution to generate from how to generate it: FTFC first optimizes normalized density-ratio weights defining the target distribution, then freezes them and fits the generator with its native denoising or flow-matching objective. This enables nonlinear utilities and general f-divergence penalties without repeated reward optimization during generator training. Across image and molecular generation tasks, FTFC achieves strong performance with substantially lower training time.
FTFC remains limited by the coverage of the pretrained distribution and its assumptions on finite sample bank. Moreover, the theoretical target-optimization guarantees do not account for finite-bank estimation or imperfect generator fitting, and the general dual requires suitable concavity and regularity conditions. Extending FTFC beyond fixed sample banks and to broader nonconcave utilities are promising directions.
REPRODUCIBILITY STATEMENT
The Appendix contains the details required to reproduce our results, including dataset and checkpoint information, preprocessing, evaluation protocols, model and optimizer configurations, all hyperparameters, training budgets, random seeds, and metric definitions. It also gives the relevant derivations, background, details on baselines, and implementation-specific settings used in the experiments.
ETHICS STATEMENT
This work uses publicly available datasets and pretrained models and does not involve human subjects, personal data, or human-subject experiments. The method is intended for research on generative modeling.
AI USE STATEMENT
AI tools were used only to polish the manuscript text and improve grammar and readability. All technical content, experiments, and final wording were reviewed and verified by the authors.
REFERENCES
Simon Axelrod and Rafael Gómez-Bombarelli. GEOM, energy-annotated molecular conformations for property prediction and molecular generation. Scientific Data, 9:185, 2022. doi: 10.1038/s41597-022-01288-4.
Stephen Boyd and Lieven Vandenberghe. Convex Optimization. Cambridge University Press, 2004. URL https://stanford.edu/~boyd/cvxbook/.
Cheng Chi, Siyuan Feng, Yilun Du, Zhenjia Xu, Eric Cousineau, Benjamin Burchfiel, and Shuran Song. Diffusion policy: Visuomotor policy learning via action diffusion. In Proceedings of Robotics: Science and Systems, 2023. doi: 10.15607/RSS.2023.XIX.026. URL https://www.roboticsproceedings.org/rss19/p026.html.
Riccardo De Santi, Marin Vlastelica, Ya-Ping Hsieh, Zebang Shen, Niao He, and Andreas Krause. Flow density control: Generative optimization beyond entropy-regularized fine-tuning. Advances in Neural Information Processing Systems (NeurIPS), 2025. URL https://arxiv.org/abs/2511.22640.
Carles Domingo i Enrich, Michal Drozdzal, Brian Karrer, and Ricky TQ Chen. Adjoint matching: Fine-tuning flow and diffusion generative models with memoryless stochastic optimal control. In International Conference on Learning Representations, volume 2025, pp. 53791–53846, 2025.
Ian Dunn and David R. Koes. Mixed continuous and categorical flow matching for 3D de novo molecule generation. arXiv preprint arXiv:2404.19739, 2024. URL https://arxiv.org/abs/2404.19739.
Ian Dunn and David R. Koes. FlowMol3: Flow matching for 3D de novo small-molecule generation. arXiv preprint arXiv:2508.12629, 2025. URL https://arxiv.org/abs/2508.12629.
Peter Ertl and Ansgar Schuffenhauer. Estimation of synthetic accessibility score of drug-like molecules based on molecular complexity and fragment contributions. Journal of Cheminformatics, 1:8, 2009. doi: 10.1186/1758-2946-1-8.
Patrick Esser, Sumith Kulal, Andreas Blattmann, Rahim Entezari, Jonas Müller, Harry Saini, Yam Levi, Dominik Lorenz, Axel Sauer, Frederic Boesel, Dustin Podell, Tim Dockhorn, Zion English, and Robin Rombach. Scaling rectified flow transformers for high-resolution image synthesis. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 12606–12633. PMLR, 2024. URL https://proceedings.mlr.press/v235/esser24a.html.
Jiajun Fan, Shuaike Shen, Chaoran Cheng, Yuxin Chen, Chumeng Liang, and Ge Liu. Online reward-weighted fine-tuning of flow matching with Wasserstein regularization. arXiv preprint arXiv:2502.06061, 2025. URL https://arxiv.org/abs/2502.06061.
Ruiqi Feng, Chenglei Yu, Wenhao Deng, Peiyan Hu, and Tailin Wu. On the guidance of flow matching. In Proceedings of the International Conference on Machine Learning, 2025. URL https://arxiv.org/abs/2502.02150.
Marvin Friede, Christian Hölzer, Sebastian Ehlert, and Stefan Grimme. dxtb—an efficient and fully differentiable framework for extended tight-binding. The Journal of Chemical Physics, 161(6): 062501, 2024. doi: 10.1063/5.0216715.
Stephanie Fu, Netanel Tamir, Shobhita Sundaram, Lucy Chai, Richard Zhang, Tali Dekel, and Phillip Isola. DreamSim: Learning new dimensions of human visual similarity using synthetic data. Advances in Neural Information Processing Systems, 36, 2023. URL https://arxiv.org/abs/2306.09344.
Takao Kotani. Atomic design transformer: Scaffold-conditioned 3d molecule generation via xTB-reward reinforcement learning. arXiv preprint arXiv:2607.15918v1, 2026. URL https://arxiv.org/abs/2607.15918v1.
Jongmin Lee, Wonseok Jeon, Byungjun Lee, Joelle Pineau, and Kee-Eung Kim. OptiDICE: Offline policy optimization via stationary distribution correction estimation. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pp. 6120–6130. PMLR, 2021. URL https://proceedings.mlr.press/v139/lee21f.html.
Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matthew Le. Flow matching for generative modeling. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=PqvMRDCJT9t.
Yaron Lipman, Marton Havasi, Peter Holderrieth, Neta Shaul, Matt Le, Brian Karrer, Ricky T. Q. Chen, David Lopez-Paz, Heli Ben-Hamu, and Itai Gat. Flow matching guide and code, 2024. URL https://arxiv.org/abs/2412.06264.
Liyuan Mao, Haoran Xu, Xianyuan Zhan, Weinan Zhang, and Amy Zhang. Diffusion-DICE: In-sample diffusion guidance for offline reinforcement learning. In Advances in Neural Information Processing Systems, volume 37, 2024. URL https://proceedings.neurips.cc/paper_files/paper/2024/file/b2fea79b1137d917e8b7cce9434ab5fa-Paper-Conference.pdf.
Ofir Nachum, Yinlam Chow, Bo Dai, and Lihong Li. DualDICE: Behavior-agnostic estimation of discounted stationary distribution corrections. In Advances in Neural Information Processing Systems, volume 32, 2019. URL https://arxiv.org/abs/1906.04733.
Peter Potaptchik, Cheuk-Kit Lee, and Michael S. Albergo. Tilt matching for scalable sampling and fine-tuning. arXiv preprint arXiv:2512.21829, 2025. URL https://arxiv.org/abs/2512.21829.
Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pp. 8748–8763. PMLR, 2021. URL https://proceedings.mlr.press/v139/radford21a.html.
Raghunathan Ramakrishnan, Pavlo O. Dral, Matthias Rupp, and O. Anatole von Lilienfeld. Quantum chemistry structures and properties of 134 kilo molecules. Scientific Data, 1:140022, 2014. doi:10.1038/sdata.2014.22. URL https://www.nature.com/articles/sdata201422.
R. Tyrrell Rockafellar. Convex Analysis. Princeton University Press, 1970. doi: 10.1515/9781400873173. URL https://www.degruyterbrill.com/document/doi/10.1515/9781400873173/html.
Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 10684–10695, 2022. URL https://openaccess.thecvf.com/content/CVPR2022/html/Rombach_High-Resolution_Image_Synthesis_With_Latent_Diffusion_Models_CVPR_2022_paper.html.
Arne Schneuing, Charles Harris, Yuanqi Du, Kieran Didi, Arian Jamasb, Ilia Igashov, Weitao Du, Carla Gomes, Tom L. Blundell, Pietro Liò, Max Welling, Michael Bronstein, and Bruno Correia. Structure-based drug design with equivariant diffusion models. Nature Computational Science, 4(12):899–909, 2024. doi: 10.1038/s43588-024-00737-x. URL https://doi.org/10.1038/s43588-024-00737-x.
Wenpin Tang and Fuzhong Zhou. Fine-tuning of diffusion models via stochastic control: entropy regularization and beyond. arXiv preprint arXiv:2403.06279, 2024. URL https://arxiv.org/abs/2403.06279.
Zifan Wang, Riccardo De Santi, Xiaoyu Mo, Michael M. Zavlanos, Andreas Krause, and Karl H. Johansson. Efficient tail-aware generative optimization via flow model fine-tuning. International Conference on Machine Learning (ICML), 2026. URL https://arxiv.org/abs/2602.16796.
Xiaoshi Wu, Yiming Hao, Keqiang Sun, Yixiong Chen, Feng Zhu, Rui Zhao, and Hongsheng Li. Human preference score v2: A solid benchmark for evaluating human preferences of text-to-image synthesis. arXiv preprint arXiv:2306.09341, 2023. URL https://arxiv.org/abs/2306.09341.
Jiazheng Xu, Xiao Liu, Yuchen Wu, Yuxuan Tong, Qinkai Li, Ming Ding, Jie Tang, and Yuxiao Dong. ImageReward: Learning and evaluating human preferences for text-to-image generation. arXiv preprint arXiv:2304.05977, 2023. URL https://arxiv.org/abs/2304.05977.
Tong Yang, Moonkyung Ryu, Chih-Wei Hsu, Guy Tennenholtz, Yuejie Chi, Craig Boutilier, and Bo Dai. Diffusion controller: Framework, algorithms and parameterization. arXiv preprint arXiv:2603.06981, 2026. URL https://arxiv.org/abs/2603.06981.
Shiyuan Zhang, Weitong Zhang, and Quanquan Gu. Energy-weighted flow matching for offline reinforcement learning. In International Conference on Learning Representations, 2025. URL https://arxiv.org/abs/2503.04975.
A ADDITIONAL BACKGROUND DERIVATIONS
This appendix derives the utility dual, its finite-bank form, and the transfer from endpoint weights to a generative model.
A.1 UTILITY DUALITY AND WEIGHT RECOVERY
From the original objective to the dual bound. Let with density ratio , , and assume the displayed terms are finite. Change of measure and the definition of the -divergence give, respectively,
The supremum defining includes the choice , so
Substituting into the original objective (2) yields
Next, introduce a scalar multiplier for normalization. Since , adding leaves the bound unchanged:
For fixed and , maximize the integrand over a nonnegative scalar weight at each . Factoring out gives
The value at cannot exceed this supremum. Taking expectation under therefore yields
For proper closed convex , equality in the pointwise bound holds when ; imposing gives the response in (7). The bound holds for every finite ; equality of optimized primal and dual requires the regularity conditions below.
For the exact population envelope in (6), use the pairing and a proper, concave, norm-upper-semicontinuous extension of ; concave biconjugacy then applies.
Response to a fixed reward. Under strong duality for normalization, the optimized response value is
(15)
Integrated Fenchel equality recovers the normalized weights in (7). Write . For the strictly convex generators in Table 5, a positive maximizer of satisfies . Inverting on its range gives the interior response; the table also accounts for zero weights and the admissible domain of .
Table 5: Divergence generators, derivatives for , and scalar weight responses , where and .
| Divergence | Domain of | |||
|---|---|---|---|---|
| KL | ||||
| Half-Pearson | ||||
| Reverse KL |
Half-Pearson permits when . Reverse KL has and requires for a finite maximizing weight. In every row, is chosen so that .
For KL with finite , gives . Normalization gives , hence
(16)
Taking yields (5).
Proof of Theorem 1. Gap identity. Put . Since ,
The first term is the envelope gap and the second is the Fenchel–Young gap. Both vanish exactly when the envelope is tight and almost surely, proving optimality and recovering the weights by conjugacy.
Finite-bank attainment. Let , , and . Continuity on the compact simplex gives a maximizer of ; strict convexity of makes it unique. Write . If , this maximizer is interior. Indeed, for ,
if any coordinate of is zero, contradicting optimality.
When is finite, extend below zero by its tangent at zero. In the steep case, extend it below a positive ratio smaller than all . This yields a finite differentiable convex penalty agreeing with near . The convex subgradient sum rule gives
where for positive ratios and at zero. Thus, with ,
Both residuals vanish, establishing dual attainment and strong duality. The argument also holds on a product of scaled simplices for fixed condition masses. For a barrier such as reverse KL, compactness, lower semicontinuity, and give an interior optimum; the same local argument applies.
KL specialization. With , , and normalized ,
Consequently,
(17)
At an optimal supporting reward, ; hence for any finite candidate dual value D,
Sufficient population conditions for the structured dual. Let be bounded, finite continuous convex, and let satisfy the finite-bank assumptions of Theorem 1, with . Then (9) has zero duality gap and attained primal and dual optima; the optimal ratio is unique. To see this, define
The integral functional is closed convex, is continuous, and . Continuity of at qualifies Fenchel–Rockafellar duality (Rockafellar, 1970):
The value is finite because rewards and attainable moments are bounded and . A minimizing sequence has bounded ; superlinearity gives uniform integrability and weak compactness in . Weak lower semicontinuity then gives primal attainment, and strict convexity gives uniqueness.
For any bounded score , the conjugate response is continuous, nondecreasing, with and . Consequently
At this root, integrated Fenchel equality proves (15) and scalar dual attainment. Let denote the objective in (9). For any feasible w and finite dual value, expansion gives
(18)
Thus the two optimality conditions are the normalized conjugate response and . For a proper closed convex extended-valued , it suffices that it be continuous at an attainable finite-penalty moment, relative to the moment affine space. Coverage entropy qualifies after removing feature coordinates that vanish -almost surely. These sufficient conditions cover KL and half-Pearson; unbounded rewards and population reverse KL need separate integrability and attainment conditions. The finite-bank results do not require bounded population rewards.
Table 6: Utility functionals and their FTFC calibration. The first five rows use the Moment Dual (9); the last two calibrate a scalar tail threshold.
| Utility | Representation | Reward / calibration |
|---|---|---|
| Expected reward | ; no features | |
| Moment matching | : chosen descriptors | g^\star=r-z^\star^\top \phi |
| Coverage entropy | : region memberships | g^\star=r-z^\star^\top \phi |
| D-optimal design | ||
| Constraint barrier | ||
| Lower-tail CVaR | Maximize ) over observed reward knots. | |
| Upper-tail CVaR | Minimize over the scalar threshold. |
and with . The tail mass is ; is the optimized fixed-reward value. The barrier uses the maximization convention, with . Coverage entropy concerns fixed memberships, not the full continuous density.
Examples of fixed features. Expected reward has and , so no feature vector is needed. For nonlinear utilities, examples with are:
| Utility | Features | Penalty |
|---|---|---|
| Coverage entropy | Region memberships | |
| Moment matching | Chosen descriptors | |
| D-optimal design () |
For coverage, and , so is a region's aggregate mass. The rings use 16 soft radial-basis memberships (Appendix C.1); marginal costs discourage overrepresented regions. This is region entropy, not differential entropy of the full density. Moment matching instead specifies desired descriptor means . The conjugates are given below. For experimental design, is a fixed experiment feature vector and . The utility is , with ; matrix inner products replace (Boyd & Vandenberghe, 2004, Section 7.5).
For and a desired moment , the structured dual uses
At an optimum, . For the entropy penalty, marginal costs are defined up to a common additive constant on the simplex. Under KL, eliminating gives
At an optimum, the moment implied by the conjugate equals the weighted feature mean.
Utility examples. Table 6 writes the utility families in FTFC notation, using examples from De Santi et al. (2025, Table 1). It distinguishes the convex Moment Dual (9), scalar outer optimization, and objectives with full-density dependence. The statements concern endpoint calibration; native fitting and bank generalization remain separate.
Entropy and coverage. For a finite outcome space, gives , so represents exactly with . Region indicators instead give the entropy of region masses. In a continuous space, depends on the entire density relative to the reference measure ; its marginal reward is where defined. The functional dual can apply under its regularity assumptions, but fixed region features do not exactly represent this differential entropy or supply its density values.
Experimental design. For any concave matrix criterion , choose and , with matrix inner products in place of dot products. Then and when differentiable. The choices and yield and , respectively. The criterion is also concave and uses a supergradient at repeated eigenvalues. We use to ensure the domain of the log-determinant and inverse criteria; other fixed offsets require checking that domain.
Constraint penalties and barrier signs. Any convex penalty of the mean cost, , fits the moment class. For the upper bound , the maximization barrier is : is convex, and the marginal cost grows as the budget is approached. This convention differs from the expression printed in FDC's table. The latter would require , which is concave, so it is not an instance of the convex Moment Dual.
Mean-variance reward. For , gives . This representation is exact, but is not convex. The marginal reward is ; Equation (9) does not provide a convex calibration for it. There is instead a scalar outer reduction:
Indeed, ; the maximizing center is , and the two suprema commute. On a finite bank, can be restricted to the observed reward range. The outer objective need not be concave, and the CVaR reward-knot rule does not apply.
Conditional mode objectives. Let fixed condition masses be and . The negative-sign expression in FDC's table is . On finite outcome cells , use the joint law and features . Writing and , its discrete version has and the convex penalty
Convexity follows from joint convexity of relative entropy with fixed ; normalization uses one multiplier per condition. For continuous conditionals, the exact functional retains their full density ratios. The sign matters: maximizing the negative expression reduces conditional separation, whereas maximizing positive mutual information encourages distinct modes and reverses the convex penalty's sign. The latter is not covered by the convex Moment Dual.
Tail objectives. The lower- and upper-tail rows use the exact threshold representations in (23), including fractional mass at atoms. They require no moment-feature vector. Their outer optimization directions differ: lower CVaR maximizes its threshold objective and upper CVaR minimizes it, as derived in (24). Proposition 3 supplies the exact finite-bank search for the lower tail.
Divergence choices in the molecular ablation. The -divergence controls how FTFC converts the calibrated supporting reward into density-ratio weights. Writing , FTFC's general dual gives , where the nonnegative conjugate enforces and the scalar normalizes the target. The ablation in Table 4 therefore changes the shape of this reward-to-weight map while leaving the utility, sample bank, and generator-fitting stage unchanged.
For KL, , so and FTFC recovers the familiar exponential tilt . Reverse KL, , instead gives on and . Squared Hellinger, , has on the same domain and yields . Thus Reverse KL and squared Hellinger both impose a finite-domain barrier: their dual arguments must remain below one, with the normalization multiplier selecting an admissible target.
The Half-Pearson choice uses . Its unconstrained map is affine, ; the nonnegative conjugate used by FTFC truncates this to . Cressie–Read-3 uses , giving . These two choices replace KL's exponential response with polynomial responses and can set sufficiently unfavorable samples to zero weight. All five penalties are convex, normalized by , and fit the same Fenchel calibration and frozen-weight fitting result; the ablation tests the resulting target redistribution rather than a change in the generator objective.
A.2 FINITE-BANK OPTIMIZATION
Let be reference masses on cached endpoints , . For condition groups , keep their reference probabilities fixed. Target masses and ratios satisfy
(19)
Without conditioning, there is one group, so is the simplex. The group multipliers enter the Lagrangian as . Maximizing each ratio independently yields
(20)
Choose so . Theorem 1 applies with sums in place of expectations. For , substitute and the envelope offset . For proper closed convex , the finite-dimensional qualification is with ; the preceding Fenchel argument then applies.
Solving for and . For an unconditional bank, cache , rewards , and features , with reference masses . Replace in the middle line of (9) by to obtain . For each , choose to normalize the conjugate response:
Under the response assumptions in Appendix A.1, this is a monotone scalar equation; for KL, log-sum-exp gives the solution. Minimize the resulting convex objective over z, whose gradient, when defined, is
Calibration matches the statistics implied by z to those induced by its weights. It uses cached endpoints, without updating the generator. With fixed groups, use one normalizer per group as in (20); the moment gradient is unchanged.
For KL, eliminates the normalizers:
(21)
The gradient, when defined, is . The moment and entropy conjugates are in Appendix A.1. A global utility shares its z or tail threshold across groups; separate conditional utilities are different objectives.
Tail rewards in the image and molecule benchmarks. CVaR uses an exact scalar-threshold representation instead of fixed moment features. For tail mass , its lower- and upper-tail pseudo-rewards are
The threshold c is calibrated using (24): upper-CVaR minimizes its threshold objective; lower-CVaR maximizes it and is not covered by the concave utility theorem. On a finite bank, the latter maximum is attained at an observed reward (Appendix A.2). These objectives recover TFFT under KL (Wang et al., 2026). In Stable Diffusion, calibration uses ImageReward, , and lower-tail mass 0.2. In QM9, it uses , , and upper-tail mass 0.002. Both optimize a scalar threshold rather than moment features. Prompt and atom-count probabilities remain fixed, respectively: for group , one normalizer enforces , while the threshold is shared across groups.
CVaR calibration. For tail mass , the lower and upper reward averages are
These definitions count fractional mass at threshold atoms. Their threshold-dependent rewards are and . Upper-CVaR is concave in the law; lower-CVaR is convex. Using the fixed-reward response (15) gives
(24)
For the upper tail, restrict c to the reward range and apply convex–concave minimax under the finite-bank assumptions. For the lower tail, commute two suprema. With KL, (16) recovers TFFT's threshold objectives (Wang et al., 2026). The lower-tail objective need not be concave; its exact finite-bank solution follows instead from piecewise convexity.
Proposition 3 (Lower-CVaR requires only reward knots). Let be a nonempty compact subset of the probability simplex, lower semicontinuous, bounded below and finite somewhere on , and finite. For and ,
An exact response at a maximizing knot attains the left side.
Proof. Commuting the two suprema gives . The response value is convex and . Hence
The middle claim follows because each hinge is affine between knots. The outer pieces increase and decrease, respectively, so a knot maximizes H. Compactness and lower semicontinuity give an attained response there; it maximizes the joint objective over .
For unconditional KL and sorted rewards , each knot normalizer is
Sorting plus log-domain prefix/suffix sums costs . For general , the same knot search is exact but requires its own normalization solves. At , solve the unregularized mass problem; the scaled conjugate formulas do not apply.
Optional score optimization. If no compact dual is available, a neural score model can optimize the full-bank objective through normalized scores. For positive masses, and , differentiation gives
(26)
Indeed, within a group, ; different groups have zero cross-derivatives. Chunking this sum with fixed full-bank coefficients preserves the gradient. For a concave utility and a supergradient at , the envelope is tight there. Theorem 1 therefore supplies a bound on target suboptimality; under KL it is . Here . At the bound is . For nonconcave utilities these tangent expressions do not imply global optimality.
Finite-bank approximation. The gap bounds optimization error for the discrete reference . It does not bound population or generator error. Conditioning a bank on reward eligibility replaces by ; changing deployment condition frequencies changes the joint law. Optimization accuracy alone therefore does not establish sample coverage or agreement with the population target. The eligibility rules and conditioning groups for each benchmark are given in Appendix B.
A.3 FROM ENDPOINT WEIGHTS TO A GENERATIVE MODEL
Corollary 4 (Optimality under exact target realization). Let be -optimal for the endpoint relaxation. Assume finite second moments of the endpoint and source, and an admissible exact target predictor, obtained by native regression or diffusion guidance as above. For flows, assume the ODE and continuity equation have matching unique marginals. For diffusion, assume a well-posed reverse process, initialized at the target's correct noisy law and integrated exactly. Then
Conditional regression identifies the target dynamics, and uniqueness identifies their endpoint law. The policy optimum is bounded by the endpoint relaxation; finite-bank estimation, imperfect fitting, and numerical sampling remain separate errors.
Proof of Theorem 2. Fix and . Write , , and . Assume finite conditional moments and on the relevant support. For any test function making the following expectations finite, conditioning under the reference joint law gives
Dividing the second conditional density by the first proves (12); logarithmic differentiation of proves (13). For the Gaussian kernel,
and likewise under , proving the noise-predictor correction. For , conditioning the in-sample loss gives
Since exactly when , the unique minimizer is almost everywhere. Its smooth representative has the score gradient in (14). Taking proves the claim. This is the function-space argument of Mao et al. (2024, Theorem 1); neither neural optimization convergence nor score-gradient accuracy follows from a small loss alone.
Proof of Corollary 4. For , independent of , let and . Change of measure and regression orthogonality give
The cross term vanishes because . Since , a global minimizer equals under almost everywhere. For every smooth compactly supported ,
Thus solves the continuity equation for both and , with and . The assumed uniqueness and consistency with ODE transport imply . Since every admissible policy is feasible for the endpoint relaxation and is -optimal for that relaxation,
For diffusion, regression or Theorem 2 yields the exact target score. A well-posed reverse process, initialized at the target's correct noisy law and integrated exactly, then has endpoint and the same objective bound. If the terminal noising coefficient , this initial noisy law is the common Gaussian . Otherwise, replacing it by a Gaussian introduces an additional approximation. The guidance route also requires the exact reference score of the same noised used for calibration.
Fitting on a finite bank. For frozen bank masses, the training objective and its two equivalent sampling forms are, with and sampled as in (11),
(28)
Fresh native noise preserves the chosen source law. If is the original generation-path law with source , weighting its paths by instead gives source marginal , generally different from . If native preprocessing uses a noninvertible map , fitting targets ; any exact utility guarantee must use that same observable. The corollary concerns exact target predictors and exact sampling. Finite-bank estimation, restricted adapters, and time discretization remain separate errors.
Guidance for Gaussian flow interpolations. For , independent of , write and . For , Gaussian differentiation gives
Here plays the role of the diffusion noise scale . For a Gaussian flow interpolation, the correction is
For , on ; endpoint values require suitable limits. These identities assume finite conditional moments and differentiation under the integral. The reference predictor must correspond to this same corruption or interpolation; arbitrary pretrained velocity fields cannot be corrected by this formula without that compatibility (Feng et al., 2025; Zhang et al., 2025).
A.4 REFERENCE-PRESERVING REGRESSION BY CHANGING THE TRAINING LABEL
Scope. We analyze an optional fitting-loss modification that leaves Fenchel calibration unchanged. It accounts for the gap between the pretrained predictor and the conditional mean of generated endpoints under, e.g., classifier-free guidance. The modification is not used in the benchmarks; the derivation alone does not imply better generation quality.
Retain the native pair from (11), a frozen normalized ratio , and a frozen predictor . Write and let . All expectations below use the same fresh corruption or interpolation conditional on the endpoint, and have finite displayed second moments. Consider the centered quadratic risk
The quadratic coefficient is positive even where . If and pointwise, each example has zero parameter gradient; ordinary regression to fresh native labels need not have this property for an imperfect teacher.
Proposition 5 (An unweighted regression form). Define the endpoint mixture and corrected native label
Then the ordinary squared regression loss
has a finite constant independent of . No additional endpoint weight multiplies this loss. Let and . Its unrestricted conditional optimum is
(33)
Here means , also when . In particular, an exact reference teacher recovers the native predictor of , rather than of the unmixed target .
Proof. Expanding the square in (32) and using gives
The remaining terms are exactly . The teacher and calibrated ratios are held fixed when differentiating. Conditional regression gives . Since the conditional normalizer is ,
Adding proves the first identity; subtracting the mixture's conditional mean proves the second. ☐
Symmetric mixture. At , draw an endpoint from p or q with equal probability and use
For , the equality uses the limit . Only a bounded scalar modifies the native label; the ratio network is absent at inference. In general . The mixture strength is a parameter of the endpoint law being fitted, not just of its estimator. Shared conditioning-group masses are preserved, and any positive time weight may multiply both objectives without changing the argument. Posterior averaging removes component-label noise. One way to sample is to draw a component variable with probabilities and , then draw from or , respectively. Bayes' rule gives
The random label has conditional expectation given the endpoint and its fresh native randomness. For a fixed student and teacher, the squared-loss parameter gradient is affine in this label. Consequently its soft-label gradient is the conditional expectation of the random-component gradient. When these gradients have finite second moments, the law of total covariance gives
This Rao–Blackwell bound compares the two label estimators under the same mixture. It does not compare their variance with ordinary target resampling, reference sampling, or other importance proposals, and it does not imply identical Adam updates.
Error bound. Let and be the corresponding noisy or interpolated laws. Integrating (33) and using yields
For , the infimum over all square-integrable predictors, regression orthogonality and the triangle inequality give
For the symmetric choice the squared-error amplification bound is two. The bound does not estimate the actual teacher error. Even with an exact teacher and fit, the endpoint guarantee requires the assumptions of Corollary 4 for ; this construction is neither an exact realization of p nor a guarantee of improving the paper's utility.
A.5 A CENTERED REGRESSION ON THE REFERENCE SAMPLER'S TRANSITIONS
Scope. This optional realization uses saved transitions from the reference sampler instead of fresh endpoint corruption. Fenchel calibration is unchanged, and the approximate-teacher term of Appendix A.4 vanishes at the population level. It is not used in the benchmark tables; the identities alone do not imply better generation quality.
Utility and divergence are inputs to calibration. The endpoint target still solves in (3), under the conditions of Section 4. The construction below takes only its normalized nonnegative ratio as input; it does not assume expected reward or KL weights, so half-Pearson responses with zeros are allowed. The path KL is the Gaussian transition-fitting discrepancy, distinct from the endpoint -divergence. This backend is optional; the flow and denoising realizations in Section 4.5 remain available.
Fix a conditioning value and suppress it in the notation. Let Q be a Markov reference path law with transitions
Each innovation is independent of the preceding path. Write , where and , and for . The model retains 's initial law and transition covariance, and changes the transition mean to . The correction must not observe its current innovation. Assume that the displayed risks and relative entropies are finite.
Proposition 6 (Centering and a conditional mixture correction). The centered risk
satisfies
Define and . The unrestricted conditional minimizer is
where the second equality applies when . When , and .
Proof. The Gaussian likelihood ratio gives . Since is adapted, . Multiplying the likelihood ratio by and adding this zero-mean term proves (39). Conditional on , the part depending on is . Its positive curvature gives the unique minimizer. Bayes' rule gives when ; nonnegativity of gives when .
A correction weighted by the current state. The factor is the posterior probability of the target component in given , so the ideal correction shrinks toward the reference where target mass is small. This describes the conditional optimum, not a bound on neural predictions or transition displacement. The regression fits it directly and needs no estimate of at inference. For another interpretation, set , so by the Markov property. When differentiation under this Gaussian integral is justified,
The derivative is with respect to the transition mean m, not generally the state x; replacing it by a state gradient omits a Jacobian.
Sampling and deployment. Completing the square in (38) gives label and curvature . Sampling paths from and multiplying both terms by preserves the risk. For , the corrected curvature lies in and the signed linear coefficient in . These bounds do not imply lower neural-gradient variance. For a Gaussian diffusion step with classifier-free guidance , write
Then the reference positive prediction cancels:
Training uses a frozen reference positive prediction, but deployment needs only the frozen negative and learned positive branches. The branch count alone does not establish wall-time parity with ordinary guidance.
Calibrating the mixture for a general objective. Fitting after calibrating P changes the endpoint target. An alternative is to calibrate the desired mixture directly. Put and solve
Then , , and . Supplying this auxiliary ratio to (38) therefore projects toward the target calibrated for the specified and . This is the original endpoint objective with an explicit reference floor, not the unconstrained problem or a replacement of its divergence by KL. Fixed condition masses are preserved by the same affine transformation. For a utility admitting the supporting envelope from (6), replace in the dual by
The same Fenchel gap decomposition holds for feasible ; strong duality still requires the corresponding attainment and regularity assumptions. Where the differentiable strictly convex response is defined, it is , with solved inside the response to enforce normalization. Rescaling a non-KL response afterward is generally invalid. For lower-CVaR plus a linear utility, the finite-bank reward-knot argument remains valid because the reference floor and divergence penalty do not depend on the threshold. Arbitrary nonconcave utilities do not acquire a global guarantee from this change.
What the path projection does not guarantee. Even the unrestricted mean fit need not realize the terminal target. The tilt generally changes the source law to , whereas the model keeps . The KL chain rule therefore retains the source discrepancy for every . Furthermore, tilted conditional transitions need not be Gaussian with covariance ; matching their means leaves a projection error. Finite-bank ratios, sampled stored times, restricted neural predictors and changed model occupancy add further errors. Uniform time subsampling and coordinate averaging scale the population risk by fixed positive constants; arbitrary time weights do not preserve the path-KL identity. These limitations prevent substitution of this projection for the exact realization assumed by Corollary 4.
B EXPERIMENTAL DETAILS
B.1 TARGET CALIBRATION AND MODEL FITTING
FTFC assigns masses to cached pretrained samples and freezes them during fitting. Direct calibration and the normalized neural-score solver in Appendix A.2 use the same procedure.
Target calibration. Each endpoint stores a reward, utility features, and a conditioning group. Features are normalized on the training bank, while prompt or molecular-size probabilities are preserved. For concave utilities, the primal–dual gap bounds finite-bank optimization error; an independent rings solver gives a maximum gap below . Lower-CVaR targets use global search, since stationarity alone is insufficient. Held-out normalization, effective sample size, and maximum density ratios assess bank coverage but do not bound population or fitting error.
Constant adapter. For a frozen linear map , the adapter takes the form
Here U, V are low-rank projections and is a descriptor encoder. Initializing U = 0 recovers the pretrained predictor. The descriptor is constant, so each adapter represents one target distribution. We use AdamW with zero weight decay; ranks and update budgets are given below.
Molecular fitting. We sample complete molecules by their target masses, preserving coordinates, atom types, formal charges, and bonds. FlowMol 1 uses centered coordinates and argmax categorical labels with coordinate and cross-entropy losses. FlowMol3 retains its original time and modality weights, categorical masks, fake atoms, and stochastic self-conditioning. The loss is averaged per molecule, so size does not change its target weight. Fitting uses fresh priors and the native objective, without reward-gradient or validity losses. At generation time, atom counts follow the released training histogram; the distinction from a bank restricted to reward-eligible molecules is discussed in Appendix A.2.
Stable Diffusion fitting. We cache final latents and prompt embeddings and train with fresh diffusion noise and timesteps. For classifier-free guidance , the effective noise predictor is
The unconditional prediction is frozen. We train on cached latents with mean-squared error against the scheduler's noise target and the same guidance convention as sampling; latents are not decoded and re-encoded.
Pretrained molecular checkpoints. QM9 fine-tuning starts from the released FlowMol 1 weights (Dunn & Koes, 2024). GEOM-Drugs fine-tuning starts from the released FlowMol3 v3.0 weights (Dunn & Koes, 2025).
B.2 QM9 BENCHMARK PROTOCOL
Dataset and pretrained model. QM9 contains 133,885 organic molecules with at most nine heavy atoms from C, N, O, and F, plus explicit hydrogens (Ramakrishnan et al., 2014). All methods start from the released FlowMol 1 checkpoint (Dunn & Koes, 2024) (Appendix B), which jointly models coordinates, atom types, formal charges, and bonds. We retain its preprocessing, Gaussian priors, feature schedules, categorical decoding, and atom-count histogram; fine-tuning uses generated endpoints, not the dataset's DFT labels.
Energy reward. The reward is in Hartree, evaluated at the generated, unrelaxed coordinates with the predicted total charge. The differentiable dxtb oracle (Friede et al., 2024) supplies coordinate gradients; atom, charge, and bond labels are decoded by argmax. We use float32, implicit SCF differentiation, and tolerance . Failed calculations receive Ha; no draw is replaced, optimized, or fragment-pruned before evaluation.
Baseline training. AM (Domingo i Enrich et al., 2025) uses the mean-reward derivative scaled by , with , for 240 updates. FDC (De Santi et al., 2025) targets the upper superquantile at , with no fixed terminal KL penalty. Its proximal coefficient is distinct from FTFC's terminal KL coefficient. The update counts and FDC coefficients follow Appendix E.4 of De Santi et al. (2025); Table 7 gives the remaining settings of our reconstruction.
Table 7: Fixed QM9 baseline settings. FTFC settings are listed in Appendix B.2.1.
| Setting | AM | FDC |
|---|---|---|
| Objective | Mean reward, | Upper SQ, , |
| Optimizer | Adam | Adam |
| Adam moments / epsilon | ||
| Learning rate | ||
| Optimizer updates | ||
| Outer iterations | ||
| Proximal coefficient | — | |
| Trajectories per update | Up to 8 tail + 24 body | |
| Threshold bank per outer iteration | — | fresh samples |
| Candidate pool per inner update | — | fresh samples |
| Gradient-norm clipping | ||
| Trajectory discretization | steps | steps |
| Training sampler | Memoryless, terminal denoising | Memoryless, terminal denoising |
| Evaluated checkpoint | Final scheduled update | Final outer iteration |
Pretrained FlowMol QM9 weights: https://bits.csb.pitt.edu/files/FlowMol/trained_models_v02/qm9_gaussian/checkpoints/last.ckpt.
Pretrained FlowMol3 GEOM-Drugs weights: https://bits.csb.pitt.edu/files/FlowMol/trained_models_v3/flowmol3/checkpoints/last.ckpt.
At each outer iteration, FDC estimates the 0.998-quantile from 4,096 fresh samples and holds it fixed for two inner updates. Each inner update generates a separate pool of 4,096 trajectories and uniformly retains up to eight tail and 24 body examples. For a stratum with pool members and retained trajectories, each retained example has weight , where is the retained batch size. This corrects the batch mean for stratified sampling. Empty tail strata contribute no examples. The reference model and inner optimizer are updated and reset, respectively, at each outer iteration.
TFFT and tail-gradient availability. TFFT uses the AM solver for 240 updates, batch size 32, learning rate , and . Its threshold schedule is calibrated on 10,000 independent pretrained samples. The right-tail level rises from to 0.998 during the first 120 updates and then remains fixed. In the completed run, every positive- update had zero active tail-reward gradients; only the initial expected-reward update had an active signal. We report this checkpoint, which does not demonstrate sustained tail optimization.
B.2.1 FTFC CONFIGURATION
Each of three FTFC runs uses 4,096 pretrained endpoints and upper superquantile level . Calibration uses rewards and KL coefficient , equivalent to one Hartree in unscaled units. It preserves the atom-count marginal and solves for the shared threshold and group normalizers to a finite-bank primal–dual gap of .
With these masses fixed, we train rank-16 adapters for 80 AdamW updates: batch size 32, microbatch size 16, learning rate , gradient-norm clipping at 10, and float32 precision. Sampling endpoints according to their target masses implements the weighted objective; the loss is not weighted again. We retain the native coordinate and categorical losses described in Appendix B.1. Evaluation uses the final adapter weights, without EMA or checkpoint selection by test reward. The finite-bank certificate bounds target optimization error, not fitting error.
Sampling and repeated runs. Evaluation uses 250 explicit Euler steps on a uniform grid from 0.02 to 1, with 50,000 raw attempts per run in batches of 256. All methods share the evaluation atom-count list and random draws. The table reports three FTFC runs and one run each for pretrained, AM, FDC, and TFFT, using final scheduled checkpoints; additional AM runs share random streams and are not independent repetitions.
Training time. Table 1 reports wall-clock time per run on a shared RTX 4090 server, including method-specific sample acquisition, scoring, and fitting. AM and FDC take approximately 12.0 and 35.2 hours. FTFC takes 58.4 minutes on average: 3,462.0 seconds for bank acquisition, 0.3 seconds for calibration, and 40.5 seconds for fitting. The acquisition cost is charged even when the bank is reused. TFFT takes approximately 15 hours, including its 10,000-sample threshold calibration. Backbone pretraining, evaluation, and development runs are excluded. These figures compare the stated budgets under shared-server load, not time to a matched reward.
B.2.2 EVALUATION METRICS
Table 1 uses all raw attempts, including the failure penalty; all reported attempts have successful energy calculations. For ascending rewards , the exact empirical superquantile is
with the boundary term omitted when . At , the and upper-10% columns average the best 100 and 5,000 rewards, respectively.
Graph validity requires RDKit sanitization, a single connected component, and successful canonical-SMILES conversion. It is reported as a percentage of all attempts. Synthetic accessibility (SA) (Ertl & Schuffenhauer, 2009) is averaged over valid molecules with a successful score, after removing explicit hydrogens; lower is better. FTFC entries report the mean and sample standard deviation across three runs. Baseline entries are individual-run measurements.
Topology-based validity reward. We also evaluate , adapted from Kotani (2026, Eq. 13), using Eq. (49) and the GFN2-xTB protocol in Appendix B.3.2. Generated hydrogens and formal charges are retained. For molecules without hydrogens, a single-point energy replaces the hydrogen-relaxation reference. Every raw draw contributes, with zero assigned to structural or numerical failures; RDKit is not a prefilter. This metric is evaluation-only and differs from both graph validity and the GFN1 training reward.
The topology evaluation regenerates the original sampling populations from the final checkpoints. Canonical SMILES, graph-validity flags, and available geometric checks agree with the original evaluations, but missing coordinates prevent exact identity checks for every geometry.
Reproduction scope. All comparisons use this protocol and a shared checkpoint. FDC's public description omits some molecular sampling conventions, so our reconstruction has not been verified against the authors' implementation or published results.
B.3 GEOM-DRUGS BENCHMARK PROTOCOL
Pretrained model. We reconstruct the molecular task of Wang et al. (2026) using the released Flow-Mol3 v3.0 checkpoint (Dunn & Koes, 2025), pretrained on GEOM-Drugs with explicit hydrogens and Kekulized bonds (Axelrod & Gómez-Bombarelli, 2022). All methods retain its atom-count histogram, coordinate dynamics, categorical continuous-time Markov chains (CTMCs), self-conditioning, and fake-atom handling. The results are computed with this shared implementation rather than taken from published tables.
Energy reward. Tables report in atomic units; training uses and , following Wang et al. (2026). We compute energies and coordinate derivatives with dxtb (Friede et al., 2024) in float64, using the predicted total formal charge and excluding fake atoms. Calculations allow 300 SCF iterations at tolerance and one retry. Invalid molecules or failed calculations contribute no reward derivative and are ineligible for threshold estimation. They remain in the evaluation population. We apply neither energy clipping nor terminal-gradient clipping.
Baseline training. Table 8 summarizes the settings. EXP-FT uses Adjoint Matching (Domingo i Enrich et al., 2025) with expected reward; R-TFFT uses the same solver with a hinge reward. FDC (De Santi et al., 2025) uses three successive 120-update stages and two additional threshold-sampling stages. Evaluation uses the final scheduled checkpoints. The methods therefore differ in total compute.
Table 8: Fixed molecular benchmark settings. Method-specific choices and evaluation definitions are detailed in Appendix B.3.
| Setting | Value |
|---|---|
| Runs per method | 3 |
| Reward / KL coefficient | |
| Target right-tail level | |
| Optimizer | AdamW; learning rate ; weight decay 0 |
| Updates | EXP-FT / R-TFFT: 120; FDC: |
| Effective batch / microbatch | 8 / at most 2 molecules |
| Training time grid | 100 uniform transitions on |
| Adjoint interval / loss records | ; 10 selected records |
| Gradient clipping | None (optimizer and terminal reward gradients) |
| R-TFFT curriculum | |
| Shared prior corpus | 10,000 draws; 9,988 eligible |
| Moving FDC corpora | 10,000 draws before each of stages 2 and 3 |
| FDC stage coefficients / score time | |
| Evaluation per run | 2,000 draws; batch size 16 |
| Evaluation / corpus sampler | Native Euler/CTMC; 250 time-grid points |
| CTMC sampling parameters | Stochasticity 30; high-confidence threshold 0.9 |
| Energy precision / SCF | Float64; 300 iterations; tolerance |
Training uses 100 uniform memoryless transitions with coordinate noise centered per molecule. The adjoint runs over ; each loss uses the five records nearest the endpoint and five sampled from the remaining eligible records. Self-conditioning contexts are detached during the adjoint. EXP-FT and R-TFFT use residual weights (3, 0.4, 1, 2) for coordinates, atom types, charges, and bonds; FDC uses only the coordinate residual (weight 1).
FDC thresholds and regularization. The first stage uses the empirical 0.9-quantile of the shared pretrained corpus; each later stage refreshes it from 10,000 samples of the preceding model. With , the reward derivative is the hinge gradient scaled by , and the density regularizer is times the estimated current-to-pretrained coordinate-score difference. Scores use endpoint predictions at without self-conditioning. The pretrained anchor is fixed;
each stage freezes its reference model and carries over AdamW moments. We have not verified these settings against the authors' molecular implementation.
R-TFFT thresholds. The shared corpus contains 10,000 pretrained molecules; have valid graphs and converged energies. The curriculum is for . For , solve
Use bounded scalar minimization with tolerance on , where . At , recovers the expected-reward derivative. The training pseudo-reward is .
Tail-gradient availability. For positive curriculum values, thresholds range from 176.8775 to 179.0905, but only one eligible pretrained reward exceeds them. No eligible training molecule exceeds its threshold in any R-TFFT run, so positive- updates receive no active hinge-reward gradient. The initial expected-reward update and later reference matching can still change the model. We report all three runs; this is a limitation of our finite-sample reconstruction, not of TFFT in general.
B.3.1 EVALUATION SAMPLES AND METRICS
Each method is evaluated in three runs with 2,000 molecules per run, using the native Euler/CTMC sampler with 250 time-grid points and batch size 16. Evaluation uses common random draws across methods. Failed or repeated molecules are retained without replacement or deduplication.
Energy and tail reward. Mean reward averages the unscaled negative GFN1 energy over molecules that pass RDKit sanitization and have a finite, converged energy. For the eligible rewards in run s, ordered increasingly, the right-tail statistic is
This averages the best-scoring tenth, with equal weights and no fractional boundary correction. Both energy metrics condition on successful scoring. Since they use total energies of molecules with varying size and composition, higher reward alone does not establish better geometry or synthesizability.
Graph validity and synthetic accessibility. Validity is the percentage of all draws passing RDKit sanitization. It does not require connectivity, energy convergence, or a stable three-dimensional geometry. SA (Ertl & Schuffenhauer, 2009) is averaged over sanitized molecules with finite scores, regardless of energy convergence; lower is better. The evaluation retains explicit hydrogens when computing SA. This differs from the QM9 convention and must be accounted for when comparing SA across benchmarks.
Aggregation. Tables report the mean and sample standard deviation across three runs, computed from each run's metric. Validity uncertainty is in percentage points. The runs share one pretrained corpus, so this variation does not include uncertainty from acquiring a new corpus. Energy and SA use the eligible populations above; the topology reward below uses all generated molecules.
Qualitative examples. Figure 5 shows four molecules per method. The baselines use the first four draws from a separate sampling run. FTFC uses an earlier checkpoint than the quantitative table: three panels are unselected draws, while Draw 2 is the first new valid molecule with converged reward . The first candidate met this threshold. This selected panel is excluded from quantitative evaluation and cannot be used to compare overall performance.
All methods use the same sampling settings as the benchmark. The annotations give the unscaled GFN1 rewards at the generated geometries. Rendering applies only rigid alignment, hides hydrogens, and fits each molecule to its panel; it does not optimize coordinates. Panel sizes therefore do not represent a common spatial scale.
B.3.2 TOPOLOGY-BASED VALIDITY REWARD
We adapt the validity reward of Kotani (2026, Eq. 13) to measure whether relaxation preserves a generated molecule's heavy-atom connectivity and how much energy it releases. All 30,000 benchmark draws are scored, including RDKit-rejected graphs and failed GFN1 calculations. This metric is used only for evaluation.
Definition. Let indicate that molecule passes the connectivity, collision, relaxation, and hydrogen-integrity checks below. We call this event xTB topology preservation (XTP). Let be its number of heavy atoms, the energy after optimizing hydrogens with heavy atoms fixed, and the energy after unconstrained relaxation. With energies in kcal/mol, the reward is
The strain and scale are in kcal/mol per heavy atom. The absolute energy gap follows the released reward implementation and agrees with the signed relaxation decrease for all passing samples here. Passing molecules receive a base reward of 0.60, with up to 0.40 more for low strain; any structural or numerical failure receives zero.
Relaxation protocol. We retain generated hydrogens and formal charges, remove fake atoms, and choose the minimum spin consistent with electron-count parity. The reference heavy-atom graph uses predicted bonds without bond orders; RDKit sanitization is not a prefilter. After connectivity and the released ADT collision checks, GFN2-xTB relaxation proceeds in three stages:
-
Optimize hydrogens with all heavy atoms fixed, using L-BFGS for at most 500 cycles.
-
Relax all atoms while restraining the predicted heavy-atom bond distances to their values after hydrogen relaxation, with force constant 0.5.
-
Remove all restraints and perform unconstrained relaxation.
Every stage must converge with finite coordinates and energy. We use xTB 6.7.1, accuracy 1.0, at most 250 SCC iterations, and standard geometry optimization tolerances. Time limits are 300 seconds for hydrogen relaxation and 180 seconds for each later stage; timeouts and numerical failures score zero.
In the final geometry, atoms are connected when , using Cordero covalent radii. The resulting heavy-atom edge set must match the predicted graph exactly. Hydrogens farther than from every heavy atom are detached. An even number of detached hydrogens is removed and relaxation restarts, up to three times; an odd number causes rejection. These rules—native hydrogens, rejection of odd detachments, and convergence at every stage—differ from the authors' full generation and scoring pipeline.
Aggregation and interpretation. For molecules in run s, define
Here is the XTP pass rate and the conditional mean reward. When ,
Failures remain in the denominator, so combines topology preservation with the strain of passing molecules; it is not a validity percentage. It also differs from the GFN1 training reward. Local connectivity preservation does not establish a global energy minimum or agreement with a reference conformer.
Table 9 separates these effects. FTFC has the highest observed pass rate, while pretrained has the lowest relaxation strain. R-TFFT passes more often than EXP-FT and FDC but has greater strain among passing molecules; graph validity or XTP rate alone is therefore insufficient to characterize the combined reward.
B.3.3 FTFC CONFIGURATION AND TRAINING COST
FTFC training. FTFC solves the upper-CVaR dual with , KL coefficient , and reward scale six on the 9,988 eligible pretrained endpoints. Normalization preserves the empirical masses of 92 molecular size groups. The fixed target is fitted with a rank-16 adapter for 120 updates: batch size eight, microbatch size one, learning rate , float32 precision, and gradient-norm clipping at ten. No new reward queries are needed during fitting. Evaluation uses the final adapter weights.
Cost with a cached corpus. Table 10 reports active GPU-allocation time per run on an RTX 3090 Ti, including CPU work within training. It includes setup, calibration, fitting, and method-specific online sampling and scoring. The shared pretrained corpus is already available; evaluation, backbone pretraining, and interruption downtime are excluded. FTFC calibration takes 0.246 seconds and fitting
Table 9: Decomposition of the additional validity reward. These diagnostics cover the same 30,000 draws as Table 3. XTP is the fraction of all draws that pass the complete protocol. The remaining columns condition on XTP: mean validity reward and mean relaxation strain in kcal/mol per heavy atom. Each entry is the mean ± sample standard deviation of three runs. Bold values mark the best means before rounding: higher XTP and reward, lower strain.
| Method | XTP (%) | Reward given XTP | Strain given XTP |
|---|---|---|---|
| Pretrained | |||
| EXP-FT (AM) | |||
| FDC () | |||
| R-TFFT | |||
| FTFC (ours) |
132.52 seconds on average, or 2.36 minutes including setup and export. FDC additionally requires two 10,000-molecule threshold refreshes. These timings compare the stated training budgets, rather than time to reach the same reward; the R-TFFT comparison also has the tail-gradient limitation described in Appendix B.3.
Table 10: Training time on GEOM-Drugs. Active minutes per run on one RTX 3090 Ti, with the shared pretrained corpus available. Values are mean ± sample standard deviation over three runs. Bold values mark the lowest mean times among fine-tuned methods, including ties; updates are prescribed budgets.
| Method | Updates | Fitting + setup | Threshold refresh | Total training |
|---|---|---|---|---|
| Pretrained | 0 | |||
| EXP-FT (AM) | 120 | |||
| FDC () | 360 | |||
| R-TFFT | 120 | |||
| FTFC (ours) | 120 |
Evaluation, original backbone pretraining, and documented interruption intervals are excluded. FDC’s two required 10,000-molecule threshold refreshes are included. The common offline corpus is accounted for separately in the text. Total uncertainty is computed from per-run totals; rounded component means need not sum exactly to the rounded total.
B.4 STABLE DIFFUSION BENCHMARK PROTOCOL
Model and prompts. All methods start from Stable Diffusion v1.5. Baselines use the released TFFT implementation, which updates the full U-Net while freezing the VAE, text encoder, reward model, and pretrained reference. FTFC uses the adapter procedure in Appendix B.1.
The training list has 10,000 records and 9,803 distinct prompts; evaluation uses 100 prompts, two of which also occur in training, including the astronaut prompt in Figure 3. Baselines use their final scheduled checkpoints. FTFC uses the evaluated checkpoint with the highest lower-tail CVaR, so its result includes evaluation-set selection.
Baseline objectives and budgets. For raw ImageReward , EXP-FT uses Adjoint Matching (Domingo i Enrich et al., 2025) with the identity reward. L-TFFT and our two-stage FDC reconstruction use a lower-tail hinge:
Table 11 gives thresholds and budgets. Thresholds are fixed within each stage. FDC’s second stage continues from the first with a fresh optimizer and warmup. These settings reconstruct the baselines (De Santi et al., 2025; Wang et al., 2026); exact agreement with the authors’ experiments has not been established.
Gradient estimation and optimization. The terminal adjoint is . For each endpoint, we add 20 Gaussian perturbations with standard deviation 0.02, decode and score them, and differentiate
https://github.com/zifan-5528/TFFT
FlowMol3 / GEOM-Drugs: cost accounting changes the comparison

Final checkpoints; mean ± SD over three seeds. Same measured rewards in both panels.
Right: add the measured 3.444 GPUh bank cost to FTFC, R-TFFT and FDC; EXP-FT does not require this bank.
Initial endpoint conversion is unrecorded and excluded. Evaluation excluded. Arrows compare budgets, not matched-quality speed.
Figure 6: Effect of corpus acquisition on GEOM-Drugs training cost. Both panels use the same final topology rewards, averaged over three runs with 2,000 generated molecules per run; error bars show sample standard deviations. (a) The shared corpus is available. (b) Its measured acquisition cost, 3.444 GPU-hours, is charged once to each method that requires it. Initial endpoint conversion was not timed and is excluded, as is evaluation. Arrows compare recorded budgets rather than time to a matched reward. The horizontal dashed line shows the pretrained topology reward.
Table 11: Stable Diffusion method budgets and training thresholds. All trainable baselines are assigned 1,600 optimizer updates in total.
| Method | Epochs | Optimizer updates | Raw hinge threshold |
|---|---|---|---|
| Pretrained (Rombach et al., 2022) | 0 | 0 | — |
| EXP-FT (Domingo i Enrich et al., 2025) | 20 | 1,600 | Identity reward |
| L-TFFT (Wang et al., 2026) | 20 | 1,600 | 0.700759 |
| FDC, stage 1 (De Santi et al., 2025) | 10 | 800 | -0.49 |
| FDC, stage 2 (De Santi et al., 2025) | 10 | 800 | -0.09 |
the identity or hinge reward. Norms are clipped at the per-image 85th percentile before averaging, so the hinge acts before smoothing and clipping. The control penalty remains relative to the frozen pretrained U-Net. Table 12 gives the remaining settings: each epoch has 80 updates with 125 replay records per update; each loss minibatch samples two denoising positions from the first 60% of the trajectory and two from the remainder. Replay losses are not importance-weighted. Guidance is used only for image sampling, not adjoint or control computations.
Table 12: Shared Stable Diffusion baseline training settings. Reward-gradient clipping during smoothing is distinct from optimizer-gradient clipping.
| Setting | Value |
|---|---|
| Optimizer | AdamW; learning rate |
| Adam moments, epsilon | |
| Weight decay | |
| Learning-rate schedule | Linear warmup for 20 updates, then constant |
| Minibatch / accumulation | records minibatches |
| Replay buffer / passes | trajectories passes |
| Trajectory / loss positions | denoising steps sampled positions |
| Training reward | ImageReward-v1.0; multiplier |
| Tail objective | Lower tail, , for FDC and L-TFFT |
| Gradient smoothing | latent perturbations, Gaussian std. |
| Smoothing gradient clipping | Per-image -quantile of perturbation norms |
| Other clipping | Optimizer-gradient and per-sample loss clipping disabled |
| Guidance / prompt dropout | Sampling CFG /dropout |
| Adjoint / control CFG | Both disabled |
| Precision | Float32; TF32 permitted |
| Validation frequency | Every epoch on the evaluation prompts |
| Final model selection | Last checkpoint after the scheduled updates |
| Hardware per worker | One NVIDIA A100-SXM4 with 80 GB memory |
Sampling. Training and evaluation use the released stochastic DDIM scheduler with 50 steps, , trailing timestep spacing, and noise-schedule endpoints and . The terminal cumulative alpha is adjusted to . Each method generates ten images for each of 100 prompts, using guidance and common random draws across methods. All 1,000 images enter quantitative evaluation without selection. Scorers use their released preprocessing and unperturbed images.
ImageReward and lower-tail CVaR. ImageReward-v1.0 (Xu et al., 2023) predicts preference for a prompt–image pair. Let be its raw score, the number of prompts, and the number of images per prompt. The mean is
Sorting all scores jointly gives the lower-tail statistic
This is a global tail across prompts, not an average of per-prompt tails. Evaluation uses raw scores and an empirical tail boundary, independently of the fixed training thresholds.
CLIP and HPSv2.1. CLIP ViT-L/14 (Radford et al., 2021) measures text–image compatibility through the cosine similarity of image and text features:
HPSv2.1 (Wu et al., 2023) supplies a separate learned preference score. Both are reported without rescaling, averaged within prompts and then across prompts. Neither is used for training.
DreamSim diversity. For unit-normalized embeddings from the default pretrained DreamSim model (Fu et al., 2023), we compute
This is within-prompt perceptual variance, used only for evaluation; higher diversity need not imply higher image quality or prompt alignment.
Uncertainty. The table reports one evaluation per method. For ImageReward mean, CLIP, and HPS, let be the ten-image prompt mean; for DreamSim, let . The reported error term is
For lower-tail CVaR, it is instead
The tail term describes dispersion within the selected tail; it omits boundary uncertainty and dependence between images of one prompt. Neither term measures training-run variability or gives a confidence interval for method differences.
Training cost. Baseline timings on one A100 80GB GPU include active training, validation, checkpoint writing, and repeated partial work after interruptions. They exclude downtime, external startup, final evaluation, backbone pretraining, and development runs. The recorded totals are 82.28 hours for EXP-FT, 82.41 for FDC, and 85.77 for L-TFFT.
The selected FTFC checkpoint combines 800 initial updates and a 400-update refinement. Fitting takes 4.045 GPU-hours with a cached bank. Generating and scoring its 80,000-image bank adds 43.711 GPU-hours, giving 47.756 GPU-hours (1.99 GPU-days) in total. FTFC's timers for these stages exclude CPU calibration, startup, checkpoint writing, validation, and exploratory or discarded updates. Because timing scopes and attained rewards differ, these costs do not establish a speedup to matched quality.
Qualitative selection. Figure 3 shows ImageReward ranks 1, 5, and 10 among ten images per method for “footage of an astronaut in a tropical beach.” This prompt was chosen after inspecting pretrained outputs and also occurs in training. Pretrained, EXP-FT, L-TFFT, and FTFC reuse their evaluation images. The FDC batch was resampled twice after visual inspection; its displayed ranks use the last batch. This selection affects only the illustration, not the quantitative benchmark. No images are retouched.
B.4.1 L-TFFT: FIXED-THRESHOLD LOWER-TAIL OPTIMIZATION
L-TFFT applies the lower-tail transformation of Wang et al. (2026) with and fixed threshold : . For a terminal latent and decoded reward , its unsmoothed derivative is
away from the threshold. Low-reward samples receive a direct reward gradient, while the KL control penalty remains active for all samples. The threshold is fixed, so the fraction below it need not remain 20%.
The hinge is applied to each latent perturbation before clipping and averaging, so an image above the threshold can still receive a gradient when a perturbation falls below it. Training uses the shared Adjoint Matching settings and 1,600 updates in Tables 11–12.
L-TFFT improves mean ImageReward and lower-tail CVaR over pretrained, but not over EXP-FT in this evaluation. With one run per method, this difference does not establish equivalence or statistical superiority.
C ADDITIONAL RESULTS
law’s preference for the left ring. FTFC has the smallest target distance at (Figure 1), reproducing both modes and their unequal masses more closely than ITM or FDC.
FTFC · L=16

SW1: 0.100 ↓
In bands: 82.0%
FTFC · L=64
SW1: 0.039 ↓
In bands: 78.7%
FTFC · L=128
SW1: 0.029 ↓
In bands: 76.2%
Reward set
ITM · L=16

ITM · L=64
SW1: 0.137 ↓
In bands: 80.7%
ITM · L=128
SW1: 0.095 ↓
In bands: 74.9%
ITM · L=128
SW1: 0.085 ↓
In bands: 72.8%
Target
FDC · L=16
In bands: 78.0%
FDC · L=64

SW1: 0.302 ↓
In bands: 83.3%
FDC · L=128
SW1: 0.287 ↓
In bands: 75.6%
FDC · L=128
SW1: 0.286 ↓
In bands: 73.3%
Figure 7: Mean-reward objective, . The target is computed independently. Rows show FTFC, ITM, and FDC at ; the target is at middle right. Each panel shows 500 samples from one run; annotations use all 4,096 samples across three runs.
Convergence and cost. Figure 8 uses the same runs and numerical targets.

Figure 8: Convergence to the numerical target at L = 64. Solid curves average three runs and shading spans their range. The dotted line marks sliced W1 = 0.05. The axis counts generator updates; target optimization and endpoint acquisition are excluded. Batch sizes and sampling costs differ, so the curves do not establish equal-compute or end-to-end wall-clock speedups.
C.1 COVERAGE ENTROPY
The coverage objective rewards entropy of aggregate feature masses, not the entropy of an individual sample. It encourages both circles and their arcs (Figure 9). FTFC most closely matches this target; ITM concentrates on arcs and FDC largely misses the right ring.
FTFC · L=16

SW1: 0.086 ↓
In bands: 80.0%
FTFC · L=64
SW1: 0.032 ↓
In bands: 79.9%
FTFC · L=128
SW1: 0.029 ↓
In bands: 78.3%
Reward set
ITM · L=16

ITM · L=64
SW1: 0.257 ↓
In bands: 72.2%
ITM · L=128
SW1: 0.205 ↓
In bands: 67.9%
ITM · L=128
SW1: 0.207 ↓
In bands: 66.9%
Target
In bands: 78.2%
FDC · L=16
FDC · L=64

SW1: 0.897 ↓
In bands: 85.3%
FDC · L=128
SW1: 0.892 ↓
In bands: 80.1%
FDC · L=128
SW1: 0.885 ↓
In bands: 77.6%
Figure 9: Coverage-entropy objective. with KL coefficient . Rows, sampling lengths, evaluation protocol, and displayed run follow Figure 1. The target retains mass outside the gold bands, so band-hit rate alone does not measure agreement.