arXiv:2611.06701cs.CVNov 2026

Manuscript Offprint

arXiv:2611.06701

Agent-Driven Generative Priors for Pathology Image Synthesis and Segmentation

Sicheng Yang, Rui Tang, Haipeng Zhou, Hongqiu Wang, Zhaohu Xing, Jianda Ma, Lie Dai, Guang Yang, Lei Zhu

Sicheng Yang, Rui Tang, Haipeng Zhou, Hongqiu Wang, Zhaohu Xing, Jianda Ma, Lie Dai, Guang Yang, and Lei Zhu

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.

Index Terms—Agent systems, pathology image synthesis, image segmentation

I. INTRODUCTION

H istopathological examination is a cornerstone of clinical diagnosis and disease assessment [1]. Advances in deep learning have further expanded the capabilities of computational pathology, supporting applications ranging from nuclei segmentation [2] and tumor detection [3] to tissue classification [4]. However, these models often rely on large-scale expert annotations [5]–[7]. Obtaining such annotations is costly and time-consuming, as accurate labeling requires

Figure

(a) Datasets for Generative Prior

(b) Datasets for Downstream task

Fig. 1. Overview of the datasets and data distributions. (a) Source composition of TCGA-200K, utilized for pre-training the generative prior. (b) Class distributions for downstream segmentation tasks, comparing the publicly available PanNuke dataset with our large-scale, annotated PathSeg-380K dataset, containing ∼\sim 380,000 annotated cells.

pathologists to manually identify and delineate complex cellular structures [8]. As a result, sufficiently annotated datasets remain scarce in many clinical settings [9], increasing the risk of overfitting and limiting model generalization.

Synthetic data generation has emerged as a promising strategy to augment scarce labeled data [10]. Generative models, including generative adversarial networks (GANs) [11] and diffusion models [12], have demonstrated strong capability in synthesizing realistic pathology images. Typically, these generated images are combined with the existing datasets to augment the training pool, thereby improving the performance of downstream tasks such as segmentation [13]. However, it still faces two major limitations. (1) Existing pipelines lack effective data quality control. In the pathology area, images frequently suffer from staining artifacts, blurred structures, and poor cellular visibility [14], [15]. For example, within a single whole slide image (WSI), many regions are often uninformative for diagnosis. Training generative models on such low-quality data without quality assessment leads to unreliable synthetic images with inaccurate pathological patterns [16]. (2) The generation process and downstream tasks are disconnected from each other. Existing methods treat generative models merely as black-box data engines to sample new images. Therefore, they fail to leverage the rich semantic information learned during the generation process [17]. Our experiments reveal that the generative model backbone itself can serve as a powerful feature extractor for downstream tasks, providing rich prior information.

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.

Lei Zhu is with The Hong Kong University of Science and Technology (Guangzhou), China, and The Hong Kong University of Science and Technology, Hong Kong SAR, China.

Lei Zhu (E-mail: leizhu@hkust-gz.edu.cn) is the corresponding author of this work.

Figure

(a) Agent-Driven Screening

(b) Generative Prior Learning

(c) Transfer for Segmentation

Fig. 2. Overview of the proposed unified three-stage framework. In Stage I, an agent-driven screening pipeline evaluates pathology patches from multiple quality dimensions and selects high-quality samples to construct the TCGA-200K dataset. In Stage II, the curated data are used to learn pathology-specific generative priors through DiT blocks. In Stage III, the learned generative priors are transferred to downstream segmentation on PanNuke and PathSeg-380K, where the pretrained backbone provides multi-level pathology representations for accurate pathology segmentation.

To address these limitations, we propose a novel three-stage framework that unifies automated data quality control, the learning of high-quality generative priors, and transfer learning for downstream tasks. First, we introduce an agent-based screening mechanism for dataset refinement. We design an intelligent pathology agent system to automatically evaluate and score the quality of pathology images across multiple clinical dimensions. Only high-scoring images are retained to construct a curated training set for learning the generative prior. Second, we train a generative model on this refined dataset. Crucially, this model is not deployed merely to synthesize new data; instead, its backbone naturally extracts rich structural and semantic information during the generative training process, allowing it to serve as a powerful foundational encoder. Third, we redefine downstream analysis as a transfer learning paradigm. By simply appending a lightweight task-specific head (e.g., for semantic segmentation) to the pretrained generative backbone, our framework leverages these learned priors with minimal training overhead. Our contributions are summarized as follows:

  • A Unified Three-Stage Framework. We identify that current pathology analysis pipelines suffer from inadequate data quality control and a disconnect between generation and downstream tasks. To address this, we propose a novel framework that unifies agent-guided quality screening, robust generative prior learning, and efficient downstream transfer learning.
  • Two Novel High-Quality Datasets. We construct and introduce two large-scale datasets to the community: TCGA-200K, comprising 217,030 premium pathology patches curated from the open-source TCGA repository using our agent-based screening mechanism. We also use PathSeg-380K for semantic segmentation. It contains annotations provided by two clinical pathologists for approximately 380,000 cells across 12 cell types.
  • State-of-the-Art Performance. Extensive experiments show that our framework generates high-quality pathology images. When the pretrained generative backbone is transferred to semantic segmentation, the resulting

model also outperforms existing segmentation methods across both public and private datasets, indicating that the learned generative prior benefits both image synthesis and downstream pathology analysis.