Manuscript Offprint

arXiv:2608.27278

Decoupled I/O-Dominant Pipelines for Large-Scale Whole-Slide Image Embedding Extraction

Mayanka Chandrashekar, Xi Zhang, Ethan Seefried, Tirthankar Ghosal, John Gounley, Heidi Hanson

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Mayanka Chandrashekar

Oak Ridge National Laboratory

Tirthankar Ghosal

Oak Ridge National Laboratory

Xi Zhang

Oak Ridge National Laboratory

John Gounley

Oak Ridge National Laboratory

Ethan Seefried

Oak Ridge National Laboratory

Heidi Hanson

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.

I. INTRODUCTION

Whole-slide images (WSIs) are a cornerstone of computational pathology, enabling high-resolution analysis of tissue at gigapixel scale. The emergence of foundation models has further increased the demand for large-scale embedding extraction from WSIs, supporting downstream tasks such as retrieval, classification, and cohort-level analysis. However, the sheer size of WSIs—often exceeding tens of gigapixels per image—makes direct processing infeasible, necessitating patch-based decomposition as the fundamental unit of computation.

While patching enables scalable model inference, it also fundamentally reshapes the systems problem. At moderate scale, patches can be generated and processed on demand with acceptable overhead. At large scale, the need to generate, move, and process millions of patches introduces significant data orchestration challenges. In particular, patch generation from large WSIs, coordination of data movement across storage and compute nodes, and efficient handling of intermediate representations can dominate runtime, shifting the bottleneck away from accelerator throughput toward I/O and pipeline design.

Existing WSI pipelines are typically designed as tightly coupled workflows in which patch generation, model inference, and output handling are interleaved. While such designs simplify implementation, they often lead to inefficient resource utilization, increased contention on shared storage systems, and limited scalability. Furthermore, these pipelines frequently treat embedding outputs as transient artifacts, missing the opportunity to store reusable embeddings that can be used for downstream applications and reduce the cost of future large-scale computation.

We define an I/O-dominated workload as an end-to-end runtime governed by data movement and storage system behavior rather than compute throughput or communication overhead. By data-centric, we refer to workloads where performance is determined primarily by data orchestration—generation, movement, and persistence—rather than computation or communication. Large-scale WSI embedding extraction is an I/O-dominated, data-centric workload in which performance is governed by data movement and storage system behavior rather than compute or communication.

In this work, we show the utility of treating large-scale WSI embedding extraction as a data-centric systems problem, rather than a purely compute-driven workload. To this end, we present a decoupled pipeline architecture that separates the workflow into three stages: (1) patch generation and I/O-aware data staging, (2) massively parallel embedding inference, and (3) sharded vector database ingestion. This decomposition enables each stage to be optimized independently according to its dominant constraints—storage throughput, compute parallelism, and data management—while minimizing cross-stage interference.

Notice: Office of Science of the U.S. Department of Energy. This manuscript has been authored by UT-Battelle, LLC, under contract DE-AC05-00OR22725 with the US Department of Energy (DOE). The US government retains and the publisher, by accepting the article for publication, acknowledges that the US government retains a nonexclusive, paid-up, irrevocable, worldwide license to publish or reproduce the published form of this manuscript, or allow others to do so, for US government purposes. DOE will provide public access to these results of federally sponsored research in accordance with the DOE Public Access Plan (http://energy.gov/downloads/doe-public-access-plan).

A central aspect of our design is the treatment of the vector database as a reusable resource to be shared with the scientific and medical communities. Rather than producing embeddings as temporary files used for a specific project, our pipeline directly ingests them into a distributed, sharded vector database, with rich metadata (e.g., patient, slide, and patch-level attributes) persistently associated with each embedding. This creates a shared resource that supports efficient indexing, filtering, and retrieval, converting the output of large-scale computation into a reusable, queryable, and energy-efficient resource that accelerates downstream analyses. A stored embedding resource is also particularly valuable in low-resource environments, where extracting embeddings from a large number of WSIs is impractical.

We implemented our pipeline on Oak Ridge Leadership Computing - Frontier Exascale System [1] and evaluated it on a large-scale WSI dataset. Our results show that decoupling patch orchestration, inference, and ingestion enables high throughput, scalability, and resource efficiency. More broadly, our work demonstrates that aligning pipeline structure with data movement characteristics is necessary for scaling data-intensive AI workloads.

This paper makes the following contributions:

• We identify and characterize WSI embedding extraction as an I/O- and orchestration-dominated workload at large scale.

• We design and implement a three-stage decoupled pipeline that separates patch generation, parallel inference, and sharded vector database ingestion.

• We introduce the construction of metadata-aware vector databases as a reusable resource for large-scale WSI processing pipelines.

• We demonstrate improved scalable execution and characterize resource bottlenecks on supercomputing infrastructure.

References (18)