Nanopath: Fast, Fair, Open Experimentation for Pathology Foundation Models

Paul S. Scotti, Hassan Muhammad, Ryan Kim, Nima Ashjaee, Ratna Sagari Grandhi, Saman Rahbar, Raymond Biju, Anish Dulal, Chao Feng, Connor Lane, Benjamin Warner, Tanishq Mathew AbrahamarXiv 2026

TL;DR

Nanopath is an open-source framework that democratizes pathology foundation model (FM) research by enabling full training and evaluation in under two hours on a single H100 GPU. By enforcing strict data and compute budgets, it provides a fair, transparent testbed where researchers can rapidly prototype "recipes" for small-scale models that surprisingly often rival or outperform billion-parameter giants.

What Problem Does This Paper Address?

Developing foundation models for computational pathology is currently an "arms race" reserved for elite, well-resourced labs. State-of-the-art models are typically trained on massive proprietary datasets using hundreds of GPUs, making it nearly impossible for the broader research community to iterate on core ideas.

Furthermore, it is often unclear why a specific model performs well: is it the sheer volume of data, a novel architecture, or just massive compute? Nanopath addresses this by creating a "deliberately small and hackable" environment. It disentangles these factors by fixing the data and compute budgets, allowing researchers to focus on methodological innovations—like better augmentations, learning objectives, or data curation—under controlled conditions.

Methods

The core of Nanopath is a set of standardized constraints designed to make experiments fast and comparable:

  • Compute Budget: Training is capped at $10^{18}$ FLOPs, which translates to roughly one hour on a single 80 GB H100 GPU.
  • Data Budget: Models are limited to at most one million "tile presentations" from publicly available TCGA slides.
  • Architecture: While flexible, the default is a compact ViT-S/14 (~22M parameters).
  • The "Labless" Ledger: All experiments, including negative results, are submitted to a public ledger. This allows the community (and even AI agents) to see what has already been tried, avoiding redundant "dead ends."
  • Fast Evaluation (nanopath-evals): Instead of waiting hours for standard benchmarks, Nanopath uses a suite of lightweight, frozen-feature probes (linear, k-NN, 16-shot) that evaluate a model across tile-level and slide-level tasks in under 25 minutes.
Figure 1: Sept 1 2026 snapshot of nanopath leaderboard on Labless. The ledger contains 1,269 runs from 20 contributors, scored with our original nanopath evaluation suite. Open points are unvalidated submissions; filled green points and purple star are maintainer-verified reproduction runs, with green curve indicating the best performing run over time. Y-axis omits low-scoring outliers.

Datasets

  • Pretraining: Restricted to diagnostic whole-slide images from TCGA (The Cancer Genome Atlas). The authors provide a pre-processed dataset of 4 million tiles to lower the entry barrier.
  • Evaluation: The nanopath-evals suite draws from a diverse set of 12+ datasets including BACH, BRACS, BreaKHis (breast cancer), CRC (colorectal), MHIST, PCam, PanNuke (segmentation), UCLA Lung (progression), SurGen (mutation), and CPTAC (PathoBench).

Key Insights and Ideas

  • The "Fast Proxy" is Faithful: One of the most critical findings is that Nanopath’s 25-minute evaluation suite strongly correlates with much slower, "gold-standard" external benchmarks like THUNDER, HEST, and PathoBench. This validates the use of small-scale experiments as a reliable proxy for large-scale performance.
  • Small Models Can Punch Up: The authors demonstrate that a well-optimized 22M parameter model can outperform 1.1B parameter models on specific tasks. For instance, their robust-norm recipe achieved the highest macro-F1 on the BreaKHis dataset across all tested models, including the giants.
  • Metadata Matters: Successful recipes often leveraged clinical metadata (like cancer subtype or gene expression) during pretraining, suggesting that "conditioning" models on non-image data is a high-leverage strategy for pathology.
  • Transparency as a Feature: By requiring the submission of source code and hardware metadata to Labless, Nanopath makes "research debt" visible, ensuring that progress is reproducible and fair.

Key Results

  • Speed: A typical Nanopath run (training + evaluation) completes in less than 1.5 hours on a single GPU.
  • Correlation: The optimized evaluation suite reached Pearson correlations of $r = 0.927$ with THUNDER and $r = 0.929$ with HEST across 20 different encoders.
  • Performance: The robust-norm Nanopath model (22M params) exceeded the performance of OpenMidnight 1.0 (a much larger model) on THUNDER classification (0.754 vs 0.692) and outperformed H-optimus-0 on segmentation tasks.
Figure 2: Original and optimized nanopath evaluations compared with external benchmarks. Each panel contains the same 20 frozen encoders, identified by the shared key. Blue denotes nanopath models; marker area is log-scaled by parameter count (from 22M to 1B parameters). r is Pearson correlation and τ Kendall rank correlation. THUNDER panels compare matching family scores; HEST and CPTAC use the nanopath final score. See Appendix Table 6 for exact metrics. OpenMidnight refers to v1.0, our initial blog post release.

Limitations and Future Work

  • Scaling Laws: It remains untested whether a recipe that wins at the "nanopath scale" will continue to be the best when scaled to billions of tiles and parameters.
  • Adaptive Overfitting: As with any public leaderboard, there is a risk that researchers might "overfit" their recipes to the specific quirks of the evaluation suite.
  • Data Overlap: Some evaluation datasets (like PanNuke) have mixed sources that might overlap with TCGA pretraining data, potentially inflating scores.

The authors view Nanopath as a starting point. Future work involves taking the most promising small-scale hypotheses and subjecting them to "matched retraining" at larger scales to see if the insights hold true.

Summary updated

Abstract

We introduce nanopath, an open-source framework and benchmark for rapidly training and evaluating small-scale pathology foundation models. Using a single H100 GPU, a typical nanopath model trains in a little over an hour on up to one million TCGA pathology tile presentations and evaluates within 25 minutes on a broad suite of tile-level and slide-level tasks. Nanopath enables rapid exploration of research ideas at small scale, so promising training recipes can subsequently be tested with more data and compute. To enable fair comparisons between ideas, we constrain submissions to fixed data and compute budgets while keeping the downstream evaluation protocol fixed. Anyone may clone the codebase, automatically download the data, reproduce or modify existing models, and submit a run to Labless, our public experiment ledger where researchers and AI agents can search through prior attempts. Since its public release in June 2026, nanopath has received 1,269 experiments from 20 contributors. Here, we detail its design and assess how well its rapid evaluation tracks standardized THUNDER, HEST, and PathoBench (CPTAC) benchmarks across six nanopath and 14 reference foundation models. Nanopath's fast evaluation suite strongly tracked these standardized benchmarks, and a few 22M parameter nanopath models even outperformed giant 1.1B parameter models on a subset of downstream tasks. We subsequently discuss how we have since optimized nanopath's evaluation suite to be an even more faithful, quick proxy for external benchmarking. Nanopath provides an accessible testbed for students, researchers, and AI agents to explore pathology foundation modeling through fair, transparent, and directly comparable experiments.
BibTeX
@misc{scotti2026nanopath,
  author = {Paul S. Scotti and Hassan Muhammad and Ryan Kim and Nima Ashjaee and Ratna Sagari Grandhi and Saman Rahbar and Raymond Biju and Anish Dulal and Chao Feng and Connor Lane and Benjamin Warner and Tanishq Mathew Abraham},
  title = {{Nanopath: Fast, Fair, Open Experimentation for Pathology Foundation Models}},
  year = {2026},
  eprint = {2611.10014},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.10014},
}
Figure