When Domain Pretraining Interferes with Instruction Alignment: An Empirical Study of Adapter Merging in Medical LLMs
Junyi Zou
TL;DR
This paper addresses the challenge of combining broad medical knowledge with safe instruction following in LLMs by proposing a two-stage LoRA pipeline (domain-adaptive pre-training followed by supervised fine-tuning) and a linear Weighted Adapter Merging strategy to fuse the resulting adapters. It reveals an adapter interference phenomenon where surface metrics like BLEU-4 decline as domain-knowledge weight increases, while medical reasoning performance (e.g., MedQA) can improve, highlighting misalignment between common benchmarks and real reasoning capabilities. The key contribution is the Weighted Adapter Merging formulation, $W_{\text{merged}} = W_{\text{base}} + \alpha_{\text{PT}} \Delta W_{\text{PT}} + \alpha_{\text{SFT}} \Delta W_{\text{SFT}}$ with $\alpha_{\text{SFT}}=0.7$ and $\alpha_{\text{PT}}=0.3$, enabling a controlled trade-off between knowledge injection and alignment. The findings underscore safety benefits and a latent 'Thinking' mode artifact in mixed models, providing practical guidance for deploying safety-critical medical LLMs under parameter-efficient fine-tuning regimes.
Abstract
Large language models (LLMs) show strong general capability but often struggle with medical terminology precision and safety-critical instruction following. We present a case study for adapter interference in safety-critical domains using a 14B-parameter base model through a two-stage LoRA pipeline: (1) domain-adaptive pre-training (PT) to inject broad medical knowledge via continued pre-training (DAPT), and (2) supervised fine-tuning (SFT) to align the model with medical question-answering behaviors through instruction-style data. To balance instruction-following ability and domain knowledge retention, we propose Weighted Adapter Merging, linearly combining SFT and PT adapters before exporting a merged base-model checkpoint. On a held-out medical validation set (F5/F6), the merged model achieves BLEU-4 = 16.38, ROUGE-1 = 20.42, ROUGE-2 = 4.60, and ROUGE-L = 11.54 under a practical decoding configuration. We further analyze decoding sensitivity and training stability with loss curves and controlled decoding comparisons.
