TL;DR
QCAgent is an agentic framework designed to generate high-quality, controllable pathology reports from gigapixel Whole Slide Images (WSIs). By mimicking the iterative workflow of human pathologists—who alternate between low-power screening and high-power verification—QCAgent uses a closed-loop "audit-retrieve-revise" mechanism to ground its text descriptions in local visual evidence, substantially reducing hallucinations and improving clinical coverage.
What Problem Does This Paper Address?
Generating automated pathology reports from Whole Slide Images (WSIs) is a massive challenge due to the sheer scale of the data. A single WSI can be a gigapixel-scale image. Current state-of-the-art generative models typically use a single-pass paradigm: they compress thousands of image patches into a compact global vector to keep computation feasible.
However, this compression leads to two major issues:
- Feature Collapse: Drastic dimensionality reduction erases spatially sparse but diagnostically critical features, such as micro-lesions or evidence of lymphovascular invasion (LVI).
- Linguistic Prior Bias: Lacking a way to "look back" at the image for details, Large Language Models (LLMs) tend to hallucinate generic clinical boilerplate text (e.g., writing "cellular atypia" simply because the global label says "gastric cancer") without actual visual backing from the slide.
Methods
QCAgent addresses these gaps by reframing report generation as a multi-round, agentic process rather than a single-pass generation. The pipeline consists of two core stages:
1. Initial Round (Global Draft & Coverage)
- Global Draft: The framework uses a pretrained WSI-level foundation model (PRISM) to generate a baseline narrative draft.
- Initial Evidence: It performs cluster-based random sampling over the WSI patches to capture a representative overview. These patches are described by a pathology vision-language model (Patho-R1) to provide fine-grained diagnostic cues, which are then fused into the initial draft.
2. Quality-Control (QC) Rounds (Iterative Refinement)
Instead of stopping there, an advanced LLM agent (acting as a digital pathologist auditor) reviews the draft against a predefined checklist of quality criteria.
- Critique & Query: The agent identifies missing critical fields (e.g., missing tumor size or LVI status) and converts them into explicit, morphology-driven text queries.
- Demand-Driven Retrieval: Using CONCH (a vision-language foundation model for pathology), the framework performs text-to-image semantic retrieval to find the exact patches in the WSI that match the query.
- Evidence-Driven Revision: Patho-R1 analyzes these newly retrieved patches, and the agent updates the report. This loop repeats for up to $T$ iterations or until all criteria are met.
Crucially, the agent operates under a strict NO-FABRICATION rule: if a required clinical field cannot be verified by visual evidence in the WSI, it is explicitly logged as need_more_info rather than guessed.
Datasets
The authors evaluated QCAgent on two large-scale gastric cancer cohorts to test cross-lingual and cross-setting generalization:
- TCGA-STAD (Public, English): High-resolution WSIs from stomach adenocarcinoma cases in The Cancer Genome Atlas, utilizing slide-level pathology reports from the TITAN dataset as ground truth.
- In-house Dataset (Private, Chinese): A cohort consisting of 524 H&E stained WSIs paired with highly structured, concise Chinese clinical pathology reports.
Key Insights and Ideas
- Mimicking Human Workflows Pays Off: Pathologists don't look at a massive slide all at once; they scan at low power and zoom in on suspicious regions. QCAgent's text-guided patch retrieval successfully replicates this "visual look-back" behavior computationally.
- Turning Gaps into Queries: Instead of randomly sampling more patches to improve accuracy, treating missing report details as semantic search queries makes evidence collection highly efficient and demand-driven.
- Prioritizing Evidence Over Context: By enforcing a strict hierarchy (
SUPPLEMENT_EVIDENCE > DATASET_CONTEXT > WSI_REPORT), the framework ensures that localized visual facts always override generic language model assumptions, tackling the notorious LLM hallucination problem in medical AI.
Key Results
QCAgent demonstrated substantial improvements over the single-pass PRISM baseline across both datasets:
- Field Recall Boost: On the TCGA-STAD dataset, Field Recall (the proportion of clinically critical pathology fields successfully covered) surged from 32.08% to 63.35%.
- Factual Alignment: The framework achieved higher scores across traditional text overlap metrics (BLEU, ROUGE-L, METEOR) and semantic similarity (BERTScore), even in a zero-shot, training-free setting on the Chinese in-house dataset.
Qualitative examples highlight how QCAgent successfully fills in missing details (like depth of invasion or margin status) while appropriately marking unresolvable administrative data as undetermined, rather than fabricating it.
Limitations and Future Work
The authors noted a distinct "length bias" in standard evaluation metrics. Because QCAgent generates highly detailed, comprehensive reports to satisfy clinical safety, precision-centric metrics like the $F_1$-score can penalize it heavily compared to shorter, less informative drafts.
Additionally, the current evaluation relies primarily on automated NLP metrics. The authors note that future work will focus on introducing rigorous expert human evaluation by professional pathologists and optimizing the framework for real-world clinical deployment.
Summary updated