Decoupled I/O-Dominant Pipelines for Large-Scale Whole-Slide Image Embedding Extraction
Organizations: Oak Ridge National Laboratory
Abstract
Whole-slide images (WSIs) are central to computational pathology but are prohibitively large, making patch-based processing the practical unit for foundation model inference. At scale, however, generating and handling massive numbers of patches on quickly introduces significant I/O and orchestration overhead, often dominating end-to-end performance. We present a decoupled, I/O-aware pipeline for large-scale WSI embedding extraction that decomposes the workflow into three stages: (1) patch generation and staging, (2) embarrassingly parallel embedding inference, and (3) sharded vector database ingestion. This design isolates data movement from compute, enabling efficient patch delivery, scalable multi-node inference with minimal communication. The resulting system produces a distributed vector database where embeddings are persistently coupled with rich metadata (e.g., patient, slide, and patch attributes), enabling efficient filtering, retrieval, and downstream reuse. This representation database is compact and reusable for tasks such as retrieval, classification, and few-shot learning, particularly benefiting low-resource environments. We show that decoupling I/O, computation, and ingestion enables high-throughput WSI embedding extraction at scale. By characterizing the scaling envelope, we demonstrate that storage dominates beyond moderate concurrency, reframing WSI embedding extraction as a data-centric systems problem rather than a purely compute-bound workload.
Figures & tables
| Category | Model / System | Learning Type | Data Scale | Key Strength | Pipeline Coupling | I/O Awareness | Scalability | Embedding Reuse |
| WSI Representation Models Used in This Work | ||||||||
| Hierarchical | HIPT [ 2 ] | Hierarchical SSL | 10,678 WSIs | Multi-scale tissue modeling | N/A | N/A | Partial | |
| Foundation Model | Virchow / Virchow2 [ 3 ] | Large-scale SSL | 1.5M–3.1M+ H&E slides | Strong general-purpose features | N/A | N/A | Partial | |
| Foundation Model | H-Optimus / H-Optimus-0 [ 4 ] | Pathology FM | Large-scale histopathology corpus | Pathology-specialized representation learning | N/A | N/A | Partial | |
| WSI and HPC Pipelines | ||||||||
| Traditional Pipelines | OpenSlide-based workflows [ 5 ] | Patch extraction + inference | Variable | Simple and widely used | Tight | Limited | ||
| CCDI Dataset | |
|---|---|
| No. of Tissue Samples | 4185 |
| No. of Patients | 4054 |
| No. of DICOMS | 19,603 |
| No. of Patches (256x256) | 414M |
| No. of Non-White Patches | 170M |
| Slide | Patch Size | Nodes | MPI Ranks | Runtime (s) | Files Created | Output Size (GB) | Avg File Size (KB) | Write Throughput (MB/s) |
|---|---|---|---|---|---|---|---|---|
| ff93fcc3 | 224 | 1 | 56 | 19.82 | 93,696 | 2.42 | 25.8 | 116.22 |
| ff93fcc3 | 256 | 1 | 56 | 17.21 | 71,773 | 2.40 | 33.4 | 133.03 |
| d47c2741 | 224 | 1 | 56 | 40.67 | 184,785 | 6.75 | 36.5 | 158.20 |
| d47c2741 | 256 | 1 | 56 | 34.11 | 141,561 | 6.71 | 47.4 | 187.60 |
| ca6e4e7a | 224 | 1 | 56 | 47.24 | 224,133 | 9.94 | 44.4 | 200.67 |
| ca6e4e7a | 256 | 1 | 56 | 42.02 | 171,702 | 9.88 | 57.5 | 224.27 |
| Patch Size | Nodes | MPI Ranks | Runtime (s) | Speedup | Efficiency (%) | Files Created | Write Throughput (MB/s) |
|---|---|---|---|---|---|---|---|
| 224 | 1 | 56 | 22.39 | 1.00 | 100.0 | 93,696 | 102.66 |
| 224 | 2 | 112 | 18.85 | 1.19 | 59.4 | 93,696 | 122.99 |
| 224 | 4 | 224 | 13.22 | 1.69 | 42.3 | 93,696 | 177.50 |
| 256 | 1 | 56 | 16.89 | 1.00 | 100.0 | 71,773 | 135.46 |
| 256 | 2 | 112 | 13.41 | 1.26 | 63.0 | 71,773 | 171.57 |
| 256 | 4 | 224 | 9.56 | 1.77 | 44.2 | 71,773 | 244.02 |
| Model | GPUs | Throughput | Speedup | Efficiency | I/O % |
|---|---|---|---|---|---|
| h-optimus-0 | 1 | 110.7 | 1.00x | 100.0% | 1.8 |
| h-optimus-0 | 2 | 187.7 | 1.70x | 84.8% | 2.5 |
| h-optimus-0 | 4 | 284.0 | 2.57x | 64.1% | 3.5 |
| h-optimus-0 | 8 | 362.5 | 3.27x | 40.9% | 6.5 |
| h-optimus-0 | 16 | 600.3 | 5.42x | 33.9% | 10.7 |
| h-optimus-0 | 40 | 855.8 | 7.73x | 19.3% | 15.5 |
| Model | Total Rows | Avg Rate | Max Rate | Files | Mean File Time (s) | Total Time (min) | RSS Max (GB) |
|---|---|---|---|---|---|---|---|
| HIPT | 6,143,506 | 2628.88 | 2775 | 14,499 | 4.27 | 1032.18 | 0.62 |
| Optimus | 2,298,630 | 258.71 | 321 | 4,052 | 55.59 | 3754.24 | 1.68 |
| Virchow2 | 5,413,012 | 131.86 | 155 | 11,726 | 116.52 | 22772.80 | 2.74 |
| Nodes | Agg. Rate (rows/s) | Wall Time (min) | Speedup | Efficiency (%) | RSS Max (GB) |
|---|---|---|---|---|---|
| 1 | 22,216 ∗ | 127.9 ∗ | 1.00 | 100.0 | 0.58 |
| 2 | 40,694 | 83.84 | 1.53 | 76.3 | 0.59 |
| 4 | 86,099 | 36.90 | 3.47 | 86.7 | 0.60 |
| 8 | 188,020 | 20.79 | 6.15 | 76.9 | 0.59 |
Whole-Slide Image Analysis
Whole-slide image analysis uses AI to interpret gigapixel pathology slides for diagnosis, prognosis, tissue mapping, and report generation.
See all 214 papers