Preprint 2026

Scalable Inference-time Steering in Biological Design with Multimodal Meta Flow Maps

1Harvard University 2Princeton University 3Kempner Institute 4IAIFI *Equal contribution

Molecule drawings in four columns and three rows. The top row has four target molecules from GEOM-Drugs. The middle row has the base model's samples, which share little with their targets: Tanimoto similarity 0.11, 0.09, 0.28 and 0.17. The bottom row has the multiMFM samples from the same noise, which recover each target's ring system and linker: Tanimoto similarity 0.70, 0.68, 0.81 and 0.60. In every molecule the part it shares with the target is shaded.
Curated examples of posterior guidance with a multimodal Meta Flow Map for small molecule design. We seek to design a molecule with target fingerprint \(c\) as highlighted in red. \(p_1(x)\) is the distribution that the base molecular generator samples. Steering with multiMFM samples from the distribution \(p_1(x)e^{r_c(x)}\) where \(r_c(x)\) rewards structural similarity with the target. Tanimoto similarity with target increases after steering. (\(\textrm{Tanimoto}=1\) implies full agreement.) The mean Tanimoto similarity with the target fingerprint is 0.276 across 12,288 molecules.

Overview

Biological design problems can be continuous (e.g. molecular structures), discrete (e.g. DNA residue types), or both (e.g. protein structure–sequence co-design). Diffusion and CTMC-based methods have been developed for multimodal generation, but it remains challenging to adapt them at inference time to fulfill design constraints.

Meta Flow Maps (MFM) are one-step posterior samplers. They have shown high controllability for image generation because they give accurate estimates of reward gradients. We develop the framework of discrete (dMFM) and multimodal (multiMFM) Meta Flow Map adaptable to biological domains. We use dMFM to design DNA sequences with a target mechanical property, and multiMFM trained on QM9 and GEOM-Drugs to design molecules with a given physical property and structural fingerprint. In both cases, steering improves target attainment using one reward-independent MFM per base generator.

Motivation

Molecular and sequence design tasks often require optimizing different combinations of objectives, such as stability, binding affinity, activity, or constraint satisfaction. Training or fine-tuning a separate generative model for every new reward limits the rate of experimentation. Instead, we keep a base generator fixed and steer it with reward-guided inference, so that different objectives can be explored without retraining the generator.

Reward-guided sampling needs the gradient of the value function \(V_t(x_t) = \log \mathbb{E}\big[e^{r(X_1)} \mid X_t = x_t\big]\), which is an expectation over the posterior of clean samples given the current state. Methods such as DPS evaluate the reward at a single denoised estimate instead. This is biased, and the bias does not go away with more compute. A Meta Flow Map gives cheap samples from the posterior, so the expectation can be estimated directly.

Our main contributions are:

  • We formulate discrete GLASS posterior sampling and derive the discrete MFM.
  • dMFM optimizes generated DNA sequences at inference time toward prescribed predicted cyclizability values.
  • We combine continuous and discrete MFMs into multiMFM for mixed discrete–continuous steering.
  • We adopt multiMFM for small-molecule generation. multiMFM steers toward chemical-property targets with high accuracy, using a single distilled MFM that is reused across property objectives.

Method

A Meta Flow Map \(\Phi(\epsilon; t, x_t)\) sends Gaussian noise \(\epsilon\) to a sample of the posterior \(p_{1|t}(\cdot \mid x_t)\) in one step. Drawing \(N\) noises \(\epsilon_i\) and evaluating the map on each gives \(N\) posterior samples, and from the \(N\) samples we form a Monte Carlo estimate of the value-function gradient:

\[ \widehat{\nabla V}^{\,r}_t(x_t) = \nabla_x \log\left(\frac{1}{N}\sum_{i=1}^{N}\exp\big(r(\Phi(\epsilon_i;t,x_t))\big)\right) \]

The MFM is distilled once from the base model and does not depend on the reward. For discrete data, we extend GLASS to sample \(p(x_1 \mid X_t = x_t)\) with an inner flow on the probability simplex. We then distill this inner flow into a dMFM, trained with a cross-entropy diagonal loss against the base denoiser plus a consistency loss. When the state has a continuous part \(y_t\) and a discrete part \(a_t\), multiMFM samples both jointly from \(p_{1|t}(y_1, a_1 \mid y_t, a_t)\). Each modality is then steered with its partial gradient of the same value function.

