Large Language Models for Classifying Usual Interstitial Pneumonia from Radiology Reports: Native Reasoning Versus Structured Prompting
Authors:
Open Access
- 5 August 2026
- journal article
- research article
- Published by Springer Nature in Journal of Imaging Informatics in Medicine
- p. 1-9
Abstract
Extracting disease labels from radiology reports is essential for developing deep learning-based diagnostic models and enabling large-scale retrospective clinical research. Classification of usual interstitial pneumonia (UIP) patterns from high-resolution computed tomography (HRCT) reports according to Fleischner Society guidelines is a particularly demanding task, requiring synthesis of spatial distribution, fibrotic features, and exclusion criteria. As open-source large language models (LLMs) are released at an accelerating pace with steadily improving general benchmarks, a practical question arises: Do these improvements translate to better performance on complex, real-world clinical classification, and does the optimal prompting strategy differ across model architectures? While prior studies have evaluated LLMs for radiology report labeling, none have compared how prompting strategies interact with the native reasoning capabilities of newer model architectures. We evaluated 10 open-source LLMs from three architecture families (Llama, Qwen, Gemma) spanning 8 to 405 billion parameters, each tested with three prompting strategies on 270 HRCT reports classified by expert consensus of two senior thoracic radiologists. Four models with native reasoning (“thinking”) capability were additionally tested in thinking mode. The best configuration achieved a Cohen’s kappa ( κ ) of 0.70 and 82% four-class accuracy. Structured reasoning prompting improved all Llama models but degraded all models with native reasoning capability (Qwen 3.5 and Gemma 4), revealing an architecture-dependent interaction. Thinking mode hurt performance on criteria-based prompts and never yielded the best configuration. Larger models did not consistently outperform smaller ones: Llama 3.1 405B offered no advantage over Llama 3.3 70B, and the Qwen 397B model underperformed the dense Qwen 27B. These findings demonstrate that newer model generations with improved general benchmarks and larger parameter counts do not guarantee better performance on specialized medical classification tasks and that prompt design must be matched to model architecture.Keywords
All Related Versions
Funding Information
- National Heart, Lung, and Blood Institute (R01HL153594)
- National Institute of Biomedical Imaging and Bioengineering (R01EB032474)
- National Center for Advancing Translational Sciences (1UL1TR002373)
This publication has 16 references indexed in Scilit:
- Cross-Institutional Evaluation of Large Language Models for Radiology Diagnosis Extraction: A Prompt-Engineering PerspectiveJournal of Imaging Informatics in Medicine, 2025
- Role of Model Size and Prompting Strategies in Extracting Labels from Free-Text Radiology Reports with Open-Source Large Language ModelsJournal of Imaging Informatics in Medicine, 2025
- Comparing Commercial and Open-Source Large Language Models for Labeling Chest Radiograph ReportsRadiology, 2024
- Evaluating the Performance and Bias of Natural Language Processing Tools in Labeling Chest Radiograph ReportsRadiology, 2024
- Privacy-preserving large language models for structured medical information retrievalnpj Digital Medicine, 2024
- BI-RADS Category Assignments by GPT-3.5, GPT-4, and Google Bard: A Multilanguage StudyRadiology, 2024
- Potential of ChatGPT and GPT-4 for Data Mining of Free-Text CT Reports on Lung CancerRadiology, 2023
- Leveraging GPT-4 for Post Hoc Transformation of Free-text Radiology Reports into Structured Reporting: A Multilingual Feasibility StudyRadiology, 2023
- Interobserver variability in high-resolution CT of the lungsEuropean Journal of Radiology Open, 2020
- Diagnostic criteria for idiopathic pulmonary fibrosis: a Fleischner Society White PaperThe Lancet Respiratory Medicine, 2018