Sam Babichenko

Reading notes / Bandits and exploration

GFlowNets and MAP-Elites

Bengio et al., 2021; Mouret and Clune, 2015

Objects and reward
xxa finished object, such as a molecule or a grid cell; in MAP-Elites, a solution such as a robot's genome
X\mathcal Xset of finished objects
R(x)R(x)reward of the finished object xx, R(x)>0R(x)\gt0; in MAP-Elites, the performance of solution xx, which may be negative (that paper writes f(x)f(x))
ZZZ=∑xR(x)Z=\sum_{x}R(x), the normalizer of the target R(x)/ZR(x)/Z; at a consistent flow it equals F(s0)F(s_0)
β\betaexponent on the reward in the molecule runs (an inverse temperature): sampling in proportion to R(x)βR(x)^\beta concentrates on the top modes as β\beta grows
Construction graph and flows
ssa state: a partial object, reached from s0s_0 by a sequence of actions
s0s_0start state of every construction: the empty object
s→s′s\to s'an edge of the construction graph: one action turns state ss into state s′s'
τ\taua path of states from s0s_0 to a finished object
xτx_\taufinished object at the end of the path τ\tau
n(x)n(x)number of distinct paths from s0s_0 that end at xx
Pa(s)\mathrm{Pa}(s)parents of state ss: the states with an edge into ss
Ch(s)\mathrm{Ch}(s)children of state ss: the states one action away from ss; a finished object has none
F(s→s′)F(s\to s')flow on the edge s→s′s\to s', a positive number (the paper writes F(s,a)F(s,a) with T(s,a)=s′T(s,a)=s')
F(s)F(s)flow through ss, F(s)=R(s)+∑s′′∈Ch(s)F(s→s′′)F(s)=R(s)+\sum_{s''\in\mathrm{Ch}(s)}F(s\to s''): reward plus outflow, equal to the inflow at a consistent flow
π(s′∣s)\pi(s'\mid s)flow policy, π(s′∣s)=F(s→s′)/F(s)\pi(s'\mid s)=F(s\to s')/F(s): from ss, move to child s′s' in proportion to the edge's flow
P(s)P(s)probability that the flow policy passes through state ss; F(s)/F(s0)F(s)/F(s_0) at a consistent flow
H(P)H(P)entropy of a distribution PP over paths, H(P)=−∑τP(τ)log⁡P(τ)H(P)=-\sum_\tau P(\tau)\log P(\tau) (Step 1)
ZpathZ_{\rm path}Zpath=∑τR(xτ)Z_{\rm path}=\sum_\tau R(x_\tau), the reward summed over paths instead of objects (Step 1)
P⋆P^\starmaximizer of the maximum-entropy objective of Step 1, P⋆(τ)=R(xτ)/ZpathP^\star(\tau)=R(x_\tau)/Z_{\rm path} on paths; P⋆(x)P^\star(x) is the probability it gives the object xx
Training
θ\thetaparameters of the network that predicts the edge flows
FθF_\thetaedge flows predicted by the network, which outputs log⁡Fθ(s→s′)\log F_\theta(s\to s')
FθinF^{\rm in}_\thetapredicted flow into a state, Fθin(s′)=∑s∈Pa(s′)Fθ(s→s′)F^{\rm in}_\theta(s')=\sum_{s\in\mathrm{Pa}(s')}F_\theta(s\to s')
FθoutF^{\rm out}_\thetareward plus predicted flow out of a state, Fθout(s′)=R(s′)+∑s′′∈Ch(s′)Fθ(s′→s′′)F^{\rm out}_\theta(s')=R(s')+\sum_{s''\in\mathrm{Ch}(s')}F_\theta(s'\to s'')
Lθ(τ)L_\theta(\tau)flow-matching loss of a path, ∑s′∈τ, s′≠s0(log⁡ϵ+Fθin(s′)ϵ+Fθout(s′))2\sum_{s'\in\tau,\,s'\ne s_0}\big(\log\frac{\epsilon+F^{\rm in}_\theta(s')}{\epsilon+F^{\rm out}_\theta(s')}\big)^2; zero when every visited state is consistent
MAP-Elites
b(x)∈Rdb(x)\in\mathbb R^dfeature descriptor of solution xx: a vector of dd features the user chooses, such as a robot's height and weight (the paper writes NN for dd)
GGnumber of random solutions that start a MAP-Elites run
IInumber of iterations of a MAP-Elites run
Constants
ϵ\epsilonconstant in the log loss, set near the smallest reward (Step 3)
R0R_0reward floor of the grid task, the reward between the 16 modes; 0.1 to 0.001

Context. A standard bandit or RL objective maximizes expected reward and puts all its probability on one answer. In molecule design, training usually relies on a cheap a fast stand-in for the real measurement, such as a docking simulation or a model fitted to past assays for a slow, expensive lab measurement, and candidates are tested in large batches. A batch of near copies of the proxy's favorite fails together if the proxy is wrong about that region. The batch therefore needs many distinct candidates that all score well. Bengio et al. (2021) and Mouret and Clune (2015) each change the objective to ask for that.

generative flow network: a policy that builds an object step by step, trained so that finished objects come out with probability proportional to their reward (Bengio et al., 2021) trains a policy to build an object one part at a time, drawing each finished object with probability proportional to its reward. An object with 90% of the top reward appears 90% as often as the best one; a reward maximizer almost never samples it. Many objects, such as molecules assembled from blocks, can be built in many orders. Maximum-entropy RL makes each construction path probable in proportion to its final reward. That weights each object by its reward times its number of paths, biasing the sampler toward larger molecules (Step 1).

GFlowNet avoids that bias by assigning a positive flow to every edge of the construction graph. It chooses those flows so that total inflow equals total outflow at every partial object, and equals the reward at every finished object. A policy that picks each outgoing edge in proportion to its flow then samples objects in proportion to reward, however many paths reach them (Step 2). Flow balance is a local condition at each state, so training penalizes the mismatch between inflow and outflow at visited states. Like temporal-difference learning, this consistency loss trains off-policy on paths from any sampler that reaches every state (Step 3).

multi-dimensional archive of phenotypic elites: a search that keeps the best solution found in each cell of a grid over user-chosen features (Mouret and Clune, 2015) asks for variety along features the user names. It lays a grid over a few features, such as a robot's height and weight, and keeps the best solution found in each cell. A new solution competes only with the current occupant of its own cell, so a slow heavy robot is never discarded for losing to a fast light one. In the papers' experiments, both methods return varied, high-scoring candidates and match or beat single-objective search on the best solution. On molecules, GFlowNet's ten best candidates outscore PPO's, with both trained on powers of the proxy reward. On a retina task, MAP-Elites finds a better network than an a search that keeps a population of solutions and makes new ones by randomly mutating and recombining the better ones selecting on performance alone. On simulated soft robots, its best robot matches that performance-only search.

Setting. Write a finished object, such as a molecule for a finished object, the set of finished objects for the set of them, and the reward of xx; positive for GFlowNet, which needs it as a flow and removes zero-reward objects by disallowing the actions that lead to them>0\gt0 for its reward. Construction starts from the empty state the start of every construction: the empty object, with each action adding one part. Each a partial object, reached from s0s_0 by some sequence of actions is a partial object, and an edge s→s′s\to s' joins ss to s′s' when one action turns ss into s′s'. Because many action orders reach the same state, these states form a a graph whose edges have a direction and contain no cycle; here a tree only if every object has a single construction order (DAG) rather than a tree. Write a path of states from s0s_0 to a finished object, written xτx_\tau for a path from s0s_0 to a finished object xτx_\tau, and the number of distinct paths from s0s_0 to xx for the number of paths ending at xx. The target distribution samples xx with probability R(x)Z,Z=∑x′∈XR(x′).\frac{R(x)}{Z},\qquad Z=\sum_{x'\in\mathcal X}R(x').

Step 1 (Proposition 1)

Making each path probable in proportion to reward overweights objects with many paths. Maximum-entropy RL with terminal reward log⁡R(x)\log R(x) maximizes the expected log-reward plus the path entropy −∑τP(τ)log⁡P(τ)-\sum_\tau P(\tau)\log P(\tau), the entropy of the path distribution over distributions PP on paths. In a deterministic environment, path entropy equals the expected sum of the policy's per-state entropies along the path, so Q-learning for maximum-entropy RL: the max over next actions becomes log⁡∑aeQ(s,a)\log\sum_ae^{Q(s,a)}, and the policy is proportional to eQ(s,a)e^{Q(s,a)} (Haarnoja et al., 2017) and related maximum-entropy methods optimize this objective. Write Zpath=∑τR(xτ)Z_{\rm path}=\sum_\tau R(x_\tau) and P⋆(τ)=R(xτ)/ZpathP^\star(\tau)=R(x_\tau)/Z_{\rm path}. Rewriting the objective givesEP[log⁡R(xτ)]+H(P)=log⁡Zpath−KL(P ∥ P⋆),\begin{aligned}&\mathbb E_P[\log R(x_\tau)]+H(P)\\&\quad=\log Z_{\rm path}-\mathrm{KL}(P\,\|\,P^\star),\end{aligned}so by KL(P∥Q)≥0\mathrm{KL}(P\|Q)\ge0, with equality only when P=QP=Q, P⋆P^\star is the unique maximizer. Summing P⋆(τ)P^\star(\tau) over the n(x)n(x) paths that end at xx gives its sampling probability:P⋆(x)=n(x)R(x)∑x′n(x′)R(x′).P^\star(x)=\frac{n(x)R(x)}{\sum_{x'}n(x')R(x')}.Unfolding the graph into a tree of paths proves the same bias for a policy that picks each child in proportion to the summed reward of all continuations from it. Because the number of assembly orders grows rapidly with molecule size, these policies sample larger molecules exponentially more often than their reward warrants.

To remove that path-count factor, GFlowNet represents the sampler as a flow on the DAG. Assign a positive flow the flow on edge s→s′s\to s'; the paper writes F(s,a)F(s,a) with T(s,a)=s′T(s,a)=s'>0\gt0 to every edge, and write the parents of s′s': states with an edge into s′s' and the children of ss: states one action away from ss for a state's parents and children. Set R(s)=0R(s)=0 at partial states; finished objects have no children. A flow is inflow equals reward plus outflow at every state other than s0s_0 if total inflow equals reward plus total outflow at every state s′≠s0s'\ne s_0:∑s∈Pa(s′)F(s→s′)=R(s′)+∑s′′∈Ch(s′)F(s′→s′′).\begin{aligned}&\sum_{s\in\mathrm{Pa}(s')}F(s\to s')\\&\quad=R(s')+\sum_{s''\in\mathrm{Ch}(s')}F(s'\to s'').\end{aligned}At a partial state, inflow equals outflow; at a finished object, inflow equals R(x)R(x). Write R(s)+∑s′′∈Ch(s)F(s→s′′)R(s)+\sum_{s''\in\mathrm{Ch}(s)}F(s\to s''), the flow through ss; equal to the inflow at a consistent flow, and to R(x)R(x) at a finished object for the right side, the total flow through ss. The π(s′∣s)=F(s→s′)/F(s)\pi(s'\mid s)=F(s\to s')/F(s): from ss, move to child s′s' with probability proportional to the edge's flow starts at s0s_0 and steps from ss to child s′s' with probability π(s′∣s)=F(s→s′)/F(s)\pi(s'\mid s)=F(s\to s')/F(s) until it reaches a finished object. Since R(s)=0R(s)=0 at partial states, these probabilities sum to 1 over the children.

Step 2 (Proposition 2)

A consistent flow samples each object in proportion to its reward. Write P(s)P(s) for the probability that the flow policy passes through ss, so P(s0)=1P(s_0)=1. Because the graph has no cycles, a trajectory visits s′s' at most once. Arrivals from different parents are therefore disjoint events, so P(s′)P(s') sums over Pa(s′)\mathrm{Pa}(s'). Suppose P(s)=F(s)/F(s0)P(s)=F(s)/F(s_0) holds at every parent of s′s'; consistency then gives the same formula at s′s':P(s′)=∑s∈Pa(s′)P(s) F(s→s′)F(s)=1F(s0)∑s∈Pa(s′)F(s→s′)=F(s′)F(s0).\begin{aligned}P(s')&=\sum_{s\in\mathrm{Pa}(s')}P(s)\,\frac{F(s\to s')}{F(s)}\\&=\frac{1}{F(s_0)}\sum_{s\in\mathrm{Pa}(s')}F(s\to s')\\&=\frac{F(s')}{F(s_0)}.\end{aligned}Since the formula holds at s0s_0 and the graph is acyclic, induction covers every state. At a finished object F(x)=R(x)F(x)=R(x), so P(x)=R(x)/F(s0)P(x)=R(x)/F(s_0). Every trajectory ends at one finished object, so these probabilities sum to 1 and F(s0)=ZF(s_0)=Z. The path count n(x)n(x) never enters; only the total flow into xx matters, however parents split it. That split is not unique. If the graph consists solely of the two paths s0→sA→xs_0\to s_A\to x and s0→sB→xs_0\to s_B\to x, any positive flows with F(sA)+F(sB)=R(x)F(s_A)+F(s_B)=R(x) are consistent, so many flows induce the same sampler.

Step 3 (Proposition 3)

Matching log inflow to log outflow trains the flows from any sampler that reaches every state. A network with parameters θ\theta outputs log⁡Fθ(s→s′)\log F_\theta(s\to s'), keeping every predicted edge flow positive. Write ∑s∈Pa(s′)Fθ(s→s′)\sum_{s\in\mathrm{Pa}(s')}F_\theta(s\to s'), the predicted flow into s′s'=∑s∈Pa(s′)Fθ(s→s′)=\sum_{s\in\mathrm{Pa}(s')}F_\theta(s\to s') for the predicted inflow to s′s', and R(s′)+∑s′′∈Ch(s′)Fθ(s′→s′′)R(s')+\sum_{s''\in\mathrm{Ch}(s')}F_\theta(s'\to s''), the reward plus the predicted flow out of s′s'=R(s′)+∑s′′∈Ch(s′)Fθ(s′→s′′)=R(s')+\sum_{s''\in\mathrm{Ch}(s')}F_\theta(s'\to s'') for its reward plus predicted outflow. A sampled path's loss sums the squared log mismatch over its states other than s0s_0:Lθ(τ)=∑s′∈τ, s′≠s0(log⁡ϵ+Fθin(s′)ϵ+Fθout(s′))2.\begin{aligned}&L_\theta(\tau)\\&\quad=\sum_{s'\in\tau,\ s'\ne s_0}\Big(\log\frac{\epsilon+F^{\rm in}_\theta(s')}{\epsilon+F^{\rm out}_\theta(s')}\Big)^2.\end{aligned}Flows near s0s_0 sum over exponentially many objects, while flows near the end are single rewards. Raw differences would span many orders of magnitude; the log scale gives every state comparable weight. Adding a small positive constant added inside both logarithms, set close to the smallest reward, set near the smallest reward, keeps tiny flows out of the logarithm and weights errors more heavily at large flows, where the top modes sit.

The loss is zero exactly when every visited state is consistent, and each state's term ignores which policy generated the path. Like dynamic programming that updates states one at a time in any order; it converges as long as every state keeps being updated, training therefore works off-policy. Suppose the training paths come from a sampler why: the loss constrains flows only on states the sampler visits, so an unvisited region can keep inconsistent flows and wrong probabilities, and why: otherwise no parameter value reaches zero loss, and a minimizer trades errors between states. Because every edge flow is positive, that support visits every state. Every global minimizer of the expected loss is then consistent on the states the sampler reaches, so by Step 2 its flow policy samples xx with probability R(x)/ZR(x)/Z.

GFlowNet results. On a 4-dimensional grid with 16 separated modes, GFlowNet fits the target with far fewer samples than MCMC and finds every mode faster than PPO. Each object is a cell of a side-8 grid, built by raising one coordinate at a time. Reward equals a floor R0R_0 everywhere, plus higher values on small bands near the 16 corners. The grid is small enough to compute ZZ and measure the fit to R(x)/ZR(x)/Z directly. Across 10 runs per setting, GFlowNet reaches low error for every R0R_0 from 0.1 down to 0.001. an MCMC method that proposes a move from xx to x′x' and, for a symmetric proposal, accepts it with probability min⁡{1,R(x′)/R(x)}\min\{1,R(x')/R(x)\}, which makes R/ZR/Z its long-run distribution MCMC needs exponentially more samples for the same error, and as R0R_0 shrinks it takes far longer to visit every mode. PPO needs an entropy bonus of 0.5, far above usual values, to find all 16 modes in reasonable time. Even then, it finds them much more slowly than GFlowNet.

The gap between GFlowNet and MCMC comes from how each treats the low-reward floor between modes. A Metropolis-Hastings chain at a mode accepts a step onto the floor with probability only about R0/R(x)R_0/R(x), so shrinking R0R_0 traps it. The flow policy never weighs an intermediate floor state by its own reward. By Step 2, it visits state ss with probability F(s)/ZF(s)/Z. The flow through a floor state carries the summed rewards of every object built beyond it, so the policy crosses the floor as often as it ends at the modes on the far side.

On molecules, GFlowNet's top candidates outscore PPO and an MCMC sampler for molecules (Xie et al., 2021) that edits a molecule one part at a time while staying more varied. Each molecule combines up to 8 choices from 72 building blocks, yielding up to 101610^{16} states. The reward RR comes from a proxy network trained on 300,000 molecules to predict a docking program's estimate of how strongly a molecule binds in a protein's pocket, from a simulated search for the best fit of the two shapes against soluble epoxide hydrolase (sEH), rescaled so the best training molecule scores 10. Each method sees 10610^6 molecules. In the appendix's settings, GFlowNet samples in proportion to (R/8)10(R/8)^{10}, a far sharper target than RR, while PPO maximizes R4R^4. The table reports RR itself for the best 10 and best 1,000 distinct molecules, plus the average pairwise ∣A∩B∣/∣A∪B∣|A\cap B|/|A\cup B| for the sets A,BA,B of features present in two molecules' chemical fingerprints: from 0 (nothing shared) to 1 (identical fingerprints) of the best 1,000. Lower similarity means more variety; a random policy gives 0.231.
Best distinct molecules after 10610^6 seen, mean of 3 runs (standard deviations at most 0.16 in reward, 0.03 in similarity)
MethodTop 10 rewardTop 1,000 rewardSimilarity
GFlowNet8.458.170.44
MARS8.317.640.59
PPO8.257.820.62
In its best run GFlowNet found 2,339 distinct molecules scoring above 8, only 39 of them in the proxy's training set.

When the proxy is refitted to each new batch, varied batches find better candidates. GFlowNet is built for an active-learning loop. Each round fits a proxy to past data, trains the generator on a power of that proxy, scores a generated batch with the expensive measurement, and refits the proxy. Batches that stay near known modes teach the refitted proxy only about those regions. On the grid at R0=0.1R_0=0.1, runs start from points covering 4 of the 16 modes and query 16 points per round. GFlowNet found 10 modes within 5 rounds, MCMC found 10 within 10 rounds, and PPO reached 8 by the end. On molecules, docking 200 candidates per round for 1,800 evaluations, GFlowNet's top 10 average 8.83 against 8.27 for MARS; PPO diverged in every attempt.

MAP-Elites. Here xx is a solution, such as a robot's genome, and R(x)R(x) is its performance (written f(x)f(x) in the paper), which need not be positive. Write the feature descriptor of xx: a vector of dd features the user chooses, such as height and weight; the paper writes NN for dd∈Rd\in\mathbb R^d for its feature descriptor, a vector of dd user-chosen features. Binning each feature's range forms a grid of cells, and the archive stores at most one solution per cell, its the best solution found so far in a cell. Over II iterations, the first GG generate random solutions. Each later iteration picks an occupied cell uniformly at random, mutates its elite, and keeps the child if its cell is empty or it beats the current occupant. An improvement in a weak region of the map stays in the archive regardless of its global rank. Earlier methods with the same goal, NS+LC (Lehman and Stanley, 2011): an evolutionary algorithm with two objectives, performance relative to the 15 nearest neighbors in feature space and distance from them (NS+LC) and multi-objective landscape exploration (Clune et al., 2013): an evolutionary algorithm with two objectives, performance and distance from other solutions in feature space, rank solutions against the whole population. Their selection pressure therefore shifts as regions of the map fill and empty.
archive = {}   # cell -> (solution, performance)
for it in range(I):
    if it < G:
        x = random_solution()
    else:
        cell = random.choice(list(archive.keys()))
        x = mutate(archive[cell][0])
    c = to_cell(features(x))   # bin each feature
    p = performance(x)
    if c not in archive or archive[c][1] < p:
        archive[c] = (x, p)

Mouret and Clune score a run's final map on four measures. Global performance is the run's single best score anywhere, divided by the best found by any run of any algorithm. Coverage is the share of fillable cells this run fills, counting a cell as fillable if at least one run of some algorithm reaches it. Precision divides the run's best score in each cell by the best any run found there, then averages over only the cells this run filled. the average, over every cell that any run of any algorithm filled, of the run's best performance in the cell divided by the best any run found there; an empty cell counts 0 takes the same average over all fillable cells, scoring empty cells as 0. An the paper's term for a search that returns the best solution at each point of a user-chosen feature space targets global reliability. A narrow optimizer can score high on global performance and precision by searching a few cells well, while scoring low on coverage and reliability.

On networks for a retina task, MAP-Elites beats every control on all four measures. A network sees an 8-pixel retina and decides whether an object appears on both its left and right halves. The two features are connection cost (the sum of squared connection lengths) and Newman's QQ: for the split of the nodes into groups that makes it largest, the fraction of connections that fall inside groups minus the fraction expected if connections were placed at random with each node's number of connections kept; high when nodes form groups densely connected inside and sparsely connected between (Leicht and Newman, 2008), binned on a 512 by 512 grid. Three controls get the same evaluation budget: an evolutionary algorithm selecting on performance alone, NS+LC, and random sampling. Each control is scored by the best solution it discovered in each cell. Over 20 runs each, every difference is significant (p<10−7p\lt10^{-7}), with the gap much narrower on precision than on reliability. The authors attribute MAP-Elites' better best network to deception. Reaching the best networks requires passing through worse intermediate ones, which performance-only search discards. Ancestry supports this. Many high performers descend from a high-performing cell some distance away, and the full lineages of randomly chosen elites pass through many regions of the map. Solutions kept in other cells serve as stepping stones.

On simulated soft robots, MAP-Elites fills far more of the map at some cost in precision. Each robot is a 10 by 10 by 10 block of voxels, each empty or one of four materials including bone. Performance is distance covered in 10 simulated seconds, and the two features are the share of bone voxels and the share of filled voxels. Two controls compete against it: an evolutionary algorithm optimizing performance alone, and one that also rewards distance from other solutions in feature space. Against both, MAP-Elites achieves higher reliability and coverage (p<0.002p\lt0.002), and a higher median best performance that is not significantly different (p>0.05p\gt0.05). Its precision is lower (p<0.01p\lt0.01), which the authors note is likely because the controls spend all their evaluations on a few cells.

Consequences and limits. GFlowNet fits problems where candidates are built by a sequence of choices, a proxy scores any candidate cheaply, and the next step needs a batch covering high-scoring regions. After training, each new candidate costs one run of the policy from s0s_0. Generating a batch therefore takes time linear in batch size, whereas pairwise comparison methods take at least quadratic time. In practice, raising RR to a power an exponent on the reward (an inverse temperature); sampling in proportion to R(x)βR(x)^\beta concentrates on the top modes as β\beta grows>1\gt1 before training concentrates samples on the top modes. Roughly, and not the paper's account, rewards in the bulk often differ by only a factor of two or three while bulk objects outnumber top objects by orders of magnitude. Under that imbalance, sampling directly in proportion to RR returns mostly middling candidates. MAP-Elites fits problems where the user can name the features along which variety matters and supply a mutation operator. It returns a finite archive mapping how the best achievable performance varies across those features, and cannot produce solutions outside the chosen grid.

Sampling in proportion to RR maximizes expected log⁡R\log R plus entropy over objects, by Step 1's identity applied to objects instead of paths. The KL-regularized objective used to fine-tune language models has the same optimum, with RR equal to the reference model's probability times the exponential of reward divided by the KL weight. A language model writes a given token sequence in exactly one order, so its construction graph over token sequences is a tree and the many-paths bias of Step 1 does not arise there. That bias arises when one object can be assembled in several orders, as graphs and sets can (the link is drawn here; the papers do not draw it).

Steps 1 to 3 prove the GFlowNet propositions, and the grid runs check them against an exact target. Every molecule result rests on a proxy reward. Like temporal-difference methods, the loss also bootstraps from its own flow estimates, and in the molecule runs the learned flows appear to underestimate the highest rewards (Technical notes). The MAP-Elites paper is a preliminary draft whose authors state the experiments will be redone; one method in one domain has only 5 finished runs.

Terms

GFlowNet target
sample xx with probability R(x)/ZR(x)/Z; an object with half the top reward is drawn half as often
Many-paths bias
path-proportional sampling (maximum-entropy RL) gives n(x)R(x)n(x)R(x), favoring objects with many construction orders
Flow consistency
at every state, inflow equals reward plus outflow; finished objects absorb flow R(x)R(x)
Flow policy
π(s′∣s)=F(s→s′)/F(s)\pi(s'\mid s)=F(s\to s')/F(s); visits ss with probability F(s)/F(s0)F(s)/F(s_0), and F(s0)=ZF(s_0)=Z
Flow-matching loss
squared log ratio of ϵ\epsilon+inflow to ϵ\epsilon+outflow at each visited state; trainable off-policy
Non-uniqueness
many consistent flows split the flow differently among parents and give the same sampler
Molecule result
trained toward (R/8)10(R/8)^{10}, top 1,000 average 8.17 against 7.82 (PPO) and 7.64 (MARS), Tanimoto similarity 0.44 against 0.62 and 0.59
Active learning
refitting the proxy on each batch rewards varied batches: 10 grid modes in 5 rounds against 10 rounds for MCMC
MAP-Elites rule
pick a random elite, mutate, keep the child if its cell is empty or it beats the occupant
Global reliability
average over fillable cells of the run's best relative to the best known, 0 if empty
Precision; coverage
the same average over the run's filled cells; share of fillable cells filled
Stepping stones
elites in other cells lead to better solutions; lineages cross the map

Sources

Connected notes

  • Direct preference optimizationLearning from human preferences · Exponential tilting

    Without the KL term the best policy puts all its mass on one sequence; with it the target is πrefer/β/Z\pi_{\rm ref}e^{r/\beta}/Z, which puts mass on exactly the sequences the reference model gives mass to and moves toward the best sequences as β\beta falls.

  • Labelers were told to penalize inaccuracy but not copying, so summarization policies learned to copy whole sentences, and collecting labels on the current policy's samples during training mattered for summarization, where labelers preferred the online model 64% and 65% of the time.

  • Classifier-confidence distillation collapses images onto typical prototypes and attraction-only drifting reduces to mean shift on density peaks (FID 177 against 8.5), while adding repulsion between synthetic views spreads ten images across each class and raises SigLIP2 coverage from under 10% to 77.0%.

  • In a PAC-Bayes bound the KL from posterior to prior is the complexity term, and a Gaussian prior centered at the initialization makes it grow with how precisely the weights are specified and how far they move in training.

Threads