Vermeer: Autoregressive generative modeling of microscopy predicts protein localization

Sandeep Kambhampati, Eric Zimmermann, Emre Berk Hayir, Kevin K Yang, Fei Chen, Alex Xijie LuNeurIPS 2026

TL;DR

Knowing a protein’s amino acid sequence isn’t enough to know what it does—you also have to see where it goes inside a living cell, across thousands of cell types and conditions. Since photographing every possible combination in a wet lab is practically impossible, researchers built Vermeer, an autoregressive AI that generates sharp, biologically accurate microscopy images of protein locations from scratch. Better yet, because it treats microscope channels like words in a sentence, it can adapt on the fly to totally new lab setups with missing or rearranged stains.

What Problem Does This Paper Address?

If a cell is a bustling city, proteins are its workers. A worker's job depends heavily on their location—a protein in the nucleus behaves differently than the exact same protein out in the cytoplasm, and a misplaced protein often spells disease.

Fluorescence microscopy lets us watch this cellular commute by glowing different colors for different structures. Yet, the sheer scale of biology hits a wall here. Even the massive Human Protein Atlas (HPA)—humanity’s premier catalog of cellular images—has only managed to capture about 8% of the combinations across its 13,080 proteins and 40 cell lines. Factor in thousands of other human cell types, mutations, and drug treatments, and wet-lab imaging faces a combinatorial explosion.

Generative AI offers a tantalizing shortcut: feed a model a protein’s sequence alongside basic "landmark stains" showing a cell’s layout (like its nucleus), and let it virtually stain where the protein localizes. However, existing models face two major hurdles:

  1. Blurry biology: Prior models often output fuzzy, indistinct blobs rather than crisp textures, missing subtle punctate dots or gradients that distinguish neighboring organelles.
  2. Rigid inputs: Different labs use different numbers of fluorescent channels. Standard vision models expect a fixed set of inputs—meaning if a new dataset lacks an endoplasmic reticulum stain, the model breaks unless retrained from scratch.

Methods

Named after the Dutch master of light, Vermeer reimagines multi-channel microscopy not as a fixed stack of RGB-like layers, but as a flexible, sequential language problem.

Overview of the Vermeer architecture, from protein conditioning and independent channel tokenization to autoregressive virtual staining and channel-adaptive generation.

Here is how the pipeline comes together:

  • Protein Conditioning (Standard + Custom Pooling): The protein’s amino acid sequence is fed through a frozen protein language model (ESM-C) to get embeddings, which are pooled (via mean pooling, or a Gaussian-smoothed attention pooling inspired by DeepLoc 2.0) into a single prefix vector.
  • Independent Channel Tokenization: Unlike a normal photo where red, green, and blue channels are tightly coupled, each microscopy channel represents a distinct biological marker. Vermeer feeds each $256 \times 256$ grayscale channel independently into a frozen, ImageNet-pretrained VQ-VAE tokenizer (from LlamaGen), compressing each channel into 256 discrete visual tokens.
  • Flattening into a Sentence (Novel Formulation): Vermeer strings all channel tokens together into one long sequence, wrapping each channel in custom start-of-channel (SOC) and end-of-channel (EOC) delimiter tokens, while 2D rotary positional embeddings (RoPE) keep track of spatial $(x, y)$ coordinates across channels. A decoder-only Llama-style transformer (up to 775M parameters in Vermeer-XL) is then trained via next-token prediction.
  • Channel-Adaptive Variant (Vermeer-CA): By randomly shuffling channel order and dropping channels during training, Vermeer-CA learns to generate protein stains from any subset of available landmark stains at inference time.

Datasets

  • Human Protein Atlas (HPA): Used for training and primary validation (~95,000 images across 13,080 proteins and 40 cell lines). Each image has 4 channels: nucleus, microtubules, endoplasmic reticulum (ER), and the target protein. The authors introduce three rigorous validation splits: unseen protein × cell-line pairs, completely unseen proteins, and completely unseen cell lines.
  • OpenCell: Used strictly for out-of-distribution, zero-shot (and fine-tuned) testing. OpenCell features 6,301 live-cell images using endogenous CRISPR GFP-tagging instead of antibodies, and contains only 2 channels (nucleus and target protein)—making it a tough test for cross-dataset generalization.

