Research Article

Building a Domain-Specialized Medical LLM: Pretraining and Multi-Stage Alignment (SFT, PPO, DPO, KTO) for Chinese Medicine

Junqi Yang*
University of Wisconsin Madison

* Corresponding author: [email protected]

Abstract

This project studies how far a small medical language model can be improved with a staged alignment pipeline under limited compute. Starting from Qwen3-0.6B, I first contin-ued pretraining on a Traditional Chinese Medicine (TCM) corpus to add domain vocabulary and clinical-style text patterns. I then trained an SFT model on Chinese TCM instruction-response data and built two follow-up branches: an RLHF-style branch with a reward model and PPO, and a preference-only branch with DPO followed by KTO. All models were evaluated on shared category-level scores from MedBench. In my ex-periments, the SFT model remained competitive on factual and reasoning-heavy tasks, while the DPO+KTO branch produced more conservative responses and showed better behavior on open-ended prompts. The PPO branch was harder to stabilize on a small backbone and did not consistently outperform SFT on the categories reported here. These results suggest that for a 0.6B medical model, preference alignment is useful, but its effect depends strongly on how the preference data are constructed and how much capacity the base model has.

Keywords: Medical Large Language Models; Model Alignment; Reinforcement Learning from Human Feedback; Direct Preference Optimization; Kahneman–Tversky Optimization; Traditional Chinese Medicine
Published: March 30, 2026
DOI: 10.54254/2755-2721/2026.AS32439
Volume: ACE Vol.230
pp. 38-47
Download PDF

References

  1. Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. arXiv preprint arXiv:2203.02155, 2022.
  2. John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. In International Conference on Learning Representations (ICLR), 2017.
  3. Leo Gao, John Schulman, and Jacob Hilton. Scaling laws for reward model overoptimization. arXiv preprint arXiv:2309.11432, 2023.
  4. Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D. Manning, Stefano Ermon, and Chelsea Finn. Di-rect preference optimization: Your language model is secretly a reward model. In Advances in Neural Information Processing Systems (NeurIPS), 2024.
  5. Kawin Ethayarajh, Yan Xu, Dan Jurafsky, and Daniel Khashabi. Supervised preference alignment: A tractable and data-efficient alternative to rlhf. arXiv preprint arXiv:2412.15115, 2024.
  6. Karan Singhal, Shekoofeh Azizi, Tao Tu, Saeed Mahdavi, Jason Wei, Hyung Won Chung, Nathan Scales, Ajay Tan-wani, Heather Cole-Lewis, Stephen Pfohl, et al. Large language models encode clinical knowledge. Nature, 2023.
  7. ModelScope. Chinese medical dialogue corpus. https://modelscope.cn/datasets/alexhuangguo/chinese-medical. Ac-cessed: 2026-03-20.