arXiv:2609.01929cs.CESep 2026

Manuscript Offprint

arXiv:2609.01929

Risk-Sensitive Reward Composition for Conditional GFlowNets

Carine Ribeiro dos Santos, Ina Pöhner

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Generative Flow Networks (GFlowNets) for structure-based drug design condition on one rigid protein structure. A flexible target holds several distinct structural shapes, its conformations, each occupied for a fraction of the simulation time. Scoring a candidate against all of them raises an open question: how do KK scores become one reward? The designer cannot choose arbitrarily. Populations carry simulation error, and biology dictates which conformations are deal-breakers, so a candidate that fails one is disqualified, not merely ranked lower. No standard rule captures this.

We compose the reward from a conditional value-at-risk (CVaR), a worst-case score rule, and an ambiguity radius expressing distrust in the stated weights. Together, these define a family of targets, amortised by a single conditional GFlowNet. We answer whether such a sampler can be trained on fully enumerable synthetic worlds, where every error is exact rather than estimated.

Pricing the tail rather than averaging moves 2–10 times more mass to candidates that pass every conformation. One network covers the family to within 0.37–2.7×0.37–2.7\times the error of a perfect sampler. An exact-KL oracle, a copy trained on the true target, shows if a shortfall is the optimiser's or the architecture's. When good candidates are rare, exploration decides: injecting unseen states finds 0.987–1.000 of good regions, while reweighting visited finds 0.35–0.76.

1 Introduction

Generative Flow Networks (GFlowNets) sample objects proportionally to a reward rather than maximising it [1, 2], suiting design problems where diverse acceptable candidates are needed. Objects are assembled piece by piece, and training enforces consistency between the policy and the reward [3–6]. The reward is always a single number handed to the sampler, so how that reward is composed from several imperfect signals has not been examined.

Molecular GFlowNets for drug discovery score a candidate against one target protein structure [7–9]. Real targets hold several distinct shapes, their con-

formations, and binding selects among a pre-existing ensemble [10, 11], typically modelled computationally by docking to each representative [12]. Some conformations must be bound, others avoided; binding the dominant one is not enough. Conformational populations carry error, so a fixed weight vector is misleading. A candidate failing a required conformation is disqualified, yet no standard aggregation rule captures this. A weighted sum lets a strong score pay for a failed one, a Pareto front keeps the failing candidate on the frontier, an action mask acts before the deciding scores exist. Desirability functions [13] come closest, encoding disqualification multiplicatively, but fix the aggregation shape in advance and offer no account of weight uncertainty.

We compose the reward from two robust optimisation quantities. Conditional value-at-risk (CVaR) [14] at tail level β\beta prices the worst β\beta-fraction of scores rather than the average; an ambiguity ball of radius ρ\rho around the stated weights [15] (the standard Distributionally Robust Optimisation (DRO) ambiguity set) expresses distrust in them. Together with a temperature βt\beta_t and mixing weight wgw_g, these four dials define a condition cc and a fixed target pc∗∝R(x)βtp_c^* \propto R(x)^{\beta_t} before training. We abstract the requirements into four constraint geometries (including a floor and veto) modelled on multimeric proteins, repeated subunits where a molecule may need to bind every copy, avoid an interface, or clear a bulk threshold.

The induced family lies outside existing GFlowNet conditioning mechanisms. We ask four questions: does the aggregation change the target enough to justify conditioning? Can one sampler learn the entire family? What does it cost? Where does it break? We answer on fully enumerable synthetic worlds, where target, policy, and exact L1L_1 distance are closed-form computable. Extending the standard enumerable-grid instrument [16, 17], our worlds are large enough for evaluation across a continuous family of conditions, and an exact-Kullback-Leibler (KL) oracle (a copy trained on the true target) attributes failure to capacity or optimisation. This is a measurement paper: the synthetic worlds are the instrument that buys exact evaluation, not a performance claim against docking.

Our contributions are:

  • A new reward composition mechanism. We compose the reward from a CVaR tail level β\beta

*Corresponding Author.

and an ambiguity ball ρ\rho, defining a fixed target pc∗∝R(x)βtp_c^* \propto R(x)^{\beta_t} before training. Four constraint geometries carry the exclusions (§3.2).

  • The aggregation form changes what gets sampled. Pricing the tail under distrust of the weights moves 2−10×2-10\times more mass onto candidates that satisfy every requirement (§4.1).

  • One conditional network learns the entire family; an oracle diagnoses its failures. A single network covers the family to 0.37−2.7×0.37-2.7\times the sampling floor across all four cases. An exact-KL oracle separates representational limits from optimisation shortfalls (§4.2).

  • Most scaling difficulties are curable, but some failures are fundamental. Larger spaces and deeper structures cost more compute, but longer training recovers performance. Extreme weight imbalance resists extra training; conditioning on noisy scores fails even when the target is known perfectly. Such uncertainty is better absorbed into ρ\rho (§4.4).

  • Under sparsity, exploration decides the outcome. State injection maintains 0.987−1.0000.987-1.000 mode coverage at s=4s=4; reweighting drops to 0.35−0.760.35-0.76. A flat ϵ\epsilon-plateau creates a trap reweighting cannot escape. Prior work has not isolated this axis as a controlled variable (§4.3).

  • An exact diagnostic framework. Enumerable worlds admit closed-form computation of the target, policy, and their L1L_1 divergence over a continuous family of conditions. An exact-KL oracle distinguishes representational insufficiency from optimisation residual (§3.1, §4.2).

References (70)