Revealing Subtle Phenotypes in Small Microscopy Datasets Using Latent Diffusion Models

Anis Bourou, Biel Castaño Segade, Thomas Boyer, Valérie Mezger, Auguste Genovesio

TL;DR

Phen-LDiff leverages pre-trained Latent Diffusion Models (LDMs) combined with parameter-efficient fine-tuning to detect and visualize subtle cellular changes in small microscopy datasets. By utilizing methods like LoRA, the framework successfully performs image-to-image translation to reveal complex biological variations using as few as 100 images per class, significantly lowering the data and computational barriers for phenotypic analysis.

What Problem Does This Paper Address?

In drug discovery and cell biology, understanding how cells change under different conditions—such as disease states or drug treatments—is vital. However, these "phenotypic" variations are often incredibly subtle and masked by natural cellular heterogeneity, making them difficult to distinguish by eye or even with traditional software.

Figure 1. Top: Real images from the LRRK2 dataset, displaying wild-type images in the first row and images of mutated neurons in the second row. Bottom: Real images from the Golgi dataset, with untreated images in the first row and Nocodazole-treated images in the second row. In both (a) and (b), identifying and interpreting differences between the two classes by eye is highly challenging. However, it is essential for understanding the disease in (a) and assessing the treatment effects in (b)

Deep generative models can help by translating an image of a cell from a "control" state to a "treated" state, effectively showing a counterfactual "before and after." Unfortunately, state-of-the-art diffusion models normally require massive datasets and massive computational power to train from scratch—resources that are rarely available for niche or emerging biological studies. Phen-LDiff addresses this bottleneck by making diffusion models viable in low-data regimes.

Methods

The authors introduce Phen-LDiff, a pipeline that adapts a large, general-purpose Latent Diffusion Model (Stable Diffusion 2, originally trained on the massive LAION-5B internet dataset) to specialized microscopy tasks.

The image-to-image translation process consists of two primary phases:

  1. Inversion: A real microscopy image from a source condition is mapped deterministically into a lower-dimensional latent space using Denoising Diffusion Implicit Model (DDIM) inversion.
  2. Generation: The model takes this latent code and conditionally generates the corresponding image reflecting the target condition.

To prevent the model from overfitting on tiny datasets, the authors evaluated multiple fine-tuning strategies. They found that parameter-efficient fine-tuning (PEFT) techniques—specifically Low-Rank Adaptation (LoRA) and SVDiff (Singular Value Decomposition fine-tuning)—were critical. Instead of updating all weights, these methods inject small, trainable matrices or only update singular values, keeping the core pre-trained model intact.

Datasets

The approach was validated on four distinct, small-scale microscopy datasets, using only 100 images per class:

  • BBBC021: MCF-7 breast cancer cells, comparing untreated cells against those treated with the compound Latrunculin B.
  • Golgi: HeLa cells, comparing untreated cells against those treated with Nocodazole (which disrupts the Golgi apparatus).
  • LRKK2: Dopaminergic neurons derived from Parkinson’s disease patients, comparing wild-type (genetically corrected) cells against mutated cells.
  • Translocation: Cells depicting the localization of the NFκB protein, comparing untreated cells against those stimulated with the pro-inflammatory cytokine TNFα.

Key Insights and Ideas

  • Successful Cross-Domain Transfer: Remarkably, a diffusion model trained on everyday internet images (cats, cars, landscapes) contains structural priors that can be successfully adapted to interpret highly specialized fluorescent cellular imagery with very few samples.
  • The Overfitting Trap: When diffusion models are fine-tuned on small datasets (fewer than 50 images) using standard full-network updates, they fall into a "memorization regime." They simply replicate exact training samples during inference rather than learning the underlying biological transformation.
  • LoRA as a Regularizer: Restricting updates via LoRA or SVDiff acts as a powerful regularizer. It stops the model from memorizing individual images and forces it to generalize, enabling true distribution shifts (e.g., accurately simulating how an unseen healthy cell would look if mutated).

Key Results

  • Higher Image Quality: Phen-LDiff achieved superior Fréchet Inception Distance (FID) scores across almost all datasets compared to CycleGAN and PhenDiff (a diffusion model trained from scratch). For example, on the BBBC021 dataset, Phen-LDiff hit an FID of 24.30, outperforming PhenDiff (33.31) and CycleGAN (75.98).
  • Biological Fidelity: The model accurately simulated both stark biological changes (like the loss of the actin cytoskeleton in BBBC021) and highly nuanced variations (like the scattering/fragmentation of the Golgi apparatus and reduced neuron complexity in the Parkinson's model). These visual shifts were quantitatively confirmed using classical cell-profiling pipelines (CellProfiler).
Figure 2. We fine-tuned diffusion models on four different microscopy image datasets and performed translations from the source class to the target class. We observed the following: In (a), the translated images of untreated BBBC021 samples successfully replicated the effects of Latrunculin B treatment, where we observed a decrease in cell count and the disappearance of the cytoplasmic skeleton, likely due to the toxicity of the treatment. In (b), TNF treatment on cells and its translocation effect was well recapitulated by image translation. In (c), we translated images of wild-type cells to images of LRRK2 mutated cells and noticed a reduction in neuron density and complexity (red squares) and an increase of α-synuclein (yellow squares), recapitulating known effects of the mutation. Finally, in (d), we observed the correct replication of the effect of Nocodazole treatment causing the scattering of the Golgi apparatus (red squares). Note how pronounced ((a), (b)) as well as subtle ((c), (d)) phenotypic changes are well captured by our model. In any case seeing the same cell before and after treatment allowed us to assess the effect of the perturbation. Real images of both conditions of the four datasets can be seen in Appendix A.1.
  • Compute Efficiency: Training Phen-LDiff took roughly 2 hours on two NVIDIA L40S GPUs, compared to 6 hours for training from scratch using PhenDiff—a gap that widens further with larger image resolutions.

Limitations and Future Work

The authors noted a distinct trade-off regarding "cycle consistency loss." While CycleGAN achieved a lower cycle loss (meaning it was better at mathematically reconstructing the exact original pixels when translating back and forth), it failed to generate realistic biological features. Phen-LDiff prioritizes realistic phenotypic expression over rigid pixel preservation. Future work could focus on introducing better structural or spatial constraints to ensure that while the cell's phenotype changes, its exact spatial identity and positioning remain perfectly anchored.

Summary updated

BibTeX
@inproceedings{bourou2025revealing,
  author = {Anis Bourou and Biel Castaño Segade and Thomas Boyer and Valérie Mezger and Auguste Genovesio},
  title = {{Revealing Subtle Phenotypes in Small Microscopy Datasets Using Latent Diffusion Models}},
  booktitle = {CVDD @ CVPR},
  year = {2025},
  doi = {10.48550/arxiv.2502.09665},
}
Figure