[Paper Review] JMedLoRA:Medical Domain Adaptation on Japanese Large Language Models using Instruction-tuning
This paper proposes JMedLoRA, a method for adapting large language models to the Japanese medical domain using LoRA-based instruction-tuning. It demonstrates that fine-tuning larger English-centric models like Llama2-70B with instruction-tuning significantly improves performance on Japanese medical question-answering tasks, while additional pretraining or multiple epochs worsen results, highlighting the importance of efficient, single-epoch tuning for clinical deployment.
In the ongoing wave of impact driven by large language models (LLMs) like ChatGPT, the adaptation of LLMs to medical domain has emerged as a crucial research frontier. Since mainstream LLMs tend to be designed for general-purpose applications, constructing a medical LLM through domain adaptation is a huge challenge. While instruction-tuning is used to fine-tune some LLMs, its precise roles in domain adaptation remain unknown. Here we show the contribution of LoRA-based instruction-tuning to performance in Japanese medical question-answering tasks. In doing so, we employ a multifaceted evaluation for multiple-choice questions, including scoring based on "Exact match" and "Gestalt distance" in addition to the conventional accuracy. Our findings suggest that LoRA-based instruction-tuning can partially incorporate domain-specific knowledge into LLMs, with larger models demonstrating more pronounced effects. Furthermore, our results underscore the potential of adapting English-centric models for Japanese applications in domain adaptation, while also highlighting the persisting limitations of Japanese-centric models. This initiative represents a pioneering effort in enabling medical institutions to fine-tune and operate models without relying on external services.
Motivation & Objective
- To investigate whether LoRA-based instruction-tuning can effectively incorporate domain-specific medical knowledge into Japanese LLMs.
- To compare the performance of larger English-centric models (e.g., Llama2-70B) versus smaller Japanese-centric models (e.g., OpenCALM-7B) in medical domain adaptation.
- To evaluate the impact of additional pretraining and the number of fine-tuning epochs on model performance in low-data regimes.
- To develop a practical, privacy-preserving method for medical institutions to fine-tune and deploy LLMs without relying on external services.
Proposed method
- Fine-tuned OpenCALM-7B and Llama2-70B-chat-hf using Low-Rank Adaptation (LoRA) and its quantized variant (QLoRA) for parameter-efficient tuning.
- Constructed a custom Japanese medical instruction-tuning dataset with 2,420 examples for training and 50 for evaluation, formatted as multiple-choice medical questions.
- Applied instruction-tuning with a single epoch (1,000 steps) to avoid overfitting and performance degradation observed in multi-epoch training.
- Evaluated models using multiple metrics: exact match, accuracy, and Gestalt distance to assess semantic correctness beyond verbatim matching.
- Conducted ablation studies comparing models with and without additional pretraining on medical text, and assessed 0-shot vs. 1-shot inference performance.
- Used Hugging Face-hosted models and trained on NVIDIA A100 GPUs to ensure reproducibility and accessibility for clinical institutions.
Experimental results
Research questions
- RQ1How effectively can LoRA-based instruction-tuning incorporate domain-specific medical knowledge into Japanese LLMs?
- RQ2Do larger English-centric LLMs outperform smaller Japanese-centric LLMs in medical domain adaptation tasks?
- RQ3Does increasing the number of fine-tuning epochs or adding additional pretraining improve performance on medical question-answering tasks?
- RQ4How does instruction-tuning affect the model’s 1-shot generalization capability, particularly in comparison to zero-shot performance?
Key findings
- LoRA-based instruction-tuning significantly improves performance on Japanese medical question-answering tasks, with larger models like Llama2-70B showing more pronounced gains than smaller models.
- Single-epoch instruction-tuning (1,000 steps) yields better results than multi-epoch training, which leads to performance deterioration due to overfitting.
- Additional pretraining on medical text did not improve performance and may have worsened results, especially under limited data availability.
- The original OpenCALM-7B model loses its 1-shot reasoning capability after instruction-tuning, whereas Llama2-70B retains it, indicating a key difference in generalization behavior.
- Exact match and Gestalt distance metrics revealed that models can generate semantically correct answers without verbatim matches, highlighting limitations of strict matching in evaluation.
- Using larger English-centric models as base models for Japanese medical adaptation is more effective than relying solely on Japanese-centric models, suggesting cross-lingual transfer potential.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.