ViTally Consistent: Scaling Biological Representation Learning for Cell Microscopy

Kian Kenyon-Dean, Zitong Jerry Wang, John Urbanik, Konstantin Donhauser, Jason Hartford, Saber Saberian, Nil Sahin, Ihab Bendidi, Safiye Celik, Marta Fay, Juan Sebastián Rodríguez Vera, Imran S Haque, Oren Kraus

TL;DR

This paper introduces ViTally Consistent, a massive 1.9 billion-parameter Vision Transformer (ViT) foundation model trained on over 8 billion microscopy images. This model significantly improves the ability to represent biological effects consistently across experimental replicates and achieves state-of-the-art performance in recalling known biological relationships, paving the way for more robust drug discovery and biological research.

What Problem Does This Paper Address?

High-throughput cell microscopy screens are crucial for understanding biological processes and discovering new drugs. These screens generate vast amounts of image data, where each image represents the effect of a specific chemical or genetic perturbation on cells. The challenge lies in developing models that can extract meaningful "representations" from these images. Ideally, these representations should capture the biological phenotype consistently, meaning that perturbations with similar biological effects should have similar representations. This consistency is vital for reproducibility and for uncovering subtle biological relationships. Existing methods struggle with the sheer scale and complexity of this data, often being confounded by experimental noise (batch effects) and biological variability, which obscure the true effects of perturbations.

Methods

The core of this work is the development and training of a large-scale Vision Transformer (ViT) model. Specifically, they introduce a new 1.9 billion-parameter ViT-G/8 MAE (Masked Autoencoder) model. Key methodological contributions include:

  • Massive Scaling: Training a significantly larger model (ViT-G/8) than previous microscopy foundation models, leveraging a huge dataset.
  • Curated Dataset: Developing a new, statistically curated dataset called "Phenoprints-16M" by filtering and selecting images to ensure diversity and representativeness of biological phenotypes, addressing imbalances common in microscopy data.
  • Biologically Motivated Linear Probing: A novel approach to identify the optimal "block" or layer within the ViT for extracting the most biologically relevant features. Instead of relying solely on the final layer (common practice), they use linear probes on intermediate layers to predict biological outcomes. This allows them to "trim" the model to an earlier, more informative block, improving performance and reducing computational cost.

Datasets

  • Training:
    • Phenoprints-16M: A newly curated dataset of 16 million microscopy images, derived from a larger dataset of 93 million images. This dataset was specifically filtered for quality, perturbation information, experimental diversity, and to under-sample over-represented phenotypes.
  • RPI-93M: A dataset of 93 million microscopy images used for initial model training and comparison.
  • RxRx3: A publicly available dataset used for training a smaller CA-MAE-S/16 model.
  • Evaluation:
    • RxRx1: A publicly available dataset used for evaluating gene prediction performance.
  • Anax: A newly curated dataset of 80,000 wells from RxRx3, designed for evaluating functional gene group prediction.
  • StringDB, CORUM, hu.MAP, Reactome: Public databases used for evaluating biological relationship recall.

Key Insights and Ideas

  • Intermediate Layers Matter: Contrary to the common practice of using the final layer of a ViT, this work demonstrates that intermediate layers often contain richer and more biologically meaningful representations for microscopy data. This is a significant finding that challenges standard practices in applying ViTs to biological imaging.
  • Curated Data is Crucial: Simply having a large dataset isn't enough. Aggressively curating the training data to ensure diversity and remove noise is essential for building effective foundation models in biology.
  • Linear Probing as a Proxy: The developed linear probing tasks serve as an efficient proxy for evaluating whole-genome performance. This allows researchers to quickly identify optimal model configurations (like the best block) without the prohibitive computational cost of full genome-wide evaluations.
  • Scaling Hypothesis Holds for Biology: The paper provides strong evidence that the benefits of scaling model size and training compute, observed in natural image domains, also apply to biological microscopy data, leading to improved performance.

Key Results

  • State-of-the-Art Performance: The new 1.9 billion-parameter ViT-G/8 MAE model (MAE-G/8) achieves state-of-the-art results on whole-genome biological relationship recall and replicate consistency benchmarks.
  • 60% Improvement in Linear Separability: MAE-G/8 shows a 60% improvement in the linear separability of genetic perturbations compared to previous models.
  • Optimal Block Identification: Using linear probing, they identified optimal intermediate blocks (e.g., block 38 out of 48 for MAE-G/8) that significantly outperform the final block for various biological tasks. For instance, using the optimal block for MAE-G/8 on RxRx1 siRNA knockdown classification yielded 8.5% higher balanced accuracy than the final block.
  • Strong Correlation: A strong correlation (Pearson r = 0.97 for StringDB recall, 0.91 for replicate consistency) was observed between the performance of linear probes on smaller datasets and the whole-genome benchmarks, validating the utility of the probing approach.
  • Natural Image Models Benefit Too: Even ViTs pretrained on natural images showed improved performance when trimmed to their optimal intermediate blocks for biological tasks.

Limitations and Future Work

  • Computational Cost: While the linear probing reduces inference costs, training these massive models still requires substantial computational resources.
  • Generalizability of Curation: The paper suggests their dataset curation strategy can be generalized to other scientific datasets, but further validation across different biological domains would be beneficial.
  • Loss Function Design: The paper notes that the specific implementation of the Fourier-space loss function might differ from prior work and suggests further analysis of loss function design for MAEs as future work.
  • Exploration of Other SSL Techniques: While MAE is used, exploring other self-supervised learning techniques in conjunction with scaling and curated data could yield further improvements.

Summary updated

BibTeX
@inproceedings{kenyondean2025vitally,
  author = {Kian Kenyon-Dean and Zitong Jerry Wang and John Urbanik and Konstantin Donhauser and Jason Hartford and Saber Saberian and Nil Sahin and Ihab Bendidi and Safiye Celik and Marta Fay and Juan Sebastián Rodríguez Vera and Imran S Haque and Oren Kraus},
  title = {{ViTally Consistent: Scaling Biological Representation Learning for Cell Microscopy}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=rS3ufabhQr},
}
Figure