OpenMidnight 1.1 Preprint

OpenMidnight: Closing the Performance Gap Between Open and Proprietary Pathology Foundation Models

Ratna Sagari Grandhi1, Anis Chihoub2,1, Ryan Kim3,1, Daniel Z. Kaplan4,1, Chao Feng1, Anish Dulal5,1, Leema Krishna Murali6,1, Rohitkumar Datchanamourty1, Nevasini Sasikumar7,1, Debojyoti Das1, Ahmed Hassayoune1, Rhizo Nymph1, Anas Zafar8,1, Connor Lane9,1, Benjamin Warner9,1, Hassan Muhammad9,1, Tanishq Mathew Abraham9,1, Paul S. Scotti9,1

Author affiliations
  1. MedARC
  2. Rutgers University
  3. University of Illinois at Urbana-Champaign
  4. realiz.ai
  5. University of Oregon
  6. UCLA
  7. UC San Diego
  8. University of Texas, MD Anderson Cancer Center
  9. Sophont

Correspondence: [email protected]

Abstract

Pathology foundation models offer transferable representations for a range of downstream tasks in computational pathology, but reliance on proprietary data, substantial compute requirements, and limited availability of training code and preprocessing pipelines hinder independent validation and further methodological development. We present OpenMidnight 1.1, an open-source replication and refinement of Midnight trained on approximately 12,000 publicly available whole-slide images from The Cancer Genome Atlas. Using an encoder initialized with pretrained DINOv2 weights, OpenMidnight 1.1 uses approximately 320 H100 GPU-hours for pathology pretraining, a 34-fold reduction relative to the compute reported for Midnight. Across 16 classification and four segmentation datasets in THUNDER, OpenMidnight 1.1 achieves the highest mean segmentation Dice (69.7) and ranks fourth among 14 models, ahead of Midnight, with performance that matches or exceeds models trained on substantially larger datasets in several tasks. Our ablation studies additionally examine how initialization, data volume, model size, and tissue composition affect downstream performance, providing empirical evidence to inform the development of future training recipes. Our release of the training code, preprocessing pipeline, and model weights lowers barriers to reproducible research and further development of competitive pathology foundation models.

Key result

70 72 74 76 78 80 10K 100K 1M Pretraining slides (log scale) Mean score (%) UNI2-H GenBio-PathFM Virchow2 GigaPath H-Optimus-0 Midnight Virchow Phikon2 OpenMidnight OpenMidnight 1.1 70 72 74 76 78 80 10K 100K 1M Pretraining slides (log scale) Mean score (%) UNI2-H GenBio-PathFM Virchow2 GigaPath H-Optimus-0 Midnight Virchow Phikon2 OpenMidnight OpenMidnight 1.1
Figure 1. Benchmark performance relative to pretraining data scale. Each score averages the four THUNDER category means: linear probing, KNN, and 16-shot classification (F1), and segmentation (Dice). OpenMidnight 1.1, trained on approximately 12,000 publicly available TCGA slides, performs comparably to models trained on substantially larger slide collections. Redrawn from Table 1 of the paper; H-Optimus-0 (more than 500K slides) is plotted at 500K.

Cite this paper

Grandhi, R. S., Chihoub, A., Kim, R., et al. (2026). OpenMidnight: Closing the Performance Gap Between Open and Proprietary Pathology Foundation Models. Preprint.

View BibTeX
@misc{openmidnight2026,
  title = {{OpenMidnight}: Closing the Performance Gap Between Open and Proprietary Pathology Foundation Models},
  author = {Grandhi, Ratna Sagari and Chihoub, Anis and Kim, Ryan and Kaplan, Daniel Z. and Feng, Chao and Dulal, Anish and Murali, Leema Krishna and Datchanamourty, Rohitkumar and Sasikumar, Nevasini and Das, Debojyoti and Hassayoune, Ahmed and Nymph, Rhizo and Zafar, Anas and Lane, Connor and Warner, Benjamin and Muhammad, Hassan and Abraham, Tanishq Mathew and Scotti, Paul S.},
  year = {2026},
  howpublished = {Preprint},
  url = {https://sophont.med/papers/openmidnight-1.1/},
  note = {OpenMidnight 1.1}
}

Manuscript dated . Posted . 15-page PDF (2.6 MB). Licensed under CC BY 4.0.