arXiv:2610.33081cs.CVOct 2026

Manuscript Offprint

arXiv:2610.33081

SWIFT-Cell: Segmentation Without Iterative Flow Tracking

Devansh Lalwani, Swapnil Bhat, Muralikrishna H H, Anand Reddy, Maulik Shah

ABSTRACT

Generalist segmenters such as Cellpose-SAM (CPSAM) outline cells accurately across stains but slowly; watershed detectors such as QuPath's are fast but less accurate. In time-critical use, such as interactive retrieval of cells from a user-drawn region, CPSAM at the reference settings takes 58–303 s per measured 8192² region on an RTX 4500 Ada GPU, beyond a seconds-scale interactive target. We distil CPSAM into SWIFT-Cell (SWIFT), a 0.63M-parameter U-Net trained only on CPSAM masks of 1,202 H&E and IHC tiles. On three 8192² development regions SWIFT takes 2.0–5.2 s on 4 CPU cores in int8, 2.5–5.1 × faster than QuPath's detector on the same cores, and 0.36–0.49 s on a GPU. Against human annotations on eight H&E, IHC and ISH sets it keeps 95% of CPSAM's panoptic quality (PQ) on PanNuke (0.593 vs. 0.627) and is level on NuCLS (0.546 vs. 0.540). On Ki-67 IHC masks scored to the outline centre it is 0.205 PQ above QuPath's better mode, 0.079 below CPSAM and 0.027 below InstanSeg (CI includes 0; at the outer edge 0.008 below CPSAM); on 212 pathologist-outlined nuclei in Ki-67 fields of 12 untouched patients its recall is 0.925 (CPSAM 0.920, InstanSeg 0.901; paired difference CIs include 0); one method-blinded pathologist accepted its outlines in 96% of 100 fields (60 from two development tissue patients, 40 hematology; CPSAM 83%, QuPath 53%; tissue 100% for SWIFT and CPSAM); on ER/PR points from 12 patients its detection F1 is 0.882 (CPSAM 0.896, InstanSeg 0.857), and on 4-reader PD-L1 points 0.83 (CPSAM 0.85, readers 0.87). SWIFT is close to CPSAM in accuracy and faster than watershed detection: it bridges the gap between research and real-world deployment.

Index Terms: Nucleus segmentation, knowledge distillation, Cellpose-SAM, computational pathology, hematology

1. INTRODUCTION

Generalist segmenters such as Cellpose-SAM (CPSAM) [1] work across stains and modalities without retraining. Some uses are time-critical: a user draws a region and waits for its cells to be outlined, a deployment has only CPU cores or a T4-class GPU, or whole regions must be segmented within seconds. On the timed regions (Table 1), CPSAM on a GPU at QuPath's working resolution of 0.5 μ\mum/px takes 3.3–4.9× as long as QuPath on 4 CPU cores.

QuPath's cell detector [2] takes seconds on a CPU. It thresholds one colour-deconvolved channel and splits nuclei by watershed. Because detection runs on the hematoxylin channel by default, DAB-positive nuclei are often missed or outlined smaller than by CPSAM (Sec. 3). Lighter supervised nucleus models exist (StarDist [3], InstanSeg [4]), and students have been trained on a teacher's output [5]: HoverFast [6] (a 0.94M-parameter U-Net) and HoVer-UNet [7] learn from HoVer-Net [8] outputs, [9] distils a pathology foundation model, and EfficientBioAI [10] quantises Cellpose to int8. We found no prior distillation of CPSAM.

Large generalists are the research state of the art, but real-world deployment has time and hardware limits. To bridge this gap, we distil the trusted generalist on its own masks into a student sized for those limits, and measure the cost.

Contributions.

  1. A recipe. Distil the trusted generalist into a 0.63M-parameter U-Net using only its masks on the target stain mix, decode in one pass from centre offsets [11], and run it in fp16 on a GPU or int8 on a CPU (Sec. 2).

  2. A measured trade-off. Speed, fidelity to the teacher and DAB-positive outline size against QuPath, InstanSeg and the teacher on the same hardware (Table 1).

  3. An evaluation protocol. What the student keeps and loses against the teacher, human annotations on H&E and IHC (InstanSeg, StarDist and QuPath as references), zero-shot hematology and a blinded pathologist rating (Table 2, Sec. 4).

References (22)