Performance Evaluation of Open-Source Large Language Models for Assisting Pathology Report Writing in Japanese
Organizations: Department of Pathology and Clinical Laboratories, National Cancer Center Hospital East, Kashiwa, Japan · Department of Pathology, University of Yamanashi, Chuo, Japan · Division of Pathology, Exploratory Oncology Research & Clinical Trial Center, National Cancer Center, Kashiwa, Japan · Department of Preventive Medicine, Graduate School of Medicine, The University of Tokyo, Tokyo, Japan ·
Abstract
The performance of large language models (LLMs) for supporting pathology report writing in Japanese remains unexplored. We evaluated seven open-source LLMs from three perspectives: (A) generation and information extraction of pathology diagnosis text following predefined formats, (B) correction of typographical errors in Japanese pathology reports, and (C) subjective evaluation of model-generated explanatory text by pathologists and clinicians. Thinking models and medical-specialized models showed advantages in structured reporting tasks that required reasoning and in typo correction. In contrast, preferences for explanatory outputs varied substantially across raters. Although the utility of LLMs differed by task, our findings suggest that open-source LLMs can be useful for assisting Japanese pathology report writing in limited but clinically relevant scenarios.
Figures & tables
| Model | Quantization | Thinking | Med. knowledge | Size (GB) | Params (B) | pp512 | tg128 |
|---|---|---|---|---|---|---|---|
| Gemma 3-27b-it | Q4_0 | No | No | 16.04 | 27.01 | 384.66 | 29.90 |
| MedGemma-27b-text-it | Q4_K_XL | No | Yes | 15.66 | 27.01 | 337.32 | 27.31 |
| SIP-jmed-llm-3-8x13b-AC-32k-instruct | Q8_0 | No | Yes | 72.40 | 73.16 | 421.82 | 25.97 |
| Qwen3-Next-80B-A3B-Instruct | Q8_0 | No | No | 78.98 | 79.67 | 647.65 | 24.97 |
| Qwen3-Next-80B-A3B-Thinking | Q8_0 | Yes | No | 78.98 | 79.67 | 650.06 | 24.94 |
| gpt-oss-20b | MXFP4 | Yes | No | 11.27 | 20.91 | 2293.59 | 120.27 |
| Model | Macro F1 | Macro Jaccard | Micro F1 | Micro Jaccard | Avg time (s) | Max time (s) |
|---|---|---|---|---|---|---|
| Gemma 3-27b-it | 1.000 | 1.000 | 1.000 | 1.000 | 7.92 | 9.04 |
| MedGemma-27b-text-it | 1.000 | 1.000 | 1.000 | 1.000 | 8.51 | 9.76 |
| SIP-jmed-llm-3-8x13b-AC-32k-instruct | 0.989 | 0.980 | 0.987 | 0.974 | 8.20 | 16.28 |
| Qwen3-Next-80B-A3B-Instruct | 0.999 | 0.998 | 0.999 | 0.998 | 11.13 | 11.98 |
| Qwen3-Next-80B-A3B-Thinking | 1.000 | 1.000 | 1.000 | 1.000 | 119.10 | 170.81 |
| gpt-oss-20b | 0.997 | 0.994 | 0.997 | 0.994 | 10.94 | 24.51 |
| Model | Macro F1 | Macro Jaccard | Micro F1 | Micro Jaccard | pT | NG | HG | All correct |
|---|---|---|---|---|---|---|---|---|
| Gemma 3-27b-it | 0.987 | 0.974 | 0.987 | 0.974 | 0.18 | 0.66 | 0.58 | 0.47 |
| MedGemma-27b-text-it | 0.983 | 0.966 | 0.983 | 0.966 | 0.06 | 0.41 | 0.51 | 0.36 |
| SIP-jmed-llm-3-8x13b-AC-32k-instruct | 0.428 | 0.277 | 0.430 | 0.274 | 0.00 | 0.00 | 0.00 | 0.01 |
| Qwen3-Next-80B-A3B-Instruct | 0.987 | 0.975 | 0.987 | 0.975 | 0.18 | 0.66 | 0.59 | 0.37 |
| Qwen3-Next-80B-A3B-Thinking | 1.000 | 1.000 | 1.000 | 1.000 | 1.00 | 1.00 | 1.00 | 1.00 |
| gpt-oss-20b | 0.991 | 0.983 | 0.991 | 0.982 | 0.96 | 0.97 | 0.98 | 0.99 |
| Model | Macro F1 | Macro Jaccard | Micro F1 | Micro Jaccard | Avg time (s) | Max time (s) |
|---|---|---|---|---|---|---|
| Gemma 3-27b-it | 0.992 | 0.985 | 0.992 | 0.985 | 4.44 | 5.90 |
| MedGemma-27b-text-it | 0.993 | 0.986 | 0.993 | 0.986 | 4.65 | 7.07 |
| SIP-jmed-llm-3-8x13b-AC-32k-instruct | 0.418 | 0.301 | 0.390 | 0.242 | 9.06 | 10.34 |
| Qwen3-Next-80B-A3B-Instruct | 0.996 | 0.993 | 0.996 | 0.993 | 6.41 | 6.79 |
| Qwen3-Next-80B-A3B-Thinking * | 1.000 | 1.000 | 1.000 | 1.000 | 192.14 | 300.00 |
| gpt-oss-20b | 0.971 | 0.944 | 0.971 | 0.943 | 13.62 | 28.95 |
| Model | Match ratio | Avg time (s) | Max time (s) |
|---|---|---|---|
| Gemma 3-27b-it | 1.000 | 9.43 | 10.85 |
| MedGemma-27b-text-it | 1.000 | 10.27 | 12.19 |
| SIP-jmed-llm-3-8x13b-AC-32k-instruct | 0.532 | 9.64 | 11.42 |
| Qwen3-Next-80B-A3B-Instruct | 1.000 | 12.42 | 12.79 |
| Qwen3-Next-80B-A3B-Thinking | 0.955 | 178.64 | 456.17 |
| gpt-oss-20b | 0.984 | 11.27 | 18.73 |
| Model | Macro P | Macro R | Macro F1 | Micro P | Micro R | Micro F1 | LD |
|---|---|---|---|---|---|---|---|
| Gemma 3-27b-it | 0.763 | 0.557 | 0.619 | 0.759 | 0.538 | 0.630 | 1 |
| MedGemma-27b-text-it | 0.773 | 0.574 | 0.629 | 0.827 | 0.578 | 0.680 | 0 |
| SIP-jmed-llm-3-8x13b-AC-32k-instruct | 0.723 | 0.686 | 0.640 | 0.713 | 0.713 | 0.713 | 4 |
| Qwen3-Next-80B-A3B-Instruct | 0.738 | 0.673 | 0.697 | 0.743 | 0.692 | 0.717 | 0 |
| Qwen3-Next-80B-A3B-Thinking | 0.633 | 0.684 | 0.651 | 0.672 | 0.735 | 0.702 | 0 |
| gpt-oss-20b | 0.544 | 0.501 | 0.517 | 0.559 | 0.491 | 0.523 | 1 |
Medical Report Generation
Medical report generation turns medical images, clinical records, or conversations into structured, clinically useful reports.
See all 82 papers