BioFlowBiological support,preserved by design.

A histology image contains clues about where genes are expressed—but expression itself is sparse, zero-inflated, and never negative.

Conventional flow models ignore that boundary. Their trajectories can pass through biologically impossible negative states.

BioFlow changes the vector field itself, so every step of generation remains inside the non-negative expression space.

Scroll to readMICCAI 2026
Histology → spatial transcriptomics

A biologically valid support-preserving flow for predicting spatial gene expression

Spatial transcriptomics maps gene activity back to tissue architecture, but measuring it remains expensive and technically demanding. BioFlow predicts those maps directly from routine H&E histology while respecting a constraint that ordinary generative models overlook: gene expression cannot fall below zero.

01 · Motivation

The endpoint is not the whole story.

Histology-conditioned prediction asks a model to translate visual tissue morphology into thousands of gene-expression values at each spatial location. The data live in a sharply bounded space: many genes are exactly zero, and every remaining value is non-negative.

Standard flow matching learns an unconstrained velocity field in ordinary Euclidean space. It may arrive at a plausible final prediction while taking intermediate steps through negative expression. Those invalid states are not harmless—they distort the learned transport precisely where real spatial transcriptomics is most concentrated: near the zero boundary.

Unconstrained and support-preserving expression trajectories from the BioFlow poster
The geometric mismatchThe original poster illustration shows the central contrast: an unconstrained trajectory crosses into negative expression, while BioFlow stays inside the biologically admissible region.
Non-negativity should be a property of the trajectory dynamics—not a correction applied after invalid states have already occurred.
BioFlow · design principle
02 · Model architecture

From tissue morphology to a valid expression field.

BioFlow keeps the strong visual backbone of modern histology models, then changes the generative head. An H&E patch is encoded by a pathology foundation model; image tokens condition a transformer over noisy gene tokens and time. The final head predicts a support-preserving velocity rather than an unconstrained one.

01

H&E patch

Local tissue morphology at each spatial spot.

02

UNI encoder

Pathology-aware visual tokens encode cellular context.

03

Gene tokens

Noisy expression tokens are paired with a time embedding.

04

Token transformer

Cross-modal reasoning links morphology to expression.

05

BioFlow field

A constrained velocity generates non-negative expression.

01 · Vanilla flow matching

First, learn an unconstrained velocity.

Standard flow matching regresses a vector field toward the conditional transport velocity. Nothing in this objective restricts the predicted direction to the biological domain.

02 · Boundary failure

At zero, one negative velocity is enough.

An ordinary Euler step adds the learned velocity directly. If a zero-valued gene receives a negative component, the next state immediately leaves the valid support.

03 · BioFlow reparameterization

Change the field, not the endpoint.

BioFlow decomposes velocity into a linear decay and a non-negative residual. Expression can decrease in the interior while the boundary remains inward-pointing.

04 · Continuous-time guarantee

The solution cannot cross zero.

The integrating-factor solution is a sum of non-negative terms whenever the initial state and residual are non-negative.

05 · Discrete-time guarantee

Sampling preserves support too.

With 0 < h ≤ Δ, both coefficients in the Euler update are non-negative—so every numerical step remains biologically valid.

Standard objectiveFlow Matching
ℒFM = 𝔼 ‖vθ(xt,t | I) − ut(x0,x1)‖²
ẋt = vθ(xt,t | I)∈ℝG
The regression target specifies where to move, but not whether the trajectory stays in ℝ+G.
Why support is lostEuler step
xt+h = xt + h·vθ(xt,t | I)
xt,j = 0
+
vθ,j < 0
⇒ xt+h,j < 0
Near sparse boundaries, a single outward-pointing component creates an invalid gene-expression value.
Support-preserving fieldBioFlow
v̂θ(xt,t | I) = −xt/Δ + φθ(xt,t | I)
φθ(·) ≥ 0 · At xt,j = 0, the decay vanishes and v̂θ,j cannot point outward.
Continuous-time solutionGuarantee I
x(t) = e−t/Δx(0)+ ∫0t e−(t−s)/Δ φθ(x(s),s) dsx(0) ≥ 0, φθ ≥ 0 ⇒ x(t) ≥ 0
Both the decayed initial state and accumulated residual stay non-negative.
Numerical updateGuarantee II
xt+h = (1−h/Δ)xt + hφθ(xt,t | I)
0 < h ≤ Δ makes both coefficients non-negative, preserving support at every Euler step.
03 · Mechanistic evidence

What changes when the full trajectory is valid?

The poster’s diagnostic experiments isolate the mechanism before measuring downstream accuracy. Each test asks the same question at a different scale: what happens near zero when the vector field is allowed to point out of the valid domain?

01 · Trajectory

One path crosses the boundary. One does not.

The poster’s opening illustration makes the structural difference visible before any metric is introduced.

02 · Vector field

At zero, direction is everything.

Vanilla flow often points outward at the expression boundary. BioFlow’s field is inward-pointing by construction, eliminating one-step escape.

03 · Zero-valued genes

Sparse genes expose the failure.

Starting exactly at zero, vanilla trajectories repeatedly enter negative territory. BioFlow remains non-negative over the entire evolution.

04 · Increasing sparsity

More zeros amplify the difference.

As zero inflation rises, boundary errors grow for the unconstrained model. BioFlow’s violation rate remains at zero.

05 · Post-hoc correction

Clamping cannot reconstruct the path.

Clipping the endpoint removes negative numbers, but it does not recover the spatial correlation lost while the model evolved through invalid states.

Poster comparison of unconstrained and support-preserving trajectories
Poster analysis of boundary velocities and support violations
Poster trajectories for initially zero gene expression
Poster chart of boundary errors against expression sparsity
Poster comparison showing post-hoc clamping does not recover BioFlow correlation
04 · Real spatial transcriptomics

The constraint improves the prediction, not just the path.

Across HER2ST, PRAD, and READ, BioFlow improves spatial correlation while preserving recognizable expression patterns and training far faster than iterative diffusion baselines. The poster’s final row brings accuracy, spatial fidelity, and efficiency together.

BioFlow quantitative performance across HER2ST, PRAD, and READ
Performance across three public datasets: .287, .401, and .254 PCC, with consistent gains over prior methods.
Spatial expression recovery for AMD1 on PRAD
Spatial recovery on PRAD: BioFlow best preserves the ground-truth AMD1 pattern, reaching gene-level PCC 0.639.
BioFlow training efficiency and performance
Support-preserving generation combines stronger correlation with stable training and substantially lower training cost.
The broader lesson

Biology is part of the geometry.

BioFlow does not ask a generic generator to become valid after the fact. It turns non-negativity into a property of the transport itself. That small change in the vector field produces a coherent chain of consequences: valid boundary behavior, stable zero-gene trajectories, better spatial structure, and stronger predictions from routine histology.