TY - JOUR
T1 - ALPaCA
T2 - Adapting Llama for Pathology Context Analysis to enable slide-level question answering
AU - Gao, Zeyu
AU - He, Kai
AU - Su, Weiheng
AU - Pang, Xiaobo
AU - Machado, Ines P.
AU - Jimenez-Linan, Mercedes
AU - Rous, Brian
AU - Wang, Chunbao
AU - Li, Chengzu
AU - McGough, William
AU - Gao, Shangqi
AU - Zhang, Di
AU - Gong, Tieliang
AU - Lu, Ming Y.
AU - Mahmood, Faisal
AU - Feng, Mengling
AU - Li, Chen
AU - Crispin-Ortuzar, Mireia
N1 - Publisher Copyright:
© The Author(s) 2026.
PY - 2026/12
Y1 - 2026/12
N2 - Large Vision Language Models (LVLMs) are increasingly used in computational pathology for image classification, description generation, question answering and interactive diagnostics. However, most pathology LVLMs analyse small regions of interest rather than pyramidal, gigapixel-scale whole-slide images (WSIs), limiting their use for tasks requiring whole-slide assessment across sub-regions and magnification levels. Here, we present ALPaCA (Adapting Llama for Pathology Context Analysis), a slide-level LVLM framework for WSI question answering across diverse cancer types and tissue sites. ALPaCA is trained using 35,913 WSIs with curated descriptions and 341,051 question-answer pairs from TCGA and GTEx. It combines a LongFormer vision-text adaptor with a Gaussian mixture model-based prototyping adaptor and Llama3.1. ALPaCA exceeds 90% accuracy on internal close-ended benchmarks and maintains 77–82% accuracy on independent external cohorts. Expert pathologist evaluation of open-ended responses supports its slide-level reasoning capability. Additionally, ALPaCA can be fine-tuned on organ- or disease-specific datasets, supporting specialised pathology question answering.
AB - Large Vision Language Models (LVLMs) are increasingly used in computational pathology for image classification, description generation, question answering and interactive diagnostics. However, most pathology LVLMs analyse small regions of interest rather than pyramidal, gigapixel-scale whole-slide images (WSIs), limiting their use for tasks requiring whole-slide assessment across sub-regions and magnification levels. Here, we present ALPaCA (Adapting Llama for Pathology Context Analysis), a slide-level LVLM framework for WSI question answering across diverse cancer types and tissue sites. ALPaCA is trained using 35,913 WSIs with curated descriptions and 341,051 question-answer pairs from TCGA and GTEx. It combines a LongFormer vision-text adaptor with a Gaussian mixture model-based prototyping adaptor and Llama3.1. ALPaCA exceeds 90% accuracy on internal close-ended benchmarks and maintains 77–82% accuracy on independent external cohorts. Expert pathologist evaluation of open-ended responses supports its slide-level reasoning capability. Additionally, ALPaCA can be fine-tuned on organ- or disease-specific datasets, supporting specialised pathology question answering.
UR - https://www.scopus.com/pages/publications/105050680627
U2 - 10.1038/s41467-026-76372-z
DO - 10.1038/s41467-026-76372-z
M3 - 文章
C2 - 42754557
AN - SCOPUS:105050680627
SN - 2041-1723
VL - 17
JO - Nature Communications
JF - Nature Communications
IS - 1
M1 - 9943
ER -