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 · Department of Medical Oncology, National Cancer Center Hospital East, Kashiwa, Japan · Department of Thoracic Surgery, National Cancer Center Hospital East, Kashiwa, Japan
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
Table 1: Model information and llama-bench results.
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
Table 2: Benchmark A1: JSON to institutional template.
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
Table 3: Benchmark A2: JSON to institutional template with pT determination and score calculation.
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
Table 4: Benchmark A3: JSON to Kiyaku template.
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
Table 5: Benchmark A4: extraction of JSON items from a formatted report.
Figure 1: Distribution of explanatory-text ratings by model among five pathologists (a) and three clinicians (b).
Figure 2: Model-level inter-rater reliability for explanatory-text evaluation. Panels show ICC(2,1) and ICC(2, k) of pathologists (a and b). Those of clinicians (c and d). 95% confidence intervals are depicted with bars.