MicroCLIP: Connecting Text and Microscopy Images via Contrastive Language--Image Pretraining
Organizations: University of Science and Technology of China
Abstract
Understanding fluorescence microscopy images is fundamental to automating biological research. However, existing methods typically learn predefined concepts from closed-set data, limiting transfer across tasks and biological contexts. In this work, we introduce MicroCLIP, a vision-language model that learns generalizable cellular and subcellular representations from natural language supervision for open-set image classification and retrieval. To pretrain MicroCLIP, we construct MicroPool-2M, a dataset of approximately 2.5 million fluorescence microscopy image-text pairs spanning diverse cellular structures, cell lines, and imaging conditions. Aligning microscopy images with biological concepts in natural language is challenging because most images lack descriptive captions and biological knowledge annotations. We therefore progressively establish image-text associations at three levels to provide MicroCLIP with richer semantic supervision: (1) category-level alignment links images to standardized labels defined by subcellular structure-cell-line combinations; (2) knowledge-level alignment incorporates biological priors derived from these labels to capture relationships across species and cell types; and (3) detail-level alignment uses a multimodal large language model to recaption and verify image-text pairs at scale, emphasizing fine-grained visual characteristics. Extensive experiments demonstrate that MicroCLIP achieves leading performance in zero-shot classification and text-image retrieval on microscopy images. It retrieves images with specific cellular characteristics from thousands of candidates and generalizes to unseen biological concepts without additional supervision. These results highlight MicroCLIP's potential as a foundation model for fluorescence microscopy.
Figures & tables
| Method | Params. | In-domain classification | Out-of-domain classification | Retrieval | ||||
| IID | Compositional Shift | Cell-Line Shift | Organelle-Set Shift | Source Shift | I2T | T2I | ||
| Closed-set methods | ||||||||
| Fully Supervised Classifier | – | 97.74 | – | – | – | – | – | – |
| Cell-DINO | 304M | 36.06 | 0.98 | – | – | – | – | – |
| Open-set methods | ||||||||
| CLIP (OpenAI) | 150M | 2.97 | 5.12 | 1.80 | 2.54 | 8.38 | 0.7 | 0.2 |
| Method | Cat. | Det. | Know. | Bal. | Aux. | In-domain classification | Out-of-domain classification | Retrieval | ||||
| IID | Compositional Shift | Cell-Line Shift | Organelle-Set Shift | Source Shift | I2T | T2I | ||||||
| Category-level only | ✓ | 97.37 | 56.47 | 23.25 | 40.74 | 37.31 | 15.8 | 12.6 | ||||
| + Detail-level captions | ✓ | ✓ | 98.90 | 63.94 | 28.69 | 41.63 | 40.59 | 28.4 | 27.8 | |||
| + Knowledge-level captions | ✓ | ✓ | ✓ | 98.86 | 66.36 | 25.41 | 48.31 | 36.36 | 37.1 | 37.4 | ||
| + Data Balancing | ✓ | ✓ | ✓ | ✓ | 98.24 | 64.95 | 31.53 | 49.91 | 36.44 | 39.4 | 41.5 | |
| + VLM-0.7M | ✓ | ✓ | ✓ | ✓ | ✓ | 98.46 | 67.70 | 34.07 | 46.13 | 36.53 | 61.5 | 63.3 |
| Balancing threshold | Retained (%) | In-domain classification | Out-of-domain classification | Retrieval | ||||
| IID | Compositional Shift | Cell-Line Shift | Organelle-Set Shift | Source Shift | I2T | T2I | ||
| off (no balancing) | 100.0 | 98.76 | 66.64 | 26.61 | 46.78 | 30.05 | 32.4 | 35.7 |
| 49.8 | 98.83 | 64.73 | 28.44 | 47.35 | 39.29 | 47.0 | 47.6 | |
| 30.7 | 98.24 | 65.52 | 27.88 | 47.80 | 34.54 | 44.5 | 45.5 | |
| 10.5 | 98.46 | 67.70 | 34.07 | 46.13 | 36.53 | 61.5 | 63.3 | |
| Training data | Samples (M) | In-domain classification | Out-of-domain classification | Retrieval | ||||
| IID | Compositional Shift | Cell-Line Shift | Organelle-Set Shift | Source Shift | I2T | T2I | ||
| 0.63 | 98.76 | 60.39 | 33.05 | 44.56 | 40.93 | 32.1 | 32.0 | |
| 1.25 | 98.49 | 65.05 | 30.44 | 45.19 | 39.81 | 32.4 | 30.8 | |
| 2.51 | 98.54 | 66.97 | 30.05 | 45.54 | 37.31 | 60.1 | 60.7 | |
| VLM-0.7M | 3.11 | 98.46 | 67.70 | 34.07 | 46.13 | 36.53 | 61.5 | 63.3 |
Appendix figures & tables20 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Publication | Subcellular Structure | Cell Line | Image Size | Data Number |
|---|---|---|---|---|---|
| BBBC026 | Logan et al. Logan et al. (2016) | DNA | Human Hepatocyte and Murine Fibroblast cells | 1040 1392 | 864 |
| BBBC001 | Moffat et al. Moffat et al. (2006) | DNA | HT-29 | 512 512 | 64512 |
| Actin | HT-29 | 512 512 | 64512 | ||
| pH3 | HT-29 | 512 512 | 64512 | ||
| BBBC020 | Wenzel et al. Wenzel et al. (2011) | CD11b | Bone Marrow-Derived Macrophages from C57BL/6 mice | 1388 3 1040 | 25 |
| Nuclei | Bone Marrow-Derived Macrophages from C57BL/6 mice | 1388 3 1040 | 25 |
| Subset | Classes | Struct. | Cells | Images | Shift |
| IID | 59 | 21 | 12 | 5,900 | none |
| Compositional Shift | 64 | 16 | 16 | 6,400 | pair |
| Cell-Line Shift | 59 | 22 | 8 | 5,900 | cell line |
| Organelle-Set Shift | 54 | 29 | 6 | 5,400 | structure label |
| Source Shift (external) | 13 | 3 | 5 | 1,158 | source |
| Caption level | Median | P95 | Truncated at 77 (%) | Truncated at 256 (%) |
| Category | 15 | 19 | 0.00 | 0.00 |
| Detail | 225 | 270 | 99.83 | 12.97 |
| Knowledge | 109 | 147 | 100.00 |
| Model | IID | Compositional Shift | Overall |
| GPT-6 | 12/30 (40.00%) | 10/30 (33.33%) | 22/60 (36.67%) |
| DFN2B-CLIP | 6/30 (20.00%) | 4/30 (13.33%) | 10/60 (16.67%) |
| MicroCLIP | 30/30 (100.00%) | 27/30 (90.00%) | 57/60 (95.00%) |
| Backbone | Params. | In-domain classification | Out-of-domain classification | Retrieval | ||||
| IID | Compositional Shift | Cell-Line Shift | Organelle-Set Shift | Source Shift | I2T | T2I | ||
| PE-Core-B/16 | 448M | 98.80 | 40.94 | 24.27 | 25.24 | 21.68 | 59.9 | 61.5 |
| PE-Core-L/14-336 | 671M | 99.07 | 49.44 | 17.17 | 32.22 | 21.93 | 60.5 | 61.8 |
| PE-Core-G/14-448 | 2419M | 99.20 | 74.34 | 29.86 | 54.70 | 35.06 | 54.7 | 54.5 |
| Method | Sampling ratio | In-domain classification | Out-of-domain classification | Retrieval | ||||||
| Cat. | Det. | Know. | IID | Compositional Shift | Cell-Line Shift | Organelle-Set Shift | Source Shift | I2T | T2I | |
| Category-level only | 1.00 | 0.00 | 0.00 | 97.37 | 56.47 | 23.25 | 40.74 | 37.31 | 15.80 | 12.60 |
| Detail-level only | 0.00 | 1.00 | 0.00 | 56.53 | 26.53 | 10.56 | 26.72 | 10.28 | 48.10 | 48.50 |
| Knowledge-level only | 0.00 | 0.00 | 1.00 | 39.95 | 12.08 | 14.88 | 12.00 | 30.31 | 1.30 | 0.10 |
| Category Detail | 0.75 | 0.25 | 0.00 | 98.90 | 63.94 | 28.69 | 41.63 | 40.59 | 28.40 | 27.80 |
| Category Knowledge | 0.75 | 0.00 | 0.25 | 97.47 | 63.17 | 29.31 | 46.78 | 27.72 | 14.90 | 9.90 |
| Model | Top-1 accuracy (%) |
| CLIP (OpenAI) ViT-B/16 | 12.50 |
| SigLIP ViT-B/16 | 22.50 |
| SigLIP2 ViT-B/16 | 18.75 |
| DFN2B-CLIP ViT-B/16 | 17.50 |
| PE-Core B/16 | 41.88 |
| MicroCLIP (Ours) | 88.12 |