Key Insights and Ideas

  • Frozen VQ-VAEs naturally block "cheating": In microscopy, faint light from a protein channel sometimes leaks into landmark channels (spectral bleedthrough), allowing naive AI models to "cheat" without reading the protein sequence. While prior models required aggressive image thresholding to stop this, Vermeer ignores bleedthrough naturally—likely because its frozen ImageNet VQ-VAE tokenizer simply doesn't encode faint background artifacts.
  • It genuinely reads biological "zip codes": When the authors inspected their attention-pooling variant (Vermeer-AP), they found the model automatically placed significantly higher attention weights on known UniProt targeting motifs—like nuclear localization signals, ER signal peptides, and mitochondrial transit peptides—proving it learns real sequence biology rather than just memorizing proteins.
  • Zero-shot resolution and channel flexibility: Because of its patch-tokenized, autoregressive setup with 2D RoPE, Vermeer generalizes zero-shot to image resolutions it never saw during training, and Vermeer-CA seamlessly handles datasets missing half the training stains.

Key Results

Evaluated on both visual sharpness (FID, MSE) and biological accuracy—measured by passing generated images into SubCellPortable, an oracle classifier covering 31 subcellular compartments—Vermeer sets a new bar:

  • Unseen Protein × Cell-Line Pairs: Vermeer-XL achieves an FID of 15.6 (dramatically sharper than diffusion-based CELL-Diff at 42.1, PUPS at 102, and CELL-E 2 at 286) and tops biological accuracy with a Micro AP of 0.526 (vs. 0.477 for PUPS and 0.294 for CELL-Diff) and an intranuclear correlation (PCC) of 0.884.
  • Entirely Unseen Proteins: Vermeer-XL leads on perceptual quality (FID 18.1) and fine-grained compartment classification (Micro AP 0.399 vs. PUPS's 0.369), though PUPS slightly edges it out on coarse nuclear-vs-cytoplasmic ratios (PCC 0.652 vs. 0.624).
  • Cross-Dataset Transfer (OpenCell): Given only a nucleus stain zero-shot, Vermeer-CA achieves an FID of 71.1 and PCC of 0.592, crushing a fixed-channel CELL-Diff baseline padded with blank images (FID 498, PCC 0.430). Fine-tuning pushes Vermeer's FID down to 7.47 (PCC 0.928).

Limitations and Future Work

  • Rare and variable patterns: Model accuracy drops on rare subcellular compartments and on proteins that naturally exhibit high cell-to-cell variability, meaning it doesn't yet capture the full spectrum of biological heterogeneity.
  • Biological domain shifts: While Vermeer-CA solves the technical hurdle of missing channels on OpenCell, generated patterns don't always match ground truth because live-cell GFP-tagging can biologically alter how proteins localize compared to HPA's fixed antibody staining. Slight performance trade-offs also appear on HPA when training with channel dropout.
  • What's next: Training across much larger, heterogeneous microscopy repositories using Vermeer's channel adaptivity—and eventually flipping the model around to be natively multimodal, generating de novo protein sequences designed to travel to specific places in the cell.

Summary updated

Abstract

Fluorescent microscopy provides a rich view into how proteins localize within cells, but it remains experimentally infeasible to image human proteins across all of the different factors that can impact localization. We introduce Vermeer, a channel-adaptive autoregressive generative model for in silico generation of microscopy images of protein localization. Vermeer conditions generations on protein sequences and landmark stains showing the morphology of cells, which enables it to generalize to unseen proteins and cell lines. We show that Vermeer, trained on the Human Protein Atlas, can generate images with substantially improved perceptual quality and biological fidelity over previous proposals. Additionally, Vermeer's autoregressive framework enables flexible generation using varying channel subsets and orderings, enabling zero-shot transfer to data collected under different imaging conditions and channel configurations than those used for training. These results position Vermeer to enable scalable modeling of protein localization and are a step towards generative foundation models that can operate over distinct microscopy datasets.
BibTeX
@inproceedings{kambhampati2026vermeer,
  author = {Sandeep Kambhampati and Eric Zimmermann and Emre Berk Hayir and Kevin K Yang and Fei Chen and Alex Xijie Lu},
  title = {{Vermeer: Autoregressive generative modeling of microscopy predicts protein localization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=02iC73NJ6H},
}
Figure