TLDR: Researchers developed and fine-tuned open-source large language models (LLMs) to automatically extract features and categorize the risk of pancreatic cystic lesions (PCLs) from radiology reports. These models, especially when trained with Chain-of-Thought reasoning, achieved accuracy and radiologist agreement comparable to advanced proprietary LLMs like GPT-4o, while offering significantly lower operational costs for large-scale clinical and research applications.
A recent study highlights a significant advancement in medical diagnostics, demonstrating how fine-tuned open-source large language models (LLMs) can accurately extract critical information about pancreatic cystic lesions (PCLs) from radiology reports and categorize their risk. This innovation promises to streamline a labor-intensive process, paving the way for larger-scale research and improved patient care.
Pancreatic cystic lesions are common, especially in older individuals, and while most are benign, a small percentage can progress to malignancy. Monitoring these lesions requires careful, long-term imaging surveillance. However, manually extracting features like size, growth, and morphology from vast numbers of radiology reports is time-consuming and prone to human error, hindering comprehensive studies needed to better understand PCLs and refine risk assessment.
The research team, including Ebrahim Rasromani, Stella K. Kang, and Yiqiu Shen, developed and evaluated LLMs designed to automate this complex task. Their approach involved training open-source models, specifically LLaMA and DeepSeek, using a technique called Quantized Low-Rank Adaptation (QLoRA) and Chain-of-Thought (CoT) supervision. CoT prompting encourages the models to ‘think’ step-by-step, providing interpretable reasoning for their conclusions, much like a human expert would.
The study curated a training dataset of 6,000 abdominal MRI/CT reports describing PCLs, with labels generated by GPT-4o using CoT prompting. The models were trained to identify the most clinically significant PCL, not just the largest, and extract a comprehensive set of features, including cyst characteristics (size, growth, morphology, wall and septation, mural nodules) and main pancreatic duct features (caliber, dilation, stricture).
Key Findings and Performance
The results were impressive. The fine-tuned open-source models achieved an average exact match accuracy of 97–98% in feature extraction, a performance level comparable to the state-of-the-art proprietary model, GPT-4o. The Chain-of-Thought supervision proved particularly beneficial for features requiring multi-step reasoning, such as calculating time intervals between scans.
For PCL risk categorization, the fine-tuned open-source models also performed on par with GPT-4o, with F1 scores ranging from 0.93 to 0.97. The models showed a tendency to prioritize recall over precision, meaning they were more inclined to identify high-risk cases, even if it meant a few more false positives – a cautious approach that could be beneficial in a clinical setting.
A crucial aspect of the study was the interpretability offered by CoT reasoning. This allowed researchers to analyze errors, which primarily stemmed from object identification (e.g., miscounting cysts) and clinical reasoning (e.g., misinterpreting radiological descriptors). Importantly, no ‘hallucinations’ were observed, meaning the models did not fabricate information not present in the original reports.
Radiologist Agreement and Cost-Efficiency
To assess clinical reliability, a reader study was conducted where three expert radiologists reviewed model-assigned risk categories. The agreement between the models and human radiologists was nearly perfect (Fleiss’ kappa: 0.893–0.897), indicating that the LLM-derived outputs align closely with expert interpretation. Minor disagreements, both among radiologists and between models and radiologists, often occurred in cases with ambiguous language or subtle differences in how growth rates were calculated, highlighting the complexities of unstructured medical reports.
Beyond performance, the study also addressed the practical aspect of cost. While fine-tuning open-source models incurs an initial training cost (around $354), their variable cost per report is substantially lower than that of proprietary models like GPT-4o. This makes them significantly more economical for large-scale deployment, becoming more cost-effective after processing approximately 9,100 reports. Optimized inference engines further reduced processing time, making high-throughput analysis feasible.
Also Read:
- MedIQA: A New Foundation Model for Medical Image Quality Assessment
- PTCMIL: A Unified Approach to Analyzing Gigapixel Whole Slide Images for Cancer Diagnosis
Implications for Healthcare
This research demonstrates that specialized fine-tuning can enable open-source LLMs to match the performance of large proprietary models for specific clinical tasks. This offers health systems greater flexibility, lower long-term costs, and full control over data privacy and reproducibility. The interpretability provided by Chain-of-Thought reasoning is particularly valuable in healthcare, where transparency and accountability are paramount for human oversight and clinical decision-making.
The findings suggest a promising future for automated medical information extraction, enabling more efficient and accurate analysis of vast amounts of clinical data, ultimately supporting advancements in PCL research and patient management. For more details, you can refer to the full research paper here.


