Bridging the performance gap: systematic optimization of local LLMs for Japanese medical PHI extraction
Cloud-based Large Language Models (LLMs) excel at medical text processing, but privacy regulations impose significant constraints on transmitting Protected Health Information (PHI) to external services, creating barriers to AI adoption for many healthcare institutions. While contractual agreements (e.g., Business Associate Agreements under HIPAA) may permit such transmission under specific conditions, many institutions prefer or require complete data sovereignty. Local LLMs address this need but have historically underperformed. This study introduces a five-phase optimization framework to bridge this performance gap. Using 160 synthetic Japanese radiology reports, we benchmarked 14 local LLMs against cloud leaders. Our key finding is a notable performance pattern: models with baseline scores below 87-88 points gained an average of + 6.92 points (p < 0.001), while higher-scoring models did not, suggesting a potential threshold effect for targeted optimization that warrants further investigation. The optimized Mistral-Small-3.2 with Self-Refine achieved 91.54 points-97.8% of GPT-4.1's performance-with perfect rule adherence and a clinically acceptable processing time of 24.6 s per report for batch workflows. Our work demonstrates that systematically optimized local LLMs can approach cloud-leader performance. Importantly, it provides a strategic framework guiding institutions on when and where to apply advanced optimization, enabling efficient and trustworthy AI deployment while ensuring patient privacy.
Authors
- Akihiko Wada (ORCID: https://orcid.org/0000-0003-3432-0267)
- Atsushi Nakanishi (ORCID: https://orcid.org/0000-0002-5939-8530)
- Koji Kamagata
- Junko Kikuta (ORCID: https://orcid.org/0000-0003-1324-8614)
- Mitsuo Nishizawa (ORCID: https://orcid.org/0000-0001-5486-3002)
- Toshiaki Akashi (ORCID: https://orcid.org/0000-0002-3056-0792)
- Ryusuke Irie (ORCID: https://orcid.org/0000-0001-7402-3983)
- Shigeki Aoki (ORCID: https://orcid.org/0000-0002-8491-0698)
- Keigo Shimoji (ORCID: https://orcid.org/0000-0002-1017-6873)
- Katsuhiro Sano
- Yayoi Hayakawa
- Akifumi Hagiwara
Institutions
- Juntendo University (JP)
- Juntendo University Urayasu Hospital (JP)
Publication Details
- Journal
- Scientific Reports
- Published
- 2026-01-21
- DOI
- https://doi.org/10.1038/s41598-026-36904-5
- Primary Topic
- Artificial Intelligence in Healthcare and Education
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Japan Society for the Promotion of Science