Schematic of multimodal steering. On the left a continuous axis from a Gaussian prior to a multimodal data density; on the right a probability simplex with three vertices. A dashed black untilted trajectory and a solid red tilted trajectory run through both. From the current state, light gray fans of posterior look-ahead samples spread to the endpoint, where a reward evaluates them and sends gradients back as yellow arrows on each modality.
Inference-time steering with a multimodal Meta Flow Map. The unguided trajectory is dashed black. Conditioned on the current state \((t, y_t, a_t)\), multiMFM draws look-aheads from the joint posterior (light gray). The reward evaluates the look-aheads and sends gradient signal back to guide the path (red). No independence between modalities is assumed.

A toy example

We also give a synthetic example. Each particle in the plane has a position and one of three colors, and the base model spreads the colors uniformly over a square. We steer the particles into a Norway flag or a smiley.

Four scatter panels of colored particles: Gaussian noise; the base model, a uniform square of red, white and blue points; the same distribution steered by a Norway-flag reward, which arranges the colors into the Norwegian flag; and steered by a smiley reward, which moves points into two colored eyes and a white mouth.
Toy example. Posterior guidance with a multimodal Meta Flow Map. \(p_0\) is the noise distribution and \(p_1\) is the base model distribution. Each particle has a continuous position and a discrete color. The Norway example steers only the colors, while the Smiley example steers both position and color.

Results

Molecular property guidance

For molecules, the discrete modality is atom types and the continuous modality is coordinates. Our base model is inspired by Tabasco, with the CTMC for atom types replaced by discrete flow matching from a Gaussian prior to the simplex. We model heavy atoms only and use the property-guidance setup of TFG-Flow. multiMFM has lower error than the published TFG-Flow values on every property, and the lowest error among all inference-time methods on five of the six properties. The baseline numbers were evaluated with RDKit validity, while ours use the stricter PoseBusters filter, which also checks bond lengths, angles, planarity, clashes and internal energy.

One can add the steer-search trick (multiMFM-SS) to multiMFM. At every guided step multiMFM already computes look-ahead estimates of the finished molecule. Steer-search keeps the best PoseBusters-valid look-ahead according to the guide, and returns it instead of the trajectory's endpoint. This costs no additional generative-model evaluations, lowers the error on four of the six properties, and raises PoseBusters validity from 90.2–92.5% to 96.2–98.5%.

Method \(C_v\) \(\mu\) \(\alpha\) \(\Delta\varepsilon\) \(\varepsilon_{\mathrm{HOMO}}\) \(\varepsilon_{\mathrm{LUMO}}\)
#Atoms (reference)1.971.053.86886426813
EEGSDE0.9410.7772.50487302447
UniGEM0.8730.8052.22511233592
TFG-Flow1.750.8172.32804364941
multiMFM0.440.561.05465238306
multiMFM-SS0.430.560.99450238274

QM9 mean absolute error (lower is better; energies in meV). Baseline values are reproduced from Table 1 of TFG-Flow. Our rows are means over replicate runs of 1,000 molecules each. The full table, with all baselines and PoseBusters validity, is in the paper.

Comparison at matched inference cost

On QM9 we compare against three inference-time methods that share our base generator, guide and held-out oracle: best-of-\(N\), Feynman–Kac steering, and DPS. Cost is counted in forward-equivalent network calls, and our backward pass is billed at its measured cost. The MFM estimates the value function from Monte Carlo samples, while the denoiser in DPS can only approximate it with a large bias. multiMFM is below every baseline at every budget, and its lead over DPS grows with the budget. multiMFM-SS reaches a given accuracy with about half the compute of best-of-\(N\).

Two log-scale panels. Left: value-function error against function evaluations; FMAP and DPS are flat horizontal lines while multiMFM falls steadily by about two orders of magnitude. Right: oracle MAE against forward-equivalent calls per molecule; best-of-N and Feynman-Kac lie on top of each other, DPS flattens early, and multiMFM and multiMFM-SS run below all of them at every budget.
QM9 property steering (polarizability \(\alpha\)) at matched inference cost. Left: error in the estimated value function against the number of Monte Carlo samples; each sample is one network call. DPS and FMAP are deterministic point estimates, so they cannot improve with budget. The dotted line is the reference's own sampling noise. Right: held-out oracle MAE against forward-equivalent calls per molecule, with the guided methods billed for their backward pass.

Drug-sized molecules (GEOM-Drugs)

