NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PathAsst: A Generative Foundation AI Assistant Towards Artificial General Intelligence of Pathology

Yuxuan Sun, Chenglu Zhu, Sunyi Zheng, Kai Zhang, Lin Sun, Zhongyi Shui, Yunlong Zhang, Honglin Li, Lin Yang

TL;DR

PathAsst is a multimodal generative AI assistant specifically optimized for the complex field of pathology. By combining a custom-trained vision encoder (PathCLIP) with a large language model (Vicuna-13B), it can interpret histopathology slides, answer clinical questions, and intelligently delegate complex tasks to specialized downstream AI tools.

What Problem Does This Paper Address?

Multimodal Large Language Models (MLLMs) like LLaVA or MiniGPT-4 have shown stunning capabilities in processing natural images, but they fall short when dropped into a specialized medical domain like pathology.

The authors identify two major roadblocks:

  1. Data Scarcity and Noise: High-quality, cleanly annotated pathology image-caption data is incredibly rare. Existing datasets often rely on noisy social media scrapes (e.g., from Twitter/X), where the correlation between the image and text is weak.
  2. Task Complexity: General LLMs are notoriously bad at precise spatial tasks, such as counting hundreds of microscopic cells or performing exact segmentations. A pure text-generation model cannot handle the granular, quantitative demands of a clinical pathologist.

Methods

To bridge this gap, the authors developed a three-stage pipeline to build PathAsst:

  1. Automated Data Cleansing: The authors designed a pipeline to extract and clean data from formal medical literature. They used a ConvNeXt model to filter out non-pathology images, a YOLOv7 object detector to split multi-panel figures into individual sub-figures, and ChatGPT to refine messy, jargon-heavy captions into clean text.
  2. PathCLIP: Using their newly curated dataset, they fine-tuned OpenAI's base CLIP model via contrastive learning. This aligned the visual features of pathology slides directly with professional medical language.
  3. PathAsst Architecture: They connected PathCLIP to a Vicuna-13B LLM using a fully connected projection layer. Training occurred in two phases: first, aligning the visual features to the language space (keeping the vision encoder and LLM frozen), and second, fine-tuning the LLM on instruction-following data.
  4. Tool Augmentation: To overcome the mathematical and spatial limitations of LLMs, PathAsst is equipped to act as an "agent." It can recognize a user's intent and automatically invoke one of eight specialized sub-models (e.g., for cell segmentation, HER2/PD-L1 detection, or cell generation via Stable Diffusion) or query a database of 5.3 million PubMed abstracts for real-time literature retrieval.
Figure 1: Illustration of data processing: pathology image selection, sub-figure & caption separation, and refinement.

Datasets

The paper introduces two major datasets:

  • PathCap: 207K high-quality pathology image-caption pairs sourced from PubMed and medical textbooks, supplemented by 10K expert-annotated liquid-based cytology (LBC) samples.
  • PathInstruct: 180K instruction-following samples generated using ChatGPT, featuring detailed descriptions, conversational Q&A, and specific prompts designed to trigger tool invocation.

For evaluation, the authors benchmarked their models against established datasets: CRC100K (colorectal cancer), WSSS4LUAD (lung cancer), LC25000 (lung/colon cancer), and PathVQA (Pathology Visual Question Answering).

Key Insights and Ideas

  • The Power of Delegation: Instead of forcing a general MLLM to do everything, PathAsst succeeds by knowing its limitations. When asked to "count the number of positive tumor cells," it doesn't guess; it routes the image to a specialized cell-detection model and then synthesizes the results into a clean, markdown-formatted report.
  • Textbooks Beat Social Media: Prior pathology foundation models (like PLIP) relied heavily on Twitter data. PathAsst demonstrates that systematically cleaning formal literature and textbooks yields vastly superior vision-language alignment.
  • Sub-figure Disambiguation is Crucial: Medical journal figures are notoriously complex, often packing multiple sub-panels (A, B, C, D) under a single caption. Deconstructing these compound images and aligning individual panels to their specific text snippets was a key driver of the model's accuracy.
Figure 2: Examples of pathology-specific model-invoking instruction-following samples.

Key Results

  • PathCLIP achieved a massive 10.7x to 11x improvement in cross-modal image retrieval (R@10) on PubMed data compared to OpenAI's base CLIP and the previous SOTA pathology model, PLIP.
  • On zero-shot tissue classification, PathCLIP outperformed PLIP across all test sets, showing an F1-score increase of up to 11.6% on the WSSS4LUAD lung dataset.
  • PathAsst set a new standard on the PathVQA benchmark, scoring 90.9% on closed-ended questions (beating LLaVA by 8.7%) and 38.4% on open-ended questions (beating LLaVA by 18.4%).

Limitations and Future Work

While PathAsst marks a major step forward, the authors note a few limitations:

  • Open-Ended Statistics: PathAsst slightly underperforms specialized SOTA models that directly extract statistical numbers straight from structured clinical reports during open-ended queries.
  • Abstract-Only Retrieval: The paper retrieval system currently relies on article abstracts. Integrating full-text articles could provide deeper, more nuanced clinical context for complex queries.
  • Clinical Validation: While the model performs exceptionally well on benchmarks, future work must focus on validating PathAsst within real-world clinical workflows alongside practicing pathologists.

Summary updated

BibTeX
@inproceedings{sun2024pathasst,
  author = {Yuxuan Sun and Chenglu Zhu and Sunyi Zheng and Kai Zhang and Lin Sun and Zhongyi Shui and Yunlong Zhang and Honglin Li and Lin Yang},
  title = {{PathAsst: A Generative Foundation AI Assistant Towards Artificial General Intelligence of Pathology}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i5.28308},
}
Figure