Rationale-Augmented Few-Shot Prompting for LLM-Based Structured Information Extraction From Free-Text Radiology Reports in Perihilar Cholangiocarcinoma: A Multicenter Study.
Authors
Affiliations (9)
Affiliations (9)
- Yonsei University College of Medicine, 50-1 Yonsei-ro, Seodaemun-gu, Seoul 03722, South Korea.
- Department of Radiology, Research Institute of Radiological Science, and Center for Clinical Imaging Data Science, Yonsei University College of Medicine, 50-1 Yonsei-ro, Seodaemun-gu, Seoul 03722, South Korea.
- Division of Gastroenterology, Department of Internal Medicine, Gangnam Severance Hospital, Yonsei University College of Medicine, 211 Eonju-ro, Gangnam-gu, Seoul 06273, South Korea.
- AIGEN Sciences, Office 703, 58 Wangsimni-ro, Seongdong-gu, Seoul 04778, South Korea.
- Division of Gastroenterology, Department of Internal Medicine, Yonsei University College of Medicine, 50-1 Yonsei-ro, Seodaemun-gu, Seoul 03722, South Korea.
- Division of Gastroenterology, Department of Internal Medicine, Jeonbuk National University Medical School, 20 Geonji-ro, Deokjin-gu, Jeonju, Jeonbuk 54907, South Korea.
- Department of Internal Medicine, Kyungpook National University Hospital, 130 Dongdeok-ro, Jung-gu, Daegu 41944, South Korea.
- Department of Internal Medicine, Korea University Ansan Hospital, 123 Jeokgeum-ro, Danwon-gu, Ansan-si, Gyeonggi-do 15355, South Korea.
- Yonsei Institute for Digital Health, Yonsei University, 50-1 Yonsei-ro, Seodaemun-gu, Seoul 03722, South Korea.
Abstract
<b>Background:</b> Extracting structured information from free-text radiology reports of perihilar cholangiocarcinoma requires detailed anatomic knowledge and clinical reasoning. <b>Objective:</b> To assess the effect of in-context prompting strategies, particularly rationale-augmented few-shot prompting, on the accuracy of large language models (LLMs) in extracting structured information from free-text radiology reports in patients with perihilar cholangiocarcinoma. <b>Methods:</b> This retrospective study included 447 patients diagnosed with perihilar cholangiocarcinoma from January 2010 to December 2022, comprising an internal cohort of 259 patients (median age, 69 years; 179 male, 80 female) from one institution and an external cohort of 188 patients (median age, 73.5 years; 116 male, 72 female) from three other institutions. A gastrointestinal radiologist reviewed reports of each patient's baseline imaging (varying combinations of CT, MRI, and PET) to establish the reference standard for bile duct invasion, Bismuth classification, tumor-vessel contact, and regional lymph node metastasis. Two LLMs, GPT-5.2 and Gemini-3-flash-preview, each at low and high reasoning configurations, were evaluated for those four fields using zero-shot, one-shot, few-shot, and rationale-augmented few-shot prompting. Example reports in the prompts were obtained from the internal cohort's institution. Extraction accuracy was evaluated. <b>Results:</b> For all eight combinations of cohort, model, and configuration, accuracy for bile duct invasion was significantly greater for rationale-augmented few-shot prompting than for zero-shot prompting; across models and configurations, accuracy for zero-shot and rationale-augmented few-shot prompting ranged in the internal cohort from 74.5-89.8% and 89.6-93.7%, respectively, and in the external cohort from 73.0-87.8% and 83.3-90.2%, respectively. Accuracy for bile duct invasion showed overall stepwise increases across the four prompting strategies (from zero-shot to one-shot, few-shot, and rationale-augmented few-shot prompting). Across eight combinations of cohorts, models, and configurations, rationale-augmented few-shot prompting yielded significantly greater accuracy than zero-shot prompting for one combination for Bismuth classification, one combination for tumor-vessel contact, and two combinations for regional lymph node metastasis. <b>Conclusion:</b> Rationale-augmented few-shot prompting improved the accuracy of information extraction for bile duct invasion but did not consistently improve accuracy for other extracted fields. <b>Clinical Impact:</b> The impact of prompt engineering strategies on LLM performance depends on task characteristics (e.g., the degree of reasoning required and nature of analyzed text).