Manuscript Offprint

arXiv:2610.05353

FACET: Factorized Asymmetric Conditioning for Efficient Transport in High-Fidelity Fluorescence Microscopy Synthesis

Sazan Mahbub, Caleb N. Ellington, Eric P. Xing

ABSTRACT

Fluorescence microscopy reveals where proteins localize, but only a limited number of proteins can be imaged in the same cell; generating these images from amino-acid sequence and the cell's morphological context enables in silico localization of unimaged proteins. The two conditions, however, play asymmetric roles: morphological context is spatially aligned with the target, whereas sequence is non-spatial and must specify protein-dependent localization within it, with recurring coarse patterns shared across proteins and finer protein-specific variation. Existing generators condition on both jointly, without separating what each explains. We introduce FACET (Factorized Asymmetric Conditioning for Efficient Transport), a probabilistic generative framework that encodes this structure as an explicit inductive bias: sequence semantics are learned from what context leaves unexplained, coarse localization regularities are shared across proteins through a semantic memory, and protein-specific variation is a bounded residual around them. A variance-preserving state projection further lets FACET perform continuous stochastic transport through a pretrained diffusion predictor with minimal parameter overhead. On held-out proteins, FACET improves spatial overlap by 34.3% on the Human Protein Atlas and 14.0% on OpenCell over a backbone-matched baseline, and reduces FID by 27.2% and 46.5%, respectively, with 75% fewer network evaluations. It also substantially improves protein-association structure recovery and yields better-calibrated predictions, while detailed ablations show complementary contributions from its design choices. These results identify factorized asymmetric conditioning, rather than generator capacity alone, as a key lever for high-fidelity, efficient, and biologically meaningful cellular image synthesis.

1 INTRODUCTION

Protein subcellular localization is a spatial phenotype that links molecular identity to cellular function and is directly observed through fluorescence microscopy (Thul et al., 2017). Recent sequence-to-image models generate these phenotypes from protein sequence and cellular context (Khwaja et al., 2023; Zheng & Huang, 2025; Zhang et al., 2025). Yet these conditions play fundamentally different roles: context is spatially aligned with the target, whereas sequence is non-spatial and must specify protein-dependent localization semantics within that context. The conditions are therefore asymmetric in representation and explanatory role, rather than in biological importance.

Our key insight is that protein localization is inherently context-relative and hierarchically organized, spanning from recurring regularities shared across proteins to finer protein-specific variation. This motivates three coupled modeling requirements. First, sequence representations should capture localization information beyond what context already explains: even a linear map from context features explains over a third of held-out target-feature variance (Appendix B.2), a lower bound on the redundancy that sequence semantics need not re-encode. Second, recurring coarse localization regularities should be shared across proteins rather than relearned independently. Third, finer protein-specific variation should remain distinct from both the shared regularities and image stochasticity.

We introduce FACET, a probabilistic generative framework that translates this hierarchy into asymmetric conditioning: sequence semantics are factorized into coarse semantics, retrieved from a

Contact: smahbub@cs.cmu.edu, cellingt@cs.cmu.edu, epxing@cs.cmu.edu memory built on context-residualized features, and finer protein-specific variation, which jointly condition stochastic transport through a pretrained diffusion model. This formulation encodes an explicit inductive bias: sequence semantics are learned from what context leaves unexplained, coarse localization regularities are shared across proteins, and protein-specific variation is bounded relative to them, a structure that favors generalization to unseen proteins.

FACET improves spatial overlap by 34.3% on the Human Protein Atlas (HPA; Thul et al., 2017) and 14.0% on OpenCell (Cho et al., 2022) benchmarks over a backbone-matched baseline, and reduces FID by 27.2% and 46.5%, respectively, with 75% fewer network evaluations. It also strengthens protein-association separation by 39–87% across association-confidence thresholds and reduces calibration error by 74.7%.

Our major contributions are:

• Factorized asymmetric conditioning. We introduce FACET, a generative framework that assigns cellular context, shared localization semantics, protein-specific variation, and image stochasticity to separate conditioning roles, using a context-residualized semantic memory while preserving their hierarchical dependencies.

• Principled latent-variable formulation with efficient transport. We derive a conditional latent-variable model whose evidence lower bound decomposes into coarse-semantic, protein-specific, and transport terms, each optimized blockwise by our staged objective, and establish an exact variance-preserving state projection that enables continuous stochastic transport through a pretrained finite-schedule latent diffusion predictor with under 0.6% parameter overhead.

• Broad empirical gains and controlled analyses. On HPA and OpenCell, FACET substantially improves spatial agreement and distributional fidelity with 75% fewer network evaluations. Controlled ablations isolate the contributions of its semantic, hierarchical, and transport components, while further analyses show cross-dataset transfer, consistent gains across multi-channel context compositions, stronger recovery of protein-association patterns, and improved predictive calibration.

