Scientific Reports· 2026Q1
Instruction-tuning large language models with medical classification data improves ICD coding of German tumor diagnoses
- 1citations
- Q1SCImago
- 2026year
Short summary
Instruction-tuning open-weight LLMs (Qwen, Llama, Mistral families) on ICD-10-GM and ICD-O-3 data improved German tumor diagnosis coding accuracy from 1.4% to 41-58% (full codes) and 31% to 73-83% (partial codes), with malformed outputs dropping to near 0%.
AI-generated from the title and abstract; the full text is not read.
Key points
- Instruction-tuning LLMs on ICD-10-GM and ICD-O-3 data improved full ICD-10-GM coding accuracy from 1.4% to 41-58% across Qwen, Llama, and Mistral models.
- Partial (three-character) ICD-10-GM coding accuracy increased from 31% to 73-83% after fine-tuning.
- Malformed code outputs were reduced to nearly 0% for most models, and tumor-diagnosis recognition reached 99%.
- Accuracy correlated positively with model size, but fine-tuning narrowed the performance gap between smaller and larger models.
AI-generated from the title and abstract; the full text is not read.
Abstract
Abstract Accurate coding of tumor diagnoses, with the German Modification of the International Classification of Diseases, 10th Revision (ICD-10-GM), and the International Classification of Diseases for Oncology, Third Edition (ICD-O-3), is essential for structured cancer documentation. Large language models (LLMs) offer opportunities for automating such tasks, but locally deployable, open-weight models often lack sufficient domain-specific coding expertise. This study investigates whether instruction-based fine-tuning on public classification resources improves the coding accuracy of open-weight LLMs for German tumor diagnosis texts. Eight models from the Qwen, Llama, and Mistral families (7–70 billion parameters) were fine-tuned on over 500,000 question-answer pairs based on the ICD-10-GM, ICD-O-3, and German procedure classification. The evaluation uses coded diagnoses from the local tumor documentation system as test data. ICD-10-GM accuracy rose from 1.4 to 24 to 41–58%, and partial (three-character codes only) accuracy from 31 to 74 to 73–83%. The accuracy of ICD-O-3 topography coding also improved but started and remained considerably lower. Malformed code outputs dropped to nearly 0% for almost all models. Tumor-diagnosis recognition reached 99%. A data quality analysis showed that incomplete diagnosis descriptions limited achievable test performance. Accuracy correlated positively with model size, but gaps between small and large models narrowed after fine-tuning. The reasoning mode in Qwen3 generally yielded lower performance than fine-tuning and was over 100 times slower. Our findings highlight the potential of leveraging public catalogues to build instruction datasets that improve LLMs in medical documentation tasks. To support reproducibility and further research, we publicly release the complete training dataset and the best-performing fine-tuned model checkpoints.
The authors' abstract, as published at the source. Scientific Reports, 2026 · DOI ↗
Continue with a free account
Ask the paper: 3 free questions a day about this paper; save it, get its citation, new summaries every day for your field. Takeaways are Premium.
Continue free on the webSign in with Google or Apple; no card needed. You come back to this paper.
On your phone:
Field: Health Information Management
Health Information ManagementHealth Professions