multiMFM scales to GEOM-Drugs molecules with up to 71 heavy atoms, compared with nine in QM9. Given a target fingerprint, we guide with a differentiable relaxation of the Tanimoto coefficient (TFG-Flow uses a squared error on the same fingerprints). For evaluation we count the fingerprints directly from the generated molecules, so no learned evaluator is involved. Four examples are shown at the top of this page.

Mean Tanimoto similarity should be read against a floor: two unrelated real molecules already share a similarity of about 0.22. Guidance raises the mean from 0.229 to 0.276 and increases the margin above the floor sixfold, while PoseBusters validity goes from 87.5% to 89.5%. Under TFG-Flow's 30-heavy-atom cap and scoring convention, multiMFM reaches 0.249, compared with TFG-Flow's published 0.208. TFG-Flow's tanimoto similarity is below the setting's floor of 0.210. Each result is averaged over three runs of 4,096 molecules.

Two panels. Left: overlapping histograms of FP2 Tanimoto to target for unguided molecules in gray and multiMFM in red, with the guided distribution shifted right; a dashed line marks the random-pair floor. Right: a dot plot comparing TFG-Flow unconditional, TFG-Flow, our base generator and multiMFM under a 30-heavy-atom cap, with a shaded band at or below the floor containing both TFG-Flow points.
GEOM-Drugs structural fingerprint guidance. The dashed line is the floor, the FP2 Tanimoto similarity between two unrelated real molecules from the same pool. Left: per-molecule distributions over 12,288 generated molecules per arm, with guided and unguided samples sharing noise and targets; solid lines mark the means. Right: the same experiment under TFG-Flow's 30-heavy-atom cap and scoring convention. The shaded region is below the floor, and the value TFG-Flow reports for its guided model falls inside it. Scores under the floor are inconclusive whether guidance improves the similarity to target.

DNA designed for a target mechanical property

Sequence-encoded DNA mechanics can carry regulatory information beyond transcription-factor motif content. Intrinsic cyclizability, a proxy for DNA bendability, is sequence dependent, and promoter-proximal yeast nucleosome-depleted regions contain unusually low-cyclizability DNA (Basu et al., 2021). We train a base discrete flow model on DNA, distill it into a dMFM, and steer 50-bp sequences toward a target predicted cyclizability.

To keep guidance and evaluation separate and to prevent reward hacking, we train two cyclizability regressors on disjoint parent sequences: a guide, which is differentiated only during sampling, and an oracle, which is used only for evaluation. For each target we generate 1,000 guided–unguided pairs from the same initial noise. Guidance reduces oracle MAE from 1.174 to 0.153 at \(y^\star{=}{+}1\) and from 0.833 to 0.117 at \(y^\star{=}{-}1\).

Target \(y^\star\) Mean oracle score Oracle MAE ↓
Unguided Guided Unguided Guided
\(+1\)−0.1710.9201.1740.153
\(-1\)−0.171−0.9640.8330.117

Cyclizability of 50-bp sequences guided with dMFM, scored by the oracle. 1,000 guided–unguided pairs per target, with shared initial noise. The oracle is trained on parent sequences disjoint from the guide's and is never used during sampling. 95% confidence half-widths are at most 0.026.

We also test rewards whose target error can be computed exactly, without an oracle: a motif (TTTTTC) and a conjunction of two motifs (TTTTTC and AAAATT). With the same guidance hyperparameters for sequences of 50 to 400 bases, guidance improves 93–98% of matched pairs and preserves both sample uniqueness and Evo2 likelihood.

Three-panel schematic. Left: a cyclizability objective with a bimodal distribution of predicted scores, a target value marked by a red arrow, and the squared-error reward. Middle: a reward-steered discrete flow, where per-position nucleotide distributions start near-uniform and become sharply peaked on single bases after reward-gradient tilting. Right: designed 50-bp sequences as colored bars with their predicted scores near the target.
Cyclizability-guided DNA design. A guide predictor defines the terminal reward and supplies gradients for sampling. Generated sequences are scored by a parent-disjoint oracle (not shown), which is never used during guidance. On 58 held-out parent sequences, the guide and oracle reach Pearson \(r \approx 0.88\) with MAE 0.16.

Citation

@misc{unneberg2026multimfm,
  title  = {Scalable Inference-time Steering in Biological Design
            with Multimodal Meta Flow Maps},
  author = {Unneberg, Ulrik and Wang, Shiyi and Franceschi, Dinko
            and Xiong, Ziyu and Kozinsky, Boris and Zhong, Ellen D.
            and Albergo, Michael S.},
  year   = {2026},
  note   = {Preprint}
}