arXiv:2609.35203cs.CVSep 2026

Manuscript Offprint

arXiv:2609.35203

From UNI2-h to ConvNeXt-T: Lightweight Nuclei Instance Segmentation via Knowledge Distillation

Wenyan Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Nuclei instance segmentation is a core task in digital pathology, yet high-accuracy models rely on large vision transformer (ViT) encoders whose inference speed cannot meet real-time clinical demands. We propose a lightweight scheme that distills the UNI2-h pathology foundation model into a ConvNeXt-Tiny student (Ours-T, 34.7M parameters, 1/20 of the teacher) via output-level knowledge distillation. Ours-T achieves an mPQ of 0.519 on PanNuke (98.8% of the teacher), a zero-shot bPQ of 0.668 on MoNuSeg, and an inference speed of 634.3 img/s, requiring only 0.045 s for full-resolution 102421024^{2} analysis ( 21.8×21.8\times speedup). Experiments further show that multi-scale gated convolution (MALA) yields no gain under ViT encoders, and output-level distillation alone suffices for efficient knowledge transfer.

Index Terms— nuclei instance segmentation, knowledge distillation, lightweight model, digital pathology, ConvNeXt

1. INTRODUCTION

Nuclei instance segmentation—jointly detecting, segmenting, and classifying each nucleus—is a key prerequisite for downstream quantitative analyses such as tumor grading, immune-infiltration assessment, and prognosis prediction. Nuclei in histopathology images are densely packed, morphologically diverse, and exhibit large staining variation, imposing stringent demands on segmentation accuracy and robustness. HoverNet [1] pioneered multi-task learning that jointly predicts nuclear pixels (NP), horizontal-vertical distance maps (HV), and nuclear classification (NC), and has become the de facto baseline; HoverUnet [2] further compressed HoverNet into a lightweight U-Net via distillation. CellViT [3] introduced vision transformers (ViTs) to nuclei segmentation with substantial gains, but its parameter count ballooned to ~700M. CFR-SAM [4] adapts SAM [5] to nuclei segmentation and achieves state-of-the-art results on both PanNuke and MoNuSeg, serving as the strongest baseline prior to this work.

Meanwhile, pathology vision foundation models such as UNI [6] and Virchow [7] exhibit powerful general-purpose feature extraction through large-scale pretraining, but their hundreds of millions of parameters (UNI2-h: 683.6M) incur slow inference and heavy memory footprint, hindering direct deployment in real-time clinical analysis. How to retain the feature capacity of foundation models while obtaining a lightweight, fast inference model is the core problem addressed in this paper.

To this end, we propose output-level knowledge distillation from UNI2-h to ConvNeXt-Tiny, with the following contributions: (1) a lightweight student Ours-T—34.7M parameters, retaining 98.8% mPQ under 20× compression, and only 0.045 s for 1024² inference; (2) a multi-task shared decoder that reaches parity with only 37% of the parameters of independent decoders; (3) a negative result—multiscale gated convolution (MALA) brings no gain under ViT encoders; and (4) comprehensive validation on PanNuke (mPQ 0.519) and zero-shot MoNuSeg (bPQ 0.668, surpassing CFR-SAM-H).