Masked Autoencoders are Scalable Learners of Cellular Morphology

Oren Kraus, Kian Kenyon-Dean, Saber Saberian, Maryam Fallah, Peter McLean, Jess Leung, Vasudev Sharma, Ayla Khan, Jia Balakrishnan, Safiye Celik, Maciej Sypetkowski, Chi Cheng, Kristen Morse, Maureen Makes, Ben Mabey, Berton Earnshaw · DOI

Introduction

In drug discovery and biological research, High-Content Screening (HCS) generates millions of microscopy images of cells subjected to various genetic or chemical perturbations. Quantifying these "phenotypes"—the physical appearances of cells—is crucial for understanding biological relationships. Traditionally, this has relied on manual feature extraction or weakly supervised learning (WSL). However, manual features are limited by human intuition, and WSL often plateaus due to experimental noise and "label leakage," where models learn to identify experimental batches rather than underlying biology.

Researchers from Recursion have proposed a shift toward self-supervised vision models, specifically Masked Autoencoders (MAEs), to overcome these scaling limitations. This approach learns directly from the visual structure of cells without requiring explicit labels.

Methods: Masked Autoencoders for Microscopy

The study employs Masked Autoencoders (MAEs), a self-supervised technique where a large portion (up to 75%) of a microscopy image is masked. A Vision Transformer (ViT) is then tasked with reconstructing the missing patches. Once trained, the encoder generates "embeddings"—compact mathematical representations of cellular morphology.

Visual reconstruction of masked cellular images across different model architectures.

The researchers scaled this process using architectures ranging from ViT-Small to ViT-Large and MU-Nets. Training was conducted on massive datasets, including Recursion's private RPI-93M dataset containing 93 million images, utilizing significant compute resources (up to 128 A100 GPUs).

Key Insights: The Scaling Law of Biology

A central finding of this work is the existence of a "scaling law" for cellular morphology. As training compute (FLOPs) increases—through both larger model architectures and more extensive datasets—the model's ability to infer biological truths improves linearly.

Unlike weakly supervised models, which often show diminished performance when exposed to larger, noisier datasets, MAE models continue to improve. This suggests that self-supervision is inherently more robust to the "batch effects" and biases common in large-scale biological experiments. Furthermore, the study found that smaller patch sizes (e.g., 8x8) are superior for capturing the intricate, fine-grained features of cellular structures like mitochondria or cell membranes.

Results and Evaluation

To validate the biological relevance of the learned embeddings, the models were tested on their ability to recover known biological relationships from public databases such as StringDB, CORUM, hu.MAP, and Reactome.

Scaling laws and benchmark performance across multiple biological databases.

The top-performing model, a ViT-L/8 trained on 93 million images, achieved a 28% relative improvement over the best weakly supervised baseline. It also outperformed previous state-of-the-art self-supervised methods, such as CP-DiNO, by at least 20% on specific gene-set benchmarks. Qualitative analysis confirmed that models trained on more data were significantly better at reconstructing fine cellular textures, which directly correlated with their quantitative performance in distinguishing subtle biological phenotypes.

Conclusion and Future Work

This research demonstrates that MAEs are highly scalable foundation models for cellular biology. By learning from unlabeled data, these models can utilize vast amounts of previously untapped information, such as Brightfield images.

While the compute requirements are substantial, the results highlight a clear path forward for biological AI. Future work aims to extend these models beyond representation learning toward direct prediction of biological outcomes, such as drug-target interactions and the effects of novel genetic mutations across diverse cell types and imaging modalities.

Summary updated

BibTeX
@misc{kraus2023masked,
  author = {Oren Kraus and Kian Kenyon-Dean and Saber Saberian and Maryam Fallah and Peter McLean and Jess Leung and Vasudev Sharma and Ayla Khan and Jia Balakrishnan and Safiye Celik and Maciej Sypetkowski and Chi Cheng and Kristen Morse and Maureen Makes and Ben Mabey and Berton Earnshaw},
  title = {{Masked Autoencoders are Scalable Learners of Cellular Morphology}},
  year = {2023},
  eprint = {2309.16064},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.16064},
}
Figure