Agent-Driven Generative Priors for Pathology Image Synthesis and Segmentation
Organizations: Sicheng Yang, Haipeng Zhou, Hongqiu Wang, and Zhaohu Xing are with the Hong Kong University of Science and Technology (Guangzhou), China. · Rui Tang is with The University of Hong Kong, Pokfulam, Hong Kong SAR, China. · Jianda Ma and Lie Dai are with Department of Rheumatology and Immunology, Sun Yat-Sen Memorial Hospital, Sun Yat-Sen University, China. · Guang Yang is with Imperial College London, UK. ·
Abstract
Deep learning methods for pathology are constrained by the limited availability and high cost of large-scale pixel-level annotations. Synthetic data can alleviate this limitation, but existing pipelines often lack reliable quality control and remain weakly connected to downstream analysis. To address these issues, we propose a three-stage framework that integrates automated data screening, generative representation learning, and efficient adaptation to downstream tasks. First, we develop a pathology agent system to assess image quality and filter samples, resulting in TCGA-200K, a dataset containing 217,030 pathology patches selected from the public TCGA repository. Second, we train a generative model on the screened data. In addition to image synthesis, its backbone learns structural and semantic representations that can be transferred to downstream tasks. Third, we adapt the pretrained generative backbone to semantic segmentation using a lightweight task-specific head. We further introduce PathSeg-380K, a semantic segmentation dataset with expert annotations for approximately 380,000 cells across 12 cell types. Experiments on multiple pathology datasets show that the proposed framework achieves state-of-the-art segmentation performance. Our code is publicly available at https://github.com/script-Yang/Agent-GenPath.
Figures & tables
| PanNuke | PathSeg-380K | |||||||
| Method | mIOU (%) | mDICE (%) | p-Acc (%) | mASD | mIOU (%) | mDICE (%) | p-Acc (%) | mASD |
| Task-specific Segmentation Methods | ||||||||
| U-Net [ 42 ] | ||||||||
| TransUNet [ 43 ] | ||||||||
| HoVer-Net [ 44 ] | ||||||||
| CPP-Net [ 45 ] | ||||||||
| Evaluator | Spearman’s | MAE | |||
|---|---|---|---|---|---|
| Cell | Stain | Clarity | Avg. | Avg. | |
| Pathologist 1 vs. Pathologist 2 | 0.815 | 0.835 | 0.816 | 0.306 | 0.827 |
| Agent vs. Consensus | 0.782 | 0.811 | 0.829 | 0.326 | 0.814 |
| Regressor vs. Consensus | 0.759 | 0.797 | 0.796 | 0.378 | 0.789 |
| Regressor vs. Agent | 0.909 | 0.914 | 0.913 | 0.170 | 0.912 |
| Curation Setting | FID | KID | MOS | mIoU (%) |
|---|---|---|---|---|
| From Scratch | – | – | – | 47.19 |
| w/o Agent (100%) | 38.75 | 0.056 | 3.12 | 53.41 |
| w/ Agent (Top 75%) | 33.61 | 0.032 | 4.06 | 54.42 |
| w/ Agent (Top 50%) | 30.08 | 0.028 | 3.87 | 54.46 |
| w/ Agent (Top 25%) | 24.94 | 0.024 | 4.20 | 55.12 |
| w/ Agent (Top 10%) | 23.96 | 0.021 | 4.43 | 55.46 |
| PanNuke | PathSeg-380K | ||||||
|---|---|---|---|---|---|---|---|
| Method | Gen. Prior | Agent | Seg. Head | mIoU (%) | mASD | mIoU (%) | mASD |
| Baseline | 44.58 | 30.93 | 44.23 | 8.86 | |||
| M1 | ✓ | 52.17 | 25.86 | 52.08 | 6.58 | ||
| M2 | ✓ | ✓ | 53.85 | 24.42 | 53.72 | 5.37 | |
| M3 | ✓ | ✓ | 53.41 | 24.01 | 53.19 | 5.51 | |
| Ours (Full) | ✓ | ✓ | ✓ | 55.46 | 22.91 | 55.45 | 4.81 |