Related work. Sequence-conditioned localization imaging has progressed from bidirectional sequence-image transformers (Khwaja et al., 2023) and sequence- and landmark-conditioned prediction (Zhang et al., 2025) to diffusion conditioned on sequence and morphology (Zheng & Huang, 2025); concurrent preprints scale identity-conditioned generation to 12,800 human proteins (Sun et al., 2026) or adopt autoregressive generation (Kambhampati et al., 2026). These works mainly advance the image model; FACET instead factorizes sequence semantics and cellular context within a conditional generator, complementing any pretrained variance-preserving backbone, so we compare in a backbone-matched setting. Extended discussion on related work is provided in Appendix A.

References (96)

  • Stochastic interpolants: A unifying framework for flows and diffusions
  • Interval estimation for a binomial proportion
  • OpenCell: Endogenous tagging for the cartography of human cellular organization (opens the publisher in a new tab)
  • Accurate and general dna representations emerge from genome foundation models at scale
  • PMR: Prototypical modal rebalance for multimodal learning
  • Domain-adversarial training of neural networks
  • Shortcut learning in deep neural networks (opens the publisher in a new tab)
  • On calibration of modern neural networks
  • Textural features for image classification (opens the publisher in a new tab)
  • Gans trained by a two time-scale update rule converge to a local nash equilibrium
  • Denoising diffusion probabilistic models
  • LoRA: Low-rank adaptation of large language models
  • Modality competition: What makes joint training of multi-modal network fail in deep learning? (Provably)
  • Vermeer: Autoregressive generative modeling of microscopy predicts protein localization (opens the publisher in a new tab)
  • Elucidating the design space of diffusion-based generative models
  • CELL-E 2: Translating proteins to pictures and back with a bidirectional text-to-image transformer
  • Auto-encoding variational Bayes
  • Tackling the widespread and critical impact of batch effects in high-throughput data (opens the publisher in a new tab)
  • Science, 379(6637):1123–1130, 2023
  • Flow matching for generative modeling
  • Flow straight and fast: Learning to generate and transfer data with rectified flow
  • Uncertainty-aware discrete diffusion improves protein design
  • Retrieval-augmented interpretable learning: Towards task-specific zero-shot models in healthcare (opens arXiv in a new tab)
  • Prism: Enhancing protein inverse folding through fine-grained retrieval on structure-sequence multimodal representations
  • On a test of whether one of two random variables is stochastically larger than the other
  • BézierFlow: Learning Bézier stochastic interpolant schedulers for few-step generation
  • Balanced multimodal learning via on-the-fly gradient modulation
  • FiLM: Visual reasoning with a general conditioning layer (opens the publisher in a new tab)
  • High-resolution image synthesis with latent diffusion models
  • Diff2Flow: Training flow matching models via diffusion model alignment
  • Ladder variational autoencoders
  • Denoising Diffusion Implicit Models
  • Score-based generative modeling through stochastic differential equations
  • Generative machine learning unlocks the first proteome-wide image of human cells (opens the publisher in a new tab)
  • Mixture of experts enable efficient and effective protein understanding and design
  • The STRING database in 2023: Protein–protein association networks and functional enrichment analyses for any sequenced genome of interest (opens the publisher in a new tab)
  • A subcellular map of the human proteome (opens the publisher in a new tab)
  • Improving and generalizing flow-based generative models with minibatch optimal transport
  • What makes training multi-modal classification networks hard? In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12695–12705, 2020
  • Prediction of cellular morphology changes under perturbations with a transcriptome-guided diffusion model (opens the publisher in a new tab)
  • Multiscale structural similarity for image quality assessment
  • Adding conditional control to text-to-image diffusion models
  • Prediction of protein subcellular localization in single cells
  • Bridging protein sequences and microscopy images with unified diffusion models
  • A large-scale foundation model for rna function and structure prediction
  • Variational autoencoders provide amortized latent-variable inference, while hierarchical variants show how multiple stochastic levels can represent different factors of variation (Kingma & Welling, 2014; Sønderby et al., 2016; Mahbub et al., 2026a;b)
  • Shortcut learning concerns reliance on easy predictive cues (Geirhos et al., 2020), batch effects arise from acquisition or processing variation
  • FACET differs from these objectives: cellular morphology is a scientifically meaningful conditioning variable and remains directly available to the generator rather than being treated as a nuisance signal to remove
  • Rather than optimizing the ELBO jointly, we adopt a modular training procedure: we first construct the context-residualized memory and pretrain the semantic prototype prior and $\varepsilon$-adapter, then train the continuous residual and conditional transport model
  • As derived in Appendix D.2, for a sampled $\tau$, the conditional flow target is
  • The reconstruction terms supervise the auxiliary latent estimate, while flow matching supervises the composed velocity
  • The same frozen VAE encoder $E$ produces the spatial target latent $z_1 = E_Y(Y) = E(Y) \in \mathbb{R}^{4 \times 64 \times 64}$ and context encoding $E_C(C) = [E(C_{\mathrm{nucl}}); E(C_{\mathrm{ER}}); E(C_{\mathrm{MT}})] \in \mathbb{R}^{12 \times 64 \times 64}$
  • An affine ridge predictor $b$ is fit using training proteins only, and the per-image residual is
  • For a training protein p with image set $\mathcal{I}_p$, we compute
  • The memory contains $K = 9$ prototype vectors based on UniProt-localization annotation
  • At inference, the prior $p_{\eta}(R \mid S, \mathcal{M})$ predicts a distribution over the prototype-valued states, and the deployed readout is
  • Both distributions are parameterized by three-layer MLPs with width 512 and SiLU activations (denoted by $g_{\omega}$ and $g_{\eta}$ below), producing logits over the K = 9 prototypes:
  • The frozen VAE encoder $E$ provides the target latent $z_1 = E_Y(Y) = E(Y)$ and, for HPA, the spatial context $E_C(C) = [E(C_{\mathrm{nucl}}); E(C_{\mathrm{ER}}); E(C_{\mathrm{MT}})]$
  • The pretrained error-predictor weights, VAE encoder and decoder, and protein sequence encoder remain frozen
  • FACET employs residual operations at four levels: context-residualized target features, a continuous semantic residual around the coarse memory, a residual correction to the pretrained noise estimate, and a correction to the base velocity field
  • The reported uniform sampling range is $\tau_{\min}=0.05$ to $\tau_{\max}=1$, with $\Delta \tau = (\tau_{\max} - \tau_{\min})/n$
  • Here, AdaptedPredictor( $\cdot$) denotes the pretrained $\varepsilon$-predictor augmented with LoRA and the $\varepsilon$-adapter, reusing the sequence embedding $h_S$ and memory readout $m_S$ computed during conditioning
  • Curriculum: Appendix B.1
  • 15–18 ($\mathcal{L}_{\text{rec,pix}}$ on every fourth step)
  • 26; $z_S = m_S$ in phase (i))
  • 9 from the Gaussian-reparameterized stochastic interpolant
  • Substituting this estimate for the unknown effective noise yields
  • Thus, differentiating the reparameterized expression while holding $\epsilon_{\tau}$ fixed is not, in general, the pathwise derivative of the original sampled trajectory
  • Consequently
  • 38 and 46 recover the two expressions in Eq
  • it does not additionally enforce $x_{\tau} = A_{\tau} \hat{z}_{1}^{\theta} + Q_{\tau} \hat{\epsilon}_{L}$
  • During training, these auxiliary objectives complement flow matching by providing direct latent- and pixel-space supervision
  • Moreover, letting $r = \hat{z}_1^\theta - z_1$, a first-order expansion gives
  • Initialization and final emission follow Algorithm 2
  • Since $\Sigma_p^{-1} = \sigma_z^{-2} I$, the remaining quadratic term gives
  • Each example contains a protein amino-acid sequence, a target protein-fluorescence image, and three cellular-context channels corresponding to the nucleus, endoplasmic reticulum (ER), and microtubules (MT)
  • nucleus, nucleus+ER, nucleus+MT, and nucleus+ER+MT as done in prior work (Zheng & Huang, 2025)
  • The released OpenCell training split contains 5,828 images from 1,211 proteins and the test split contains 473 stored examples from 100 proteins $^{2}$
  • From these 10% samples are held-out as validation set, containing 117 proteins and 544 corresponding images
  • We evaluate HPA-module transfer of the HPA-trained FACET modules and further OpenCell adaptation of those modules on the OpenCell training split
  • At scales 1-4, the SSIM map is spatially averaged before combining the scales
  • We use STRING (Szklarczyk et al., 2023) solely to obtain external evaluation labels
  • Positive values indicate stronger association-consistent spatial patterns
  • For each input condition, stochastic generation produces an empirical foreground probability $p_u$ at spatial location $u$
  • Unless otherwise specified, the reported image metrics use the same preprocessing, feature extraction, aggregation rules, and checkpoint across methods
  • The backbone-matched reference uses the same total predictive-sample budget
  • This gives $t = 6.111$ on the stored 0–255 uint8 scale ( $t/255 \approx 0.02397$)
  • Note that the threshold in Eq
  • On matched hardware (Appendix E.4), the measured generation loop for the 696-image HPA evaluation set takes approximately 15 minutes for FACET and 78 minutes for the reference, corresponding to an approximately 80.8% reduction in wall-clock time
  • The wall-clock measurements are reported as a complementary hardware-specific observation
  • Because this ratio uses unnormalized Jacobian norms and $z_{S}$ and $z_{C}$ have different latent scales, we treat it as a descriptive diagnostic rather than a scale-independent comparison
  • The lower cutoff is an implementation choice associated with the inherited finite native schedule and numerical endpoint handling; it is not a universal FACET constant
  • The least-noisy level of the pretrained predictor's 200-level cosine training schedule ($\bar{\alpha} \approx 0.99975$) maps to $\tau \approx 0.98588$
  • The examples provide broader coverage of the conditional-generation setting beyond the main-text qualitative comparison
  • CELL-Diff (fine-tuned)
  • These examples extend the main-text qualitative comparison using the same evaluation setting, method names, and visualization conventions